Would you help me
I put your resource on the server
I did all the procedure described in the description
By activating the menu and choosing to add crime to the player
opens window where I inform the text more by clicking on submit nothing happens, and window still remains open, only closes if I cancel
And you have updated to the newest version up on my github?
hello or put her in esx_policejob menu
{label = 'Criminalrecord', value = 'criminalrecords'},
elseif action == 'criminalrecords' then
TriggerEvent('esx_criminalrecords:open', GetPlayerServerId(closestPlayer))
This is great & all. But say you add a record to one Id and his name is Bob Williams & you pull up the same record for the same ID but different Name like Steven Williams it will show the record for Bob Williams.
Shouldnât it be if say my character is Bob Williams & my record has Cop Killing x2 & say i change to my other character Steven Williams but if you pull up his record it should be clean with nothing it.
Did you fix this?
Wouldnât worry about it. I ended up making my own CAD but i also only allow players to setup 1 character. Multiple Characters are a pain.
script is broken, someone able to fix it ? server/main.lua:48 attempt to index a nil value :
the line : local identifier = ESX.GetPlayerFromId(target).identifier
if someone have a new script doing the same things except the one from jsfour i would appreciate it : )
How do you separate it so that âBob Smithâ 's record doesnât show up on âJohn Doeâ ?
Some images or screenshots?
Good work
change elseif to if
i have the same issue
where are esx-policejob?
i thought that looking at this
Which file should this be inserted into?
Add it to the client/main.lua of esx_policejob.
And to avoid opening a record of a player not near you, you may want to add a few extra lines to check for that, so mine looks like the following and works fine (Note I have included a few lines before and after the needed addition, so you can see the context. Make your own edit with care):
elseif action == 'unpaid_bills' then
OpenUnpaidBillsMenu(closestPlayer)
elseif action == 'criminalrecords' then
local closestPlayer, distance = ESX.Game.GetClosestPlayer()
if distance ~= -1 and distance <= 3 then
TriggerEvent('esx_criminalrecords:open',closestPlayer)
else
ESX.ShowNotification('No players nearby')
end
end
All credit to the original author, this is just his code moved around a bit.
thanks

