Advertisement
jasonaudy36

my new blackhole

Apr 14th, 2021 (edited)
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.56 KB | None | 0 0
  1. //my new blackhole
  2.  
  3.  
  4. int FeaturesOnline::selectedPlayerPlane = 0;
  5. char* ammoTypeForPlane[5] = { "VEHICLE_WEAPON_ENEMY_LASER", "VEHICLE_WEAPON_PLAYER_LASER", "VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE", "WEAPON_VEHICLE_ROCKET", "WEAPON_ASSAULTRIFLE" };
  6. bool FeaturesOnline::bMissles = 0;
  7. bool FeaturesOnline::bLazers = 0;
  8. Hash PlanesToBeAngry[21] = {
  9. ////plane
  10. //link-https://wiki.rage.mp/index.php?title=Vehicles
  11. //0xA52F6866/*alphaz1*/,
  12. 0x81BD2ED0/*avenger*/,
  13. 0x18606535/*avenger2*/,
  14. //0x6CBD1D6D/*besra*/,
  15. //0xF7004C86/*blimp*/,
  16. //0xDB6B4924/*blimp2*/,
  17. //0xEDA4ED97/*blimp3*/,
  18. 0xFE0A508C/*bombushka*/,
  19. //0x15F27762/*cargoplane*/,
  20. //0xD9927FE3/*cuban800*/,
  21. //0xCA495705/*dodo*/,
  22. //0x39D6779E/*duster*/,
  23. //0xC3F25753/*howard*/,
  24. 0x39D6E83F/*hydra*/,
  25. //0x3F119114/*jet*/,
  26. 0xB39B0AE6/*lazer*/,
  27. //0x250B0C5E/*luxor*/,
  28. //0xB79F589E/*luxor2*/,
  29. //0x97E55D11/*mammatus*/,
  30. //0x96E24857/*microlight*/,
  31. //0x9D80F93/*miljet*/,
  32. //0xD35698EF/*mogul*/,
  33. //0x5D56F01B/*molotok*/,
  34. //0xB2CF7250/*nimbus*/,
  35. //0x3DC92356/*nokota*/,
  36. //0xAD6065C0/*pyro*/,
  37. //0xC5DD6967/*rogue*/,
  38. //0xE8983F9F/*seabreeze*/,
  39. //0xB79C1BF5/*shamal*/,
  40. //0x9A9EB7DE/*starling*/,
  41. 0x64DE07A1/*strikeforce*/,
  42. //0x81794C70/*stunt*/,
  43. //0x761E2AD3/*titan*/,
  44. 0x3E2E4F8A/*tula*/,
  45. //0x9C429B6A/*velum*/,
  46. //0x403820E8/*velum2*/,
  47. //0x4FF77E37/*vestra*/,
  48. //0x1AAD0DED/*volatol*/,
  49. ////choper
  50. 0x46699F47/*akula*/,
  51. //0x31F0B376/*annihilator*/,
  52. 0x2F03547B/*buzzard*/,
  53. 0x2C75F0DD/*buzzard2*/,
  54. 0xFCFCB68B/*cargobob*/,
  55. 0x60A7EA10/*cargobob2*/,
  56. 0x53174EEF/*cargobob3*/,
  57. 0x78BC1A3C/*cargobob4*/,
  58. //0x2C634FBD/*frogger*/,
  59. //0x742E9AC0/*frogger2*/,
  60. //0x89BA59F5/*havok*/,
  61. 0xFD707EDE/*hunter*/,
  62. //0x9D0450CA/*maverick*/,
  63. 0xFB133A17/*savage*/,
  64. //0xD4AE63D9/*seasparrow*/,
  65. 0x3E48BF23/*skylift*/,
  66. //0x2A54C47D/*supervolito*/,
  67. //0x9Cregular644/*supervolito2*/,
  68. 0xEBC24DF2/*swift*/,
  69. 0x4019CB4C/*swift2*/,
  70. 0xA09E15FD/*valkyrie*/,
  71. 0x5BFA5C4B/*valkyrie2*/,
  72. //0x920016F1/*volatus*/,
  73. };
  74. int delayedPlanned = 500;
  75. int timerPlaned = 5;
  76.  
  77. bool FeaturesOnline::angries[32] = {};
  78. void playerangry()
  79. {
  80. if (FeaturesOnline::selectedPlayerPlane == playerzero)
  81. {
  82. FeaturesOnline::angries[0] = !FeaturesOnline::angries[0];
  83. /*FeaturesOnline::angries[1] = { 1 };*/
  84. }
  85. if (FeaturesOnline::selectedPlayerPlane == playerone)
  86. {
  87. FeaturesOnline::angries[1] = !FeaturesOnline::angries[1];
  88. /*FeaturesOnline::angries[1] = { 1 };*/
  89. }
  90. if (FeaturesOnline::selectedPlayerPlane == playertwo)
  91. {
  92. FeaturesOnline::angries[2] = !FeaturesOnline::angries[2];
  93. /*FeaturesOnline::angries[2] = { 1 };*/
  94. }
  95. if (FeaturesOnline::selectedPlayerPlane == playerthree)
  96. {
  97. FeaturesOnline::angries[3] = !FeaturesOnline::angries[3];
  98. /*FeaturesOnline::angries[3] = { 1 };*/
  99. }
  100. if (FeaturesOnline::selectedPlayerPlane == playerfour)
  101. {
  102. FeaturesOnline::angries[4] = !FeaturesOnline::angries[4];
  103. /*FeaturesOnline::angries[4] = { 1 };*/
  104. }
  105. if (FeaturesOnline::selectedPlayerPlane == playerfive)
  106. {
  107. FeaturesOnline::angries[5] = !FeaturesOnline::angries[5];
  108. /*FeaturesOnline::angries[5] = { 1 };*/
  109. }
  110. if (FeaturesOnline::selectedPlayerPlane == playersix)
  111. {
  112. FeaturesOnline::angries[6] = !FeaturesOnline::angries[6];
  113. /*FeaturesOnline::angries[6] = { 1 };*/
  114. }
  115. if (FeaturesOnline::selectedPlayerPlane == playerseven)
  116. {
  117. FeaturesOnline::angries[7] = !FeaturesOnline::angries[7];
  118. /*FeaturesOnline::angries[7] = { 1 };*/
  119. }
  120. if (FeaturesOnline::selectedPlayerPlane == playereight)
  121. {
  122. FeaturesOnline::angries[8] = !FeaturesOnline::angries[8];
  123. /*FeaturesOnline::angries[8] = { 1 };*/
  124. }
  125. if (FeaturesOnline::selectedPlayerPlane == playernine)
  126. {
  127. FeaturesOnline::angries[9] = !FeaturesOnline::angries[9];
  128. /*FeaturesOnline::angries[9] = { 1 };*/
  129. }
  130. if (FeaturesOnline::selectedPlayerPlane == playerten)
  131. {
  132. FeaturesOnline::angries[10] = !FeaturesOnline::angries[10];
  133. /*FeaturesOnline::angries[10] = { 1 };*/
  134. }
  135. if (FeaturesOnline::selectedPlayerPlane == playereleven)
  136. {
  137. FeaturesOnline::angries[11] = !FeaturesOnline::angries[11];
  138. /*FeaturesOnline::angries[11] = { 1 };*/
  139. }
  140. if (FeaturesOnline::selectedPlayerPlane == playertwelve)
  141. {
  142. FeaturesOnline::angries[12] = !FeaturesOnline::angries[12];
  143. /*FeaturesOnline::angries[12] = { 1 };*/
  144. }
  145. if (FeaturesOnline::selectedPlayerPlane == playerthirteen)
  146. {
  147. FeaturesOnline::angries[13] = !FeaturesOnline::angries[13];
  148. /*FeaturesOnline::angries[13] = { 1 };*/
  149. }
  150. if (FeaturesOnline::selectedPlayerPlane == playerfourteen)
  151. {
  152. FeaturesOnline::angries[14] = !FeaturesOnline::angries[14];
  153. /*FeaturesOnline::angries[14] = { 1 };*/
  154. }
  155. if (FeaturesOnline::selectedPlayerPlane == playerfifteen)
  156. {
  157. FeaturesOnline::angries[15] = !FeaturesOnline::angries[15];
  158. /*FeaturesOnline::angries[15] = { 1 };*/
  159. }
  160. if (FeaturesOnline::selectedPlayerPlane == playersixteen)
  161. {
  162. FeaturesOnline::angries[16] = !FeaturesOnline::angries[16];
  163. /*FeaturesOnline::angries[16] = { 1 };*/
  164. }
  165. if (FeaturesOnline::selectedPlayerPlane == playerseventeen)
  166. {
  167. FeaturesOnline::angries[17] = !FeaturesOnline::angries[17];
  168. /*FeaturesOnline::angries[17] = { 1 };*/
  169. }
  170. if (FeaturesOnline::selectedPlayerPlane == playereighteen)
  171. {
  172. FeaturesOnline::angries[18] = !FeaturesOnline::angries[18];
  173. /*FeaturesOnline::angries[18] = { 1 };*/
  174. }
  175. if (FeaturesOnline::selectedPlayerPlane == playernineteen)
  176. {
  177. FeaturesOnline::angries[19] = !FeaturesOnline::angries[19];
  178. /*FeaturesOnline::angries[19] = { 1 };*/
  179. }
  180. if (FeaturesOnline::selectedPlayerPlane == playertwenty)
  181. {
  182. FeaturesOnline::angries[20] = !FeaturesOnline::angries[20];
  183. /*FeaturesOnline::angries[29] = { 1 };*/
  184. }
  185. if (FeaturesOnline::selectedPlayerPlane == playertwentyone)
  186. {
  187. FeaturesOnline::angries[21] = !FeaturesOnline::angries[21];
  188. /*FeaturesOnline::angries[21] = { 1 };*/
  189. }
  190. if (FeaturesOnline::selectedPlayerPlane == playertwentytwo)
  191. {
  192. FeaturesOnline::angries[22] = !FeaturesOnline::angries[22];
  193. /*FeaturesOnline::angries[22] = { 1 };*/
  194. }
  195. if (FeaturesOnline::selectedPlayerPlane == playertwentythree)
  196. {
  197. FeaturesOnline::angries[23] = !FeaturesOnline::angries[23];
  198. /*FeaturesOnline::angries[23] = { 1 };*/
  199. }
  200. if (FeaturesOnline::selectedPlayerPlane == playertwentyfour)
  201. {
  202. FeaturesOnline::angries[24] = !FeaturesOnline::angries[24];
  203. /*FeaturesOnline::angries[24] = { 1 };*/
  204. }
  205. if (FeaturesOnline::selectedPlayerPlane == playertwentyfive)
  206. {
  207. FeaturesOnline::angries[25] = !FeaturesOnline::angries[25];
  208. /*FeaturesOnline::angries[25] = { 1 };*/
  209. }
  210. if (FeaturesOnline::selectedPlayerPlane == playertwentysix)
  211. {
  212. FeaturesOnline::angries[26] = !FeaturesOnline::angries[26];
  213. /*FeaturesOnline::angries[26] = { 1 };*/
  214. }
  215. if (FeaturesOnline::selectedPlayerPlane == playertwentyseven)
  216. {
  217. FeaturesOnline::angries[27] = !FeaturesOnline::angries[27];
  218. /*FeaturesOnline::angries[27] = { 1 };*/
  219. }
  220. if (FeaturesOnline::selectedPlayerPlane == playertwentyeight)
  221. {
  222. FeaturesOnline::angries[28] = !FeaturesOnline::angries[28];
  223. /*FeaturesOnline::angries[28] = { 1 };*/
  224. }
  225. if (FeaturesOnline::selectedPlayerPlane == playertwentynine)
  226. {
  227. FeaturesOnline::angries[29] = !FeaturesOnline::angries[29];
  228. /*FeaturesOnline::angries[29] = { 1 };*/
  229. }
  230. if (FeaturesOnline::selectedPlayerPlane == playerthirty)
  231. {
  232. FeaturesOnline::angries[30] = !FeaturesOnline::angries[30];
  233. /*FeaturesOnline::angries[30] = { 1 };*/
  234. /*FeaturesOnline::angries[30] ? 1 : 0;*/
  235. }
  236. if (FeaturesOnline::selectedPlayerPlane == playerthirtyone)
  237. {
  238. FeaturesOnline::angries[31] = !FeaturesOnline::angries[31];
  239. /*FeaturesOnline::angries[30] = { 1 };*/
  240. /*FeaturesOnline::angries[30] ? 1 : 0;*/
  241. }
  242. //if (FeaturesOnline::selectedPlayerPlane == playerthirtytwo)
  243. //{
  244. // FeaturesOnline::angries[32] = !FeaturesOnline::angries[32];
  245. // /*FeaturesOnline::angries[30] = { 1 };*/
  246. // /*FeaturesOnline::angries[30] ? 1 : 0;*/
  247. //}
  248. }
  249.  
  250. void FeaturesOnline::AngryPlanes()
  251. {
  252. playerangry();
  253. PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
  254. for (int i = 0; i < 32; i++)
  255. {
  256. if (FeaturesOnline::angries[i])
  257. {
  258. /*Vector3 wpVec = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
  259. float heading = (ENTITY::GET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), 0)).z;
  260. FLOAT lookDir = ENTITY::GET_ENTITY_HEADING(PLAYER::PLAYER_PED_ID());
  261. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);*/
  262. Vector3 wpVec = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1);
  263. float heading = (ENTITY::GET_ENTITY_ROTATION(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 0)).z;
  264. FLOAT lookDir = ENTITY::GET_ENTITY_HEADING(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i));
  265. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1);
  266. if (GAMEPLAY::GET_GAME_TIMER() > timerPlaned)
  267. {
  268. if (STREAMING::IS_MODEL_IN_CDIMAGE(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]) && STREAMING::IS_MODEL_A_VEHICLE(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
  269. {
  270. STREAMING::REQUEST_MODEL(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]);
  271. //while (!STREAMING::HAS_MODEL_LOADED(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
  272. //{
  273. // /*make_periodic_feature_call();*/
  274. // /*WAIT(0)*/;
  275. //}
  276. if (STREAMING::HAS_MODEL_LOADED(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
  277. {
  278. Vector3 Coordsx;
  279. Coordsx.x = coords.x + rand() % 339;
  280. Coordsx.y = coords.y + rand() % 669;
  281. Coordsx.z = coords.z + rand() % 29 + 69;
  282. //int SpawnedPlanes = VEHICLE::CREATE_VEHICLE(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*/25)], coords.x + rand() % 339, coords.y + rand() % 669, coords.z + rand() % 29 + 69, lookDir, 1, 1);
  283. int SpawnedPlanes = CHooking::create_vehicle(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)], &Coordsx, lookDir, 1, 1);
  284. ENTITY::SET_ENTITY_INVINCIBLE(SpawnedPlanes, 1);
  285. Ped planePilot = PED::CREATE_RANDOM_PED_AS_DRIVER(SpawnedPlanes, false);
  286. PED::SET_DRIVER_ABILITY(planePilot, 1000.0f);
  287. PED::SET_DRIVER_AGGRESSIVENESS(planePilot, 1000.0f);
  288. /*PED::SET_PED_COMBAT_ABILITY(planePilot, 100);
  289. AI::TASK_COMBAT_PED(planePilot, PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1, 1);
  290. PED::SET_PED_ALERTNESS(planePilot, 1000);
  291. PED::SET_PED_COMBAT_RANGE(planePilot, 1000);*/
  292. ENTITY::SET_ENTITY_INVINCIBLE(planePilot, 1);
  293. Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(planePilot, 0);
  294. //WAIT(0);
  295. if (AI::GET_SCRIPT_TASK_STATUS(planePilot, 0x21d33957) == 7)
  296. {
  297. AI::TASK_VEHICLE_DRIVE_TO_COORD(planePilot, vehicle, wpVec.x, wpVec.y, wpVec.z + rand() % 21, (float)(rand() % 33 + 69), 1, ENTITY::GET_ENTITY_MODEL(vehicle), 16777216 || 262144, -1.0, -1.0);
  298. }
  299. timerPlaned = GAMEPLAY::GET_GAME_TIMER() + delayedPlanned;
  300. }
  301. }
  302.  
  303. }
  304. /*Ped playerPed = PLAYER::PLAYER_PED_ID();
  305. Entity detentity = PLAYER::PLAYER_PED_ID();*/
  306. Ped playerPed = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i);
  307. Entity detentity = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i);
  308. if (PED::IS_PED_IN_ANY_VEHICLE(detentity, 0))
  309. detentity = PED::GET_VEHICLE_PED_IS_USING(detentity);
  310.  
  311. Vector3 myCoord = ENTITY::GET_ENTITY_COORDS(detentity, true);
  312. Vector3 speed = ENTITY::GET_ENTITY_SPEED_VECTOR(detentity, 1);
  313. const int ElementAmount = 31;
  314. const int ArrSize = ElementAmount * 2 + 2;
  315. Vehicle* vehs = new Vehicle[ArrSize];
  316. vehs[0] = ElementAmount;
  317. /*int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), vehs);*/
  318. int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), vehs);
  319. //int count = worldGetAllVehicles(ElementAmount, *vehs);
  320. if (vehs != NULL)
  321. {
  322. for (int i = 0; i < count; i++)
  323. {
  324. int offsettedID = i * 2 + 2;
  325. /*if (vehs[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false))*/
  326. if (vehs[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), false))
  327. {
  328. if (vehs[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(vehs[offsettedID]))
  329. {
  330. if (VEHICLE::IS_VEHICLE_MODEL(vehs[offsettedID], PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
  331. {
  332. Vector3 planeCoords = ENTITY::GET_ENTITY_COORDS(vehs[offsettedID], 0);
  333. if (GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(planeCoords.x, planeCoords.y, planeCoords.z, coords.x, coords.y, coords.z, 1) < 69.99999f)
  334. {
  335. float deuxcenthuitcent = 200 % 800;
  336. if (FeaturesOnline::bMissles) {
  337. /*GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(planeCoords.x, planeCoords.y + 5, planeCoords.z + GAMEPLAY::GET_RANDOM_FLOAT_IN_RANGE(6.337, 21.337), coords.x, coords.y, coords.z, 100, 0, GAMEPLAY2::GET_HASH_KEY2("WEAPON_RPG"), PLAYER::PLAYER_PED_ID(), 0, 0, rand() + 200 % 800);*/
  338. GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(planeCoords.x, planeCoords.y + 5, planeCoords.z + GAMEPLAY::GET_RANDOM_FLOAT_IN_RANGE(6.337, 21.337), coords.x, coords.y, coords.z, 100, 0, HASH::GET_HASH_KEY("WEAPON_RPG"), PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 0, 0, rand() + deuxcenthuitcent);
  339. }
  340. if (FeaturesOnline::bLazers) {
  341. /*GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x, coords.y + 5, coords.z + GAMEPLAY::GET_RANDOM_FLOAT_IN_RANGE(6.337, 21.337), coords.x, coords.y, coords.z, 100, 0, GAMEPLAY2::GET_HASH_KEY2(ammoTypeForPlane[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, 2)]), PLAYER::PLAYER_PED_ID(), 0, 0, rand() + 200 % 800);*/
  342. GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(coords.x, coords.y + 5, coords.z + GAMEPLAY::GET_RANDOM_FLOAT_IN_RANGE(6.337, 21.337), coords.x, coords.y, coords.z, 100, 0, HASH::GET_HASH_KEY(ammoTypeForPlane[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, 2)]), PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 0, 0, rand() + deuxcenthuitcent);
  343.  
  344. }
  345. }
  346. }
  347. }
  348. }
  349. }
  350. }
  351. }
  352. }
  353. }
  354.  
  355. float holdDistance2;
  356. bool AttractToMe_ = 0;
  357. bool Features::disallowNewEntity = 0;
  358. bool Features::newblackhole = 0;
  359. float Features::blackheigh = 0.4f;
  360. float Features::blackwidth = 0.6f;
  361. float Features::blacklength = 0;
  362. bool Features::mypositionblack = 0;
  363. bool Features::playerpositionblack = 0;
  364.  
  365. bool Features::coordonate = 0;
  366. float Features::coordonatex = 0;
  367. float Features::coordonatey = 0;
  368. float Features::coordonatez = 0;
  369. bool Features::getfirstcoordbool = 1;
  370. void Features::getblackcoord() {
  371. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
  372. Features::coordonatex = (float)coords.x;
  373. Features::coordonatey = (float)coords.y;
  374. Features::coordonatez = (float)coords.z;
  375. }
  376.  
  377. void Features::getblackcoord1() {
  378. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
  379. Features::coordonatex = (float)coords.x;
  380. Features::coordonatey = (float)coords.y;
  381. Features::coordonatez = (float)coords.z + 2;
  382. }
  383.  
  384. void Features::getblackcoord2() {
  385. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
  386. Features::coordonatex = (float)coords.x;
  387. Features::coordonatey = (float)coords.y;
  388. Features::coordonatez = (float)coords.z + 10;
  389. }
  390.  
  391. void Features::getblackcoord3() {
  392. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
  393. Features::coordonatex = (float)coords.x;
  394. Features::coordonatey = (float)coords.y;
  395. Features::coordonatez = (float)coords.z + 20;
  396. }
  397.  
  398. void GET_CAMERA_DIRECTION(float* dirX, float* dirY, float* dirZ)
  399. {
  400. float tX, tZ, num;
  401. Vector3 rot = CAM::GET_GAMEPLAY_CAM_ROT(0);
  402. tZ = rot.z * 0.0174532924f;
  403. tX = rot.x * 0.0174532924f;
  404. num = abs(cos(tX));
  405. *dirX = (-sin(tZ)) * num;
  406. *dirY = (cos(tZ)) * num;
  407. *dirZ = sin(tX);
  408. }
  409.  
  410. int Features::BlackHoleZ = 10;
  411. int Features::RequestTimes = 1500;
  412. bool getfirstboolbh = 1;
  413. void Features::AttractToMe()
  414. {
  415. if (Features::getfirstcoordbool)
  416. {
  417. Features::getblackcoord();
  418. Features::getfirstcoordbool = 0;
  419. }
  420. if (getfirstboolbh)
  421. {
  422. Features::coordonate = 1;
  423. Features::getblackcoord2();
  424. blackhole::blacktimerbool = 1;
  425. myblack::bhbool2 = 1;
  426. getfirstboolbh = 0;
  427. }
  428. int entdistance = 0;
  429. Vector3 grav_pos;
  430. Vector3 grav_camrot;
  431. Vector3 grav_camdir;
  432. Entity EntityTarget;
  433. grav_camrot = CAM::GET_GAMEPLAY_CAM_ROT(0);
  434. if (Features::mypositionblack)
  435. {
  436. grav_pos = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, Features::blackheigh, 0, Features::blackwidth + Features::BlackHoleZ);
  437. Features::playerpositionblack = false;
  438. }
  439. if (Features::playerpositionblack)
  440. {
  441. grav_pos = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), Features::blackheigh, 0, Features::blackwidth + Features::BlackHoleZ);
  442. Features::mypositionblack = false;
  443. }
  444. if (!Features::coordonate && !Features::mypositionblack && !Features::playerpositionblack)
  445. {
  446. /*grav_pos = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), Features::blackheigh, Features::blacklength, Features::blackwidth);*/
  447. grav_pos.x = Features::coordonatex;
  448. grav_pos.y = Features::coordonatey;
  449. grav_pos.z = Features::coordonatez + Features::BlackHoleZ;
  450. }
  451. if (Features::coordonate/*!Features::mypositionblack && !Features::playerpositionblack*/)
  452. {
  453. /*grav_pos = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), Features::blackheigh, Features::blacklength, Features::blackwidth);*/
  454. grav_pos.x = Features::coordonatex;
  455. grav_pos.y = Features::coordonatey;
  456. grav_pos.z = Features::coordonatez + Features::BlackHoleZ;
  457. }
  458. GET_CAMERA_DIRECTION(&grav_camdir.x, &grav_camdir.y, &grav_camdir.z);
  459. if (!Features::disallowNewEntity) PLAYER::GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Features::playerme/*PLAYER::PLAYER_ID()*/, &EntityTarget);
  460. if (CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, 241) || CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, 241))
  461. entdistance += 1;
  462. else if ((holdDistance2 > 1) && CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, 241) || CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, 242))
  463. entdistance -= 1;
  464. if (Features::mypositionblack)
  465. {
  466. const int numElements = 10;
  467. const int arrSize = numElements * 12 + 12;
  468. Vehicle veh[arrSize];
  469. veh[0] = numElements;
  470. int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh);
  471. if (veh != NULL)
  472. {
  473. for (int i = 1; i <= count; i++)
  474. {
  475. int offsettedID = i;
  476. if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
  477. {
  478. GTAvehicle curVeh = veh[offsettedID];
  479. Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
  480. if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false))
  481. {
  482. if (curVeh.RequestControl(Features::RequestTimes))
  483. {
  484. ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
  485. float forceAmount[3];
  486. forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
  487. forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
  488. forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
  489. ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
  490. }
  491. }
  492. }
  493. }
  494. }
  495. }
  496. if (Features::playerpositionblack)
  497. {
  498. const int numElements = 10;
  499. const int arrSize = numElements * 12 + 12;
  500. Vehicle veh[arrSize];
  501. veh[0] = numElements;
  502. int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
  503. if (veh != NULL)
  504. {
  505. for (int i = 1; i <= count; i++)
  506. {
  507. int offsettedID = i;
  508. if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
  509. {
  510. GTAvehicle curVeh = veh[offsettedID];
  511. Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
  512. if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
  513. {
  514. if (curVeh.RequestControl(Features::RequestTimes))
  515. {
  516. ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
  517. float forceAmount[3];
  518. forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
  519. forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
  520. forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
  521. ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
  522. }
  523. }
  524. }
  525. }
  526. }
  527. }
  528. if (Features::coordonate)
  529. {
  530. const int numElements = 10;
  531. const int arrSize = numElements * 12 + 12;
  532. Vehicle veh[arrSize];
  533. veh[0] = numElements;
  534. int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
  535. if (veh != NULL)
  536. {
  537. for (int i = 1; i <= count; i++)
  538. {
  539. int offsettedID = i;
  540. if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
  541. {
  542. GTAvehicle curVeh = veh[offsettedID];
  543. Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
  544. if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
  545. {
  546. if (curVeh.RequestControl(Features::RequestTimes))
  547. {
  548. ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
  549. float forceAmount[3];
  550. forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
  551. forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
  552. forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
  553. ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
  554. }
  555. }
  556. }
  557. }
  558. }
  559. }
  560. if (!Features::coordonate && !Features::mypositionblack && !Features::playerpositionblack)
  561. {
  562. const int numElements = 10;
  563. const int arrSize = numElements * 12 + 12;
  564. Vehicle veh[arrSize];
  565. veh[0] = numElements;
  566. Vector3 coords;
  567. coords.x = Features::coordonatex;
  568. coords.y = Features::coordonatey;
  569. coords.z = Features::coordonatez;
  570. int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
  571. if (veh != NULL)
  572. {
  573. for (int i = 1; i <= count; i++)
  574. {
  575. int offsettedID = i;
  576. if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
  577. {
  578. GTAvehicle curVeh = veh[offsettedID];
  579. Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
  580. if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
  581. {
  582. if (curVeh.RequestControl(Features::RequestTimes))
  583. {
  584. ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
  585. float forceAmount[3];
  586. forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
  587. forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
  588. forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
  589. ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
  590. }
  591. }
  592. }
  593. }
  594. }
  595. }
  596. }
  597.  
  598. Object Features::blacklatest;
  599. Object Features::blacklatest2;
  600. float Features::blackMoveX2;
  601. float Features::blackMoveY2;
  602. float Features::blackMoveZ2;
  603. float Features::blackroll12;
  604. float Features::blackyaw12;
  605. float Features::blackpitch12;
  606.  
  607. char* blackholesprop[] = {
  608. "prop_mp_icon_shad_lrg",
  609. "prop_mp_icon_shad_med",
  610. "prop_mp_icon_shad_sm"
  611. };
  612.  
  613. enum numberblack
  614. {
  615. zeroblack = 0,
  616. oneblack = 1,
  617. twoblack = 2,
  618. };
  619. vector<int> LastBlack;
  620. vector<int> LastBlack2;
  621. int myblack::holypitch = 275;
  622. bool myblack::bhbool = 0;
  623. void myblack::bhveh()
  624. {
  625. PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
  626. const int ElementAmount = 10;
  627. const int ArrSize = ElementAmount * 2 + 2;
  628. Vehicle* vehs = new Vehicle[ArrSize];
  629. vehs[0] = ElementAmount;
  630. int VehFound = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), vehs);
  631. for (int i = 0; i < VehFound; i++)
  632. {
  633. int OffsetID = i * 2 + 2;
  634. if (vehs[OffsetID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
  635. {
  636. RequestControlOfEnt(vehs[OffsetID]);
  637. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
  638. }
  639. else
  640. {
  641. int vehHash = ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]);
  642. if (vehHash != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
  643. {
  644. RequestControlOfEnt(vehHash);
  645. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
  646. }
  647. }
  648. }
  649. delete[] vehs;
  650. }
  651.  
  652. bool myblack::bhbool2 = 0;
  653. void myblack::bhveh2()
  654. {
  655. PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
  656. const int ElementAmount = 10;
  657. const int ArrSize = ElementAmount * 2 + 2;
  658. Vehicle* vehs = new Vehicle[ArrSize];
  659. vehs[0] = ElementAmount;
  660. int VehFound = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), vehs);
  661. for (int i = 0; i < VehFound; i++)
  662. {
  663. int OffsetID = i * 2 + 2;
  664. if (vehs[OffsetID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
  665. {
  666. Entity entity = Features::blacklatest;
  667. RequestControlOfEnt(entity);
  668. bool IS_ENTITY_TOUCHING_MODEL = ENTITY::IS_ENTITY_TOUCHING_MODEL(entity, ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]));
  669. if (IS_ENTITY_TOUCHING_MODEL)
  670. {
  671. RequestControlOfEnt(vehs[OffsetID]);
  672. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
  673. }
  674. Entity entity2 = Features::blacklatest;
  675. RequestControlOfEnt(entity2);
  676. bool HAS_ENTITY_COLLIDED_WITH_ANYTHING = ENTITY::HAS_ENTITY_COLLIDED_WITH_ANYTHING(entity2);
  677. if (HAS_ENTITY_COLLIDED_WITH_ANYTHING)
  678. {
  679. RequestControlOfEnt(vehs[OffsetID]);
  680. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
  681. }
  682. }
  683. else
  684. {
  685. int vehHash = ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]);
  686. if (vehHash != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
  687. {
  688. Entity entity = Features::blacklatest;
  689. RequestControlOfEnt(entity);
  690. bool IS_ENTITY_TOUCHING_MODEL = ENTITY::IS_ENTITY_TOUCHING_MODEL(entity, vehHash);
  691. if (IS_ENTITY_TOUCHING_MODEL)
  692. {
  693. RequestControlOfEnt(vehHash);
  694. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
  695. }
  696. Entity entity2 = Features::blacklatest;
  697. RequestControlOfEnt(entity2);
  698. bool HAS_ENTITY_COLLIDED_WITH_ANYTHING = ENTITY::HAS_ENTITY_COLLIDED_WITH_ANYTHING(entity2);
  699. if (HAS_ENTITY_COLLIDED_WITH_ANYTHING)
  700. {
  701. RequestControlOfEnt(vehHash);
  702. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
  703. }
  704. }
  705. }
  706. }
  707. delete[] vehs;
  708. }
  709.  
  710.  
  711. int myblackhole()
  712. {
  713. blackhole::backbool = true;
  714. blackhole::blackhole();
  715. if (blackhole::id == zeroblack)
  716. {
  717. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  718. {
  719. if (Features::coordonate)
  720. {
  721. if (Features::blacklatest)
  722. {
  723. RequestControlOfEnt(Features::blacklatest);
  724. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  725. LastBlack.pop_back();
  726. RequestControlOfEnt(Features::blacklatest2);
  727. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  728. LastBlack2.pop_back();
  729. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  730. Hooking::request_model((Hash)model);
  731. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  732. //{
  733. // /*WAIT(0);*/
  734. //}
  735. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  736. {
  737. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  738. Features::blacklatest = (Object)obj;
  739. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  740. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  741. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  742. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  743. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  744. Features::blacklatest2 = (Object)object1;
  745. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  746. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  747. Features::blackMoveX2 = objCoords.x;
  748. Features::blackMoveY2 = objCoords.y;
  749. Features::blackMoveZ2 = objCoords.z;
  750. Features::blackroll12 = objRot.y;
  751. Features::blackyaw12 = objRot.z;
  752. Features::blackpitch12 = objRot.x;
  753. }
  754. }
  755. else
  756. {
  757. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  758. Hooking::request_model((Hash)model);
  759. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  760. //{
  761. // /*WAIT(0);*/
  762. //}
  763. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  764. {
  765. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  766. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  767. Features::blacklatest = (Object)obj;
  768. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  769. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  770. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  771. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  772. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  773. Features::blacklatest2 = (Object)object1;
  774. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  775. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  776. Features::blackMoveX2 = objCoords.x;
  777. Features::blackMoveY2 = objCoords.y;
  778. Features::blackMoveZ2 = objCoords.z;
  779. Features::blackroll12 = objRot.y;
  780. Features::blackyaw12 = objRot.z;
  781. Features::blackpitch12 = objRot.x;
  782. }
  783. }
  784. }
  785. else
  786. {
  787. if (Features::blacklatest)
  788. {
  789. RequestControlOfEnt(Features::blacklatest);
  790. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  791. LastBlack.pop_back();
  792. RequestControlOfEnt(Features::blacklatest2);
  793. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  794. LastBlack2.pop_back();
  795. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  796. Hooking::request_model((Hash)model);
  797. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  798. //{
  799. // /*WAIT(0);*/
  800. //}
  801. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  802. {
  803. /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
  804. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  805. Features::blacklatest = (Object)obj;
  806. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  807. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  808. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  809. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  810. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  811. Features::blacklatest2 = (Object)object1;
  812. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  813. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  814. Features::blackMoveX2 = objCoords.x;
  815. Features::blackMoveY2 = objCoords.y;
  816. Features::blackMoveZ2 = objCoords.z;
  817. Features::blackroll12 = objRot.y;
  818. Features::blackyaw12 = objRot.z;
  819. Features::blackpitch12 = objRot.x;
  820. }
  821. }
  822. else
  823. {
  824. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  825. Hooking::request_model((Hash)model);
  826. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  827. //{
  828. // /*WAIT(0);*/
  829. //}
  830. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  831. {
  832. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  833. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  834. Features::blacklatest = (Object)obj;
  835. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  836. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  837. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  838. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  839. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  840. Features::blacklatest2 = (Object)object1;
  841. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  842. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  843. Features::blackMoveX2 = objCoords.x;
  844. Features::blackMoveY2 = objCoords.y;
  845. Features::blackMoveZ2 = objCoords.z;
  846. Features::blackroll12 = objRot.y;
  847. Features::blackyaw12 = objRot.z;
  848. Features::blackpitch12 = objRot.x;
  849. }
  850. }
  851. }
  852. }
  853. }
  854. if (blackhole::id == oneblack)
  855. {
  856. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  857. {
  858. if (Features::coordonate)
  859. {
  860. if (Features::blacklatest)
  861. {
  862. RequestControlOfEnt(Features::blacklatest);
  863. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  864. LastBlack.pop_back();
  865. RequestControlOfEnt(Features::blacklatest2);
  866. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  867. LastBlack2.pop_back();
  868. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  869. Hooking::request_model((Hash)model);
  870. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  871. //{
  872. // /*WAIT(0);*/
  873. //}
  874. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  875. {
  876. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  877. Features::blacklatest = (Object)obj;
  878. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  879. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  880. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  881. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  882. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  883. Features::blacklatest2 = (Object)object1;
  884. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  885. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  886. Features::blackMoveX2 = objCoords.x;
  887. Features::blackMoveY2 = objCoords.y;
  888. Features::blackMoveZ2 = objCoords.z;
  889. Features::blackroll12 = objRot.y;
  890. Features::blackyaw12 = objRot.z;
  891. Features::blackpitch12 = objRot.x;
  892. }
  893. }
  894. else
  895. {
  896. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  897. Hooking::request_model((Hash)model);
  898. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  899. //{
  900. // /*WAIT(0);*/
  901. //}
  902. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  903. {
  904. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  905. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  906. Features::blacklatest = (Object)obj;
  907. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  908. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  909. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  910. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  911. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  912. Features::blacklatest2 = (Object)object1;
  913. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  914. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  915. Features::blackMoveX2 = objCoords.x;
  916. Features::blackMoveY2 = objCoords.y;
  917. Features::blackMoveZ2 = objCoords.z;
  918. Features::blackroll12 = objRot.y;
  919. Features::blackyaw12 = objRot.z;
  920. Features::blackpitch12 = objRot.x;
  921. }
  922. }
  923. }
  924. else
  925. {
  926. if (Features::blacklatest)
  927. {
  928. RequestControlOfEnt(Features::blacklatest);
  929. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  930. LastBlack.pop_back();
  931. RequestControlOfEnt(Features::blacklatest2);
  932. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  933. LastBlack2.pop_back();
  934. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  935. Hooking::request_model((Hash)model);
  936. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  937. //{
  938. // /*WAIT(0);*/
  939. //}
  940. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  941. {
  942. /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
  943. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  944. Features::blacklatest = (Object)obj;
  945. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  946. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  947. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  948. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  949. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  950. Features::blacklatest2 = (Object)object1;
  951. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  952. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  953. Features::blackMoveX2 = objCoords.x;
  954. Features::blackMoveY2 = objCoords.y;
  955. Features::blackMoveZ2 = objCoords.z;
  956. Features::blackroll12 = objRot.y;
  957. Features::blackyaw12 = objRot.z;
  958. Features::blackpitch12 = objRot.x;
  959. }
  960. }
  961. else
  962. {
  963. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  964. Hooking::request_model((Hash)model);
  965. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  966. //{
  967. // /*WAIT(0);*/
  968. //}
  969. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  970. {
  971. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  972. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  973. Features::blacklatest = (Object)obj;
  974. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  975. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  976. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  977. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  978. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  979. Features::blacklatest2 = (Object)object1;
  980. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  981. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  982. Features::blackMoveX2 = objCoords.x;
  983. Features::blackMoveY2 = objCoords.y;
  984. Features::blackMoveZ2 = objCoords.z;
  985. Features::blackroll12 = objRot.y;
  986. Features::blackyaw12 = objRot.z;
  987. Features::blackpitch12 = objRot.x;
  988. }
  989. }
  990. }
  991. }
  992. }
  993. if (blackhole::id == twoblack)
  994. {
  995. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  996. {
  997. if (Features::coordonate)
  998. {
  999. if (Features::blacklatest)
  1000. {
  1001. RequestControlOfEnt(Features::blacklatest);
  1002. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1003. LastBlack.pop_back();
  1004. RequestControlOfEnt(Features::blacklatest2);
  1005. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1006. LastBlack2.pop_back();
  1007. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1008. Hooking::request_model((Hash)model);
  1009. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1010. //{
  1011. // /*WAIT(0);*/
  1012. //}
  1013. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1014. {
  1015. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  1016. Features::blacklatest = (Object)obj;
  1017. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1018. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1019. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1020. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1021. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
  1022. Features::blacklatest2 = (Object)object1;
  1023. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1024. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1025. Features::blackMoveX2 = objCoords.x;
  1026. Features::blackMoveY2 = objCoords.y;
  1027. Features::blackMoveZ2 = objCoords.z;
  1028. Features::blackroll12 = objRot.y;
  1029. Features::blackyaw12 = objRot.z;
  1030. Features::blackpitch12 = objRot.x;
  1031. }
  1032. }
  1033. else
  1034. {
  1035. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1036. Hooking::request_model((Hash)model);
  1037. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1038. //{
  1039. // /*WAIT(0);*/
  1040. //}
  1041. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1042. {
  1043. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1044. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1045. Features::blacklatest = (Object)obj;
  1046. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1047. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1048. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1049. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1050. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1051. Features::blacklatest2 = (Object)object1;
  1052. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1053. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1054. Features::blackMoveX2 = objCoords.x;
  1055. Features::blackMoveY2 = objCoords.y;
  1056. Features::blackMoveZ2 = objCoords.z;
  1057. Features::blackroll12 = objRot.y;
  1058. Features::blackyaw12 = objRot.z;
  1059. Features::blackpitch12 = objRot.x;
  1060. }
  1061. }
  1062. }
  1063. else
  1064. {
  1065. if (Features::blacklatest)
  1066. {
  1067. RequestControlOfEnt(Features::blacklatest);
  1068. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1069. LastBlack.pop_back();
  1070. RequestControlOfEnt(Features::blacklatest2);
  1071. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1072. LastBlack2.pop_back();
  1073. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1074. Hooking::request_model((Hash)model);
  1075. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1076. //{
  1077. // /*WAIT(0);*/
  1078. //}
  1079. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1080. {
  1081. /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
  1082. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1083. Features::blacklatest = (Object)obj;
  1084. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1085. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1086. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1087. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1088. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1089. Features::blacklatest2 = (Object)object1;
  1090. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1091. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1092. Features::blackMoveX2 = objCoords.x;
  1093. Features::blackMoveY2 = objCoords.y;
  1094. Features::blackMoveZ2 = objCoords.z;
  1095. Features::blackroll12 = objRot.y;
  1096. Features::blackyaw12 = objRot.z;
  1097. Features::blackpitch12 = objRot.x;
  1098. }
  1099. }
  1100. else
  1101. {
  1102. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1103. Hooking::request_model((Hash)model);
  1104. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1105. //{
  1106. // /*WAIT(0);*/
  1107. //}
  1108. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1109. {
  1110. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1111. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1112. Features::blacklatest = (Object)obj;
  1113. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1114. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1115. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1116. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1117. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1118. Features::blacklatest2 = (Object)object1;
  1119. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
  1120. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1121. Features::blackMoveX2 = objCoords.x;
  1122. Features::blackMoveY2 = objCoords.y;
  1123. Features::blackMoveZ2 = objCoords.z;
  1124. Features::blackroll12 = objRot.y;
  1125. Features::blackyaw12 = objRot.z;
  1126. Features::blackpitch12 = objRot.x;
  1127. }
  1128. }
  1129. }
  1130. }
  1131. }
  1132. return 0;
  1133. }
  1134.  
  1135. int myblack::myblackhole2()
  1136. {
  1137. if (blackhole::id == zeroblack)
  1138. {
  1139. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  1140. {
  1141. if (Features::coordonate)
  1142. {
  1143. if (Features::blacklatest)
  1144. {
  1145. RequestControlOfEnt(Features::blacklatest);
  1146. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1147. LastBlack.pop_back();
  1148. RequestControlOfEnt(Features::blacklatest2);
  1149. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1150. LastBlack2.pop_back();
  1151. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  1152. Hooking::request_model((Hash)model);
  1153. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1154. //{
  1155. // /*WAIT(0);*/
  1156. //}
  1157. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1158. {
  1159. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1160. Features::blacklatest = (Object)obj;
  1161. Vector3 objCoords;
  1162. objCoords.x = Features::coordonatex;
  1163. objCoords.y = Features::coordonatey;
  1164. objCoords.z = Features::coordonatez;
  1165. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1166. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1167. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1168. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1169. Features::blacklatest2 = (Object)object1;
  1170. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1171. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1172. Features::blackMoveX2 = objCoords.x;
  1173. Features::blackMoveY2 = objCoords.y;
  1174. Features::blackMoveZ2 = objCoords.z;
  1175. Features::blackroll12 = objRot.y;
  1176. Features::blackyaw12 = objRot.z;
  1177. Features::blackpitch12 = objRot.x;
  1178. }
  1179. }
  1180. else
  1181. {
  1182. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  1183. Hooking::request_model((Hash)model);
  1184. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1185. //{
  1186. // /*WAIT(0);*/
  1187. //}
  1188. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1189. {
  1190. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1191. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1192. Features::blacklatest = (Object)obj;
  1193. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1194. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1195. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1196. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1197. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1198. Features::blacklatest2 = (Object)object1;
  1199. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1200. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1201. Features::blackMoveX2 = objCoords.x;
  1202. Features::blackMoveY2 = objCoords.y;
  1203. Features::blackMoveZ2 = objCoords.z;
  1204. Features::blackroll12 = objRot.y;
  1205. Features::blackyaw12 = objRot.z;
  1206. Features::blackpitch12 = objRot.x;
  1207. }
  1208. }
  1209. }
  1210. else
  1211. {
  1212. if (Features::blacklatest)
  1213. {
  1214. RequestControlOfEnt(Features::blacklatest);
  1215. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1216. LastBlack.pop_back();
  1217. RequestControlOfEnt(Features::blacklatest2);
  1218. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1219. LastBlack2.pop_back();
  1220. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  1221. Hooking::request_model((Hash)model);
  1222. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1223. //{
  1224. // /*WAIT(0);*/
  1225. //}
  1226. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1227. {
  1228. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1229. Features::blacklatest = (Object)obj;
  1230. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1231. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1232. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1233. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1234. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1235. Features::blacklatest2 = (Object)object1;
  1236. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1237. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1238. Features::blackMoveX2 = objCoords.x;
  1239. Features::blackMoveY2 = objCoords.y;
  1240. Features::blackMoveZ2 = objCoords.z;
  1241. Features::blackroll12 = objRot.y;
  1242. Features::blackyaw12 = objRot.z;
  1243. Features::blackpitch12 = objRot.x;
  1244. }
  1245. }
  1246. else
  1247. {
  1248. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
  1249. Hooking::request_model((Hash)model);
  1250. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1251. //{
  1252. // /*WAIT(0);*/
  1253. //}
  1254. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1255. {
  1256. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1257. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1258. Features::blacklatest = (Object)obj;
  1259. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1260. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1261. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1262. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1263. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1264. Features::blacklatest2 = (Object)object1;
  1265. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1266. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1267. Features::blackMoveX2 = objCoords.x;
  1268. Features::blackMoveY2 = objCoords.y;
  1269. Features::blackMoveZ2 = objCoords.z;
  1270. Features::blackroll12 = objRot.y;
  1271. Features::blackyaw12 = objRot.z;
  1272. Features::blackpitch12 = objRot.x;
  1273. }
  1274. }
  1275. }
  1276. }
  1277. }
  1278. if (blackhole::id == oneblack)
  1279. {
  1280. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  1281. {
  1282. if (Features::coordonate)
  1283. {
  1284. if (Features::blacklatest)
  1285. {
  1286. RequestControlOfEnt(Features::blacklatest);
  1287. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1288. LastBlack.pop_back();
  1289. RequestControlOfEnt(Features::blacklatest2);
  1290. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1291. LastBlack2.pop_back();
  1292. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  1293. Hooking::request_model((Hash)model);
  1294. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1295. //{
  1296. // /*WAIT(0);*/
  1297. //}
  1298. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1299. {
  1300. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1301. Features::blacklatest = (Object)obj;
  1302. Vector3 objCoords;
  1303. objCoords.x = Features::coordonatex;
  1304. objCoords.y = Features::coordonatey;
  1305. objCoords.z = Features::coordonatez;
  1306. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1307. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1308. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1309. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1310. Features::blacklatest2 = (Object)object1;
  1311. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1312. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1313. Features::blackMoveX2 = objCoords.x;
  1314. Features::blackMoveY2 = objCoords.y;
  1315. Features::blackMoveZ2 = objCoords.z;
  1316. Features::blackroll12 = objRot.y;
  1317. Features::blackyaw12 = objRot.z;
  1318. Features::blackpitch12 = objRot.x;
  1319. }
  1320. }
  1321. else
  1322. {
  1323. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  1324. Hooking::request_model((Hash)model);
  1325. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1326. //{
  1327. // /*WAIT(0);*/
  1328. //}
  1329. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1330. {
  1331. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1332. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1333. Features::blacklatest = (Object)obj;
  1334. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1335. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1336. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1337. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1338. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1339. Features::blacklatest2 = (Object)object1;
  1340. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1341. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1342. Features::blackMoveX2 = objCoords.x;
  1343. Features::blackMoveY2 = objCoords.y;
  1344. Features::blackMoveZ2 = objCoords.z;
  1345. Features::blackroll12 = objRot.y;
  1346. Features::blackyaw12 = objRot.z;
  1347. Features::blackpitch12 = objRot.x;
  1348. }
  1349. }
  1350. }
  1351. else
  1352. {
  1353. if (Features::blacklatest)
  1354. {
  1355. RequestControlOfEnt(Features::blacklatest);
  1356. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1357. LastBlack.pop_back();
  1358. RequestControlOfEnt(Features::blacklatest2);
  1359. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1360. LastBlack2.pop_back();
  1361. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  1362. Hooking::request_model((Hash)model);
  1363. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1364. //{
  1365. // /*WAIT(0);*/
  1366. //}
  1367. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1368. {
  1369. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1370. Features::blacklatest = (Object)obj;
  1371. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1372. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1373. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1374. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1375. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1376. Features::blacklatest2 = (Object)object1;
  1377. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1378. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1379. Features::blackMoveX2 = objCoords.x;
  1380. Features::blackMoveY2 = objCoords.y;
  1381. Features::blackMoveZ2 = objCoords.z;
  1382. Features::blackroll12 = objRot.y;
  1383. Features::blackyaw12 = objRot.z;
  1384. Features::blackpitch12 = objRot.x;
  1385. }
  1386. }
  1387. else
  1388. {
  1389. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
  1390. Hooking::request_model((Hash)model);
  1391. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1392. //{
  1393. // /*WAIT(0);*/
  1394. //}
  1395. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1396. {
  1397. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1398. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1399. Features::blacklatest = (Object)obj;
  1400. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1401. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1402. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1403. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1404. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1405. Features::blacklatest2 = (Object)object1;
  1406. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1407. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1408. Features::blackMoveX2 = objCoords.x;
  1409. Features::blackMoveY2 = objCoords.y;
  1410. Features::blackMoveZ2 = objCoords.z;
  1411. Features::blackroll12 = objRot.y;
  1412. Features::blackyaw12 = objRot.z;
  1413. Features::blackpitch12 = objRot.x;
  1414. }
  1415. }
  1416. }
  1417. }
  1418. }
  1419. if (blackhole::id == twoblack)
  1420. {
  1421. for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
  1422. {
  1423. if (Features::coordonate)
  1424. {
  1425. if (Features::blacklatest)
  1426. {
  1427. RequestControlOfEnt(Features::blacklatest);
  1428. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1429. LastBlack.pop_back();
  1430. RequestControlOfEnt(Features::blacklatest2);
  1431. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1432. LastBlack2.pop_back();
  1433. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1434. Hooking::request_model((Hash)model);
  1435. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1436. //{
  1437. // /*WAIT(0);*/
  1438. //}
  1439. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1440. {
  1441. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1442. Features::blacklatest = (Object)obj;
  1443. Vector3 objCoords;
  1444. objCoords.x = Features::coordonatex;
  1445. objCoords.y = Features::coordonatey;
  1446. objCoords.z = Features::coordonatez;
  1447. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1448. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1449. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1450. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1451. Features::blacklatest2 = (Object)object1;
  1452. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1453. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1454. Features::blackMoveX2 = objCoords.x;
  1455. Features::blackMoveY2 = objCoords.y;
  1456. Features::blackMoveZ2 = objCoords.z;
  1457. Features::blackroll12 = objRot.y;
  1458. Features::blackyaw12 = objRot.z;
  1459. Features::blackpitch12 = objRot.x;
  1460. }
  1461. }
  1462. else
  1463. {
  1464. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1465. Hooking::request_model((Hash)model);
  1466. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1467. //{
  1468. // /*WAIT(0);*/
  1469. //}
  1470. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1471. {
  1472. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1473. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1474. Features::blacklatest = (Object)obj;
  1475. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1476. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1477. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1478. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1479. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1480. Features::blacklatest2 = (Object)object1;
  1481. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1482. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1483. Features::blackMoveX2 = objCoords.x;
  1484. Features::blackMoveY2 = objCoords.y;
  1485. Features::blackMoveZ2 = objCoords.z;
  1486. Features::blackroll12 = objRot.y;
  1487. Features::blackyaw12 = objRot.z;
  1488. Features::blackpitch12 = objRot.x;
  1489. }
  1490. }
  1491. }
  1492. else
  1493. {
  1494. if (Features::blacklatest)
  1495. {
  1496. RequestControlOfEnt(Features::blacklatest);
  1497. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1498. LastBlack.pop_back();
  1499. RequestControlOfEnt(Features::blacklatest2);
  1500. ENTITY::DELETE_ENTITY(&Features::blacklatest2);
  1501. LastBlack2.pop_back();
  1502. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1503. Hooking::request_model((Hash)model);
  1504. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1505. //{
  1506. // /*WAIT(0);*/
  1507. //}
  1508. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1509. {
  1510. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1511. Features::blacklatest = (Object)obj;
  1512. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1513. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1514. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1515. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1516. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
  1517. Features::blacklatest2 = (Object)object1;
  1518. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1519. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1520. Features::blackMoveX2 = objCoords.x;
  1521. Features::blackMoveY2 = objCoords.y;
  1522. Features::blackMoveZ2 = objCoords.z;
  1523. Features::blackroll12 = objRot.y;
  1524. Features::blackyaw12 = objRot.z;
  1525. Features::blackpitch12 = objRot.x;
  1526. }
  1527. }
  1528. else
  1529. {
  1530. DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
  1531. Hooking::request_model((Hash)model);
  1532. //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
  1533. //{
  1534. // /*WAIT(0);*/
  1535. //}
  1536. if (STREAMING::HAS_MODEL_LOADED((Hash)model))
  1537. {
  1538. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
  1539. float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1540. Features::blacklatest = (Object)obj;
  1541. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1542. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1543. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1544. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
  1545. Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
  1546. Features::blacklatest2 = (Object)object1;
  1547. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
  1548. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
  1549. Features::blackMoveX2 = objCoords.x;
  1550. Features::blackMoveY2 = objCoords.y;
  1551. Features::blackMoveZ2 = objCoords.z;
  1552. Features::blackroll12 = objRot.y;
  1553. Features::blackyaw12 = objRot.z;
  1554. Features::blackpitch12 = objRot.x;
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. return 0;
  1561. }
  1562.  
  1563. void Features::BlackHole() {
  1564. if (Features::coordonate)
  1565. {
  1566. blackhole::blacktimerbool = 1;
  1567. }
  1568. else
  1569. {
  1570. myblackhole();
  1571. }
  1572. }
  1573.  
  1574. char* CharKeyboardBlack(char* windowName = "", int maxInput = 21, char* defaultText = "") {
  1575. WAIT(50);
  1576. GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(0, "", "", defaultText, "", "", "", maxInput);
  1577. while (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 0) WAIT(0);
  1578. if (!GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT()) return ""; //Thunder
  1579. return GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT();
  1580. }
  1581.  
  1582. void Features::objectBlack() {
  1583. if (Menu::Option("Input Object")) {
  1584. Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
  1585. Object custom = SpawnObject(CharKeyboardBlack(), pos);
  1586. if (custom != -1) {
  1587. Features::blacklatest = custom;
  1588. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1589. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1590. }
  1591. else
  1592. notifyMap("~b~Error Invalid object");
  1593. }
  1594. if (Menu::Option("Delete Last Object")) {
  1595. RequestControlOfEnt(Features::blacklatest);
  1596. ENTITY::DELETE_ENTITY(&Features::blacklatest);
  1597. LastBlack.pop_back();
  1598. }
  1599. if (Menu::Float("X", Features::blackMoveX2, -100000000.f, 100000000.f, .5f)) {
  1600. RequestControlOfEnt(Features::blacklatest);
  1601. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1602. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1603. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, Features::blackMoveX2, objCoords.y, objCoords.z, false, false, false);
  1604. }
  1605. if (Menu::Float("Y", Features::blackMoveY2, -100000000.f, 100000000.f, .5f)) {
  1606. RequestControlOfEnt(Features::blacklatest);
  1607. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1608. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1609. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, Features::blackMoveY2, objCoords.z, false, false, false);
  1610. }
  1611. if (Menu::Float("Z", Features::blackMoveZ2, -100000000.f, 100000000.f, .5f)) {
  1612. RequestControlOfEnt(Features::blacklatest);
  1613. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1614. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1615. ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2, false, false, false);
  1616. }
  1617. if (Menu::Float("Roll", Features::blackroll12, 0.f, 360, 2.f)) {
  1618. RequestControlOfEnt(Features::blacklatest);
  1619. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1620. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1621. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, objRot.x, Features::blackroll12, objRot.z, 1, true);
  1622. }
  1623. if (Menu::Float("Yaw", Features::blackyaw12, 0.f, 360, 2.f)) {
  1624. RequestControlOfEnt(Features::blacklatest);
  1625. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1626. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1627. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, objRot.x, objRot.y, Features::blackyaw12, 1, true);
  1628. }
  1629. if (Menu::Float("Pitch", Features::blackpitch12, 0.f, 360, 2.f)) {
  1630. RequestControlOfEnt(Features::blacklatest);
  1631. Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
  1632. Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
  1633. ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12, objRot.y, objRot.z, 1, true);
  1634. }
  1635. }
  1636.  
  1637. bool myblack::moneycoordbool = 0;
  1638. int myblack::moneycoord()
  1639. {
  1640. int amount = 2500;
  1641. Hooking::request_model(PROP_MONEY_BAG_02);
  1642. if ((timeGetTime() - Features::moneycoord1) >> 5) // Time between drops
  1643. {
  1644. if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
  1645. {
  1646. Vector3 playerPosition;
  1647. playerPosition.x = Features::blackMoveX2;
  1648. playerPosition.y = Features::blackMoveY2;
  1649. playerPosition.z = Features::blackMoveZ2;
  1650. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &playerPosition, 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1651. STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
  1652. Features::moneycoord1 = timeGetTime();
  1653. }
  1654. }
  1655. return 0;
  1656. }
  1657.  
  1658. bool myblack::moneycoordbool1 = 0;
  1659. int myblack::moneycoord1()
  1660. {
  1661. int amount = 2500;
  1662. Hooking::request_model(PROP_MONEY_BAG_02);
  1663. if ((timeGetTime() - Features::moneycoord2) >> 5) // Time between drops
  1664. {
  1665. if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
  1666. {
  1667. Vector3 playerPosition;
  1668. playerPosition.x = Features::coordonatex;
  1669. playerPosition.y = Features::coordonatey;
  1670. playerPosition.z = Features::coordonatez;
  1671. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &playerPosition, 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1672. STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
  1673. Features::moneycoord2 = timeGetTime();
  1674. }
  1675. }
  1676. return 0;
  1677. }
  1678. Vector3 eclipsevecArray[5];
  1679. bool geteclipsecoord = 1;
  1680. bool myblack::moneycoordbooleclipse1 = 0;
  1681. int myblack::moneycoordeclipse1()
  1682. {
  1683. if (geteclipsecoord)
  1684. {
  1685. eclipsevecArray[0].x = -769.9443969726563;
  1686. eclipsevecArray[0].y = 297.9518737792969;
  1687. eclipsevecArray[0].z = 85.69881439208984;
  1688. eclipsevecArray[1].x = -772.716796875;
  1689. eclipsevecArray[1].y = 297.75244140625;
  1690. eclipsevecArray[1].z = 85.71749114990234;
  1691. eclipsevecArray[2].x = -776.0935668945313;
  1692. eclipsevecArray[2].y = 297.742919921875;
  1693. eclipsevecArray[2].z = 85.74436950683594;
  1694. eclipsevecArray[3].x = -776.049072265625;
  1695. eclipsevecArray[3].y = 297.7787170410156;
  1696. eclipsevecArray[3].z = 85.74420928955078;
  1697. eclipsevecArray[4].x = -773.4193115234375;
  1698. eclipsevecArray[4].y = 297.9117126464844;
  1699. eclipsevecArray[4].z = 85.72395324707031;
  1700. geteclipsecoord = 0;
  1701. }
  1702. int amount = 2500;
  1703. Hooking::request_model(PROP_MONEY_BAG_02);
  1704. if ((timeGetTime() - Features::moneycoord3) >> 5) // Time between drops
  1705. {
  1706. if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
  1707. {
  1708. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[0], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1709. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[1], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1710. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[2], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1711. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[3], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1712. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[4], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  1713. STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
  1714. Features::moneycoord3 = timeGetTime();
  1715. }
  1716. }
  1717. return 0;
  1718. }
  1719.  
  1720.  
  1721.  
  1722.  
  1723. namespace myblack
  1724. {
  1725. extern int holypitch;
  1726. extern int myblackhole2();
  1727. extern bool moneycoordbool;
  1728. extern int moneycoord();
  1729. extern bool moneycoordbool1;
  1730. extern int moneycoord1();
  1731. extern void bhveh2();
  1732. extern void bhveh();
  1733. extern bool bhbool;
  1734. extern bool bhbool2;
  1735. }
  1736.  
  1737.  
  1738.  
  1739.  
  1740. bool blackhole::backbool = false;
  1741. int blackhole::id = 0;
  1742. int blackhole::lastid = 2;
  1743. bool blackhole::blackhole()
  1744. {
  1745. if (blackhole::backbool)
  1746. {
  1747. if (timesback::id < blackhole::lastid)
  1748. {
  1749. int timesreturn = blackhole::id + 1;
  1750. blackhole::id = timesreturn;
  1751. blackhole::backbool = false;
  1752. }
  1753. else
  1754. if (blackhole::id = blackhole::lastid)
  1755. {
  1756. blackhole::id = 0;
  1757. blackhole::backbool = false;
  1758. }
  1759. }
  1760. return 0;
  1761. }
  1762.  
  1763. int blackhole::anyblackhole()
  1764. {
  1765. blackhole::backbool = true;
  1766. blackhole::blackhole();
  1767. myblack::myblackhole2();
  1768. return 0;
  1769. }
  1770.  
  1771. int blackhole::timeblackhole = 100;
  1772.  
  1773. bool blackhole::blackbool = true;
  1774. bool blackhole::boolblack = true;
  1775.  
  1776. bool blackhole::blacktimerbool = false;
  1777. void blackhole::blackholetimer1()
  1778. {
  1779. if (blackhole::boolblack)
  1780. {
  1781. DWORD ticks = GetTickCount64();
  1782. DWORD milliseconds = ticks % 1000;
  1783. int getTimer = milliseconds;
  1784. if (getTimer % blackhole::timeblackhole == 0)
  1785. {
  1786. blackhole::anyblackhole();
  1787. blackhole::blackbool = 1;
  1788. blackhole::boolblack = 0;
  1789. blackhole::blackbool2 = 1;
  1790. }
  1791. }
  1792. if (!blackhole::blacktimerbool)
  1793. {
  1794. blackhole::blackbool = 1;
  1795. blackhole::boolblack = 1;
  1796. }
  1797. }
  1798.  
  1799. bool blackhole::blackbool2 = true;
  1800. void blackhole::blackholetimer2() {
  1801. if (blackhole::blackbool2)
  1802. {
  1803. DWORD ticks = GetTickCount64();
  1804. DWORD milliseconds = ticks % 1000;
  1805. int getmilli = milliseconds;
  1806. if (getmilli % blackhole::timeblackhole == 0)
  1807. {
  1808. blackhole::blackbool2 = 0;
  1809. blackhole::boolblack = 1;
  1810. }
  1811. }
  1812. }
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820. namespace blackhole
  1821. {
  1822. extern int anyblackhole();
  1823. extern int timeblackhole;
  1824. extern bool blackbool;
  1825. extern bool boolblack;
  1826. extern bool blacktimerbool;
  1827. extern void blackholetimer1();
  1828. extern bool blackbool2;
  1829. extern void blackholetimer2();
  1830. extern bool backbool;
  1831. extern int id;
  1832. extern int lastid;
  1833. extern bool blackhole();
  1834. }
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841. bool coord::firstcheckall = 1;
  1842. int coord::allsaved = 0;
  1843. int coord::stringint = 0;
  1844. int coord::intstring()
  1845. {
  1846. if (firstcheckall)
  1847. {
  1848. stringint = allsaved;
  1849. firstcheckall = 0;
  1850. }
  1851. else
  1852. {
  1853. int timesreturn = coord::stringint + 1;
  1854. coord::stringint = timesreturn;
  1855. }
  1856. return 0;
  1857. }
  1858.  
  1859. std::string moneyposition::stringname1 = "";
  1860.  
  1861. Vector3 moneyposition::positionmoney1;
  1862. enum bhole
  1863. {
  1864. bhzero = 0,
  1865. bhone = 1,
  1866. bhtwo = 2,
  1867. bhthree = 3,
  1868. bhfour = 4,
  1869. bhfive = 5,
  1870. bhsix = 6,
  1871. bhseven = 7,
  1872. bheight = 8,
  1873. bhnine = 9,
  1874. bhten = 10,
  1875. bheleven = 11,
  1876. bhtwelve = 12,
  1877. bhthirteen = 13,
  1878. bhfourteen = 14,
  1879. bhfifteen = 15,
  1880. bhsixteen = 16,
  1881. bhseventeen = 16,
  1882. bheighteen = 18,
  1883. bhnineteen = 19,
  1884. bhtwenty = 20,
  1885. bhtwentyone = 21,
  1886. bhtwentytwo = 22,
  1887. bhtwentythree = 23,
  1888. bhtwentyfour = 24,
  1889. bhtwentyfive = 25,
  1890. bhtwentysix = 26,
  1891. bhtwentyseven = 27,
  1892. bhtwentyeight = 28,
  1893. bhtwentynine = 29,
  1894. bhthirty = 30,
  1895. bhthirtyone = 31,
  1896. bhthirtytwo = 32
  1897. };
  1898. int selected_position = 0;
  1899. #define PROP_MONEY_BAG_02 -1666779307
  1900. bool coord::moneycoordbool2 = 0;
  1901. bool coord::moneycoordbool1[33] = {};
  1902. int coordnumber()
  1903. {
  1904. for (int i = 0; i < coord::allsaved; i++)
  1905. {
  1906. if (selected_position == i)
  1907. {
  1908. coord::moneycoordbool1[i] = !coord::moneycoordbool1[i];
  1909. }
  1910. }
  1911. /*if (selected_position == (int)bhzero)
  1912. {
  1913. coord::moneycoordbool1[0] = !coord::moneycoordbool1[0];
  1914. }
  1915. if (selected_position == (int)bhone)
  1916. {
  1917. coord::moneycoordbool1[1] = !coord::moneycoordbool1[1];
  1918. }
  1919. if (selected_position == (int)bhtwo)
  1920. {
  1921. coord::moneycoordbool1[2] = !coord::moneycoordbool1[2];
  1922. }
  1923. if (selected_position == (int)bhthree)
  1924. {
  1925. coord::moneycoordbool1[3] = !coord::moneycoordbool1[3];
  1926. }
  1927. if (selected_position == (int)bhfour)
  1928. {
  1929. coord::moneycoordbool1[4] = !coord::moneycoordbool1[4];
  1930. }
  1931. if (selected_position == (int)bhfive)
  1932. {
  1933. coord::moneycoordbool1[5] = !coord::moneycoordbool1[5];
  1934. }
  1935. if (selected_position == (int)bhsix)
  1936. {
  1937. coord::moneycoordbool1[6] = !coord::moneycoordbool1[6];
  1938. }
  1939. if (selected_position == (int)bhseven)
  1940. {
  1941. coord::moneycoordbool1[7] = !coord::moneycoordbool1[7];
  1942. }
  1943. if (selected_position == (int)bheight)
  1944. {
  1945. coord::moneycoordbool1[8] = !coord::moneycoordbool1[8];
  1946. }
  1947. if (selected_position == (int)bhnine)
  1948. {
  1949. coord::moneycoordbool1[9] = !coord::moneycoordbool1[9];
  1950. }
  1951. if (selected_position == (int)bhten)
  1952. {
  1953. coord::moneycoordbool1[10] = !coord::moneycoordbool1[10];
  1954. }
  1955. if (selected_position == (int)bheleven)
  1956. {
  1957. coord::moneycoordbool1[11] = !coord::moneycoordbool1[11];
  1958. }
  1959. if (selected_position == (int)bhtwelve)
  1960. {
  1961. coord::moneycoordbool1[12] = !coord::moneycoordbool1[12];
  1962. }
  1963. if (selected_position == (int)bhthirteen)
  1964. {
  1965. coord::moneycoordbool1[13] = !coord::moneycoordbool1[13];
  1966. }
  1967. if (selected_position == (int)bhfourteen)
  1968. {
  1969. coord::moneycoordbool1[14] = !coord::moneycoordbool1[14];
  1970. }
  1971. if (selected_position == (int)bhfifteen)
  1972. {
  1973. coord::moneycoordbool1[15] = !coord::moneycoordbool1[15];
  1974. }
  1975. if (selected_position == (int)bhsixteen)
  1976. {
  1977. coord::moneycoordbool1[16] = !coord::moneycoordbool1[16];
  1978. }
  1979. if (selected_position == (int)bhseventeen)
  1980. {
  1981. coord::moneycoordbool1[17] = !coord::moneycoordbool1[17];
  1982. }
  1983. if (selected_position == (int)bheighteen)
  1984. {
  1985. coord::moneycoordbool1[18] = !coord::moneycoordbool1[18];
  1986. }
  1987. if (selected_position == (int)bhnineteen)
  1988. {
  1989. coord::moneycoordbool1[19] = !coord::moneycoordbool1[19];
  1990. }
  1991. if (selected_position == (int)bhtwenty)
  1992. {
  1993. coord::moneycoordbool1[20] = !coord::moneycoordbool1[20];
  1994. }
  1995. if (selected_position == (int)bhtwentyone)
  1996. {
  1997. coord::moneycoordbool1[21] = !coord::moneycoordbool1[21];
  1998. }
  1999. if (selected_position == (int)bhtwentytwo)
  2000. {
  2001. coord::moneycoordbool1[22] = !coord::moneycoordbool1[22];
  2002. }
  2003. if (selected_position == (int)bhtwentythree)
  2004. {
  2005. coord::moneycoordbool1[23] = !coord::moneycoordbool1[23];
  2006. }
  2007. if (selected_position == (int)bhtwentyfour)
  2008. {
  2009. coord::moneycoordbool1[24] = !coord::moneycoordbool1[24];
  2010. }
  2011. if (selected_position == (int)bhtwentyfive)
  2012. {
  2013. coord::moneycoordbool1[25] = !coord::moneycoordbool1[25];
  2014. }
  2015. if (selected_position == (int)bhtwentysix)
  2016. {
  2017. coord::moneycoordbool1[26] = !coord::moneycoordbool1[26];
  2018. }
  2019. if (selected_position == (int)bhtwentyseven)
  2020. {
  2021. coord::moneycoordbool1[27] = !coord::moneycoordbool1[27];
  2022. }
  2023. if (selected_position == (int)bhtwentyeight)
  2024. {
  2025. coord::moneycoordbool1[28] = !coord::moneycoordbool1[28];
  2026. }
  2027. if (selected_position == (int)bhtwentynine)
  2028. {
  2029. coord::moneycoordbool1[29] = !coord::moneycoordbool1[29];
  2030. }
  2031. if (selected_position == (int)bhthirty)
  2032. {
  2033. coord::moneycoordbool1[30] = !coord::moneycoordbool1[30];
  2034. }
  2035. if (selected_position == (int)bhthirtyone)
  2036. {
  2037. coord::moneycoordbool1[31] = !coord::moneycoordbool1[31];
  2038. }
  2039. if (selected_position == (int)bhthirtytwo)
  2040. {
  2041. coord::moneycoordbool1[32] = !coord::moneycoordbool1[32];
  2042. }*/
  2043. return 0;
  2044. }
  2045. Vector3 vecArray[32];
  2046. int coord::moneycoord1()
  2047. {
  2048. coordnumber();
  2049. for (int i = 0; i < coord::allsaved; i++)
  2050. {
  2051. if (coord::moneycoordbool1[i])
  2052. {
  2053. if ((timeGetTime() - Features::moneycoord3) >> 5) // Time between drops
  2054. {
  2055. int amount = 2500;
  2056. Hooking::request_model(PROP_MONEY_BAG_02);
  2057. if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
  2058. {
  2059. Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &vecArray[i], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
  2060. STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
  2061. Features::moneycoord4 = timeGetTime();
  2062. }
  2063. }
  2064. }
  2065. }
  2066. return 0;
  2067. }
  2068.  
  2069. void persist_moneyposition::savelocationmp4(std::string name1)
  2070. {
  2071. Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
  2072. coords.z + 2;
  2073. moneyposition::positionmoney1 = coords;
  2074. attachmentmp4::attachment attachment;
  2075. attachment.stringname = name1;
  2076. attachment.mp = moneyposition::positionmoney1;
  2077. vecArray[selected_position] = moneyposition::positionmoney1;
  2078. coord::moneycoordbool2 = true;
  2079. savemp4(attachment, name1);
  2080. }
  2081.  
  2082. void persist_moneyposition::load_locationmp4(std::string name1)
  2083. {
  2084. auto locations = get_locations_jsonmp4();
  2085. if (locations[name1].is_null())
  2086. return;
  2087. auto model_attachment = locations[name1].get<attachmentmp4::attachment>();
  2088. moneyposition::stringname1 = model_attachment.stringname;
  2089. moneyposition::positionmoney1 = model_attachment.mp;
  2090. vecArray[selected_position] = moneyposition::positionmoney1;
  2091. coord::moneycoordbool2 = true;
  2092. }
  2093.  
  2094. void persist_moneyposition::delete_locationmp4(std::string name)
  2095. {
  2096. auto locations = get_locations_jsonmp4();
  2097. if (locations[name].is_null())
  2098. return;
  2099. locations.erase(name);
  2100. save_jsonmp4(locations);
  2101. }
  2102.  
  2103. std::vector<std::string> persist_moneyposition::list_locationsmp4()
  2104. {
  2105. std::vector<std::string> return_value;
  2106. auto json = get_locations_jsonmp4();
  2107. for (auto& item : json.items())
  2108. return_value.push_back(item.key());
  2109. return return_value;
  2110. }
  2111. int savedmp = 0;
  2112. void persist_moneyposition::do_presentation_layermp4()
  2113. {
  2114. auto savednames = list_locationsmp4();
  2115. static std::string selected_name;
  2116.  
  2117. int xi = 0;
  2118. std::vector<char*> charVec4(savednames.size(), nullptr);
  2119. for (int i = 0; i < savednames.size(); i++) {
  2120. charVec4[i] = &savednames[i][0];
  2121. xi = i;
  2122. coord::allsaved = i;
  2123. }
  2124. if (xi != 0)
  2125. {
  2126. if (Menu2::ListVector("List", charVec4, savedmp)) {
  2127. char* result2 = charVec4[savedmp];
  2128. selected_name = result2;
  2129. selected_position = savedmp;
  2130. }
  2131. }
  2132. if (Menu::Option("Save"))
  2133. {
  2134. coord::intstring();
  2135. moneyposition::stringname1 = "moneyposition";
  2136. std::string mploc = moneyposition::stringname1 + to_string(coord::stringint);
  2137. std::string loactionsavemp = mploc;
  2138. selected_position = coord::stringint;
  2139. savelocationmp4(loactionsavemp);
  2140. }
  2141. if (xi != 0)
  2142. {
  2143. if (Menu::Option("Load"))
  2144. {
  2145. if (!selected_name.empty())
  2146. {
  2147. load_locationmp4(selected_name);
  2148. selected_name.clear();
  2149. }
  2150. }
  2151. if (Menu::Option("Delete"))
  2152. {
  2153. if (!selected_name.empty())
  2154. {
  2155. delete_locationmp4(selected_name);
  2156. selected_name.clear();
  2157. }
  2158. }
  2159. }
  2160.  
  2161. Menu::Toggle("Money Coord", coord::moneycoordbool2);
  2162. if (coord::moneycoordbool2)
  2163. {
  2164. if (coord::moneycoordbool1[0])
  2165. {
  2166. Menu::Toggle("Money Spawn Coord 0", coord::moneycoordbool1[0]);
  2167. }
  2168. if (coord::moneycoordbool1[1])
  2169. {
  2170. Menu::Toggle("Money Spawn Coord 1", coord::moneycoordbool1[1]);
  2171. }
  2172. if (coord::moneycoordbool1[2])
  2173. {
  2174. Menu::Toggle("Money Spawn Coord 2", coord::moneycoordbool1[2]);
  2175. }
  2176. if (coord::moneycoordbool1[3])
  2177. {
  2178. Menu::Toggle("Money Spawn Coord 3", coord::moneycoordbool1[3]);
  2179. }
  2180. if (coord::moneycoordbool1[4])
  2181. {
  2182. Menu::Toggle("Money Spawn Coord 4", coord::moneycoordbool1[4]);
  2183. }
  2184. if (coord::moneycoordbool1[5])
  2185. {
  2186. Menu::Toggle("Money Spawn Coord 5", coord::moneycoordbool1[5]);
  2187. }
  2188. if (coord::moneycoordbool1[6])
  2189. {
  2190. Menu::Toggle("Money Spawn Coord 6", coord::moneycoordbool1[6]);
  2191. }
  2192. if (coord::moneycoordbool1[7])
  2193. {
  2194. Menu::Toggle("Money Spawn Coord 7", coord::moneycoordbool1[7]);
  2195. }
  2196. if (coord::moneycoordbool1[8])
  2197. {
  2198. Menu::Toggle("Money Spawn Coord 8", coord::moneycoordbool1[8]);
  2199. }
  2200. if (coord::moneycoordbool1[9])
  2201. {
  2202. Menu::Toggle("Money Spawn Coord 9", coord::moneycoordbool1[9]);
  2203. }
  2204. if (coord::moneycoordbool1[10])
  2205. {
  2206. Menu::Toggle("Money Spawn Coord 10", coord::moneycoordbool1[10]);
  2207. }
  2208. if (coord::moneycoordbool1[11])
  2209. {
  2210. Menu::Toggle("Money Spawn Coord 11", coord::moneycoordbool1[11]);
  2211. }
  2212. if (coord::moneycoordbool1[12])
  2213. {
  2214. Menu::Toggle("Money Spawn Coord 12", coord::moneycoordbool1[12]);
  2215. }
  2216. if (coord::moneycoordbool1[13])
  2217. {
  2218. Menu::Toggle("Money Spawn Coord 13", coord::moneycoordbool1[13]);
  2219. }
  2220. if (coord::moneycoordbool1[14])
  2221. {
  2222. Menu::Toggle("Money Spawn Coord 14", coord::moneycoordbool1[14]);
  2223. }
  2224. if (coord::moneycoordbool1[15])
  2225. {
  2226. Menu::Toggle("Money Spawn Coord 15", coord::moneycoordbool1[15]);
  2227. }
  2228. if (coord::moneycoordbool1[16])
  2229. {
  2230. Menu::Toggle("Money Spawn Coord 16", coord::moneycoordbool1[16]);
  2231. }
  2232. if (coord::moneycoordbool1[17])
  2233. {
  2234. Menu::Toggle("Money Spawn Coord 17", coord::moneycoordbool1[17]);
  2235. }
  2236. if (coord::moneycoordbool1[18])
  2237. {
  2238. Menu::Toggle("Money Spawn Coord 18", coord::moneycoordbool1[18]);
  2239. }
  2240. if (coord::moneycoordbool1[19])
  2241. {
  2242. Menu::Toggle("Money Spawn Coord 19", coord::moneycoordbool1[19]);
  2243. }
  2244. if (coord::moneycoordbool1[20])
  2245. {
  2246. Menu::Toggle("Money Spawn Coord 20", coord::moneycoordbool1[20]);
  2247. }
  2248. if (coord::moneycoordbool1[21])
  2249. {
  2250. Menu::Toggle("Money Spawn Coord 21", coord::moneycoordbool1[21]);
  2251. }
  2252. if (coord::moneycoordbool1[22])
  2253. {
  2254. Menu::Toggle("Money Spawn Coord 22", coord::moneycoordbool1[22]);
  2255. }
  2256. if (coord::moneycoordbool1[23])
  2257. {
  2258. Menu::Toggle("Money Spawn Coord 23", coord::moneycoordbool1[23]);
  2259. }
  2260. if (coord::moneycoordbool1[24])
  2261. {
  2262. Menu::Toggle("Money Spawn Coord 24", coord::moneycoordbool1[24]);
  2263. }
  2264. if (coord::moneycoordbool1[25])
  2265. {
  2266. Menu::Toggle("Money Spawn Coord 25", coord::moneycoordbool1[25]);
  2267. }
  2268. if (coord::moneycoordbool1[26])
  2269. {
  2270. Menu::Toggle("Money Spawn Coord 26", coord::moneycoordbool1[26]);
  2271. }
  2272. if (coord::moneycoordbool1[27])
  2273. {
  2274. Menu::Toggle("Money Spawn Coord 27", coord::moneycoordbool1[27]);
  2275. }
  2276. if (coord::moneycoordbool1[28])
  2277. {
  2278. Menu::Toggle("Money Spawn Coord 28", coord::moneycoordbool1[28]);
  2279. }
  2280. if (coord::moneycoordbool1[29])
  2281. {
  2282. Menu::Toggle("Money Spawn Coord 29", coord::moneycoordbool1[29]);
  2283. }
  2284. if (coord::moneycoordbool1[30])
  2285. {
  2286. Menu::Toggle("Money Spawn Coord 30", coord::moneycoordbool1[30]);
  2287. }
  2288. if (coord::moneycoordbool1[31])
  2289. {
  2290. Menu::Toggle("Money Spawn Coord 31", coord::moneycoordbool1[31]);
  2291. }
  2292. if (coord::moneycoordbool1[32])
  2293. {
  2294. Menu::Toggle("Money Spawn Coord 32", coord::moneycoordbool1[32]);
  2295. }
  2296. }
  2297. }
  2298.  
  2299. void persist_moneyposition::savemp4(attachmentmp4::attachment attachment, std::string name)
  2300. {
  2301. auto json = get_locations_jsonmp4();
  2302. json[name] = attachment;
  2303. save_jsonmp4(json);
  2304. }
  2305.  
  2306. void persist_moneyposition::save_jsonmp4(nlohmann::json json)
  2307. {
  2308. auto file_path = get_locations_configmp4();
  2309. std::ofstream file(file_path, std::ios::out | std::ios::trunc);
  2310. file << json.dump(4);
  2311. file.close();
  2312. }
  2313.  
  2314. nlohmann::json persist_moneyposition::get_locations_jsonmp4()
  2315. {
  2316. auto file_path = get_locations_configmp4();
  2317. nlohmann::json locations;
  2318. std::ifstream file(file_path);
  2319.  
  2320. if (!file.fail())
  2321. file >> locations;
  2322.  
  2323. return locations;
  2324. }
  2325.  
  2326. std::string persist_moneyposition::get_locations_configmp4()
  2327. {
  2328. OverSeeing::Overseefolder();
  2329. auto file_path = Directory::get_current_dir();
  2330. file_path += "\\ThunderMenu\\Oversee\\";
  2331. file_path += "MoneyPosition.json";
  2332. return file_path;
  2333. }
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339. namespace coord
  2340. {
  2341. extern bool firstcheckall;
  2342. extern int allsaved;
  2343. extern int stringint;
  2344. extern int intstring();
  2345. extern bool moneycoordbool1[33];
  2346. extern bool moneycoordbool2;
  2347. extern int moneycoord1();
  2348. }
  2349. namespace moneyposition
  2350. {
  2351. extern std::string stringname1;
  2352. extern Vector3 positionmoney1;
  2353. }
  2354. class persist_moneyposition
  2355. {
  2356. public:
  2357. static void do_presentation_layermp4();
  2358. private:
  2359. static void savelocationmp4(std::string name1);
  2360. static void load_locationmp4(std::string name1);
  2361. static void delete_locationmp4(std::string name1);
  2362. static std::vector<std::string> list_locationsmp4();
  2363. static void savemp4(attachmentmp4::attachment attachment, std::string name);
  2364. static void save_jsonmp4(nlohmann::json json);
  2365. static nlohmann::json get_locations_jsonmp4();
  2366. static std::string get_locations_configmp4();
  2367. /*static std::filesystem::path get_locations_config();*/
  2368. };
  2369.  
  2370.  
  2371.  
  2372. namespace attachmentmp4
  2373. {
  2374. void to_json(nlohmann::json& j, const attachmentmp4::attachment& attachment) {
  2375. j = nlohmann::json{ {"stringname", attachment.stringname},
  2376. {"mp_x", attachment.mp.x}, { "mp_y", attachment.mp.y }, { "mp_z", attachment.mp.z } };
  2377. }
  2378. void from_json(const nlohmann::json& j, attachmentmp4::attachment& attachment) {
  2379. attachment.stringname = j["stringname"].get<std::string>();
  2380. j.at("mp_x").get_to(attachment.mp.x); j.at("mp_y").get_to(attachment.mp.y); j.at("mp_z").get_to(attachment.mp.z);
  2381. }
  2382. };
  2383.  
  2384.  
  2385.  
  2386. namespace attachmentmp4
  2387. {
  2388. struct attachment
  2389. {
  2390. std::string stringname;
  2391. Vector3 mp;
  2392. };
  2393.  
  2394. void to_json(nlohmann::json& j, const attachment& attachment);
  2395. void from_json(const nlohmann::json& j, attachment& attachment);
  2396. };
  2397.  
  2398.  
  2399. #pragma region angryplanes
  2400. case angryplanes:
  2401. {
  2402. Features::onlinemenuplayerlist = true;
  2403. Menu::Title((char*)langage::AngryPlane.c_str());
  2404. headers::thunderheaders();
  2405. FeaturesOnline::selectedPlayerPlane = Features::Online::selectedPlayer;
  2406. Menu::Toggle((char*)langage::AngryPlane.c_str(), FeaturesOnline::bLazers);
  2407. Menu::Toggle((char*)langage::AngryPlaneMissile.c_str(), FeaturesOnline::bMissles);
  2408. Menu::Toggle("Black Hole", Features::newblackhole);
  2409. Menu::Toggle("Coord Black Hole to Coordonate", Features::coordonate);
  2410. if (Features::coordonate)
  2411. {
  2412. if (Features::getfirstcoordbool)
  2413. {
  2414. Features::getfirstcoordbool = 0;
  2415. }
  2416. if (Features::mypositionblack)
  2417. {
  2418. Features::mypositionblack = 0;
  2419. }
  2420. if (Features::playerpositionblack)
  2421. {
  2422. Features::playerpositionblack = 0;
  2423. }
  2424. }
  2425.  
  2426. if (Menu::Option("Get Coord + y10"))
  2427. {
  2428. Features::getblackcoord2();
  2429. }
  2430. Menu::Toggle("Black Hole Prop", blackhole::blacktimerbool);
  2431. Menu::Toggle("Delete To Blackhole", myblack::bhbool2);
  2432. if (Menu::Option("Get Coord + y2"))
  2433. {
  2434. Features::getblackcoord1();
  2435. }
  2436. if (Menu::Option("Get Coord + y20"))
  2437. {
  2438. Features::getblackcoord3();
  2439. }
  2440. Menu::Int("RequestTimes", Features::RequestTimes, 1, 2000);
  2441. Menu::Int("BlackHole Position Z", Features::BlackHoleZ, 1, 50);
  2442. Menu::Int("BlackHole Position Pitch", myblack::holypitch, 1, 360);
  2443. Menu::Toggle("Black Hole On Me", Features::mypositionblack);
  2444. Menu::Toggle("Black Hole On Player", Features::playerpositionblack);
  2445. Menu::Toggle("disallowNewEntity", Features::disallowNewEntity);
  2446. Menu::Toggle("Coord Black Hole on me", Features::getfirstcoordbool);
  2447. if (Menu::Option("Get Coord"))
  2448. {
  2449. Features::getblackcoord();
  2450. }
  2451. Menu::Float("blackheigh", Features::blackheigh, -10000, 10000);
  2452. Menu::Float("blackwidth", Features::blackwidth, -10000, 10000);
  2453. Menu::Float("blacklength", Features::blacklength, -10000, 10000);
  2454. Menu::Float("coordonatex", Features::coordonatex, -10000, 10000);
  2455. Menu::Float("coordonatey", Features::coordonatey, -10000, 10000);
  2456. Menu::Float("coordonatez", Features::coordonatez, -10000, 10000);
  2457. Menu::Toggle("Money Coord", myblack::moneycoordbool1);
  2458. if (Menu::Option("Spawn Black Hole"))
  2459. {
  2460. Features::BlackHole();
  2461. }
  2462. Menu::Toggle("Delete Cars", myblack::bhbool);
  2463. Menu::Int("Black Hole Timer", blackhole::timeblackhole, 1, 1000);
  2464.  
  2465. Menu::Toggle("Money Spawn ", myblack::moneycoordbool);
  2466. Features::objectBlack();
  2467. persist_moneyposition::do_presentation_layermp4();
  2468. headers::thunderbackgrounds();
  2469. backgrounds::casesixteen();
  2470. }
  2471. break;
  2472. #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement