Can someone help with getting this NUI to close and open with DELETE
Just switch the RegisterCommand
portions to a key listener - that’s achived via a simple Control-related loop, something along these lines:
Citizen.CreateThread(function()
while IsControlJustReleased(0, 0) do
-- if NUI is ON then X1 else X2
end
end)
Replace the last 0 in IsControlJustReleased() with an actual key “code”, seen here.
1 Like
SO that would be keycode 178 for delete, thanks i will try that
Like this?
Yeah that seems about right