Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.  
  3.   while true do
  4.     Wait(1)
  5.  
  6.     if IsControlJustReleased(1, 176) then -- enter
  7.       SendNUIMessage({
  8.         action = 'enter'
  9.       })
  10.     elseif IsControlJustReleased(1, 177) then -- back / right click
  11.       SendNUIMessage({
  12.         action = 'return'
  13.       })
  14.     end
  15.  
  16.     if IsControlJustReleased(1, 172) then -- up
  17.       SendNUIMessage({
  18.         action = 'up'
  19.       })
  20.     elseif IsControlJustReleased(1, 173) then -- down
  21.       SendNUIMessage({
  22.         action = 'down'
  23.       })
  24.     end
  25.  
  26.     if IsControlJustReleased(1, 174) then -- left
  27.       SendNUIMessage({
  28.         action = 'left'
  29.       })
  30.     elseif IsControlJustReleased(1, 175) then -- right
  31.       SendNUIMessage({
  32.         action = 'right'
  33.       })
  34.     end
  35.   end
  36.  
  37. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement