Advertisement
Guest User

Untitled

a guest
May 25th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Citizen.CreateThread(
  2. function()
  3. while true do
  4. Citizen.Wait(1)
  5. if menuIsOpen then
  6. local playerPed = PlayerPedId()
  7. DisableControlAction(0, Keys["R"], true) -- Reload
  8. DisableControlAction(0, Keys["SPACE"], true) -- Jump
  9. DisableControlAction(0, Keys["Q"], true) -- Cover
  10. DisableControlAction(0, Keys["TAB"], true) -- Select Weapon
  11. DisableControlAction(0, Keys["F"], true) -- Also 'enter'?
  12.  
  13. DisableControlAction(0, Keys["F1"], true) -- Disable phone
  14. DisableControlAction(0, Keys["F2"], true) -- Inventory
  15. DisableControlAction(0, Keys["F3"], true) -- Animations
  16. DisableControlAction(0, Keys["F6"], true) -- Job
  17.  
  18. DisableControlAction(0, Keys["V"], true) -- Disable changing view
  19. DisableControlAction(2, Keys["B"], true) -- Disable going stealth
  20. DisableControlAction(0, Keys["X"], true) -- Disable clearing animation
  21. DisableControlAction(2, Keys["P"], true) -- Disable pause screen
  22. DisableControlAction(2, Keys["LEFTCTRL"], true) -- Disable going stealth
  23. end
  24. end
  25. end
  26. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement