Hey,
Plz help me!
I have an eup menu for police that you do / eup and that you can put on your skin that works well. But I also want staff clothing for that I need a menu where you can do / staff and that you get a different eup menu for staff clothing there is 1 problem that it can not be a job because we have staff who also example police so I really want it to run on mod, admin, superadmin does anyone know what to change below?
TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)
menuPool:Add(mainMenu)
menuPool:RefreshIndex()
RegisterCommand('staff', function()
PlayerData = ESX.GetPlayerData()
if PlayerData.job.name == 'police' or PlayerData.job.name == 'ambulance' then
mainMenu:Visible(not mainMenu:Visible())
else
ESX.ShowNotification('~r~Je hebt geen permissie om dit uit te voeren.')
Citizen.Wait(100)
ESX.ShowNotification('~y~Om deze actie uit te voeren moet je staff zijn.')
end
end, false)
CreateThread(function()
while true do
Wait(0)
menuPool:ProcessMenus()
end
end)