HumanTree92 / esx_advancedjail

Advanced Jail for FiveM ESX Legacy
http://velocitientertainment.com/
25 stars 11 forks source link

got an issue when starting #1

Closed DanteHsk closed 4 years ago

DanteHsk commented 4 years ago

Error loading script server/main.lua in resource esx_advancedjail: @esx_advancedjail/server/main.lua:38: attempt to call a nil value (field 'RegisterCommand') stack traceback: @esx_advancedjail/server/main.lua:38: in main chunk Failed to load script server/main.lua.

this is the passage:

ESX.RegisterCommand('jail', 'mod', function(xPlayer, args, showError) TriggerEvent('esx_advancedjail:sendToJail', args.playerId, args.time * 60, 'bp1', false) end, true, {help = 'Jail a Player', validate = true, arguments = { {name = 'playerId', help = 'Player Id', type = 'playerId'}, {name = 'time', help = 'Jail Time in Minutes', type = 'number'} }})

HumanTree92 commented 4 years ago

Update ur FiveM. And update to the latest es_extended or latest exm

CC3462 commented 3 years ago

Error loading script server/main.lua in resource esx_advancedjail: @esx_advancedjail/server/main.lua:38: attempt to call a nil value (field 'RegisterCommand') stack traceback: @esx_advancedjail/server/main.lua:38: in main chunk Failed to load script server/main.lua.

What's in the script:

ESX.RegisterCommand('jail', 'mod', function(xPlayer, args, showError) TriggerEvent('esx_advancedjail:sendToJail', args.playerId, args.time * 60, 'bp1', false) end, true, {help = 'Jail a Player', validate = true, arguments = { {name = 'playerId', help = 'Player Id', type = 'playerId'}, {name = 'time', help = 'Jail Time in Minutes', type = 'number'} }})

I am using es_extended v1 final