Thunder-Menu

Untitled

Feb 22nd, 2021 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.83 KB | None | 0 0
  1. https://prnt.sc/1049p7c
  2.  
  3. hi i have fall on a drawing of a friend it has almost 20 years
  4. why not adding a cars like it
  5. and with this 2 function of the drift and the horn boost
  6.  
  7. //drift
  8.  
  9. int Features::driftfront = 1;
  10. int Features::driftbehind = 1;
  11. bool Features::Drift = false;
  12. void Features::DriftMode(bool toggle) {
  13. //linkhttps://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
  14. //linkhttps://gtaforums.com/topic/795245-v-control-codes-for-gamepads/
  15. //linkhttps://www.gta-modding.com/iv/tutorials/virtual_key_codes.html
  16. if (IsKeyPressed(0x10) || CONTROLS::IS_CONTROL_PRESSED(2, Menu2::DriftKey))
  17. {
  18. VEHICLE::SET_VEHICLE_REDUCE_GRIP(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), Features::driftfront), Features::driftbehind);
  19. }
  20. else
  21. {
  22. VEHICLE::SET_VEHICLE_REDUCE_GRIP(PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 0), 0);
  23. }
  24. }
  25.  
  26. //hornboost
  27.  
  28. void Features::PTFXCALL2car(char *call1, char *call2, char *name)
  29. {
  30. call1o = call1;
  31. call2o = call2;
  32. nameo = name;
  33. STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
  34. GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
  35. GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), -2, -2, -0.5, 0, 0, 0.0, 1, false, false, false);
  36. }
  37. void Features::PTFXCALL2car1(char *call1, char *call2, char *name)
  38. {
  39. call1o = call1;
  40. call2o = call2;
  41. nameo = name;
  42. STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
  43. GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
  44. GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), 2.5, -2, -0.5, 0, 0, 0.0, 1, false, false, false);
  45. }
  46. void Features::PTFXCALL2car2(char *call1, char *call2, char *name)
  47. {
  48. call1o = call1;
  49. call2o = call2;
  50. nameo = name;
  51. STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
  52. GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
  53. GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), -2, 2, -0.5, 0.0, 0.0, 0.0, 1, false, false, false);
  54. }
  55. void Features::PTFXCALL2car3(char *call1, char *call2, char *name)
  56. {
  57. call1o = call1;
  58. call2o = call2;
  59. nameo = name;
  60. STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
  61. GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
  62. GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, PLAYER::PLAYER_PED_ID(), 2.5, 2, -0.5, 0.0, 0.0, 0.0, 1, false, false, false);
  63. }
  64.  
  65. float Features::floatone = 0.0;
  66. float Features::floattwo = 0.0;
  67. float Features::floatthree = -0.5;
  68. float Features::floatfour = 0.0;
  69. float Features::floatfive = 0.0;
  70. float Features::floatsix = 0.0;
  71. float Features::floatseven = 1.0;
  72. void Features::PTFXCALLO(char *call1, char *call2, char *name, Player target)
  73. {
  74. Ped user = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(target);
  75. call1o = call1;
  76. call2o = call2;
  77. nameo = name;
  78. PTLoopPed = user;
  79. STREAMING::REQUEST_NAMED_PTFX_ASSET(call1);
  80. GRAPHICS::USE_PARTICLE_FX_ASSET(call2);
  81. GRAPHICS::_START_NETWORKED_PARTICLE_FX_NON_LOOPED_ON_ENTITY(name, user, floatone, floattwo, floatthree, floatfour, floatfive, floatsix, floatseven, false, false, false);
  82. }
  83.  
  84. int Features::BOOSTLEVEL2 = 2;
  85. int Features::BOOSTLEVEL = 2;
  86. bool Features::boostboolb = false;
  87. void Features::carboostb(bool toggle) {
  88. if (PLAYER::IS_PLAYER_PRESSING_HORN(Features::playerme))
  89. {
  90. Vehicle Veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::playerme), false);
  91. NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(Veh);
  92. if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Veh))
  93. {
  94. if (Features::ptfx2car == true) {
  95. Features::PTFXCALL2car("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
  96. Features::PTFXCALL2car1("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
  97. }
  98. if (Features::ptfx2car01 == true) {
  99. Features::PTFXCALL2car("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
  100. Features::PTFXCALL2car1("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
  101. }
  102. if (Features::ptfx2car02 == true) {
  103. Features::PTFXCALL2car("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
  104. Features::PTFXCALL2car1("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
  105. }
  106. if (Features::ptfx2car03 == true) {
  107. Features::PTFXCALL2car("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
  108. Features::PTFXCALL2car1("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
  109. }
  110. if (Features::ptfx2car04 == true) {
  111. Features::PTFXCALL2car("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
  112. Features::PTFXCALL2car1("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
  113. }
  114. if (Features::ptfx2car05 == true) {
  115. Features::PTFXCALL2car("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
  116. Features::PTFXCALL2car1("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
  117. }
  118. if (Features::ptfx2car06 == true) {
  119. Features::PTFXCALL2car("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
  120. Features::PTFXCALL2car1("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
  121. }
  122. if (Features::ptfx2car07 == true) {
  123. Features::PTFXCALL2car("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
  124. Features::PTFXCALL2car1("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
  125. }
  126. if (Features::ptfx2car08 == true) {
  127. Features::PTFXCALL2car("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
  128. Features::PTFXCALL2car1("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
  129. }
  130. if (Features::ptfx2car09 == true) {
  131. Features::PTFXCALL2car("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
  132. Features::PTFXCALL2car1("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
  133. }
  134. if (Features::ptfx2car12 == true) {
  135. Features::PTFXCALL2car("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
  136. Features::PTFXCALL2car1("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
  137. }
  138. if (Features::ptfx2car13 == true) {
  139. Features::PTFXCALL2car("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
  140. Features::PTFXCALL2car1("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
  141. }
  142. if (Features::ptfx2car14 == true) {
  143. Features::PTFXCALL2car("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
  144. Features::PTFXCALL2car1("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
  145. }
  146. if (Features::ptfx2car15 == true) {
  147. Features::PTFXCALL2car("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
  148. Features::PTFXCALL2car1("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
  149. }
  150. if (Features::ptfx2car16 == true) {
  151. Features::PTFXCALL2car("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
  152. Features::PTFXCALL2car1("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
  153. }
  154. if (Features::ptfx2car17 == true) {
  155. Features::PTFXCALL2car("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
  156. Features::PTFXCALL2car1("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
  157. }
  158. if (Features::ptfx2car18 == true) {
  159. Features::PTFXCALL2car("scr_reburials", "scr_reburials", "scr_burial_dirt");
  160. Features::PTFXCALL2car1("scr_reburials", "scr_reburials", "scr_burial_dirt");
  161. }
  162. AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 1);
  163. float curSpeed = ENTITY::GET_ENTITY_SPEED(Veh);
  164. VEHICLE::SET_VEHICLE_FORWARD_SPEED(Veh, curSpeed + BOOSTLEVEL);
  165. {
  166. AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 0);
  167. }
  168. }
  169. }
  170. else
  171. if (GetAsyncKeyState(0x33) || CONTROLS::IS_CONTROL_PRESSED(2, Menu2::BoostBackKey)) {
  172. Vehicle Veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::playerme), false);
  173. NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(Veh);
  174. if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(Veh))
  175. {
  176. if (Features::ptfx2car == true) {
  177. Features::PTFXCALL2car2("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
  178. Features::PTFXCALL2car3("scr_rcbarry1", "scr_rcbarry1", "scr_alien_teleport");
  179. }
  180. if (Features::ptfx2car01 == true) {
  181. Features::PTFXCALL2car2("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
  182. Features::PTFXCALL2car3("scr_rcbarry2", "scr_rcbarry2", "scr_clown_appears");
  183. }
  184. if (Features::ptfx2car02 == true) {
  185. Features::PTFXCALL2car2("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
  186. Features::PTFXCALL2car3("scr_indep_fireworks", "scr_indep_fireworks", "scr_indep_firework_trailburst");
  187. }
  188. if (Features::ptfx2car03 == true) {
  189. Features::PTFXCALL2car2("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
  190. Features::PTFXCALL2car3("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_burst_rgw");
  191. }
  192. if (Features::ptfx2car04 == true) {
  193. Features::PTFXCALL2car2("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
  194. Features::PTFXCALL2car3("proj_xmas_firework", "proj_xmas_firework", "scr_firework_xmas_spiral_burst_rgw");
  195. }
  196. if (Features::ptfx2car05 == true) {
  197. Features::PTFXCALL2car2("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
  198. Features::PTFXCALL2car3("scr_ornate_heist", "scr_ornate_heist", "scr_heist_ornate_banknotes");
  199. }
  200. if (Features::ptfx2car06 == true) {
  201. Features::PTFXCALL2car2("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
  202. Features::PTFXCALL2car3("scr_fbi4", "scr_fbi4", "scr_fbi4_trucks_crash");
  203. }
  204. if (Features::ptfx2car07 == true) {
  205. Features::PTFXCALL2car2("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
  206. Features::PTFXCALL2car3("scr_rcbarry1", "scr_rcbarry1", "scr_alien_disintegrate");
  207. }
  208. if (Features::ptfx2car08 == true) {
  209. Features::PTFXCALL2car2("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
  210. Features::PTFXCALL2car3("scr_agencyheistb", "scr_agencyheistb", "scr_agency3b_elec_box");
  211. }
  212. if (Features::ptfx2car09 == true) {
  213. Features::PTFXCALL2car2("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
  214. Features::PTFXCALL2car3("scr_fbi5a", "scr_fbi5a", "scr_fbi5_ped_water_splash");
  215. }
  216. if (Features::ptfx2car12 == true) {
  217. Features::PTFXCALL2car2("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
  218. Features::PTFXCALL2car3("scr_martin1", "scr_martin1", "scr_sol1_sniper_impact");
  219. }
  220. if (Features::ptfx2car13 == true) {
  221. Features::PTFXCALL2car2("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
  222. Features::PTFXCALL2car3("core_snow", "core_snow", "cs_mich1_spade_dirt_throw");
  223. }
  224. if (Features::ptfx2car14 == true) {
  225. Features::PTFXCALL2car2("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
  226. Features::PTFXCALL2car3("scr_michael2", "scr_michael2", "scr_mich2_blood_stab");
  227. }
  228. if (Features::ptfx2car15 == true) {
  229. Features::PTFXCALL2car2("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
  230. Features::PTFXCALL2car3("scr_michael2", "scr_michael2", "scr_abattoir_ped_sliced");
  231. }
  232. if (Features::ptfx2car16 == true) {
  233. Features::PTFXCALL2car2("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
  234. Features::PTFXCALL2car3("scr_rcpaparazzo1", "scr_rcpaparazzo1", "scr_rcpap1_camera");
  235. }
  236. if (Features::ptfx2car17 == true) {
  237. Features::PTFXCALL2car2("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
  238. Features::PTFXCALL2car3("scr_familyscenem", "scr_familyscenem", "scr_meth_pipe_smoke");
  239. }
  240. if (Features::ptfx2car18 == true) {
  241. Features::PTFXCALL2car2("scr_reburials", "scr_reburials", "scr_burial_dirt");
  242. Features::PTFXCALL2car3("scr_reburials", "scr_reburials", "scr_burial_dirt");
  243. }
  244. AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 1);
  245. float curSpeed = ENTITY::GET_ENTITY_SPEED(Veh);
  246. VEHICLE::SET_VEHICLE_FORWARD_SPEED(Veh, (curSpeed * -1.0f) - BOOSTLEVEL);
  247. {
  248. AUDIO::SET_VEHICLE_BOOST_ACTIVE(Veh, 0);
  249. }
  250. }
  251. }
  252. }
Add Comment
Please, Sign In to add comment