Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //my new blackhole
- int FeaturesOnline::selectedPlayerPlane = 0;
- char* ammoTypeForPlane[5] = { "VEHICLE_WEAPON_ENEMY_LASER", "VEHICLE_WEAPON_PLAYER_LASER", "VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE", "WEAPON_VEHICLE_ROCKET", "WEAPON_ASSAULTRIFLE" };
- bool FeaturesOnline::bMissles = 0;
- bool FeaturesOnline::bLazers = 0;
- Hash PlanesToBeAngry[21] = {
- ////plane
- //link-https://wiki.rage.mp/index.php?title=Vehicles
- //0xA52F6866/*alphaz1*/,
- 0x81BD2ED0/*avenger*/,
- 0x18606535/*avenger2*/,
- //0x6CBD1D6D/*besra*/,
- //0xF7004C86/*blimp*/,
- //0xDB6B4924/*blimp2*/,
- //0xEDA4ED97/*blimp3*/,
- 0xFE0A508C/*bombushka*/,
- //0x15F27762/*cargoplane*/,
- //0xD9927FE3/*cuban800*/,
- //0xCA495705/*dodo*/,
- //0x39D6779E/*duster*/,
- //0xC3F25753/*howard*/,
- 0x39D6E83F/*hydra*/,
- //0x3F119114/*jet*/,
- 0xB39B0AE6/*lazer*/,
- //0x250B0C5E/*luxor*/,
- //0xB79F589E/*luxor2*/,
- //0x97E55D11/*mammatus*/,
- //0x96E24857/*microlight*/,
- //0x9D80F93/*miljet*/,
- //0xD35698EF/*mogul*/,
- //0x5D56F01B/*molotok*/,
- //0xB2CF7250/*nimbus*/,
- //0x3DC92356/*nokota*/,
- //0xAD6065C0/*pyro*/,
- //0xC5DD6967/*rogue*/,
- //0xE8983F9F/*seabreeze*/,
- //0xB79C1BF5/*shamal*/,
- //0x9A9EB7DE/*starling*/,
- 0x64DE07A1/*strikeforce*/,
- //0x81794C70/*stunt*/,
- //0x761E2AD3/*titan*/,
- 0x3E2E4F8A/*tula*/,
- //0x9C429B6A/*velum*/,
- //0x403820E8/*velum2*/,
- //0x4FF77E37/*vestra*/,
- //0x1AAD0DED/*volatol*/,
- ////choper
- 0x46699F47/*akula*/,
- //0x31F0B376/*annihilator*/,
- 0x2F03547B/*buzzard*/,
- 0x2C75F0DD/*buzzard2*/,
- 0xFCFCB68B/*cargobob*/,
- 0x60A7EA10/*cargobob2*/,
- 0x53174EEF/*cargobob3*/,
- 0x78BC1A3C/*cargobob4*/,
- //0x2C634FBD/*frogger*/,
- //0x742E9AC0/*frogger2*/,
- //0x89BA59F5/*havok*/,
- 0xFD707EDE/*hunter*/,
- //0x9D0450CA/*maverick*/,
- 0xFB133A17/*savage*/,
- //0xD4AE63D9/*seasparrow*/,
- 0x3E48BF23/*skylift*/,
- //0x2A54C47D/*supervolito*/,
- //0x9Cregular644/*supervolito2*/,
- 0xEBC24DF2/*swift*/,
- 0x4019CB4C/*swift2*/,
- 0xA09E15FD/*valkyrie*/,
- 0x5BFA5C4B/*valkyrie2*/,
- //0x920016F1/*volatus*/,
- };
- int delayedPlanned = 500;
- int timerPlaned = 5;
- bool FeaturesOnline::angries[32] = {};
- void playerangry()
- {
- if (FeaturesOnline::selectedPlayerPlane == playerzero)
- {
- FeaturesOnline::angries[0] = !FeaturesOnline::angries[0];
- /*FeaturesOnline::angries[1] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerone)
- {
- FeaturesOnline::angries[1] = !FeaturesOnline::angries[1];
- /*FeaturesOnline::angries[1] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwo)
- {
- FeaturesOnline::angries[2] = !FeaturesOnline::angries[2];
- /*FeaturesOnline::angries[2] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerthree)
- {
- FeaturesOnline::angries[3] = !FeaturesOnline::angries[3];
- /*FeaturesOnline::angries[3] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerfour)
- {
- FeaturesOnline::angries[4] = !FeaturesOnline::angries[4];
- /*FeaturesOnline::angries[4] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerfive)
- {
- FeaturesOnline::angries[5] = !FeaturesOnline::angries[5];
- /*FeaturesOnline::angries[5] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playersix)
- {
- FeaturesOnline::angries[6] = !FeaturesOnline::angries[6];
- /*FeaturesOnline::angries[6] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerseven)
- {
- FeaturesOnline::angries[7] = !FeaturesOnline::angries[7];
- /*FeaturesOnline::angries[7] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playereight)
- {
- FeaturesOnline::angries[8] = !FeaturesOnline::angries[8];
- /*FeaturesOnline::angries[8] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playernine)
- {
- FeaturesOnline::angries[9] = !FeaturesOnline::angries[9];
- /*FeaturesOnline::angries[9] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerten)
- {
- FeaturesOnline::angries[10] = !FeaturesOnline::angries[10];
- /*FeaturesOnline::angries[10] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playereleven)
- {
- FeaturesOnline::angries[11] = !FeaturesOnline::angries[11];
- /*FeaturesOnline::angries[11] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwelve)
- {
- FeaturesOnline::angries[12] = !FeaturesOnline::angries[12];
- /*FeaturesOnline::angries[12] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerthirteen)
- {
- FeaturesOnline::angries[13] = !FeaturesOnline::angries[13];
- /*FeaturesOnline::angries[13] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerfourteen)
- {
- FeaturesOnline::angries[14] = !FeaturesOnline::angries[14];
- /*FeaturesOnline::angries[14] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerfifteen)
- {
- FeaturesOnline::angries[15] = !FeaturesOnline::angries[15];
- /*FeaturesOnline::angries[15] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playersixteen)
- {
- FeaturesOnline::angries[16] = !FeaturesOnline::angries[16];
- /*FeaturesOnline::angries[16] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerseventeen)
- {
- FeaturesOnline::angries[17] = !FeaturesOnline::angries[17];
- /*FeaturesOnline::angries[17] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playereighteen)
- {
- FeaturesOnline::angries[18] = !FeaturesOnline::angries[18];
- /*FeaturesOnline::angries[18] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playernineteen)
- {
- FeaturesOnline::angries[19] = !FeaturesOnline::angries[19];
- /*FeaturesOnline::angries[19] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwenty)
- {
- FeaturesOnline::angries[20] = !FeaturesOnline::angries[20];
- /*FeaturesOnline::angries[29] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentyone)
- {
- FeaturesOnline::angries[21] = !FeaturesOnline::angries[21];
- /*FeaturesOnline::angries[21] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentytwo)
- {
- FeaturesOnline::angries[22] = !FeaturesOnline::angries[22];
- /*FeaturesOnline::angries[22] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentythree)
- {
- FeaturesOnline::angries[23] = !FeaturesOnline::angries[23];
- /*FeaturesOnline::angries[23] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentyfour)
- {
- FeaturesOnline::angries[24] = !FeaturesOnline::angries[24];
- /*FeaturesOnline::angries[24] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentyfive)
- {
- FeaturesOnline::angries[25] = !FeaturesOnline::angries[25];
- /*FeaturesOnline::angries[25] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentysix)
- {
- FeaturesOnline::angries[26] = !FeaturesOnline::angries[26];
- /*FeaturesOnline::angries[26] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentyseven)
- {
- FeaturesOnline::angries[27] = !FeaturesOnline::angries[27];
- /*FeaturesOnline::angries[27] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentyeight)
- {
- FeaturesOnline::angries[28] = !FeaturesOnline::angries[28];
- /*FeaturesOnline::angries[28] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playertwentynine)
- {
- FeaturesOnline::angries[29] = !FeaturesOnline::angries[29];
- /*FeaturesOnline::angries[29] = { 1 };*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerthirty)
- {
- FeaturesOnline::angries[30] = !FeaturesOnline::angries[30];
- /*FeaturesOnline::angries[30] = { 1 };*/
- /*FeaturesOnline::angries[30] ? 1 : 0;*/
- }
- if (FeaturesOnline::selectedPlayerPlane == playerthirtyone)
- {
- FeaturesOnline::angries[31] = !FeaturesOnline::angries[31];
- /*FeaturesOnline::angries[30] = { 1 };*/
- /*FeaturesOnline::angries[30] ? 1 : 0;*/
- }
- //if (FeaturesOnline::selectedPlayerPlane == playerthirtytwo)
- //{
- // FeaturesOnline::angries[32] = !FeaturesOnline::angries[32];
- // /*FeaturesOnline::angries[30] = { 1 };*/
- // /*FeaturesOnline::angries[30] ? 1 : 0;*/
- //}
- }
- void FeaturesOnline::AngryPlanes()
- {
- playerangry();
- PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
- for (int i = 0; i < 32; i++)
- {
- if (FeaturesOnline::angries[i])
- {
- /*Vector3 wpVec = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
- float heading = (ENTITY::GET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), 0)).z;
- FLOAT lookDir = ENTITY::GET_ENTITY_HEADING(PLAYER::PLAYER_PED_ID());
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);*/
- Vector3 wpVec = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1);
- float heading = (ENTITY::GET_ENTITY_ROTATION(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 0)).z;
- FLOAT lookDir = ENTITY::GET_ENTITY_HEADING(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i));
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1);
- if (GAMEPLAY::GET_GAME_TIMER() > timerPlaned)
- {
- 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)]))
- {
- STREAMING::REQUEST_MODEL(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]);
- //while (!STREAMING::HAS_MODEL_LOADED(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
- //{
- // /*make_periodic_feature_call();*/
- // /*WAIT(0)*/;
- //}
- if (STREAMING::HAS_MODEL_LOADED(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
- {
- Vector3 Coordsx;
- Coordsx.x = coords.x + rand() % 339;
- Coordsx.y = coords.y + rand() % 669;
- Coordsx.z = coords.z + rand() % 29 + 69;
- //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);
- int SpawnedPlanes = CHooking::create_vehicle(PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)], &Coordsx, lookDir, 1, 1);
- ENTITY::SET_ENTITY_INVINCIBLE(SpawnedPlanes, 1);
- Ped planePilot = PED::CREATE_RANDOM_PED_AS_DRIVER(SpawnedPlanes, false);
- PED::SET_DRIVER_ABILITY(planePilot, 1000.0f);
- PED::SET_DRIVER_AGGRESSIVENESS(planePilot, 1000.0f);
- /*PED::SET_PED_COMBAT_ABILITY(planePilot, 100);
- AI::TASK_COMBAT_PED(planePilot, PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), 1, 1);
- PED::SET_PED_ALERTNESS(planePilot, 1000);
- PED::SET_PED_COMBAT_RANGE(planePilot, 1000);*/
- ENTITY::SET_ENTITY_INVINCIBLE(planePilot, 1);
- Vehicle vehicle = PED::GET_VEHICLE_PED_IS_IN(planePilot, 0);
- //WAIT(0);
- if (AI::GET_SCRIPT_TASK_STATUS(planePilot, 0x21d33957) == 7)
- {
- 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);
- }
- timerPlaned = GAMEPLAY::GET_GAME_TIMER() + delayedPlanned;
- }
- }
- }
- /*Ped playerPed = PLAYER::PLAYER_PED_ID();
- Entity detentity = PLAYER::PLAYER_PED_ID();*/
- Ped playerPed = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i);
- Entity detentity = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i);
- if (PED::IS_PED_IN_ANY_VEHICLE(detentity, 0))
- detentity = PED::GET_VEHICLE_PED_IS_USING(detentity);
- Vector3 myCoord = ENTITY::GET_ENTITY_COORDS(detentity, true);
- Vector3 speed = ENTITY::GET_ENTITY_SPEED_VECTOR(detentity, 1);
- const int ElementAmount = 31;
- const int ArrSize = ElementAmount * 2 + 2;
- Vehicle* vehs = new Vehicle[ArrSize];
- vehs[0] = ElementAmount;
- /*int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), vehs);*/
- int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), vehs);
- //int count = worldGetAllVehicles(ElementAmount, *vehs);
- if (vehs != NULL)
- {
- for (int i = 0; i < count; i++)
- {
- int offsettedID = i * 2 + 2;
- /*if (vehs[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false))*/
- if (vehs[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(i), false))
- {
- if (vehs[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(vehs[offsettedID]))
- {
- if (VEHICLE::IS_VEHICLE_MODEL(vehs[offsettedID], PlanesToBeAngry[GAMEPLAY::GET_RANDOM_INT_IN_RANGE(1, /*18*//*25*/50)]))
- {
- Vector3 planeCoords = ENTITY::GET_ENTITY_COORDS(vehs[offsettedID], 0);
- if (GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(planeCoords.x, planeCoords.y, planeCoords.z, coords.x, coords.y, coords.z, 1) < 69.99999f)
- {
- float deuxcenthuitcent = 200 % 800;
- if (FeaturesOnline::bMissles) {
- /*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);*/
- 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);
- }
- if (FeaturesOnline::bLazers) {
- /*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);*/
- 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);
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- float holdDistance2;
- bool AttractToMe_ = 0;
- bool Features::disallowNewEntity = 0;
- bool Features::newblackhole = 0;
- float Features::blackheigh = 0.4f;
- float Features::blackwidth = 0.6f;
- float Features::blacklength = 0;
- bool Features::mypositionblack = 0;
- bool Features::playerpositionblack = 0;
- bool Features::coordonate = 0;
- float Features::coordonatex = 0;
- float Features::coordonatey = 0;
- float Features::coordonatez = 0;
- bool Features::getfirstcoordbool = 1;
- void Features::getblackcoord() {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
- Features::coordonatex = (float)coords.x;
- Features::coordonatey = (float)coords.y;
- Features::coordonatez = (float)coords.z;
- }
- void Features::getblackcoord1() {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
- Features::coordonatex = (float)coords.x;
- Features::coordonatey = (float)coords.y;
- Features::coordonatez = (float)coords.z + 2;
- }
- void Features::getblackcoord2() {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
- Features::coordonatex = (float)coords.x;
- Features::coordonatey = (float)coords.y;
- Features::coordonatez = (float)coords.z + 10;
- }
- void Features::getblackcoord3() {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
- Features::coordonatex = (float)coords.x;
- Features::coordonatey = (float)coords.y;
- Features::coordonatez = (float)coords.z + 20;
- }
- void GET_CAMERA_DIRECTION(float* dirX, float* dirY, float* dirZ)
- {
- float tX, tZ, num;
- Vector3 rot = CAM::GET_GAMEPLAY_CAM_ROT(0);
- tZ = rot.z * 0.0174532924f;
- tX = rot.x * 0.0174532924f;
- num = abs(cos(tX));
- *dirX = (-sin(tZ)) * num;
- *dirY = (cos(tZ)) * num;
- *dirZ = sin(tX);
- }
- int Features::BlackHoleZ = 10;
- int Features::RequestTimes = 1500;
- bool getfirstboolbh = 1;
- void Features::AttractToMe()
- {
- if (Features::getfirstcoordbool)
- {
- Features::getblackcoord();
- Features::getfirstcoordbool = 0;
- }
- if (getfirstboolbh)
- {
- Features::coordonate = 1;
- Features::getblackcoord2();
- blackhole::blacktimerbool = 1;
- myblack::bhbool2 = 1;
- getfirstboolbh = 0;
- }
- int entdistance = 0;
- Vector3 grav_pos;
- Vector3 grav_camrot;
- Vector3 grav_camdir;
- Entity EntityTarget;
- grav_camrot = CAM::GET_GAMEPLAY_CAM_ROT(0);
- if (Features::mypositionblack)
- {
- 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);
- Features::playerpositionblack = false;
- }
- if (Features::playerpositionblack)
- {
- 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);
- Features::mypositionblack = false;
- }
- if (!Features::coordonate && !Features::mypositionblack && !Features::playerpositionblack)
- {
- /*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);*/
- grav_pos.x = Features::coordonatex;
- grav_pos.y = Features::coordonatey;
- grav_pos.z = Features::coordonatez + Features::BlackHoleZ;
- }
- if (Features::coordonate/*!Features::mypositionblack && !Features::playerpositionblack*/)
- {
- /*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);*/
- grav_pos.x = Features::coordonatex;
- grav_pos.y = Features::coordonatey;
- grav_pos.z = Features::coordonatez + Features::BlackHoleZ;
- }
- GET_CAMERA_DIRECTION(&grav_camdir.x, &grav_camdir.y, &grav_camdir.z);
- if (!Features::disallowNewEntity) PLAYER::GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Features::playerme/*PLAYER::PLAYER_ID()*/, &EntityTarget);
- if (CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, 241) || CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, 241))
- entdistance += 1;
- else if ((holdDistance2 > 1) && CONTROLS::IS_DISABLED_CONTROL_JUST_PRESSED(0, 241) || CONTROLS::IS_DISABLED_CONTROL_PRESSED(0, 242))
- entdistance -= 1;
- if (Features::mypositionblack)
- {
- const int numElements = 10;
- const int arrSize = numElements * 12 + 12;
- Vehicle veh[arrSize];
- veh[0] = numElements;
- int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh);
- if (veh != NULL)
- {
- for (int i = 1; i <= count; i++)
- {
- int offsettedID = i;
- if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
- {
- GTAvehicle curVeh = veh[offsettedID];
- Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
- if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false))
- {
- if (curVeh.RequestControl(Features::RequestTimes))
- {
- ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
- float forceAmount[3];
- forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
- forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
- forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
- ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
- }
- }
- }
- }
- }
- }
- if (Features::playerpositionblack)
- {
- const int numElements = 10;
- const int arrSize = numElements * 12 + 12;
- Vehicle veh[arrSize];
- veh[0] = numElements;
- int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
- if (veh != NULL)
- {
- for (int i = 1; i <= count; i++)
- {
- int offsettedID = i;
- if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
- {
- GTAvehicle curVeh = veh[offsettedID];
- Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
- if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
- {
- if (curVeh.RequestControl(Features::RequestTimes))
- {
- ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
- float forceAmount[3];
- forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
- forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
- forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
- ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
- }
- }
- }
- }
- }
- }
- if (Features::coordonate)
- {
- const int numElements = 10;
- const int arrSize = numElements * 12 + 12;
- Vehicle veh[arrSize];
- veh[0] = numElements;
- int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
- if (veh != NULL)
- {
- for (int i = 1; i <= count; i++)
- {
- int offsettedID = i;
- if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
- {
- GTAvehicle curVeh = veh[offsettedID];
- Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
- if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
- {
- if (curVeh.RequestControl(Features::RequestTimes))
- {
- ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
- float forceAmount[3];
- forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
- forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
- forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
- ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
- }
- }
- }
- }
- }
- }
- if (!Features::coordonate && !Features::mypositionblack && !Features::playerpositionblack)
- {
- const int numElements = 10;
- const int arrSize = numElements * 12 + 12;
- Vehicle veh[arrSize];
- veh[0] = numElements;
- Vector3 coords;
- coords.x = Features::coordonatex;
- coords.y = Features::coordonatey;
- coords.z = Features::coordonatez;
- int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), veh);
- if (veh != NULL)
- {
- for (int i = 1; i <= count; i++)
- {
- int offsettedID = i;
- if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
- {
- GTAvehicle curVeh = veh[offsettedID];
- Vector3 gravityentityCoords = ENTITY::GET_ENTITY_COORDS(curVeh.Handle(), 0);
- if (veh[offsettedID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, false))
- {
- if (curVeh.RequestControl(Features::RequestTimes))
- {
- ENTITY::FREEZE_ENTITY_POSITION(veh[offsettedID], false);
- float forceAmount[3];
- forceAmount[0] = ((grav_pos.x + (grav_camdir.x * entdistance)) - gravityentityCoords.x) * 4;
- forceAmount[1] = ((grav_pos.y + (grav_camdir.y * entdistance)) - gravityentityCoords.y) * 4;
- forceAmount[2] = ((grav_pos.z + (grav_camdir.z * entdistance)) - gravityentityCoords.z) * 4;
- ENTITY::SET_ENTITY_VELOCITY(curVeh.Handle(), forceAmount[0], forceAmount[1], forceAmount[2]);
- }
- }
- }
- }
- }
- }
- }
- Object Features::blacklatest;
- Object Features::blacklatest2;
- float Features::blackMoveX2;
- float Features::blackMoveY2;
- float Features::blackMoveZ2;
- float Features::blackroll12;
- float Features::blackyaw12;
- float Features::blackpitch12;
- char* blackholesprop[] = {
- "prop_mp_icon_shad_lrg",
- "prop_mp_icon_shad_med",
- "prop_mp_icon_shad_sm"
- };
- enum numberblack
- {
- zeroblack = 0,
- oneblack = 1,
- twoblack = 2,
- };
- vector<int> LastBlack;
- vector<int> LastBlack2;
- int myblack::holypitch = 275;
- bool myblack::bhbool = 0;
- void myblack::bhveh()
- {
- PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
- const int ElementAmount = 10;
- const int ArrSize = ElementAmount * 2 + 2;
- Vehicle* vehs = new Vehicle[ArrSize];
- vehs[0] = ElementAmount;
- int VehFound = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), vehs);
- for (int i = 0; i < VehFound; i++)
- {
- int OffsetID = i * 2 + 2;
- if (vehs[OffsetID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
- {
- RequestControlOfEnt(vehs[OffsetID]);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- else
- {
- int vehHash = ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]);
- if (vehHash != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
- {
- RequestControlOfEnt(vehHash);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- }
- }
- delete[] vehs;
- }
- bool myblack::bhbool2 = 0;
- void myblack::bhveh2()
- {
- PLAYER::_EXPAND_WORLD_LIMITS(FLT_MAX, FLT_MAX, FLT_MAX);
- const int ElementAmount = 10;
- const int ArrSize = ElementAmount * 2 + 2;
- Vehicle* vehs = new Vehicle[ArrSize];
- vehs[0] = ElementAmount;
- int VehFound = PED::GET_PED_NEARBY_VEHICLES(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), vehs);
- for (int i = 0; i < VehFound; i++)
- {
- int OffsetID = i * 2 + 2;
- if (vehs[OffsetID] != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
- {
- Entity entity = Features::blacklatest;
- RequestControlOfEnt(entity);
- bool IS_ENTITY_TOUCHING_MODEL = ENTITY::IS_ENTITY_TOUCHING_MODEL(entity, ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]));
- if (IS_ENTITY_TOUCHING_MODEL)
- {
- RequestControlOfEnt(vehs[OffsetID]);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- Entity entity2 = Features::blacklatest;
- RequestControlOfEnt(entity2);
- bool HAS_ENTITY_COLLIDED_WITH_ANYTHING = ENTITY::HAS_ENTITY_COLLIDED_WITH_ANYTHING(entity2);
- if (HAS_ENTITY_COLLIDED_WITH_ANYTHING)
- {
- RequestControlOfEnt(vehs[OffsetID]);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehs[OffsetID], 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- }
- else
- {
- int vehHash = ENTITY::GET_ENTITY_MODEL(vehs[OffsetID]);
- if (vehHash != PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer), false))
- {
- Entity entity = Features::blacklatest;
- RequestControlOfEnt(entity);
- bool IS_ENTITY_TOUCHING_MODEL = ENTITY::IS_ENTITY_TOUCHING_MODEL(entity, vehHash);
- if (IS_ENTITY_TOUCHING_MODEL)
- {
- RequestControlOfEnt(vehHash);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- Entity entity2 = Features::blacklatest;
- RequestControlOfEnt(entity2);
- bool HAS_ENTITY_COLLIDED_WITH_ANYTHING = ENTITY::HAS_ENTITY_COLLIDED_WITH_ANYTHING(entity2);
- if (HAS_ENTITY_COLLIDED_WITH_ANYTHING)
- {
- RequestControlOfEnt(vehHash);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(vehHash, 15994.1f, 3940.94f, 2697.7f, false, false, false);
- }
- }
- }
- }
- delete[] vehs;
- }
- int myblackhole()
- {
- blackhole::backbool = true;
- blackhole::blackhole();
- if (blackhole::id == zeroblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- if (blackhole::id == oneblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- if (blackhole::id == twoblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::coordonatex, Features::coordonatey, Features::coordonatez, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- /*Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);*/
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 2, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- return 0;
- }
- int myblack::myblackhole2()
- {
- if (blackhole::id == zeroblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords;
- objCoords.x = Features::coordonatex;
- objCoords.y = Features::coordonatey;
- objCoords.z = Features::coordonatez;
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[0]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- if (blackhole::id == oneblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords;
- objCoords.x = Features::coordonatex;
- objCoords.y = Features::coordonatey;
- objCoords.z = Features::coordonatez;
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[1]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- if (blackhole::id == twoblack)
- {
- for (int i = 0; i < ARRAYSIZE(blackholesprop); i++)
- {
- if (Features::coordonate)
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords;
- objCoords.x = Features::coordonatex;
- objCoords.y = Features::coordonatey;
- objCoords.z = Features::coordonatez;
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- else
- {
- if (Features::blacklatest)
- {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- RequestControlOfEnt(Features::blacklatest2);
- ENTITY::DELETE_ENTITY(&Features::blacklatest2);
- LastBlack2.pop_back();
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, Features::blackMoveX2, Features::blackMoveY2, Features::blackMoveZ2, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- else
- {
- DWORD64 model = HASH::GET_HASH_KEY(blackholesprop[2]);
- Hooking::request_model((Hash)model);
- //while (!STREAMING::HAS_MODEL_LOADED((Hash)model))
- //{
- // /*WAIT(0);*/
- //}
- if (STREAMING::HAS_MODEL_LOADED((Hash)model))
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(Features::Online::selectedPlayer)/*PLAYER::PLAYER_PED_ID()*/, 0);
- float obj = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest = (Object)obj;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z, 1, true);
- Object object1 = OBJECT::CREATE_OBJECT_NO_OFFSET(model, coords.x, coords.y, coords.z, true, 1, 0);
- Features::blacklatest2 = (Object)object1;
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest2, objCoords.x, objCoords.y, Features::blackMoveZ2 + 10, false, false, false);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest2, Features::blackpitch12 + myblack::holypitch, objRot.y, objRot.z + 180, 1, true);
- Features::blackMoveX2 = objCoords.x;
- Features::blackMoveY2 = objCoords.y;
- Features::blackMoveZ2 = objCoords.z;
- Features::blackroll12 = objRot.y;
- Features::blackyaw12 = objRot.z;
- Features::blackpitch12 = objRot.x;
- }
- }
- }
- }
- }
- return 0;
- }
- void Features::BlackHole() {
- if (Features::coordonate)
- {
- blackhole::blacktimerbool = 1;
- }
- else
- {
- myblackhole();
- }
- }
- char* CharKeyboardBlack(char* windowName = "", int maxInput = 21, char* defaultText = "") {
- WAIT(50);
- GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(0, "", "", defaultText, "", "", "", maxInput);
- while (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 0) WAIT(0);
- if (!GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT()) return ""; //Thunder
- return GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT();
- }
- void Features::objectBlack() {
- if (Menu::Option("Input Object")) {
- Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
- Object custom = SpawnObject(CharKeyboardBlack(), pos);
- if (custom != -1) {
- Features::blacklatest = custom;
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- }
- else
- notifyMap("~b~Error Invalid object");
- }
- if (Menu::Option("Delete Last Object")) {
- RequestControlOfEnt(Features::blacklatest);
- ENTITY::DELETE_ENTITY(&Features::blacklatest);
- LastBlack.pop_back();
- }
- if (Menu::Float("X", Features::blackMoveX2, -100000000.f, 100000000.f, .5f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, Features::blackMoveX2, objCoords.y, objCoords.z, false, false, false);
- }
- if (Menu::Float("Y", Features::blackMoveY2, -100000000.f, 100000000.f, .5f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, Features::blackMoveY2, objCoords.z, false, false, false);
- }
- if (Menu::Float("Z", Features::blackMoveZ2, -100000000.f, 100000000.f, .5f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_COORDS_NO_OFFSET(Features::blacklatest, objCoords.x, objCoords.y, Features::blackMoveZ2, false, false, false);
- }
- if (Menu::Float("Roll", Features::blackroll12, 0.f, 360, 2.f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, objRot.x, Features::blackroll12, objRot.z, 1, true);
- }
- if (Menu::Float("Yaw", Features::blackyaw12, 0.f, 360, 2.f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, objRot.x, objRot.y, Features::blackyaw12, 1, true);
- }
- if (Menu::Float("Pitch", Features::blackpitch12, 0.f, 360, 2.f)) {
- RequestControlOfEnt(Features::blacklatest);
- Vector3 objCoords = ENTITY::GET_ENTITY_COORDS(Features::blacklatest, 1);
- Vector3 objRot = ENTITY::GET_ENTITY_ROTATION(Features::blacklatest, 0);
- ENTITY::SET_ENTITY_ROTATION(Features::blacklatest, Features::blackpitch12, objRot.y, objRot.z, 1, true);
- }
- }
- bool myblack::moneycoordbool = 0;
- int myblack::moneycoord()
- {
- int amount = 2500;
- Hooking::request_model(PROP_MONEY_BAG_02);
- if ((timeGetTime() - Features::moneycoord1) >> 5) // Time between drops
- {
- if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
- {
- Vector3 playerPosition;
- playerPosition.x = Features::blackMoveX2;
- playerPosition.y = Features::blackMoveY2;
- playerPosition.z = Features::blackMoveZ2;
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &playerPosition, 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
- Features::moneycoord1 = timeGetTime();
- }
- }
- return 0;
- }
- bool myblack::moneycoordbool1 = 0;
- int myblack::moneycoord1()
- {
- int amount = 2500;
- Hooking::request_model(PROP_MONEY_BAG_02);
- if ((timeGetTime() - Features::moneycoord2) >> 5) // Time between drops
- {
- if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
- {
- Vector3 playerPosition;
- playerPosition.x = Features::coordonatex;
- playerPosition.y = Features::coordonatey;
- playerPosition.z = Features::coordonatez;
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &playerPosition, 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
- Features::moneycoord2 = timeGetTime();
- }
- }
- return 0;
- }
- Vector3 eclipsevecArray[5];
- bool geteclipsecoord = 1;
- bool myblack::moneycoordbooleclipse1 = 0;
- int myblack::moneycoordeclipse1()
- {
- if (geteclipsecoord)
- {
- eclipsevecArray[0].x = -769.9443969726563;
- eclipsevecArray[0].y = 297.9518737792969;
- eclipsevecArray[0].z = 85.69881439208984;
- eclipsevecArray[1].x = -772.716796875;
- eclipsevecArray[1].y = 297.75244140625;
- eclipsevecArray[1].z = 85.71749114990234;
- eclipsevecArray[2].x = -776.0935668945313;
- eclipsevecArray[2].y = 297.742919921875;
- eclipsevecArray[2].z = 85.74436950683594;
- eclipsevecArray[3].x = -776.049072265625;
- eclipsevecArray[3].y = 297.7787170410156;
- eclipsevecArray[3].z = 85.74420928955078;
- eclipsevecArray[4].x = -773.4193115234375;
- eclipsevecArray[4].y = 297.9117126464844;
- eclipsevecArray[4].z = 85.72395324707031;
- geteclipsecoord = 0;
- }
- int amount = 2500;
- Hooking::request_model(PROP_MONEY_BAG_02);
- if ((timeGetTime() - Features::moneycoord3) >> 5) // Time between drops
- {
- if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
- {
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[0], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[1], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[2], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[3], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &eclipsevecArray[4], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
- Features::moneycoord3 = timeGetTime();
- }
- }
- return 0;
- }
- namespace myblack
- {
- extern int holypitch;
- extern int myblackhole2();
- extern bool moneycoordbool;
- extern int moneycoord();
- extern bool moneycoordbool1;
- extern int moneycoord1();
- extern void bhveh2();
- extern void bhveh();
- extern bool bhbool;
- extern bool bhbool2;
- }
- bool blackhole::backbool = false;
- int blackhole::id = 0;
- int blackhole::lastid = 2;
- bool blackhole::blackhole()
- {
- if (blackhole::backbool)
- {
- if (timesback::id < blackhole::lastid)
- {
- int timesreturn = blackhole::id + 1;
- blackhole::id = timesreturn;
- blackhole::backbool = false;
- }
- else
- if (blackhole::id = blackhole::lastid)
- {
- blackhole::id = 0;
- blackhole::backbool = false;
- }
- }
- return 0;
- }
- int blackhole::anyblackhole()
- {
- blackhole::backbool = true;
- blackhole::blackhole();
- myblack::myblackhole2();
- return 0;
- }
- int blackhole::timeblackhole = 100;
- bool blackhole::blackbool = true;
- bool blackhole::boolblack = true;
- bool blackhole::blacktimerbool = false;
- void blackhole::blackholetimer1()
- {
- if (blackhole::boolblack)
- {
- DWORD ticks = GetTickCount64();
- DWORD milliseconds = ticks % 1000;
- int getTimer = milliseconds;
- if (getTimer % blackhole::timeblackhole == 0)
- {
- blackhole::anyblackhole();
- blackhole::blackbool = 1;
- blackhole::boolblack = 0;
- blackhole::blackbool2 = 1;
- }
- }
- if (!blackhole::blacktimerbool)
- {
- blackhole::blackbool = 1;
- blackhole::boolblack = 1;
- }
- }
- bool blackhole::blackbool2 = true;
- void blackhole::blackholetimer2() {
- if (blackhole::blackbool2)
- {
- DWORD ticks = GetTickCount64();
- DWORD milliseconds = ticks % 1000;
- int getmilli = milliseconds;
- if (getmilli % blackhole::timeblackhole == 0)
- {
- blackhole::blackbool2 = 0;
- blackhole::boolblack = 1;
- }
- }
- }
- namespace blackhole
- {
- extern int anyblackhole();
- extern int timeblackhole;
- extern bool blackbool;
- extern bool boolblack;
- extern bool blacktimerbool;
- extern void blackholetimer1();
- extern bool blackbool2;
- extern void blackholetimer2();
- extern bool backbool;
- extern int id;
- extern int lastid;
- extern bool blackhole();
- }
- bool coord::firstcheckall = 1;
- int coord::allsaved = 0;
- int coord::stringint = 0;
- int coord::intstring()
- {
- if (firstcheckall)
- {
- stringint = allsaved;
- firstcheckall = 0;
- }
- else
- {
- int timesreturn = coord::stringint + 1;
- coord::stringint = timesreturn;
- }
- return 0;
- }
- std::string moneyposition::stringname1 = "";
- Vector3 moneyposition::positionmoney1;
- enum bhole
- {
- bhzero = 0,
- bhone = 1,
- bhtwo = 2,
- bhthree = 3,
- bhfour = 4,
- bhfive = 5,
- bhsix = 6,
- bhseven = 7,
- bheight = 8,
- bhnine = 9,
- bhten = 10,
- bheleven = 11,
- bhtwelve = 12,
- bhthirteen = 13,
- bhfourteen = 14,
- bhfifteen = 15,
- bhsixteen = 16,
- bhseventeen = 16,
- bheighteen = 18,
- bhnineteen = 19,
- bhtwenty = 20,
- bhtwentyone = 21,
- bhtwentytwo = 22,
- bhtwentythree = 23,
- bhtwentyfour = 24,
- bhtwentyfive = 25,
- bhtwentysix = 26,
- bhtwentyseven = 27,
- bhtwentyeight = 28,
- bhtwentynine = 29,
- bhthirty = 30,
- bhthirtyone = 31,
- bhthirtytwo = 32
- };
- int selected_position = 0;
- #define PROP_MONEY_BAG_02 -1666779307
- bool coord::moneycoordbool2 = 0;
- bool coord::moneycoordbool1[33] = {};
- int coordnumber()
- {
- for (int i = 0; i < coord::allsaved; i++)
- {
- if (selected_position == i)
- {
- coord::moneycoordbool1[i] = !coord::moneycoordbool1[i];
- }
- }
- /*if (selected_position == (int)bhzero)
- {
- coord::moneycoordbool1[0] = !coord::moneycoordbool1[0];
- }
- if (selected_position == (int)bhone)
- {
- coord::moneycoordbool1[1] = !coord::moneycoordbool1[1];
- }
- if (selected_position == (int)bhtwo)
- {
- coord::moneycoordbool1[2] = !coord::moneycoordbool1[2];
- }
- if (selected_position == (int)bhthree)
- {
- coord::moneycoordbool1[3] = !coord::moneycoordbool1[3];
- }
- if (selected_position == (int)bhfour)
- {
- coord::moneycoordbool1[4] = !coord::moneycoordbool1[4];
- }
- if (selected_position == (int)bhfive)
- {
- coord::moneycoordbool1[5] = !coord::moneycoordbool1[5];
- }
- if (selected_position == (int)bhsix)
- {
- coord::moneycoordbool1[6] = !coord::moneycoordbool1[6];
- }
- if (selected_position == (int)bhseven)
- {
- coord::moneycoordbool1[7] = !coord::moneycoordbool1[7];
- }
- if (selected_position == (int)bheight)
- {
- coord::moneycoordbool1[8] = !coord::moneycoordbool1[8];
- }
- if (selected_position == (int)bhnine)
- {
- coord::moneycoordbool1[9] = !coord::moneycoordbool1[9];
- }
- if (selected_position == (int)bhten)
- {
- coord::moneycoordbool1[10] = !coord::moneycoordbool1[10];
- }
- if (selected_position == (int)bheleven)
- {
- coord::moneycoordbool1[11] = !coord::moneycoordbool1[11];
- }
- if (selected_position == (int)bhtwelve)
- {
- coord::moneycoordbool1[12] = !coord::moneycoordbool1[12];
- }
- if (selected_position == (int)bhthirteen)
- {
- coord::moneycoordbool1[13] = !coord::moneycoordbool1[13];
- }
- if (selected_position == (int)bhfourteen)
- {
- coord::moneycoordbool1[14] = !coord::moneycoordbool1[14];
- }
- if (selected_position == (int)bhfifteen)
- {
- coord::moneycoordbool1[15] = !coord::moneycoordbool1[15];
- }
- if (selected_position == (int)bhsixteen)
- {
- coord::moneycoordbool1[16] = !coord::moneycoordbool1[16];
- }
- if (selected_position == (int)bhseventeen)
- {
- coord::moneycoordbool1[17] = !coord::moneycoordbool1[17];
- }
- if (selected_position == (int)bheighteen)
- {
- coord::moneycoordbool1[18] = !coord::moneycoordbool1[18];
- }
- if (selected_position == (int)bhnineteen)
- {
- coord::moneycoordbool1[19] = !coord::moneycoordbool1[19];
- }
- if (selected_position == (int)bhtwenty)
- {
- coord::moneycoordbool1[20] = !coord::moneycoordbool1[20];
- }
- if (selected_position == (int)bhtwentyone)
- {
- coord::moneycoordbool1[21] = !coord::moneycoordbool1[21];
- }
- if (selected_position == (int)bhtwentytwo)
- {
- coord::moneycoordbool1[22] = !coord::moneycoordbool1[22];
- }
- if (selected_position == (int)bhtwentythree)
- {
- coord::moneycoordbool1[23] = !coord::moneycoordbool1[23];
- }
- if (selected_position == (int)bhtwentyfour)
- {
- coord::moneycoordbool1[24] = !coord::moneycoordbool1[24];
- }
- if (selected_position == (int)bhtwentyfive)
- {
- coord::moneycoordbool1[25] = !coord::moneycoordbool1[25];
- }
- if (selected_position == (int)bhtwentysix)
- {
- coord::moneycoordbool1[26] = !coord::moneycoordbool1[26];
- }
- if (selected_position == (int)bhtwentyseven)
- {
- coord::moneycoordbool1[27] = !coord::moneycoordbool1[27];
- }
- if (selected_position == (int)bhtwentyeight)
- {
- coord::moneycoordbool1[28] = !coord::moneycoordbool1[28];
- }
- if (selected_position == (int)bhtwentynine)
- {
- coord::moneycoordbool1[29] = !coord::moneycoordbool1[29];
- }
- if (selected_position == (int)bhthirty)
- {
- coord::moneycoordbool1[30] = !coord::moneycoordbool1[30];
- }
- if (selected_position == (int)bhthirtyone)
- {
- coord::moneycoordbool1[31] = !coord::moneycoordbool1[31];
- }
- if (selected_position == (int)bhthirtytwo)
- {
- coord::moneycoordbool1[32] = !coord::moneycoordbool1[32];
- }*/
- return 0;
- }
- Vector3 vecArray[32];
- int coord::moneycoord1()
- {
- coordnumber();
- for (int i = 0; i < coord::allsaved; i++)
- {
- if (coord::moneycoordbool1[i])
- {
- if ((timeGetTime() - Features::moneycoord3) >> 5) // Time between drops
- {
- int amount = 2500;
- Hooking::request_model(PROP_MONEY_BAG_02);
- if (STREAMING::HAS_MODEL_LOADED(PROP_MONEY_BAG_02))
- {
- Hooking::create_ambient_pickup(PICKUP_MONEY_PURSE, &vecArray[i], 0, amount, PROP_MONEY_BAG_02, FALSE, TRUE);
- STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(PROP_MONEY_BAG_02);
- Features::moneycoord4 = timeGetTime();
- }
- }
- }
- }
- return 0;
- }
- void persist_moneyposition::savelocationmp4(std::string name1)
- {
- Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), false);
- coords.z + 2;
- moneyposition::positionmoney1 = coords;
- attachmentmp4::attachment attachment;
- attachment.stringname = name1;
- attachment.mp = moneyposition::positionmoney1;
- vecArray[selected_position] = moneyposition::positionmoney1;
- coord::moneycoordbool2 = true;
- savemp4(attachment, name1);
- }
- void persist_moneyposition::load_locationmp4(std::string name1)
- {
- auto locations = get_locations_jsonmp4();
- if (locations[name1].is_null())
- return;
- auto model_attachment = locations[name1].get<attachmentmp4::attachment>();
- moneyposition::stringname1 = model_attachment.stringname;
- moneyposition::positionmoney1 = model_attachment.mp;
- vecArray[selected_position] = moneyposition::positionmoney1;
- coord::moneycoordbool2 = true;
- }
- void persist_moneyposition::delete_locationmp4(std::string name)
- {
- auto locations = get_locations_jsonmp4();
- if (locations[name].is_null())
- return;
- locations.erase(name);
- save_jsonmp4(locations);
- }
- std::vector<std::string> persist_moneyposition::list_locationsmp4()
- {
- std::vector<std::string> return_value;
- auto json = get_locations_jsonmp4();
- for (auto& item : json.items())
- return_value.push_back(item.key());
- return return_value;
- }
- int savedmp = 0;
- void persist_moneyposition::do_presentation_layermp4()
- {
- auto savednames = list_locationsmp4();
- static std::string selected_name;
- int xi = 0;
- std::vector<char*> charVec4(savednames.size(), nullptr);
- for (int i = 0; i < savednames.size(); i++) {
- charVec4[i] = &savednames[i][0];
- xi = i;
- coord::allsaved = i;
- }
- if (xi != 0)
- {
- if (Menu2::ListVector("List", charVec4, savedmp)) {
- char* result2 = charVec4[savedmp];
- selected_name = result2;
- selected_position = savedmp;
- }
- }
- if (Menu::Option("Save"))
- {
- coord::intstring();
- moneyposition::stringname1 = "moneyposition";
- std::string mploc = moneyposition::stringname1 + to_string(coord::stringint);
- std::string loactionsavemp = mploc;
- selected_position = coord::stringint;
- savelocationmp4(loactionsavemp);
- }
- if (xi != 0)
- {
- if (Menu::Option("Load"))
- {
- if (!selected_name.empty())
- {
- load_locationmp4(selected_name);
- selected_name.clear();
- }
- }
- if (Menu::Option("Delete"))
- {
- if (!selected_name.empty())
- {
- delete_locationmp4(selected_name);
- selected_name.clear();
- }
- }
- }
- Menu::Toggle("Money Coord", coord::moneycoordbool2);
- if (coord::moneycoordbool2)
- {
- if (coord::moneycoordbool1[0])
- {
- Menu::Toggle("Money Spawn Coord 0", coord::moneycoordbool1[0]);
- }
- if (coord::moneycoordbool1[1])
- {
- Menu::Toggle("Money Spawn Coord 1", coord::moneycoordbool1[1]);
- }
- if (coord::moneycoordbool1[2])
- {
- Menu::Toggle("Money Spawn Coord 2", coord::moneycoordbool1[2]);
- }
- if (coord::moneycoordbool1[3])
- {
- Menu::Toggle("Money Spawn Coord 3", coord::moneycoordbool1[3]);
- }
- if (coord::moneycoordbool1[4])
- {
- Menu::Toggle("Money Spawn Coord 4", coord::moneycoordbool1[4]);
- }
- if (coord::moneycoordbool1[5])
- {
- Menu::Toggle("Money Spawn Coord 5", coord::moneycoordbool1[5]);
- }
- if (coord::moneycoordbool1[6])
- {
- Menu::Toggle("Money Spawn Coord 6", coord::moneycoordbool1[6]);
- }
- if (coord::moneycoordbool1[7])
- {
- Menu::Toggle("Money Spawn Coord 7", coord::moneycoordbool1[7]);
- }
- if (coord::moneycoordbool1[8])
- {
- Menu::Toggle("Money Spawn Coord 8", coord::moneycoordbool1[8]);
- }
- if (coord::moneycoordbool1[9])
- {
- Menu::Toggle("Money Spawn Coord 9", coord::moneycoordbool1[9]);
- }
- if (coord::moneycoordbool1[10])
- {
- Menu::Toggle("Money Spawn Coord 10", coord::moneycoordbool1[10]);
- }
- if (coord::moneycoordbool1[11])
- {
- Menu::Toggle("Money Spawn Coord 11", coord::moneycoordbool1[11]);
- }
- if (coord::moneycoordbool1[12])
- {
- Menu::Toggle("Money Spawn Coord 12", coord::moneycoordbool1[12]);
- }
- if (coord::moneycoordbool1[13])
- {
- Menu::Toggle("Money Spawn Coord 13", coord::moneycoordbool1[13]);
- }
- if (coord::moneycoordbool1[14])
- {
- Menu::Toggle("Money Spawn Coord 14", coord::moneycoordbool1[14]);
- }
- if (coord::moneycoordbool1[15])
- {
- Menu::Toggle("Money Spawn Coord 15", coord::moneycoordbool1[15]);
- }
- if (coord::moneycoordbool1[16])
- {
- Menu::Toggle("Money Spawn Coord 16", coord::moneycoordbool1[16]);
- }
- if (coord::moneycoordbool1[17])
- {
- Menu::Toggle("Money Spawn Coord 17", coord::moneycoordbool1[17]);
- }
- if (coord::moneycoordbool1[18])
- {
- Menu::Toggle("Money Spawn Coord 18", coord::moneycoordbool1[18]);
- }
- if (coord::moneycoordbool1[19])
- {
- Menu::Toggle("Money Spawn Coord 19", coord::moneycoordbool1[19]);
- }
- if (coord::moneycoordbool1[20])
- {
- Menu::Toggle("Money Spawn Coord 20", coord::moneycoordbool1[20]);
- }
- if (coord::moneycoordbool1[21])
- {
- Menu::Toggle("Money Spawn Coord 21", coord::moneycoordbool1[21]);
- }
- if (coord::moneycoordbool1[22])
- {
- Menu::Toggle("Money Spawn Coord 22", coord::moneycoordbool1[22]);
- }
- if (coord::moneycoordbool1[23])
- {
- Menu::Toggle("Money Spawn Coord 23", coord::moneycoordbool1[23]);
- }
- if (coord::moneycoordbool1[24])
- {
- Menu::Toggle("Money Spawn Coord 24", coord::moneycoordbool1[24]);
- }
- if (coord::moneycoordbool1[25])
- {
- Menu::Toggle("Money Spawn Coord 25", coord::moneycoordbool1[25]);
- }
- if (coord::moneycoordbool1[26])
- {
- Menu::Toggle("Money Spawn Coord 26", coord::moneycoordbool1[26]);
- }
- if (coord::moneycoordbool1[27])
- {
- Menu::Toggle("Money Spawn Coord 27", coord::moneycoordbool1[27]);
- }
- if (coord::moneycoordbool1[28])
- {
- Menu::Toggle("Money Spawn Coord 28", coord::moneycoordbool1[28]);
- }
- if (coord::moneycoordbool1[29])
- {
- Menu::Toggle("Money Spawn Coord 29", coord::moneycoordbool1[29]);
- }
- if (coord::moneycoordbool1[30])
- {
- Menu::Toggle("Money Spawn Coord 30", coord::moneycoordbool1[30]);
- }
- if (coord::moneycoordbool1[31])
- {
- Menu::Toggle("Money Spawn Coord 31", coord::moneycoordbool1[31]);
- }
- if (coord::moneycoordbool1[32])
- {
- Menu::Toggle("Money Spawn Coord 32", coord::moneycoordbool1[32]);
- }
- }
- }
- void persist_moneyposition::savemp4(attachmentmp4::attachment attachment, std::string name)
- {
- auto json = get_locations_jsonmp4();
- json[name] = attachment;
- save_jsonmp4(json);
- }
- void persist_moneyposition::save_jsonmp4(nlohmann::json json)
- {
- auto file_path = get_locations_configmp4();
- std::ofstream file(file_path, std::ios::out | std::ios::trunc);
- file << json.dump(4);
- file.close();
- }
- nlohmann::json persist_moneyposition::get_locations_jsonmp4()
- {
- auto file_path = get_locations_configmp4();
- nlohmann::json locations;
- std::ifstream file(file_path);
- if (!file.fail())
- file >> locations;
- return locations;
- }
- std::string persist_moneyposition::get_locations_configmp4()
- {
- OverSeeing::Overseefolder();
- auto file_path = Directory::get_current_dir();
- file_path += "\\ThunderMenu\\Oversee\\";
- file_path += "MoneyPosition.json";
- return file_path;
- }
- namespace coord
- {
- extern bool firstcheckall;
- extern int allsaved;
- extern int stringint;
- extern int intstring();
- extern bool moneycoordbool1[33];
- extern bool moneycoordbool2;
- extern int moneycoord1();
- }
- namespace moneyposition
- {
- extern std::string stringname1;
- extern Vector3 positionmoney1;
- }
- class persist_moneyposition
- {
- public:
- static void do_presentation_layermp4();
- private:
- static void savelocationmp4(std::string name1);
- static void load_locationmp4(std::string name1);
- static void delete_locationmp4(std::string name1);
- static std::vector<std::string> list_locationsmp4();
- static void savemp4(attachmentmp4::attachment attachment, std::string name);
- static void save_jsonmp4(nlohmann::json json);
- static nlohmann::json get_locations_jsonmp4();
- static std::string get_locations_configmp4();
- /*static std::filesystem::path get_locations_config();*/
- };
- namespace attachmentmp4
- {
- void to_json(nlohmann::json& j, const attachmentmp4::attachment& attachment) {
- j = nlohmann::json{ {"stringname", attachment.stringname},
- {"mp_x", attachment.mp.x}, { "mp_y", attachment.mp.y }, { "mp_z", attachment.mp.z } };
- }
- void from_json(const nlohmann::json& j, attachmentmp4::attachment& attachment) {
- attachment.stringname = j["stringname"].get<std::string>();
- 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);
- }
- };
- namespace attachmentmp4
- {
- struct attachment
- {
- std::string stringname;
- Vector3 mp;
- };
- void to_json(nlohmann::json& j, const attachment& attachment);
- void from_json(const nlohmann::json& j, attachment& attachment);
- };
- #pragma region angryplanes
- case angryplanes:
- {
- Features::onlinemenuplayerlist = true;
- Menu::Title((char*)langage::AngryPlane.c_str());
- headers::thunderheaders();
- FeaturesOnline::selectedPlayerPlane = Features::Online::selectedPlayer;
- Menu::Toggle((char*)langage::AngryPlane.c_str(), FeaturesOnline::bLazers);
- Menu::Toggle((char*)langage::AngryPlaneMissile.c_str(), FeaturesOnline::bMissles);
- Menu::Toggle("Black Hole", Features::newblackhole);
- Menu::Toggle("Coord Black Hole to Coordonate", Features::coordonate);
- if (Features::coordonate)
- {
- if (Features::getfirstcoordbool)
- {
- Features::getfirstcoordbool = 0;
- }
- if (Features::mypositionblack)
- {
- Features::mypositionblack = 0;
- }
- if (Features::playerpositionblack)
- {
- Features::playerpositionblack = 0;
- }
- }
- if (Menu::Option("Get Coord + y10"))
- {
- Features::getblackcoord2();
- }
- Menu::Toggle("Black Hole Prop", blackhole::blacktimerbool);
- Menu::Toggle("Delete To Blackhole", myblack::bhbool2);
- if (Menu::Option("Get Coord + y2"))
- {
- Features::getblackcoord1();
- }
- if (Menu::Option("Get Coord + y20"))
- {
- Features::getblackcoord3();
- }
- Menu::Int("RequestTimes", Features::RequestTimes, 1, 2000);
- Menu::Int("BlackHole Position Z", Features::BlackHoleZ, 1, 50);
- Menu::Int("BlackHole Position Pitch", myblack::holypitch, 1, 360);
- Menu::Toggle("Black Hole On Me", Features::mypositionblack);
- Menu::Toggle("Black Hole On Player", Features::playerpositionblack);
- Menu::Toggle("disallowNewEntity", Features::disallowNewEntity);
- Menu::Toggle("Coord Black Hole on me", Features::getfirstcoordbool);
- if (Menu::Option("Get Coord"))
- {
- Features::getblackcoord();
- }
- Menu::Float("blackheigh", Features::blackheigh, -10000, 10000);
- Menu::Float("blackwidth", Features::blackwidth, -10000, 10000);
- Menu::Float("blacklength", Features::blacklength, -10000, 10000);
- Menu::Float("coordonatex", Features::coordonatex, -10000, 10000);
- Menu::Float("coordonatey", Features::coordonatey, -10000, 10000);
- Menu::Float("coordonatez", Features::coordonatez, -10000, 10000);
- Menu::Toggle("Money Coord", myblack::moneycoordbool1);
- if (Menu::Option("Spawn Black Hole"))
- {
- Features::BlackHole();
- }
- Menu::Toggle("Delete Cars", myblack::bhbool);
- Menu::Int("Black Hole Timer", blackhole::timeblackhole, 1, 1000);
- Menu::Toggle("Money Spawn ", myblack::moneycoordbool);
- Features::objectBlack();
- persist_moneyposition::do_presentation_layermp4();
- headers::thunderbackgrounds();
- backgrounds::casesixteen();
- }
- break;
- #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement