esx_vehiclelock is coded to only work on vehicles the player owns. MySQL.Async.fetchAll( 'SELECT * FROM owned_vehicles WHERE owner = @identifier', { ['@identifier'] = xPlayer.identifier
This won’t work for you as police cars aren’t owned by players
For some reason I can’t set the police job and I am superadmin. It gives me this error every time I try to set it. Anyone know a fix?
Error running call reference function for resource es_extended: server/commands.lua:15: attempt to index a nil value (local ‘xPlayer’)
stack traceback:
server/commands.lua:15: in local ‘ref’
citizen:/scripting/lua/scheduler.lua:317: in function citizen:/scripting/lua/scheduler.lua:308
Error running call reference function for resource essentialmode: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/MessagePack.lua:830: in method ‘underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field ‘any’
citizen:/scripting/lua/MessagePack.lua:860: in field ‘unpack’
citizen:/scripting/lua/scheduler.lua:378: in upvalue ‘callback’
server/main.lua:213: in local ‘ref’
citizen:/scripting/lua/scheduler.lua:317: in function citizen:/scripting/lua/scheduler.lua:308
I have a problem with, the money i want to despence into my police account and ambulance account, dosen’t work. I and the boss can’t give any of his employees a higher rank. I have society, addonaccout, addoninventory etc. Still don’t work… Someone have any clue? But it works for carldaeler and mafia
Not sure if i am doing something wrong. When i change the configs to make a few things “True” the second the server launches and i load in nothing has changed and the configs have been set to false again.
Hey there I have this mod and a few other esx job mods, and when I try and restart the server, we lose the access to the police station until we do /setjob again, this sound a little wrong to me, is there something we are missing?
once we have done /setjob ID police RANK it works again but on a reboot it forgets it again.
i get this error with the esx_police job everytime i launch my server. any ideas on how to fix? saw someone else had this same issue but was never answered. whats funny is inside esx_policejob there is no line 239. it ends at 229
Hello, can someone help me, this mode giving errors in menu after i translated it in russian, i put ‘locales/ru.lua’ in __resource in client and server, put ru in config and ru.lua, and my game giving me ??? errors
If you are saying you remove a police vehicle and check it with the menu and it comes back unknown, that’s because it is spawned in and not owned by a player.