diff --git a/server/commands.lua b/server/commands.lua index ef87f319..70bfd3e0 100644 --- a/server/commands.lua +++ b/server/commands.lua @@ -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'} diff --git a/server/main.lua b/server/main.lua index d239c7c6..54c693a1 100644 --- a/server/main.lua +++ b/server/main.lua @@ -1,4 +1,6 @@ -WhiteList = {} +ESX, WhiteList = nil, {} + +TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function loadWhiteList(cb) Whitelist = {}