[request]f5-menu

I am opening my RolePlay server so i will need menu that opens on button f5, so things that i need in that menu are
Search
Drag
Put in Vehicle
Take out of Vehicle, i have tried to create that menu with esx_jsid menu, person meny, and f5-menu, but no one does not work when i copy paste things from police to that menu, so i i will need your help,
THANK YOU :smiley:

i need help -.-

take it from esx_mafia just take off the part of if player.job == mafia

I will try, thanks :slight_smile:

Can you explain me exactly what to do

When i try to copy it from esx_mafia it does not open

i cant find if player.job==mafia

 if IsControlPressed(0,  Keys['F6']) and PlayerData.job ~= nil and PlayerData.job.name == 'mafia' and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'mafia_actions') and (GetGameTimer() - GUI.Time) > 150 then
     OpenMafiaActionsMenu()
     GUI.Time = GetGameTimer()
    end

Line 1818
Change to

 if IsControlPressed(0,  Keys['F6']) and PlayerData.job ~= nil and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'mafia_actions') and (GetGameTimer() - GUI.Time) > 150 then
     OpenMafiaActionsMenu()
     GUI.Time = GetGameTimer()
    end

And change Keys[‘F6’] to Keys[‘F5’]

when i do that i am getting this error

Thats something u wrote wrong

Nah, i replaced with yours