– Menu interactions
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Keys['F2']) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
end
end)
However, every time I start my server, the code is back in the file to my understanding. Any ideas on what I am doing wrong or what else needs to be done to successfully remove the Default F2 Function. (Have Custom Inventory HUD)
Anytime you change a file you need to delete the server-data/cache, and yes in zap hosting you have to uncheck “force overwrite” in resources… then restart server