Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. -- Variables
  2. local ped = PlayerPedId()
  3. local x1, y1, z1, h1 = 0.0
  4. local px1, py1, pz1, ph1 = 0.0
  5. local px2, py2, pz2, ph2 = 0.0
  6. local px3, py3, pz3, ph3 = 0.0
  7. local newped = 0
  8. local model1 = GetHashKey("a_m_m_og_boss_01")
  9. local model2 = GetHashKey("a_m_m_malibu_01")
  10. local model3 = GetHashKey("a_m_m_malibu_01")
  11. local look = false
  12.  
  13. Citizen.CreateThread(function()
  14. RequestModel(model1)
  15. while not HasModelLoaded(model1) do
  16. RequestModel(model1)
  17. Citizen.Wait(0)
  18. end
  19. RequestModel(model2)
  20. while not HasModelLoaded(model2) do
  21. RequestModel(model2)
  22. Citizen.Wait(0)
  23. end
  24. RequestModel(model3)
  25. while not HasModelLoaded(model3) do
  26. RequestModel(model3)
  27. Citizen.Wait(0)
  28. end
  29. RequestAnimDict("mini@strip_club@idles@bouncer@base")
  30. while not HasAnimDictLoaded("mini@strip_club@idles@bouncer@base") do
  31. Wait(1)
  32. end
  33. RequestAnimDict("amb@world_human_window_shop@male@idle_a")
  34. while not HasAnimDictLoaded("amb@world_human_window_shop@male@idle_a") do
  35. Wait(1)
  36. end
  37. RequestAnimDict("anim@heists@heist_corona@single_team")
  38. while not HasAnimDictLoaded("anim@heists@heist_corona@single_team") do
  39. Wait(1)
  40. end
  41. end)
  42.  
  43. -- Functions
  44. RegisterCommand("CreatePed", function()
  45. ped1 = CreatePed(4, model1, px1, py1, pz1, ph1, false, true)
  46. ped2 = CreatePed(4, model2, px2, py2, pz2, ph2, false, true)
  47. ped3 = CreatePed(4, model3, px3, py3, pz3, ph3, false, true)
  48. TaskPlayAnim(ped1,"mini@strip_club@idles@bouncer@base","base", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
  49. TaskPlayAnim(ped2,"amb@world_human_window_shop@male@idle_a","browse_a", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
  50. TaskPlayAnim(ped3,"anim@heists@heist_corona@single_team","single_team_intro_two", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
  51. end, false)
  52. RegisterCommand("ped1", function()
  53. ped = PlayerPedId()
  54. px1, py1, pz1 = table.unpack(GetEntityCoords(ped, true))
  55. ph1 = GetEntityHeading(ped)
  56. print(px1, py1, pz1, ph1)
  57. end, false)
  58. RegisterCommand("ped2", function()
  59. ped = PlayerPedId()
  60. px2, py2, pz2 = table.unpack(GetEntityCoords(ped, true))
  61. ph2 = GetEntityHeading(ped)
  62. print(px2, py2, pz2, ph2)
  63. end, false)
  64. RegisterCommand("ped3", function()
  65. ped = PlayerPedId()
  66. px3, py3, pz3 = table.unpack(GetEntityCoords(ped, true))
  67. ph3 = GetEntityHeading(ped)
  68. print(px3, py3, pz3, ph3)
  69. end, false)
  70.  
  71. RegisterCommand("testcd", function()
  72. ped = PlayerPedId()
  73. x1, y1, z1 = table.unpack(GetEntityCoords(ped, true))
  74. h1 = GetEntityHeading(PlayerPed)
  75. end, false)
  76.  
  77. RegisterCommand("testped", function()
  78. newped = CreatePed(4, model, x1, y1, z1, 0.0, false, true)
  79. TaskPlayAnim(newped,"mini@strip_club@idles@bouncer@base","base", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
  80. end, false)
  81.  
  82. RegisterCommand("look", function()
  83. if look then
  84. look = false
  85. else
  86. look = true
  87. end
  88. end)
  89.  
  90. RegisterCommand("fix", function()
  91. SetEntityVisible(ped, true)
  92. DisplayRadar(true)
  93. end, false)
  94. RegisterCommand("tp", function()
  95. SetEntityCoords(ped, x1+2, y1, z1)
  96. end, false)
  97. RegisterCommand("tpvan", function()
  98. SetEntityCoords(ped, 127.51, -1286.43, 29.28)
  99. end, false)
  100.  
  101. Citizen.CreateThread(function()
  102. while true do
  103. while look do
  104. SetEntityCoords(ped, x1-0.5, y1, z1-1)
  105. SetEntityHeading(ped, h1)
  106. SetEntityVisible(ped, false)
  107. DisableControlAction(0, 1, true)
  108. DisableControlAction(0, 2, true)
  109. DisableControlAction(0, 142, true)
  110. DisableControlAction(0, 18, true)
  111. DisableControlAction(0, 106, true)
  112. DisableControlAction(0, 322, true)
  113. DisableControlAction(0,25, true)
  114. DisplayRadar(false)
  115. Citizen.Wait(1)
  116. end
  117. Citizen.Wait(250)
  118. end
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement