[ERROR] [MySQL] [es_extended] An error happens on MySQL for query “UPDATE users SET job = ‘unemployed’, job_grade = 0, loadout = ‘[{“label”:“Pistolet”,“components”:[“clip_default”],“name”:“WEAPON_PISTOL”,“ammo”:2}]’, position = ‘{“z”:30.800000000002,“y”:-785.19999999996,“x”:215.59999999998}’ WHERE identifier = ‘steam:11000013bc23741’”: ER_DATA_TOO_LONG: Data too long for column ‘position’ at row 1
Hi! I have a problem that my food/drink bars don’t want to get down from the half. They stuck at the half of the bars and never go down. Any solution? I’m using custom ui with it.
[ 122109] [FT_LIBS] DEBUG MODE DISABLEError running call reference function for resource esx_policejob: citizen:/scripting/lua/scheduler.lua:355: @esx_policejob/client/main.lua:1034: attempt to concatenate a nil value
[ 122109] stack traceback:
[ 122125] @esx_policejob/client/main.lua:1034: in upvalue ‘ref’
[ 122125] citizen:/scripting/lua/scheduler.lua:341: in function citizen:/scripting/lua/scheduler.lua:340
[ 122125] [C]: in function ‘xpcall’
[ 122125] citizen:/scripting/lua/scheduler.lua:340: in function citizen:/scripting/lua/scheduler.lua:339
[ 122140] stack traceback:
[ 122140] [C]: in function ‘error’
[ 122140] citizen:/scripting/lua/scheduler.lua:355: in function citizen:/scripting/lua/scheduler.lua:324
[ 122156] Error resuming coroutine: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
[ 122156] stack traceback:
[ 122156] [C]: in function ‘error’
[ 122156] citizen:/scripting/lua/MessagePack.lua:830: in method ‘underflow’
[ 122172] citizen:/scripting/lua/MessagePack.lua:465: in field ‘any’
[ 122172] citizen:/scripting/lua/MessagePack.lua:860: in field ‘unpack’
[ 122172] citizen:/scripting/lua/scheduler.lua:578: in field ‘?’
[ 122172] @es_extended/client/functions.lua:1309: in upvalue ‘handler’
[ 122187] citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
[ 124109] Error running call reference function for resource esx_policejob: citizen:/scripting/lua/scheduler.lua:355: @esx_policejob/client/main.lua:1146: attempt to concatenate a nil value (field ‘label’)
[ 124125] stack traceback:
[ 124125] @esx_policejob/client/main.lua:1146: in upvalue ‘ref’
[ 124125] citizen:/scripting/lua/scheduler.lua:341: in function citizen:/scripting/lua/scheduler.lua:340
[ 124140] [C]: in function ‘xpcall’
[ 124140] citizen:/scripting/lua/scheduler.lua:340: in function citizen:/scripting/lua/scheduler.lua:339
[ 124140] stack traceback:
[ 124140] [C]: in function ‘error’
[ 124156] citizen:/scripting/lua/scheduler.lua:355: in function citizen:/scripting/lua/scheduler.lua:324
[ 124156] Error resuming coroutine: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
[ 124156] stack traceback:
[ 124156] [C]: in function ‘error’
[ 124172] citizen:/scripting/lua/MessagePack.lua:830: in method ‘underflow’
[ 124172] citizen:/scripting/lua/MessagePack.lua:465: in field ‘any’
[ 124172] citizen:/scripting/lua/MessagePack.lua:860: in field ‘unpack’
[ 124187] citizen:/scripting/lua/scheduler.lua:578: in field ‘?’
[ 124187] @es_extended/client/functions.lua:1309: in upvalue ‘handler’
[ 124187] citizen:/scripting/lua/scheduler.lua:169: in function citizen:/scripting/lua/scheduler.lua:168
After server reboot all players went as skater or hipster ped, then just updated es_extended and they back to normal characters, but after that cant takeout any weapon, item from jobs (police,gang, mafia etc. ) Where is the problem ? Thanks.
Those 2 families created for fonts : bankgothic and Pricedown are using the same library (pdown) even tho u have a different folder for bankgothic created. Just so u know , it takes 2 minutes to replace the line and the download link. @GiZz
Help, please! I am having too much delay with es_extended, now i have a 32 slots without onesync because my server was 128 slots with onesync, but since last week (when i updated es_extended) i start to have too much hitch warning alerts, i really need help!
Hello. I’m having a problem with my ESX banking script and I have no idea how to solve that. It won’t update the user balance when he withdraw or deposit money in his account. Help Help Help …
im having problems even getting stuff setup myself, ex_extended giving me major error not sure how fix it i redid everything from fresh still getting problems i have no clue!!!
How come my f2 inventory don’t have the option to use stuff like eat drank?
trying use the food and drank script make game play as real life. When I buy something from the store its in my inventory but i can only throw or option return main inventory to see what else i have on me?
How would you make it use able? I’m using def esx base Inventory
I don’t have custom one at all… and i have 99krshop installed.
items are Which also iv tried in the database of changing the names of them it works fine shows within game, but when i buy item it gives me error in my server logs.
Hello everyone! I just started “playing” with ESX and this is my first contact with it. I know a bit of programming and I (mostly) understand what it happens behind the scene. But I still have to get used to it and the mode is written. My main problem is that I couldn’t find a good documentation for it or maybe a wiki with simple things like how to disable last position spawn point.
After a few hours of inspecting what happens when a player joins/die I found out that there is a spawnmanager that takes care about the player spawn location. But I didn’t find any documentation for this resource. I know it is very well commented inside, but for a newbie it is still kind of hard to understand. And I know that I’m not the only one who has this problem because I looked online for this, even in this topic, and nothing really helped. I see alot of people having the same issue and no response.
So, does anyone know how to disable last position spawn when a player joins or dies, or require respawning?
For the moment I’m using fivem-map-skater map, and in the map.lua I set only one spawn point. When I die, it spawns me there, but right after it teleports me to the last location and I dont want this.
Thank you!
// Later Edit: I found out a possible solution but I don’t know how good it is. I have commented the next lines in the resources/[essential]/es_extended/server/classes/player.lua file (line 201):
self.getLastPosition = function()
if self.lastPosition and self.lastPosition.x and self.lastPosition.y and self.lastPosition.z then
self.lastPosition.x = ESX.Math.Round(self.lastPosition.x, 1)
self.lastPosition.y = ESX.Math.Round(self.lastPosition.y, 1)
self.lastPosition.z = ESX.Math.Round(self.lastPosition.z, 1)
end
return self.lastPosition
end
For the moment it works. I will see if it will work in the future because I want to make a system that let the player where to spawn (home, job, default spawn point, or if dies at the hospital).
//Later Edit 2: Also, if someone has another good solution feel free to respond to this post. I know it’s not good to comment lines in the code.
//Later Edit 3: This is getting ridiculous, seems like it doesn’t work, so still waiting for a reponse lol.
I’m back with my problem changing spawn when join server or die. Actually it was very simple to disable last position spawning. But seems like it takes awhile to get used to this framework.
So, this is how to change last position spawning in ESX. Navigate to resources/[essential]/es_extended/client/main.lua and at the line ~60 you will find the code that respawns player to last position. You can comment it or replace it.
if ESX.PlayerData.lastPosition then
SetEntityCoords(playerPed, ESX.PlayerData.lastPosition.x, ESX.PlayerData.lastPosition.y, ESX.PlayerData.lastPosition.z)
end
Be aware, if you comment it, you will spawn at the coordinates from your map.lua.