Hello @Pandorax , I only have access to delete licenses, not to add them. Might you help me?
function ShowPlayerLicense(player)
local elements = {}
local targetName
ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)
if data.licenses then
for i=1, #data.licenses, 1 do
if data.licenses[i].label and data.licenses[i].type then
table.insert(elements, {
label = data.licenses[i].label,
type = data.licenses[i].type
})
end
end
end
if Config.EnableESXIdentity then
targetName = data.firstname .. ' ' .. data.lastname
else
targetName = data.name
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'manage_license',
{
title = _U('license_revoke'),
align = 'top-left',
elements = elements,
}, function(data, menu)
ESX.ShowNotification(_U('licence_you_revoked', data.current.label, targetName))
TriggerServerEvent('esx_policejob:message', GetPlayerServerId(player), _U('license_revoked', data.current.label))
TriggerServerEvent('esx_license:removeLicense', GetPlayerServerId(player), data.current.type)
ESX.SetTimeout(300, function()
ShowPlayerLicense(player)
end)
end, function(data, menu)
menu.close()
end)
end, GetPlayerServerId(player))
end
I can start as a cop, can’t go no duty but when I go to the police station nothing is right, sometimes I fall through the map. I finally made it inside but it’s just hollow and glitched, can’t seem to find anything about it. Help, please.
I’ve got everything working except for buying weapons from the Armoury.
Every option works, withdraw, place, etc. but when I press Enter on the buy button, it gives me a resource loading time error/warning in the bottom right corner regarding menu_default or whatever.
I am comparing it to the original code, and I can’t see anything that I may have done wrong.
Im having an issue would appreciate and suggestions. Cop blips seem to not work? Im unable to see other people who are also police on the map and in my config it is set to true. Unsure of what to do here
hey guys could any one help when i change ped in the changing room all my weapons dissapear what do i need to change any one has any idiea? would really appreaciate it
Anyone knows if es_extended gonna be updated? i got the error on line 1273 about GetWeapon when trying to access “Buy Weapons” via armory, got some issues with it
When using F6 menu with an player gives me an error “No players nearby” error only even when i have players standing just in front of me, cant use any commands handcuff / search etc etc, im running 64 slot server is it Onesync that bugs it?
@973ce59a82bc8a9b3eeb look in the database in table jobs and look if there is an entry with the column name saying police. if not, make sure you run the sql file included in the files.
thats because this entry is already in the database. try removing “INSERT INTO addon_account (name, label, shared) VALUES
(‘society_police’, ‘Police’, 1)” out of the sql file. and run it again