Advertisement
Ji9sw

Gun Van Position Globals

Dec 8th, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. Stand Lua:
  2. local GunVanTruckCoords = { {-29.532, 6435.136, 31.162}, {1705.214, 4819.167, 41.75}, {1795.522, 3899.753, 33.869}, {1335.536, 2758.746, 51.099}, {795.583, 1210.78, 338.962}, {-3192.67, 1077.205, 20.594}, {-789.719, 5400.921, 33.915}, {-24.384, 3048.167, 40.703}, {2666.786, 1469.324, 24.237}, {-1454.966, 2667.503, 3.2}, {2340.418, 3054.188, 47.888}, {1509.183, -2146.795, 76.853}, {1137.404, -1358.654, 34.322}, {-57.208, -2658.793, 5.737}, {1905.017, 565.222, 175.558}, {974.484, -1718.798, 30.296}, {779.077, -3266.297, 5.719}, {-587.728, -1637.208, 19.611}, {733.99, -736.803, 26.165}, {-1694.632, -454.082, 40.712}, {-1330.726, -1163.948, 4.313}, {-496.618, 40.231, 52.316}, {275.527, 66.509, 94.108}, {260.928, -763.35, 30.559}, {-478.025, -741.45, 30.299}, {894.94, 3603.911, 32.56}, {-2166.511, 4289.503, 48.733}, {1465.633, 6553.67, 13.771}, {1101.032, -335.172, 66.944}, {149.683, -1655.674, 29.028} }
  3.  
  4. Root:action("Teleport To Gun Van", {}, "Teleports you to the gun van", function()
  5. Position = GetGlobalInt(2652364 + 2650)
  6.  
  7. if not GunVanTruckCoords[Position + 1] then
  8. util.toast("This event is currently innactive")
  9. else
  10. Coord = GunVanTruckCoords[Position + 1]
  11. players.teleport_3d(players.user(), Coord[1], Coord[2], Coord[3])
  12. end
  13. end)
  14.  
  15. Source (gunclub_shop.c):
  16. Vector3 func_13()//Position - 0x4E61
  17. {
  18. if (!func_15(Global_1956855))
  19. {
  20. return Global_1956855;
  21. }
  22. switch (func_14())
  23. {
  24. case 0:
  25. return -29.532f, 6435.136f, 31.162f;
  26.  
  27. case 1:
  28. return 1705.214f, 4819.167f, 41.75f;
  29.  
  30. case 2:
  31. return 1795.522f, 3899.753f, 33.869f;
  32.  
  33. case 3:
  34. return 1335.536f, 2758.746f, 51.099f;
  35.  
  36. case 4:
  37. return 795.583f, 1210.78f, 338.962f;
  38.  
  39. case 5:
  40. return -3192.67f, 1077.205f, 20.594f;
  41.  
  42. case 6:
  43. return -789.719f, 5400.921f, 33.915f;
  44.  
  45. case 7:
  46. return -24.384f, 3048.167f, 40.703f;
  47.  
  48. case 8:
  49. return 2666.786f, 1469.324f, 24.237f;
  50.  
  51. case 9:
  52. return -1454.966f, 2667.503f, 3.2f;
  53.  
  54. case 10:
  55. return 2340.418f, 3054.188f, 47.888f;
  56.  
  57. case 11:
  58. return 1509.183f, -2146.795f, 76.853f;
  59.  
  60. case 12:
  61. return 1137.404f, -1358.654f, 34.322f;
  62.  
  63. case 13:
  64. return -57.208f, -2658.793f, 5.737f;
  65.  
  66. case 14:
  67. return 1905.017f, 565.222f, 175.558f;
  68.  
  69. case 15:
  70. return 974.484f, -1718.798f, 30.296f;
  71.  
  72. case 16:
  73. return 779.077f, -3266.297f, 5.719f;
  74.  
  75. case 17:
  76. return -587.728f, -1637.208f, 19.611f;
  77.  
  78. case 18:
  79. return 733.99f, -736.803f, 26.165f;
  80.  
  81. case 19:
  82. return -1694.632f, -454.082f, 40.712f;
  83.  
  84. case 20:
  85. return -1330.726f, -1163.948f, 4.313f;
  86.  
  87. case 21:
  88. return -496.618f, 40.231f, 52.316f;
  89.  
  90. case 22:
  91. return 275.527f, 66.509f, 94.108f;
  92.  
  93. case 23:
  94. return 260.928f, -763.35f, 30.559f;
  95.  
  96. case 24:
  97. return -478.025f, -741.45f, 30.299f;
  98.  
  99. case 25:
  100. return 894.94f, 3603.911f, 32.56f;
  101.  
  102. case 26:
  103. return -2166.511f, 4289.503f, 48.733f;
  104.  
  105. case 27:
  106. return 1465.633f, 6553.67f, 13.771f;
  107.  
  108. case 28:
  109. return 1101.032f, -335.172f, 66.944f;
  110.  
  111. case 29:
  112. return 149.683f, -1655.674f, 29.028f;
  113.  
  114. default:
  115. }
  116. return 0f, 0f, 0f;
  117. }
  118.  
  119. int func_14()//Position - 0x515C
  120. {
  121. return Global_2652364.f_2650;
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement