Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- while true do
- Wait(1)
- if IsControlJustReleased(1, 176) then -- enter
- SendNUIMessage({
- action = 'enter'
- })
- elseif IsControlJustReleased(1, 177) then -- back / right click
- SendNUIMessage({
- action = 'return'
- })
- end
- if IsControlJustReleased(1, 172) then -- up
- SendNUIMessage({
- action = 'up'
- })
- elseif IsControlJustReleased(1, 173) then -- down
- SendNUIMessage({
- action = 'down'
- })
- end
- if IsControlJustReleased(1, 174) then -- left
- SendNUIMessage({
- action = 'left'
- })
- elseif IsControlJustReleased(1, 175) then -- right
- SendNUIMessage({
- action = 'right'
- })
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement