Advertisement
Guest User

Fix GCPHONE MENUOPEN CAN'T OPEN NOTHING

a guest
May 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. --------------- FIST LINE
  2. local Keys = {
  3. ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
  4. ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
  5. ["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
  6. ["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
  7. ["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
  8. ["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
  9. ["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
  10. ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
  11. ["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
  12. }
  13.  
  14. --------------- FIST LINE
  15.  
  16.  
  17. --------------- LAST LINE
  18. Citizen.CreateThread(
  19. function()
  20. while true do
  21. Citizen.Wait(1)
  22. if menuIsOpen then
  23. local playerPed = PlayerPedId()
  24. DisableControlAction(0, 1, true) -- Disable pan
  25. DisableControlAction(0, 2, true) -- Disable tilt
  26. DisableControlAction(0, 24, true) -- Attack
  27. DisableControlAction(0, 257, true) -- Attack 2
  28. DisableControlAction(0, 25, true) -- Aim
  29. DisableControlAction(0, 263, true) -- Melee Attack 1
  30. DisableControlAction(0, Keys["W"], true) -- W
  31. DisableControlAction(0, Keys["A"], true) -- A
  32. DisableControlAction(0, 31, true) -- S (fault in Keys table!)
  33. DisableControlAction(0, 30, true) -- D (fault in Keys table!)
  34.  
  35. DisableControlAction(0, Keys["R"], true) -- Reload
  36. DisableControlAction(0, Keys["SPACE"], true) -- Jump
  37. DisableControlAction(0, Keys["Q"], true) -- Cover
  38. DisableControlAction(0, Keys["TAB"], true) -- Select Weapon
  39. DisableControlAction(0, Keys["F"], true) -- Also 'enter'?
  40.  
  41. DisableControlAction(0, Keys["F1"], true) -- Disable phone
  42. DisableControlAction(0, Keys["F2"], true) -- Inventory
  43. DisableControlAction(0, Keys["F3"], true) -- Animations
  44. DisableControlAction(0, Keys["F6"], true) -- Job
  45.  
  46. DisableControlAction(0, Keys["V"], true) -- Disable changing view
  47. DisableControlAction(0, Keys["C"], true) -- Disable looking behind
  48. DisableControlAction(0, Keys["X"], true) -- Disable clearing animation
  49. DisableControlAction(2, Keys["P"], true) -- Disable pause screen
  50.  
  51. DisableControlAction(0, 59, true) -- Disable steering in vehicle
  52. DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
  53. DisableControlAction(0, 72, true) -- Disable reversing in vehicle
  54.  
  55. DisableControlAction(2, Keys["LEFTCTRL"], true) -- Disable going stealth
  56.  
  57. DisableControlAction(0, 47, true) -- Disable weapon
  58. DisableControlAction(0, 264, true) -- Disable melee
  59. DisableControlAction(0, 257, true) -- Disable melee
  60. DisableControlAction(0, 140, true) -- Disable melee
  61. DisableControlAction(0, 141, true) -- Disable melee
  62. DisableControlAction(0, 142, true) -- Disable melee
  63. DisableControlAction(0, 143, true) -- Disable melee
  64. DisableControlAction(0, 75, true) -- Disable exit vehicle
  65. DisableControlAction(27, 75, true) -- Disable exit vehicle
  66. end
  67. end
  68. end
  69. )
  70. --------------- LAST LINE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement