Fixed commands not registering

This commit is contained in:
ElPumpo
2020-02-17 22:47:25 +01:00
parent c73b222a1e
commit c2e63b0800
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ ESX.RegisterCommand('wladd', 'admin', function(xPlayer, args, showError)
end)
end
else
showError('Invalid steam ID length!')
showError('Invalid license ID length!')
end
end, true, {help = _U('help_whitelist_add'), validate = true, arguments = {
{name = 'license', help = 'the player license', type = 'string'}
+3 -1
View File
@@ -1,4 +1,6 @@
WhiteList = {}
ESX, WhiteList = nil, {}
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
function loadWhiteList(cb)
Whitelist = {}