[Release] [WIP] ESX 2

ok, for anyone else wondering its in the server.cfg

1 Like

Greetings everyone,

I’m trying to set ESX where if a player is killed they lose their loadout and last position, and begin as a new character. I’ve opened main.lua on the client side, on line 60 it handles the loadout and position. No matter what settings I change my character respawns in the position he was killed, with all of his gear. Line 79 for “esx:onPlayerDeath” I’ve changed it to false, but again no success. Any help would be great. Thanks

es_extended

Error running call reference function for resource es_extended: citizen:/scripting/lua/scheduler.lua:403: server/main.lua:61: attempt to index a nil value (field '?')
stack traceback:
        server/main.lua:61: in upvalue 'ref'
        citizen:/scripting/lua/scheduler.lua:389: in function <citizen:/scripting/lua/scheduler.lua:388>
        [C]: in function 'xpcall'
        citizen:/scripting/lua/scheduler.lua:388: in function <citizen:/scripting/lua/scheduler.lua:387>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:403: in function <citizen:/scripting/lua/scheduler.lua:372>
Error: Unhandled error: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
    at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
    at h (citizen:/scripting/v8/msgpack.js:29:15761)
    at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
    at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
    at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
    at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
    at unpack (citizen:/scripting/v8/main.js:20:33)
    at citizen:/scripting/v8/main.js:51:11
    at setImmediate (mysql-async.js:4962:9)
    at Object.callback (citizen:/scripting/v8/timer.js:56:6)

Why does it happen? just randomly opened the server and it gave me this error when I joined(didn’t load my data or anything).

EDIT: nvm, had to fix user_inventory because it had removed items.

1 Like

everytime i die this pops up

1 Like

also was wondering if there was a way to get the money and job either smaller or off the screen?

Learn how to code…

And then he comes in with the


Great advice there bud, try to be a lot nicer and you might get the assistance you need.

3 Likes

A framework is a bit different then changing the size of something…

Hey Luke, what do you need help with`?

Nah im good already. Thanks tho

No worries if you need help let me know by PM

1 Like

No, its Esx being full with errors

works for me

hello I have just started using ESX I’m having a problem with the esx_shops resource when I press the E button but I’m at the shop the menu is empty I have Google this problem and found a couple post I double check my database I got rid of the markets I believe I have all the right items but I did not install ESX it was done by Zapp hosting with their option to install it

here is my shop entry in the database as I said I have deleted the markets and I did check I am not using the food truck resource
12

this is the database entry for the items I have not added any items or edited this this is the way it came from zap hosting when they installed the ESX framework along with it SQL database

I would appreciate any help provided thank you

Hello friends i am having a problem with salary because on my mafias etc its possible to put unlimited salary and i am here to ask someone how to change the max ammount of salary !!!??

In the MySQL file

Well I have my “ESX” base and I put the “esx_accessories” it appears all right, but at the time of going to change it does not charge and does not save and then I can not change the part, does anyone know how I can solve this?

This is my problem https://www.twitch.tv/videos/350036569

Hello, i’ve just setup a server using “zap-hosting” and i get a lot of error when connecting to the server.
The only thing i did was adding myself to superadmin and 20 in permissions. if someone could help me or point me in the right direction it would be a great help. here is the error i get:

Error running call reference function for resource esx_weashops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:47: table index is nil
stack traceback:
server/main.lua:47: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM weashops {=}"
Error running call reference function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:31: table index is nil
stack traceback:
server/main.lua:31: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM shops {=}"
Access denied for command add_principal.
[ERROR] [MySQL] An error happens on MySQL for query "SELECT isDead FROM users WHERE identifier=@identifier {@identifier=steam:***********}": Unknown column 'isDead' in 'field list'
Invalid password.
Sending heartbeat to live-internal.fivem.net:30110
Sending heartbeat to live-internal.fivem.net:30110
[SAVED] =[spoun]=
Connecting: =[spoun]=
Sending heartbeat to live-internal.fivem.net:30110
Error running call reference function for resource esx_weashops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:47: table index is nil
stack traceback:
server/main.lua:47: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM weashops {=}"
Error running call reference function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:31: table index is nil
stack traceback:
server/main.lua:31: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM shops {=}"
Access denied for command add_principal.
[ERROR] [MySQL] An error happens on MySQL for query "SELECT isDead FROM users WHERE identifier=@identifier {@identifier=steam:***********}": Unknown column 'isDead' in 'field list'
Sending heartbeat to live-internal.fivem.net:30110
Sending heartbeat to live-internal.fivem.net:30110
[SAVED] =[spoun]=
[SAVED] All players
Sending heartbeat to live-internal.fivem.net:30110
Sending heartbeat to live-internal.fivem.net:30110
Connecting: RicardoAnaya777
[ERROR] [MySQL] An error happens on MySQL for query "UPDATE users SET isDead=@isDead WHERE identifier=@identifier {@isDead=0;@identifier=steam:**********}": Unknown column 'isDead' in 'field list'
Sending heartbeat to live-internal.fivem.net:30110
Error running call reference function for resource esx_weashops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:47: table index is nil
stack traceback:
server/main.lua:47: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM weashops {=}"
Error running call reference function for resource esx_shops: citizen:/scripting/lua/scheduler.lua:359: server/main.lua:31: table index is nil
stack traceback:
server/main.lua:31: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:345: in function <citizen:/scripting/lua/scheduler.lua:344>
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:344: in function <citizen:/scripting/lua/scheduler.lua:343>
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:359: in function <citizen:/scripting/lua/scheduler.lua:328>
[ERROR] [MySQL] Check the error above, an error happens when executing the callback from the query : "SELECT * FROM shops {=}"
Access denied for command add_principal.
[ERROR] [MySQL] An error happens on MySQL for query "SELECT isDead FROM users WHERE identifier=@identifier {@identifier=steam:*********}": Unknown column 'isDead' in 'field list'
Sending heartbeat to live-internal.fivem.net:30110
[SAVED] =[spoun]=
[SAVED] RicardoAnaya777
[SAVED] All players
[ERROR] [MySQL] An error happens on MySQL for query "UPDATE users SET isDead=@isDead WHERE identifier=@identifier {@isDead=0;@identifier=steam:*********}": Unknown column 'isDead' in 'field list'

Hello there, i am trying to add the command /report to ESX_rpchat and get it functional so it dosent say SYSTEM: Unknown command.

RegisterCommand('report', function(source, args, rawCommand)
	rawCommand = string.sub(rawCommand, 4)
	local name = GetPlayerName(source)
	if Config.EnableESXIdentity then name = GetCharacterName(source) end

	TriggerClientEvent('chat:addMessage', -1, { args = { _U( name), rawCommand }, color = { 128, 128, 128 } })
end, false)

Dont know if this would do it tho :confused: