-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.lua
118 lines (113 loc) Β· 6.65 KB
/
commands.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--[[
βββββββββββββββββββββββββββββββββββββββββββββββββββ[ www.warpstore.app ]ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββ βββ ββββββ βββββββ βββββββ βββββββββββββββββ βββββββ βββββββ ββββββββ
βββ βββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββ
βββ ββ βββββββββββββββββββββββββββ ββββββββ βββ βββ βββββββββββββββββ
βββββββββββββββββββββββββββββββββ ββββββββ βββ βββ βββββββββββββββββ
βββββββββββββ ββββββ ββββββ ββββββββ βββ ββββββββββββ βββββββββββ
ββββββββ βββ ββββββ ββββββ ββββββββ βββ βββββββ βββ βββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββ[ www.warpstore.app ]ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
--]]
commands = {
['addGroup'] = {
function ( player, args )
local group = args[ 1 ];
local account_name = getAccountName( getPlayerAccount( player ) )
if ( player and aclGetGroup( group ) ) then
aclGroupAddObject( aclGetGroup( group ), 'user.'..account_name );
end
end;
};
['addMoney'] = {
function ( player, args )
local quantity = tonumber( args[ 1 ] );
if ( player ) then
givePlayerMoney( player, quantity )
end
end;
};
['unban'] = {
function ( player, args )
local account_name = getAccountName( player );
for banId, ban in ipairs( getBans( ) )do
local banUser = getBanNick( ban )
if ( banUser and banUser == account_name ) then
removeBan( ban )
end
end
end;
};
['hyperscripts:addVip'] = {
function( player, args )
local vipName = args[ 1 ]
local vipNumber = args[ 2 ]
local vipDays = tonumber( args[ 3 ] )
local HSVIP = exports['[HS]VIP_System']
local playerAccount = getAccountName( getPlayerAccount( player ))
HSVIP:givePremium( playerAccount, vipName, vipDays, 'Dias', 'VIP:0'..vipNumber )
end;
};
['hyperscripts:addCoin'] = {
function( player, args )
local elementData = args[ 1 ]
local quantityCoin = tonumber( args[ 2 ] );
local currentCoins = getElementData( player, elementData ) or 0;
setElementData( player, elementData, currentCoins + quantityCoin )
end;
};
['hyperscripts:addVehicle'] = {
function( player, args )
local vehicle = string.gsub( args[ 1 ], '-', ' ' );
local vehicleCategory = string.gsub( args[ 2 ], '-', ' ' );
local vehicleModel = tonumber( args[ 3 ] );
local conce = exports['[HS]Dealership_System'];
local verify = conce:getVehicle( account, vehicleName )
if not verify then
conce:setVehicleConce( player, { ['name'] = vehicle, ['model'] = vehicleModel }, { 255, 255, 255 }, vehicleCategory )
end
end;
};
['hyperscripts:addVehicleVip'] = {
function( player, args )
local vehicle = string.gsub( args[ 1 ], '-', ' ' )
local validate = tonumber( args[ 2 ] )
local conce = exports['[HS]Dealership_System'];
local vehicleConfig = conce:getVehicleVipConfig(vehicle);
local verify = conce:getVehicle( account, vehicleName )
if not verify then
local plate = conce:generatePlate( )
conce:setVehicleVip( player, vehicle, conce:generatePlate( ), vehicleConfig.category, vehicleConfig.model, validate )
end
end;
};
['hyperscripts:giveItem'] = {
function( player, args )
local item = args[ 1 ]
local quantity = tonumber( args[ 2 ] );
local inventory = exports['[HS]Hyper_Inventory'];
if not inventory:giveItem( player, item, quantity ) then
return exports['[HS]Notify_System']:notify(player, 'VocΓͺ nΓ£o possui espaΓ§o suficiente para receber o item '..item..' contate a administração.', config.InfoBox.status.warn)
end
end;
};
['hyperscripts:spotify'] = {
function( player, args )
local spotify = exports['[HS]Spotify_System']
local account = getAccountName( getPlayerAccount( player ) )
local dias = tonumber( args[ 1 ] );
local verify, _ = spotify:getPremium( account )
if not verify then
spotify:givePremium( account, dias )
end
end;
};
['hyperscripts:porte'] = {
function( player, args )
local categoria = args[ 1 ]
local verificar = exports['[HS]Porte_Armas']:verificar_porte( player, categoria )
if not verificar then
exports['[HS]Porte_Armas']:set_porte( player, categoria )
end
end;
};
}