Open es_extended , then find and remove this code in client/main.lua :
-- 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)
You Sir, are a legend. Thankyou for posting this. I had to rebuild my server and this was one of the few things that got rolled back. Life saver. Nice one.
Hey, when I modify esx_policejob, it works but I when I search another player, I can only give and take weapons from him. I cannot take a phone, bread etc. Any way possible to solve this? Here is a picture of how it looks:
I want to change the “drop” function so the item gets deleted instead of dropped.
The Client function for drop Item looks fine for me:
RegisterNUICallback(
"DropItem",
function(data, cb)
if IsPedSittingInAnyVehicle(playerPed) then
return
end
if type(data.number) == "number" and math.floor(data.number) == data.number then
if data.item.type == "item_money" then
TriggerServerEvent("esx:removeInventoryItem", "item_account", "money", data.number)
else
TriggerServerEvent("esx:removeInventoryItem", data.item.type, data.item.name, data.number)
end
end
Wait(250)
loadPlayerInventory()
cb("ok")
end
)
But I dont know what to change for the Javascript:
I believe I have to make the adjust in the last part of the javascript function but I dont know how. If i just delete the content of the if-state, then nothing happend when dropping, ingame.
I would love to have also a ranged text message which says " player x destroyed item y" for the people who are like 20 meter arround.
I would be so happy to get this problem fixed. Thanks for every help.
hi, i used this inventory so far so good everything works well, but only 1 problems is why i cant give clean money ? what should i need to do? need help here