Hello ,
I try too do a function for close the inventory when backspace is pressed .
I have try this but that don’t work .
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if isInInventory = true then
if IsControlJustReleased(0, Keys['BACKSPACE']) then
SendNUIMessage({
action = "close",
})
SetNuiFocus(false, false)
end
end
end
end)
Can someone help me please .
Thanks .