ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 5296

More code!!

by tanakatarou - 06-16-2018 - 04:19 PM
#1

  1. //static BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords) { return invoke<BOOL>(0x9B266079, ped, coords); } // 0x9B266079

  2.  

  3.  

  4. static BOOL(*GET_PED_LAST_WEAPON_IMPACT_COORD)(Ped ped, int coordsfreeMem) = (BOOL(*)(Ped, int))&__GET_PED_LAST_WEAPON_IMPACT_COORD_t;

  5.  

  6. static BOOL GET_PED_LAST_WEAPON_IMPACT_COORD_MODIFYED(Ped ped, float coords[4]) {

  7.     Vector3 in;

  8.     ResetArgs();

  9.     PushArg(ped);

  10.     PushArg(&in);

  11.     CallHash(0x9B266079, NativeArg);

  12.     return GetResult<BOOL>();

  13.     std::copy(GetDataResult<float*>(0), GetDataResult<float*>(0) + 4, coords);

  14. } //  0x9B266079

  15.  

  16. template <typename R>

  17. R GetDataResult(uint8_t index)

  18. {

  19.     R* Result;

  20.     Result = (R*)NativeArg + 0x10 * (index + 4); //0x10030000

  21.     return *(R*)Result;

  22. }

  23.  

  24. static BOOL GET_PED_LAST_WEAPON_IMPACT_COORD_MODIFYED(Ped ped, Vector3 &coords) {

  25.     float tmp[100]; ResetArgs(); PushArg(ped); PushArg(0x10030000);

  26.     for (int i = 0; i < 3; i++)

  27.         tmp[i] = *(float*)(0x10030000 + (i * 0x04));

  28.     Vector3 vOut = FloatToVector(tmp[0], tmp[1], tmp[2]);

  29.     coords = vOut;

  30.     CallHash(0x9B266079, NativeArg);

  31.     return GetResult<BOOL>();

  32.  

  33. } //  0x9B266079

  34.  

  35. static BOOL(*GET_PED_LAST_WEAPON_IMPACT_COORD)(Ped ped, int coordsfreeMem) = (BOOL(*)(Ped, int))&__GET_PED_LAST_WEAPON_IMPACT_COORD_t;

  36.  

  37.  

  38. int hitsomething = 0, entityHandle = 0; Vector3 endCoords, surfaceNormal;

  39. int getRaycastHandle(int type)

  40. {

  41.     /*Vector3 camrot = GET_GAMEPLAY_CAM_ROT(2);

  42.     Vector3 campos = GET_GAMEPLAY_CAM_COORD();

  43.     Vector3 selfvec = GET_ENTITY_FORWARD_VECTOR(PLAYER_PED_ID());

  44.     Vector3 multiplied = { RotationToDirection(camrot).x * 1000.0f, RotationToDirection(camrot).y * 1000.0f, RotationToDirection(camrot).z * 1000.0f };

  45.     int ray = _CAST_RAY_POINT_TO_POINT(campos.x + selfvec.x, campos.y + selfvec.y, campos.z + selfvec.z, campos.x + multiplied.x * 5000, campos.y + multiplied.y * 5000, campos.z + multiplied.z * 5000, type, 0, 7);

  46.     return ray;*/

  47.     Vector3 camPos = GET_GAMEPLAY_CAM_COORD();

  48.     Vector3 camRot = GET_GAMEPLAY_CAM_ROT(2);

  49.     float retz = camRot.z * 0.0174532924F;

  50.     float retx = camRot.x * 0.0174532924F;

  51.     float absx = ABSF(COS(retx));

  52.     Vector3 camStuff = { SIN(retz) * absx * -1, COS(retz) * absx, SIN(retx) };

  53.     return _CAST_RAY_POINT_TO_POINT(camPos.x, camPos.y, camPos.z, camPos.x + camStuff.x * 1000, camPos.y + camStuff.y * 1000, camPos.z + camStuff.z * 1000, type, 0, 7);

  54. }

  55.  

  56. unsigned int *getGlobalPtr(int globalId)

  57. {

  58.     unsigned int **arr = (unsigned int **)(0x1E70370);

  59.     return &arr[(globalId >> 18) & 0x3F][globalId & 0x3FFFF];

  60.  

  61.     //return (unsigned int *)(*(DWORD *)(0x000000 + 8i64 * ((globalId >> 18) & 0x3F) + moduleHandle) //reversed

  62.     //  + 8i64 * (globalId & 0x3FFFF));

  63. }

  64.  

  65.  

  66.             //SetGlobal(1325955, 1662, 1337);

  67.            

  68.             *getGlobalPtr(OFF_THE_RADAR_TIME) = 1337; //DEADC0DE time

  69.  

  70.             //262145 wanted lvl

  71.             //SetGlobal(2394218, 55, GET_NETWORK_TIME());

  72.            

  73.             //SetGlobal(2387908, 169, 1);

  74.             //SetGlobal(2387908 + 223, 169, 1);

  75.             //SetGlobal(2387908[PLAYER_ID() * 223], 169, 1);

  76.  

  77.             //SetGlobal(2390201, 171, 1);

  78.             //SetGlobal(2390201 + 223, 171, 1);

  79.             //SetGlobal2390201[PLAYER_ID() * 223], 171, 1);

  80.  

  81.             /*SetGlobal(2387908, 169, 1);

  82.  

  83.             SetGlobal(2390201, 171, 1);

  84.  

  85.             SetGlobal(2387908 + 223, 169, 1);

  86.  

  87.             SetGlobal(2387908 + PLAYER_ID() * 223, 169, 1);

  88.  

  89.             SetGlobal(2387908 + PLAYER_ID() + 223, 169, 1);

  90.  

  91.             SetGlobal(2387908 + PLAYER_ID(), 169, 1);*/

  92.  

  93.  

  94. void btnOffRadar_Click(object sender, EventArgs e)

  95. {

  96.     if (ScriptGlobals.Read(2390201 + (uint)(NativeFuncs.player_id() * 223) + 170) == 0)

  97.     {

  98.         ScriptGlobals.Write(2390201 + (uint)(NativeFuncs.player_id() * 223) + 170, 1);

  99.         ScriptGlobals.Write(2394218 + 55, 2147483647);

  100.     }

  101.     else

  102.         ScriptGlobals.Write(2390201 + (uint)(NativeFuncs.player_id() * 223) + 170, 0);

  103. }

  104.  

  105.  

  106. if (featureTest)

  107.     {

  108.         Vector3 closestcoords = GET_ENTITY_COORDS(PLAYER_PED_ID(), FALSE);

  109.         getNearEntities(PLAYER_PED_ID(), 1, 1, 7, 2, NULL);

  110.  

  111. for (int i = 0; 0 < sizeof(); i++)

  112. {

  113. }

  114.         EntitiesNearBy[i] = GET_ENTITY_ATTACHED_TO(PLAYER_PED_ID());

  115.         EntitiesNearBy[i] = GET_CLOSEST_VEHICLE(closestcoords.x, closestcoords.y, closestcoords.z, 10.0f, 0, CARS_N_MOTOCYCLES_2);

  116.         EntitiesNearBy[i] = GET_RANDOM_PED_AT_COORD(closestcoords.x, closestcoords.y, closestcoords.z, 10.0f, 10.0f, 10.0, -1);

  117.         if (DOES_ENTITY_EXIST(EntitiesNearBy[i]))

  118.         {

  119.             if (!NETWORK_HAS_CONTROL_OF_ENTITY(EntitiesNearBy[i]))

  120.                 NETWORK_REQUEST_CONTROL_OF_ENTITY(EntitiesNearBy[i]);

  121.             else

  122.             {

  123.                 DETACH_ENTITY(EntitiesNearBy[i], 1, 1);

  124.                 SET_ENTITY_AS_MISSION_ENTITY(EntitiesNearBy[i], 1, 1);

  125.                 DELETE_ENTITY(&EntitiesNearBy[i]);

  126.             }

  127.         }

  128.    

  129.  

  130.  

  131. int funcaddr = 0x139ECB0;//0x13321EC;

  132. ((void(*)(int, unsigned int, int, int, int, int, int, int, int))&funcaddr)(0x40022280, 0x1004004C, 1, 0, 0, 0, 0x540, 0x4ec, 0x59);

  133.  

  134.  

  135. GetClosestVehicle

  136. __int64 __fastcall sub_4549C8(__int64 a1, float a2, unsigned int a3, unsigned int a4)

  137. {

  138.   signed int v4; // ebx@1

  139.   unsigned int v5; // er14@1

  140.   __int64 v6; // rdi@1

  141.   signed int v7; // ebp@1

  142.   float v8; // xmm6_4@1

  143.   int v9; // eax@2

  144.   unsigned int v10; // xmm1_4@3

  145.   unsigned int v11; // xmm2_4@3

  146.   float v12; // xmm6_4@3

  147.   __int64 v13; // rcx@3

  148.   unsigned int v14; // edi@3

  149.   __int64 v15; // r9@4

  150.   int v16; // eax@5

  151.   __int64 v17; // rax@6

  152.   __int64 v18; // rsi@9

  153.   __m128 v19; // xmm2@12

  154.   __m128i v20; // xmm2@12

  155.   float v21; // xmm7_4@12

  156.   int v22; // eax@13

  157.   int v24; // [sp+20h] [bp-58h]@2

  158.   __m128 v25; // [sp+30h] [bp-48h]@3

  159.   int v26; // [sp+90h] [bp+18h]@1

  160.  

  161.   v4 = 0;

  162.   v5 = a4;

  163.   v6 = a1;

  164.   v7 = 0;

  165.   v8 = a2;

  166.   v26 = (v26 | 0xFFFFFFF) & 0xFFFFFFF;

  167.   if ( !a3

  168.     || (v24 = 0xFFFF,

  169.         sub_14079692C(a3, &v24),

  170.         LOWORD(v26) = v24,

  171.         v9 = v26 | 0xFFF0000,

  172.         _bittestandreset((unsigned int *)&v9, 0x1Cu),

  173.         v26 = v9,

  174.         (unsigned __int16)v9 != 0xFFFF) )

  175.   {

  176.     v10 = *(_DWORD *)(v6 + 8);

  177.     v11 = *(_DWORD *)(v6 + 16);

  178.     v12 = v8 * v8;

  179.     v13 = *(_QWORD *)VehiclePool;

  180.     v25.m128_i32[0] = *(_DWORD *)v6;

  181.     *(unsigned __int64 *)((char *)&v25.m128_u64[0] + 4) = __PAIR__(v11, v10);

  182.     v14 = *(_DWORD *)(v13 + 8);

  183.     if ( v14 )

  184.     {

  185.       do

  186.       {

  187.         --v14;

  188.         v15 = *(_QWORD *)VehiclePool;

  189.         if ( (signed int)v14 < *(_DWORD *)(*(_QWORD *)VehiclePool + 8i64)

  190.           && (v16 = *(_DWORD *)(*(_QWORD *)(v15 + 48) + 4 * ((unsigned __int64)v14 >> 5)),

  191.               _bittest((const unsigned int *)&v16, v14 & 0x1F)) )

  192.           v17 = *(_QWORD *)v15 + v14 * *(_QWORD *)(v15 + 24);

  193.         else

  194.           v17 = 0i64;

  195.         if ( v17 )

  196.           v18 = *(_QWORD *)v17;

  197.         else

  198.           v18 = 0i64;

  199.         if ( v18 )

  200.         {

  201.           v19 = _mm_sub_ps(*(__m128 *)(v18 + 144), v25);

  202.           v20 = (__m128i)_mm_mul_ps(v19, v19);

  203.           LODWORD(v21) = (unsigned __int128)_mm_add_ps(

  204.                                               _mm_add_ps(

  205.                                                 (__m128)_mm_shuffle_epi32(v20, 0),

  206.                                                 (__m128)_mm_shuffle_epi32(v20, 85)),

  207.                                               (__m128)_mm_shuffle_epi32(v20, -86));

  208.           if ( v21 < v12 )

  209.           {

  210.             v22 = sub_140796DD8(&v26);

  211.             if ( (unsigned __int8)sub_13FF39C34(v18, (unsigned int)v22, v5) )

  212.             {

  213.               v7 = sub_13FC7F104(v18);

  214.               v12 = v21;

  215.             }

  216.           }

  217.         }

  218.       }

  219.       while ( v14 );

  220.       if ( v7 )

  221.         sub_13FC728D0(v7);

  222.     }

  223.     v4 = v7;

  224.   }

  225.   return (unsigned int)v4;

  226. }

  227. __int64 __fastcall get_entity_type(int a1)

  228. {

  229.     __int64 result; // rax@1

  230.     signed int v2; // ecx@1

  231.     char v3;

  232.  

  233.     result = GetAddressOfEntity(a1);

  234.     v2 = 0;

  235.     if (result)

  236.     {

  237.         v3 = *(_BYTE *)(result + 40);

  238.         if (v3 == 4)

  239.         {

  240.             result = 1i64;

  241.         }

  242.         else if (v3 == 3)

  243.         {

  244.             result = 2i64;

  245.         }

  246.         else

  247.         {

  248.             if (v3 == 5)

  249.                 v2 = 3;

  250.             result = (unsigned int)v2;

  251.         }

  252.     }

  253.     return result;

  254. }

  255.  

  256. char __fastcall is_model_a_vehicle(__int64 a1)

  257. {

  258.     char v1; // bl@1

  259.     __int64 v2; // rax@1

  260.     int v4; // [sp+38h] [bp+10h]@1

  261.    

  262.     v1 = 0;

  263.     v4 = 0xFFFF;

  264.     LODWORD(v2) = sub_7FF601C276A4(a1, &v4);

  265.     if (v2)

  266.     {

  267.         v1 = 0;

  268.         if ((*(_BYTE *)(v2 + 157) & 0x1F) == 5)

  269.             v1 = 1;

  270.     }

  271.     return v1;

  272. }

  273.  

  274. int64 PLAYER_ID()

  275. {

  276.     int64 v0; // rax@2

  277.     __int64 result; // rax@2

  278.    

  279.     if (byte_7FF602DDAB4E)

  280.     {

  281.         LODWORD(v0) = sub_7FF60170275C(off_7FF602370AA0);

  282.         result = *(_BYTE *)(v0 + 45);

  283.     }

  284.     else

  285.     {

  286.         result = 0i64;

  287.     }

  288.     return result;

  289. }

  290.  

  291.  

  292.  

  293.  

  294.  

  295. template<typename T>

  296. T Invoke(unsigned int a_uiNativeHash, unsigned int a_uiArgCount, ...)

  297. {

  298.     T* Result;

  299.  

  300.     va_list l_VaList;

  301.     unsigned int l_uiIndex;

  302.     unsigned int l_uiReadCount = 0;

  303.  

  304.     va_start(l_VaList, a_uiArgCount);

  305.     for (l_uiIndex = 0; l_uiIndex < 16; l_uiIndex++)

  306.     {

  307.         if (l_uiIndex < a_uiArgCount)

  308.             g_pArgs[l_uiIndex] = va_arg(l_VaList, unsigned int);

  309.         else

  310.             g_pArgs[l_uiIndex] = 0;

  311.     }

  312.     va_end(l_VaList);

  313.  

  314.     //DbgPrint("Calling: 0x%08X\n", a_uiNativeHash);

  315.  

  316.     if (a_uiNativeHash != PLAYER_ID_HASH)

  317.         ((void(*)(struct NativeArg*))GetNativeFunction(a_uiNativeHash))(&g_NativeArg);

  318.     else

  319.         Original_Player_ID(&g_NativeArg);

  320.  

  321.     Result = (T*)&g_pArgs[l_uiReadCount];

  322.  

  323.     l_uiReadCount += sizeof(T);

  324.     if ((sizeof(T) % 4) != 0)

  325.         l_uiReadCount += 4 - (sizeof(T) % 4);

  326.  

  327.     return *(T*)Result;

  328. }

  329.  

  330. void draw_menu(int a_iPosition, int a_iMenuItemCount, char ** a_pcMenu, char* a_pcTitle)

  331. {

  332.         GRAPHICS::DRAW_RECT(0.90f, 0.2f, 0.15f, 0.05f, 0xFF, 0, 0, 0x90);

  333.        

  334.         GRAPHICS::DRAW_RECT(0.90f, 0.225f + ((0.035f* (a_iMenuItemCount > 16 ? 16 : a_iMenuItemCount))/2), 0.15f, 0.035f* (a_iMenuItemCount > 16 ? 16 : a_iMenuItemCount), 0xFF, 0, 0, 0x30);

  335.         //GRAPHICS::DRAW_RECT(0.90f, 0.50f, 0.15f, 0.55f, 0xFF, 0, 0, 0x30);

  336.         PrintToScreen(a_pcTitle, 0.90f, 0.18f, 255, 255, 255, 255, 0.8f, 0.8f, 1, 1);

  337.  

  338.         if (a_iMenuItemCount < 16)

  339.         {

  340.                 GRAPHICS::DRAW_RECT(0.90f, 0.2425f + (float).035f*(a_iPosition), 0.15f, 0.035f, 0xFF, 0, 0, 0x80);

  341.                 for (int l_iIndex = 0; l_iIndex < a_iMenuItemCount; l_iIndex++)

  342.                 {                      

  343.                         PrintToScreen(a_pcMenu[l_iIndex], 0.90f, (0.2225f + (l_iIndex * .035f)), 255, 255, 255, 255, 0.4f, 0.4f, 1, 0);

  344.                 }

  345.         }

  346.         else

  347.         {

  348.                 if (a_iPosition < 7)

  349.                 {

  350.                         GRAPHICS::DRAW_RECT(0.90f, 0.2425f + (float).035f*(a_iPosition), 0.15f, 0.035f, 0xFF, 0, 0, 0x80);

  351.                         for (int l_iIndex = 0; l_iIndex < 16; l_iIndex++)

  352.                         {      

  353.                                 PrintToScreen(a_pcMenu[l_iIndex], 0.90f, (0.2225f + (l_iIndex * .035f)), 255, 255, 255, 255, 0.4f, 0.4f, 1, 0);

  354.                         }

  355.                 }

  356.                 else

  357.                 {

  358.                         if (a_iPosition < a_iMenuItemCount - 8)

  359.                         {

  360.                                 GRAPHICS::DRAW_RECT(0.90f, 0.2425f + (float).035f*(7), 0.15f, 0.035f, 0xFF, 0, 0, 0x80);

  361.                                 int l_iDrawIndex = 0;

  362.                                 for (int l_iIndex = a_iPosition - 7; l_iIndex < a_iPosition + 9; l_iIndex++)

  363.                                 {

  364.                                         PrintToScreen(a_pcMenu[l_iIndex], 0.90f, (0.2225f + (l_iDrawIndex* .035f)), 255, 255, 255, 255, 0.4f, 0.4f, 1, 0);

  365.                                         l_iDrawIndex++;

  366.                                 }

  367.                         }

  368.                         else

  369.                         {

  370.                                 GRAPHICS::DRAW_RECT(0.90f, 0.2425f + (float).035f*(16 - (a_iMenuItemCount - a_iPosition)), 0.15f, 0.035f, 0xFF, 0, 0, 0x80);

  371.                                 int l_iDrawIndex = 0;

  372.                                 for (int l_iIndex = a_iMenuItemCount - 16; l_iIndex < a_iMenuItemCount; l_iIndex++)

  373.                                 {

  374.                                         PrintToScreen(a_pcMenu[l_iIndex], 0.90f, (0.2225f + (l_iDrawIndex* .035f)), 255, 255, 255, 255, 0.4f, 0.4f, 1, 0);

  375.                                         l_iDrawIndex++;

  376.                                 }

  377.                         }

  378.                 }

  379.         }

  380. }

  381.  

  382. void PrintToScreen(char *str, float x, float y, int r, int g, int b, int a, float scaleX, float scaleY, int centerText, int font)

  383. {

  384.         UI::SET_TEXT_FONT(font);

  385.         UI::SET_TEXT_COLOUR(r, g, b, a);

  386.         UI::SET_TEXT_SCALE(scaleX, scaleY);

  387.         UI::SET_TEXT_OUTLINE();

  388.         UI::SET_TEXT_CENTRE(centerText);

  389.         UI::_SET_TEXT_ENTRY("STRING");

  390.         UI::_ADD_TEXT_COMPONENT_STRING(str);

  391.         UI::_DRAW_TEXT(x, y);

  392. }

  393.  

  394. void HeistHUD(char* text)

  395. {

  396.  

  397. }

  398. void InfoMessage(char* text)

  399. {

  400.  

  401. }

  402.  

  403. void MPMESSAGE(char* msg, char* desc)

  404. {

  405.     featureBigMPMessge = true;

  406.     BigMPMessagemgs = msg;

  407.     BigMPMessagedesc = desc;

  408.     PLAY_SOUND_FRONTEND(-1, "RACE_PLACED", "HUD_AWARDS");

  409. }

  410.  

  411. if (featureBigMPMessge)

  412.     {

  413.         if (!HAS_SCALEFORM_MOVIE_LOADED(SFBigMPMessage))

  414.             SFBigMPMessage = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");

  415.         else

  416.         {

  417.             if (GET_GAME_TIMER() > featureTimeMPMessage) {

  418.                 featureTimeMPMessage = GET_GAME_TIMER() + 20;

  419.                 _PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE"); //SHOW_SHARD_CENTERED_TOP_MP_MESSAGE

  420.                 set_text_component(BigMPMessagemgs);

  421.                 set_text_component(BigMPMessagedesc);

  422.                 _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  423.                 DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBigMPMessage, 255, 255, 255, 255);

  424.                 if (_BigMPMessagetime == 40) {

  425.                     _PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "TRANSITION_UP");

  426.                     _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  427.                     SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBigMPMessage);

  428.                     featureBigMPMessge = false;

  429.                     _BigMPMessagetime = 0;

  430.                 }

  431.                 else

  432.                     _BigMPMessagetime++;

  433.             }

  434.         }

  435.     }

  436.  

  437. case 5: MPMESSAGE("ROULETTE", "coding like a rockstar"); break;

  438.  

  439.  

  440.  

  441. bool _scaleformFadeTimerEnabled = 0;

  442.     int SFBMPM;

  443.     DWORD _scaleformFadeTimerWaiter = 0;

  444.     if (_scaleformFadeTimerEnabled)

  445.     {

  446.         if (!HAS_SCALEFORM_MOVIE_LOADED(SFBMPM))

  447.             SFBMPM = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");

  448.         else

  449.         {

  450.  

  451.             _scaleformFadeTimerWaiter = GET_GAME_TIMER() + 2000;

  452.             _PUSH_SCALEFORM_MOVIE_FUNCTION(SFBMPM, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE" /*titleStr, msgStr, rankNumber, emblemTXD, emblemTXN, alpha*/); //SHOW_SHARD_CENTERED_TOP_MP_MESSAGE

  453.             _BEGIN_TEXT_COMPONENT("STRING");

  454.             ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("TheRouletteBoi");

  455.             _END_TEXT_COMPONENT();

  456.             _BEGIN_TEXT_COMPONENT("STRING");

  457.             ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("ROULETTE");

  458.             _END_TEXT_COMPONENT();

  459.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  460.             DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBMPM, 255, 255, 255, 255);

  461.             if (GET_GAME_TIMER() > _scaleformFadeTimerWaiter)

  462.             {

  463.                 _PUSH_SCALEFORM_MOVIE_FUNCTION(SFBMPM, "TRANSITION_UP");

  464.                 _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(0.2000000/*duration*/);

  465.                 _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  466.                 SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBMPM);

  467.                 _scaleformFadeTimerEnabled = false;

  468.             }

  469.         }

  470.     }

  471.  

  472.  

  473.  

  474. case 11: SET_WARNING_MESSAGE("Panic Mode is enabled.", 3, "Press square and triange to disable Panic Mode.", false, -1, 0, 0, true);

  475. //Panic Mode is enabled.

  476. //While this is enabled, most malicous action taken against you by a malicious cheater, such as object attachment and cash attempts, will fail to execute. Please note: this does not prevent a malicous cheater from framing you. For security reasons, you wil not be able to move, visually witness any activity, or utilize the Pause Menu while this mode is active.

  477. //Press square and triange to disable Panic Mode.

  478. //http://steamcommunity.com/id/clarexobearrx3/screenshots/

  479. break;

  480.  

  481.  

  482. Vector3 rot_to_direction(Vector3* rot)

  483. {

  484.     float radiansZ = rot->z * 0.0174532924f;

  485.     float radiansX = rot->x * 0.0174532924f;

  486.     float num = ABSF((float)COS((double)radiansX));

  487.     Vector3 dir;

  488.     dir.x = (float)((double)((float)(-(float)SIN((double)radiansZ))) * (double)num);

  489.     dir.y = (float)((double)((float)COS((double)radiansZ)) * (double)num);

  490.     dir.z = (float)SIN((double)radiansX);

  491.     return dir;

  492. }

  493.  

  494. Vector3 add(Vector3* vectorA, Vector3* vectorB)

  495. {

  496.     Vector3 result;

  497.     result.x = vectorA->x;

  498.     result.y = vectorA->y;

  499.     result.z = vectorA->z;

  500.  

  501.     result.x += vectorB->x;

  502.     result.y += vectorB->y;

  503.     result.z += vectorB->z;

  504.  

  505.     return result;

  506. }

  507. Vector3 multiply(Vector3* vector, float x)

  508. {

  509.     Vector3 result;

  510.     result.x = vector->x;

  511.     result.y = vector->y;

  512.     result.z = vector->z;

  513.  

  514.     result.x *= x;

  515.     result.y *= x;

  516.     result.z *= x;

  517.  

  518.     return result;

  519. }

  520. float get_distance(Vector3* pointA, Vector3* pointB)

  521. {

  522.     float a_x = pointA->x;

  523.     float a_y = pointA->y;

  524.     float a_z = pointA->z;

  525.  

  526.     float b_x = pointB->x;

  527.     float b_y = pointB->y;

  528.     float b_z = pointB->z;

  529.  

  530.     double x_ba = (double)(b_x - a_x);

  531.     double y_ba = (double)(b_y - a_y);

  532.     double z_ba = (double)(b_z - a_z);

  533.  

  534.     double y_2 = y_ba * y_ba;

  535.     double x_2 = x_ba * x_ba;

  536.     double sum_2 = y_2 + x_2;

  537.  

  538.     return (float)sqrt(sum_2 + z_ba);

  539. }

  540.  

  541. float get_vector_length(Vector3* vector)

  542. {

  543.     double x = (double)vector->x;

  544.     double y = (double)vector->y;

  545.     double z = (double)vector->z;

  546.  

  547.     return (float)sqrt(x * x + y * y + z * z);

  548. }

  549.  

  550.  

  551.  

  552.  

  553. void UpdateBusySpinner()

  554.     {

  555.         /*func_83(P);

  556.         if (_0xF6015178("SHOW_WARNING_MESSAGE"))

  557.         {

  558.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_BOOL(uParam0);

  559.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(uParam1);

  560.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(uParam2);

  561.  

  562.             _BEGIN_TEXT_COMPONENT("STRING");

  563.             ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("Loading, Please wait.");

  564.             _END_TEXT_COMPONENT();

  565.  

  566.  

  567.             _BEGIN_TEXT_COMPONENT("STRING");

  568.             ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("LOADING DONE!");

  569.             _END_TEXT_COMPONENT();

  570.  

  571.  

  572.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(uParam5);

  573.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_STRING(uParam6);

  574.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_STRING(uParam7);

  575.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  576.         }*/

  577.  

  578.         if (!HAS_SCALEFORM_MOVIE_LOADED(SFMBS))

  579.             SFMBS = REQUEST_SCALEFORM_MOVIE("busy_spinner");

  580.         else

  581.         {

  582.             _PUSH_SCALEFORM_MOVIE_FUNCTION(SFMBS, "CLEAR_ALL");

  583.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  584.             _PUSH_SCALEFORM_MOVIE_FUNCTION(SFMBS, "SET_DATA_SLOT"); //  CREATE_CONTAINER

  585.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(0);

  586.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(LOADING_HALF_CIRCLE_RIGHT);

  587.             _BEGIN_TEXT_COMPONENT("STRING");

  588.             ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME("Loading, Please wait.");

  589.             _END_TEXT_COMPONENT();

  590.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  591.             _PUSH_SCALEFORM_MOVIE_FUNCTION(SFMBS, "DRAW_INSTRUCTIONAL_BUTTONS");

  592.             _PUSH_SCALEFORM_MOVIE_FUNCTION_PARAMETER_INT(-1);

  593.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  594.         }

  595.  

  596.  

  597.         /*if (!HAS_SCALEFORM_MOVIE_LOADED(SFMBS))

  598.             SFMBS = REQUEST_SCALEFORM_MOVIE("CUSTOM_WARNING_SCREEN");

  599.         else

  600.         {

  601.             //"BANNED FOR EVER."

  602.             //"BITCH YOU'VE BEEN BANNED."

  603.             _PUSH_SCALEFORM_MOVIE_FUNCTION(SFMBS, "SHOW_CUSTOM_WARNING_SCREEN");

  604.             _POP_SCALEFORM_MOVIE_FUNCTION_VOID();

  605.         }*/

  606.        

  607.  

  608.         DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFMBS, 255, 255, 255, 255);

  609.     }

  610.  

  611.  

  612. /*

  613.         WT_HEALTH //health

  614.         PS_SPEC_AB //special

  615.         LOB_CAT_9 //wanted levels

  616.         FMMC_NONE; //unavailable

  617.         FACE_HAIR; //Hair

  618.         FACE_BRD; //Beard

  619.         HLTH_REGEN2; //max health

  620.         LOB_CAT_9; //wanted levels

  621.         PIM_DHIGH0; off

  622.         PIM_DHIGH1; //on

  623.         MOD_MNU;

  624.         CELL_221; //enter number

  625.         HTX_ENTER; //enter

  626.         CM_SPECTATE spectate player (beta)

  627.         CM_SHOW_GAMER_CARD show profile

  628.         CMOD_MOD_22_D increase downforce.

  629.         cell_19 Players

  630.         cell_18 Map

  631.         cell_32 Qucik Save //for recovery menu

  632.         cell_35 Player List

  633.         CELL_MP_1001 invite to party

  634.         CELL_MP_1005 Player

  635.         CELL_MP_1007 View Profile

  636.         PM_MP_OPTIONS Options

  637.         PM_FRESES Join Friends

  638.         PM_CRESES Join Crew Members

  639.         PM_PLYRS Players

  640.         PM_SWAP_CHAR Swap Character

  641.         PM_FIND_SESS Find new Session

  642. UGC_FL_UNEX The Rockstar game services are unavailable right now. Please try again later.

  643. PM_MY_PLIST My Playlists

  644. PM_R_PLIST Rockstar Playlists

  645. PM_R_V_PLIST Rockstar Verified playlist

  646. PM_DLOAD_PLIST My Bookmarked Playlists

  647. PM_AVAIL_CHALL Challenges

  648. PM_MULTI x

  649. PM_CH_NM_AL Please choose a valid title for your Challenge.

  650. PM_CLMN_WRNT1 No Playlists

  651. PM_CREWS Crews

  652. PM_INF_AJ2T1 Bookmarked

  653. PM_INF_LEAT Leave

  654. PM_FIND_SESS Find New Session

  655. PM_INF_CHCT Choose Character

  656. PM_INF_PGOT Play GTA Online

  657. PM_INF_CRWT Crews

  658. PM_INF_AWDT Awards

  659. PM_INF_WEPT Weapons

  660. PM_INF_UNLT Unlocks

  661. PM_INF_PLLT Playlists

  662. PM_INF_PLLT00 R* Tournaments

  663. PM_INF_PLLT0 My Playlists

  664. PM_CLMN_WRNT5 No Challenges

  665. BM_INV_SENT Inviting Players

  666. BM_NO_INV No invites sent

  667. PIM_TINVE Inventory

  668. PIM_THELP Brief

  669. PIM_TOBJ Objective

  670. PM_INVO_FM Invite Only Session

  671. PM_GO Go

  672. PM_NCREW_FM Crew Session

  673. PM_CREW_FM Closed Crew Session

  674. PM_FRIEND_FM Closed Friend Session

  675. PM_SOLO_FM Solo Session

  676. PM_ON On

  677. PM_OFF Off

  678. PM_SHUFFLE Shuffle Playlist

  679. HUD_INVPROG Joining session in progress.

  680. R2P_MENU_TINV PLAYER LIST

  681. BLIP_0 Destination

  682. BLIP_1 Destination

  683. BLIP_2 Destination

  684. BLIP_3 Police

  685. BLIP_4 Objective

  686. BLIP_5 Objective

  687. BLIP_6 Player

  688. BLIP_7 North

  689. BLIP_8 Waypoint

  690. HUD_LOADMAIN rockstart game sercives are temportily unavailable

  691. HUD_KICKRES Kick from session for beeing idle too long

  692. HUD_KICKRES1 You were kicked from this GTA Online session by others players

  693. HUD_KICKRES2 you have been classed as a cheater

  694. //CM_JOIN_GAME Accept Game Invite

  695.         //CM_JIP_GAME Join Game

  696.         //CM_JIP_GAME_DIS Join Game (Disabled)

  697.         //CM_SPECTATE Spectate Player (BETA)

  698.         //CM_SPECTATE_DISABLED Spectate Player (Disabled by Player)

  699.         //CM_JOIN_PARTY Join Party

  700.         //CM_SEND_FRIEND_INVITE Send Friend Request

  701.         //CM_SEND_CREW_INVITE Invite to

  702.         //CM_SEND_PARTY_INVITE Send Party Invite

  703.         //CM_KICK_PARTY Kick from Party

  704.         //CM_SEND_GAME_INVITE Send Game Invite

  705.         //CM_SEND_GAME_INVITE_DIS  Send Game Invite (Disabled)

  706.         //CM_KICK_DIS Kick (Disabled)

  707.         //CM_UNKICK Unkick

  708.         //CM_REPORT Report

  709.         //CM_REPORT_DIS Report (Disabled)

  710.         //CM_COMMEND Commend

  711.         //CM_COMMEND_DIS Commend (Disabled)

  712.         //CM_MUTE Toggle Mute

  713.         //CM_SHOW_GAMER_CARD Show Profile

  714.         //CM_ADD_A_FRIEND Add A Friend

  715.         //CM_GAMER_REVIEW Player Review

  716.         //IB_JOINCREW Join Crew

  717.         //HUD_INPUT53 Back

  718.         //CC_PM_OPT OPTIONS

  719.         //CC_PM_DET DETAILS

  720.         //PM_SCR_CCY YOU

  721.         //CRW_MINE My Crews

  722.         //CRW_ROCKSTAR Suggested Crews

  723.         //CRW_FRIENDS Friends' Crews

  724.         //CRW_INVITES Invitations

  725.         //CRW_REQUESTS Requests

  726.         //CRW_LEADERBOARDS Leaderboard

  727.         //FM_COR_KICKOC You have been kicked from the Job. You are no loger on call.

  728.         //HUD_ENDKICK You were kicked from the session.

  729.         //HUD_ENDADMINKICK You Have been removed from this session by a Rockstar Games administrator.

  730.         //HUD_KICKROCK The session you were spectating is being assessed by Rockstar with a view to broadcasting that as an Online TV Channel.

  731.         //HUD_ROSBANNED You have been banned from Grand Theft Auto Online.

  732.         //HUD_KICKCREWMSG You were kicked from your Crew.  Global_1315377

  733.         //MP_PROP_PUR_KICK2 You no longer have access tp the property as the owner has left the game.

  734.         //MP_PROP_PUR_KICK0 You no longer have access to the property as you have traded it in.

  735.         //MP_PROP_PUR_KICK1 You no loger have access to the property as the owner has traded it.

  736.         //FM_COR_KICKA You have been kicked from the Activity

  737.         //FM_COR_KICK You have been kicked from the Job.

  738.         //PLYKICKED was voted from the game.           

  739. //SCTV_FEED0 Show Feed

  740.                 //SCTV_FEED1 Show List

  741.                 //SCTV_HELI_OFF Online TV Heli Off

  742.                 //SCTV_HELI_ON  Online TV Heli On

  743.                 //SCTV_TS_CTFG GTA - fighting for transport

  744.                 //SCTV_TS_CTFR Raid - protecting their base of operations

  745.                 //SCTV_TS_CTFC Contend - bringing it back to base

  746.                 //SCTV_TS_CTFH Hold - holding on for dear life

  747.                 //SCTV_TS_LTS2 Two Team LTS - in a two team enter one leaves situation

  748.                 //SCTV_TS_LTS3 Three Team LTS - in a three way.. battle for survival

  749.                 //SCTV_TS_LTS4 four Team LTS - unlikely to survive a four team fight

  750.                 //SCTV_T_LTS LTS

  751.                 //SCTV_T_VS versus

  752.                 //SCLB_MIS_NN Mission

  753.                 //SCTV_SSYOU has stopped spectating you.

  754.                 //SCTV_SYOU is spectating you.

  755.                 //DSV_TPLYS destroy the ~r~target vehicle.

  756.                 //PTD_TPLYSH took down the Smuggler Helicopter.

  757.                 //SCLB_PROFILE View Profile

  758.                 //SCLB_NO_ROS The Rockstar game services are unavailable right now. Please try again later.

  759.                 //SCLB_SIGN_OUT You have signed out of PlayStation Network and will be unable to view leaderboard data.

  760.                 //SCLB_NOT_ONL Sign in to Playstation Network to view leaderboards data.

  761.                 //FMMC_COR_SCLB5 Driver

  762.                 //FMMC_COR_SCLB6 Co-Driver

  763.                 //SCLB_C_RANK POSITION

  764.                 //SCLB_RCE_NN Race

  765. SCLB_GLOBAL GLOBAL

  766. SCLB_FRIENDS FRIENDS

  767. SCLB_CREW CREW

  768. SHOP_CONTENT_1 beach bum

  769. SHOP_CONTENT_2 business update

  770. SHOP_CONTENT_3 festive

  771. SHOP_CONTENT_4 valentine's

  772. SHOP_CONTENT_5 high life update

  773. SHOP_CONTENT_6 "im not a hipster"

  774. SHOP_CONTENT_6b "im not a hipster" update

  775. SHOP_CONTENT_7 heists

  776. SHOP_CONTENT_8 independence day

  777. SHOP_CONTENT_9 san andreas flight school

  778. SHOP_CONTENT_10 last team standing

  779. SHOP_CONTENT_12 ill-gotten gains update part 1

  780. SHOP_CONTENT_13 video edditor

  781. SHOP_CONTENT_14 ill-gotten gains update part 2

  782. PIM_INVAT Invite to Apartment has been send to .

  783. PIM_HINVAP Invite this player to your apartment.

  784. PIM_HINVA Invite players to your Apartment.

  785. PIM_INVAP Invite to Apartment.

  786. PIM_TINVE Inventory

  787. PIM_HHEIS Choose to Spectate other members of your Heist Crew.

  788. PIM_HHEIB Your Heist Crew cannot currently be spectated.

  789. PIM_HINVE Your Inventory contains carried oteams such as cash and clothing Accessories.

  790. PIM_HPASIY Confirm turning on Passive Mode.

  791. PIM_HPASIN Confrim turning off Passive Mode.

  792. PIM_HHLPL Make your blip flash to other players for a short time.

  793. PIM_HHLPR Make the selected player's blip flash to you for a short time.'

  794. PIM_HPGS A list of all the players in your session.

  795. PIM_HLJCE Cash earned from the last Job.

  796. PIM_HHEISP Select to spectate this player.

  797. PIM_TCHT Chat

  798. PIM_TAPV Vehicle Access.

  799. 0x1BA5E3C4 Rockstar wants to know what you

  800. 0xB9C144DB Unable to Join. The session you have tried to join is using content created by another player. An inactive profile only has permissions for Rockstar content.

  801. 0x41818A76 Your Sony Entertainment Network account has chat restrictions enabled, only Rockstar content will be available and voice chat is disabled.

  802. 0x2A199171 Cheater classification release date ~1~/~1~/~1~.

  803. 0x093ADE5F Rockstar Dev SCTV

  804. 0x0BD9B728 You have been removed from this session by a Rockstar Games administrator.

  805. 0x28DBEF47 Rockstar Game Services have corrected your GTA Dollars by -$~1~.

  806. 0xCF6AEAC0 Rockstar Games SCADMIN Version

  807. TICK_PH_INV joined job.

  808. TICK_PH_INVA joined activity.

  809. TICK_BC_ON has active their Broadcast app.

  810. TICK_BC_OFF has deactivated their Broadcast app.

  811. TICK_HEAD NULL

  812. TICK_DIED died.

  813. PIM_EMVTK kicked you from thier Personal Vehicle.

  814. TICK_BC_ON has activated thier Brodcast app.

  815. TICK_BC_OFF has deactivated thier Brodcast app.

  816. PLYVEH_INS_DES1 Your insured Personal Vehicle has been destroyed The player who destroyed it has paid $ towards the clain premium.

  817. PLYVEH_INS_DES has detroyed your insured Personal Vehicle They have paid $ towards the claim premium.

  818. TICK_PH_INV joined Job.

  819.  

  820.         */

  821.  

  822. COMMEND_SPAM_TIMEOUT_DISABLED = 0x6133E077

  823. COMMEND_SPAM_TIMEOUT = 0xA76D3517

  824. MPPLY_LAST_COMMEND_RESTORE = 0x181F07A6

  825. MPPLY_LAST_COMMEND_PENALTY = 0x8CF94EB4

  826. MPPLY_COMMEND_STRENGTH = 0xADA7E7D3

  827. REPORT_SPAM_TIMEOUT_DISABLED = 0x33406312

  828. REPORT_SPAM_TIMEOUT = 0x332F884E

  829. MPPLY_LAST_REPORT_RESTORE = 0x211774A4

  830. MPPLY_LAST_REPORT_PENALTY = 0xB87499EA

  831. MPPLY_REPORT_STRENGTH = 0x850CF917

  832. COMMEND_TIMEOUT_DISABLED = 0x73DC7AA3

  833. COMMEND_TIMEOUT = 0xABE83C3B

  834. REPORT_TIMEOUT_DISABLED = 0x7266E8B2

  835. REPORT_TIMEOUT = 0xA13B434D

  836. CL_SEND_FRIEND_REQUEST = 0xAFEA09C6

  837. KICK_TIMEOUT = 0xB2111FE4

  838. KICK_TIMEOUT_DISABLED = 0xD892E535

  839. IDLEKICK_KICK = 0x949C8AAD

  840. ENABLE_KICK = 0xE2E1805E

  841. KICK_VOTES_NEEDED_RATIO = 0xEED6D618

  842. BADSPORT_THRESHOLD = 0x4C507C3D

  843. BADSPORT_THRESHOLD_NOTCHEATER = 0x727F6777

  844. IDLEKICK_WARNING1 = 0xB3A4D684

  845. IDLEKICK_WARNING2 = 0xC16F7219

  846. IDLEKICK_WARNING3 = 0xE009AF49

  847. COMMENDREPORT_MAX_STRENGTH = 0xF227F666

  848. MP_GLOBAL = 0x38CEB237, 953070135

  849. BASE_GLOBALS = 0xB5EE873, 190769267

  850. CONTENT_MODIFIER_ = 0xE8895D8A, 3901316490

  851. MP_FM_RACES = 0xC32348A0, 3273869472

  852. MP_FM_RACES_CAR = 0x3D76C61B, 1031194139

  853. MP_FM_RACES_SEA = 0xCC580A3A, 3428321850

  854. MP_FM_RACES_AIR = 0xF4175CBB, 4095171771

  855. MP_FM_BASEJUMP = 0x30C5F8C6, 818280646

  856. MP_FM_RACES_CYCLE = 0xEA4446C2, 3930343106

  857. MP_FM_RACES_BIKE = 0xC795D7FC, 3348486140

  858. MP_FM_MISSIONS = 0x202DE323, 539878179

  859. MP_FM_CONTACT = 0xBDD1A4F5, 3184633077

  860. MP_FM_RANDOM = 0xAD9BAC56, 2912660566

  861. MP_FM_VERSUS = 0x56A36BC3, 1453550531

  862. MP_FM_LTS = 0xFCDE7FF3, 4242440179

  863. MP_FM_CAPTURE = 0xF508B799, 4110989209

  864. MP_FM_DM = 0x7030EBCC, 1882254284

  865. MP_FM_SURVIVAL = 0x2217A8F1, 571975921

  866. MP_FM_GANG_ATTACK = 0x67F82C09, 1744317449

  867. MP_CNC = 0x53599429, 1398379561

  868. MP_CNC_TEAM_COP = 0xEE611088, 3999338632

  869. MP_CNC_TEAM_VAGOS = 0xBB04D34F, 3137655631

  870. MP_CNC_TEAM_LOST = 0x3AEFBEA0, 988790432

  871. MP_FM = 0x43FE68BD, 1140746429

  872. DISABLE_SCTV_GTAO_TV = 0xB715B652, 3071653458

  873. DISABLE_SCTV_FRIENDS_SPECTATE = 0x74AFE8F8, 1957685496

  874. DisableSpectate = 0xCAB5C6A2, 3400910498

  875. DisableSpectate = 0x2A5A6D1F, 710569247

  876. mpply_crew_0_id = 0x1838E2E9, 406381289

  877. mpply_crew_1_id = 0x6388AA41, 1669900865

  878. mpply_crew_2_id = 0x33A7D8B, 54164875

  879. mpply_crew_3_id = 0xCDC93A60, 3452516960

  880. mpply_crew_4_id = 0xA202D7E4, 2718095332

  881. mpply_crew_local_xp_0 = 0xA9C0CB15, 2847984405

  882. mpply_crew_local_xp_1 = 0x9C0D2FAE, 2618109870

  883. mpply_crew_local_xp_2 = 0x4C579040, 1280806976

  884. mpply_crew_local_xp_3 = 0xBEA1F4D7, 3198285015

  885. mpply_crew_local_xp_4 = 0x70E5595B, 1894078811

  886. mpply_became_cheater_num = 0xA2A859D5, 2728942037

  887. mpply_friendly = 0xDAFB10F9, 3673886969

  888. mpply_offensive_language = 0x3CDB43E2, 1021002722

  889. mpply_griefing = 0x9C6A0C42, 2624195650

  890. mpply_helpful = 0x893E1390, 2302546832

  891. mpply_offensive_ugc = 0xF3DE4879, 4091431033

  892. mpply_offensive_tagplate = 0xE8FB6DD5, 3908791765

  893. mpply_exploits = 0x9F79BA0B, 2675554827

  894. mpply_game_exploits = 0xCBFD04A4, 3422356644

  895. mpply_vc_hate = 0xE7072CD, 242250445

  896. mpply_vc_annoyingme = 0x62EB8C5A, 1659604058

  897.  

  898.  

  899. //badsport and some cheat stuff hashes. need to be bruteforced

  900. 0x6D7F0859

  901. 0xBC707798

  902. 0xC71E28C5

  903.  

  904.  

  905.  

  906.  

  907. //vehicle weapons code:

  908. Vector3 Global_1312302_8; //coords from 1

  909.     Vector3 Global_1312302_11; //coords from 2

  910.  

  911.     Vector3 Global_1312302_2; //coords to 1

  912.     Vector3 Global_1312302_5; //coords to 2

  913.  

  914.     Vector3 Global_1312295_2; //spike coords

  915.     int Global_1312295_5; //spike pickup

  916.  

  917.     void func_3000()

  918.     {

  919.         int iVar0;

  920.         Vector3 Var1;

  921.         Vector3 Var2;

  922.         float fVar3;

  923.         float uVar4;

  924.         Vector3 vVar5;

  925.         Vector3 vVar6;

  926.         float uVar7;

  927.         Vector3 vVar8;

  928.         Vector3 vVar9;

  929.  

  930.  

  931.         if (IS_PLAYER_PLAYING(PLAYER_ID()))

  932.         {

  933.             if (IS_PED_IN_ANY_VEHICLE(PLAYER_PED_ID(), 0))

  934.             {

  935.                 _DISABLE_INPUT_GROUP(2);

  936.                 iVar0 = GET_VEHICLE_PED_IS_IN(PLAYER_PED_ID(), 0);

  937.                 GET_MODEL_DIMENSIONS(GET_ENTITY_MODEL(iVar0), &Var1, &Var2);

  938.                 if (IS_CONTROL_JUST_PRESSED(2, INPUT_SCRIPT_LS) || IS_CONTROL_PRESSED(2, INPUT_SCRIPT_LS))

  939.                 {

  940.                     if (IS_CONTROL_PRESSED(2, INPUT_SCRIPT_RS))

  941.                     {

  942.                         Global_1312302_8 = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iVar0, (Var1.x - 0.2f), (Var1.y - 0.5f), 0.0f);

  943.                         Global_1312302_11 = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iVar0, (Var2.x + 0.2f), (Var1.y - 0.5f), 0.0f);

  944.                         if (!IS_ENTITY_IN_AIR(iVar0))

  945.                         {

  946.                             _GET_GROUND_Z_COORD_WITH_OFFSETS(Global_1312302_8.x, Global_1312302_8.y, Global_1312302_8.z, &uVar4, &vVar5);

  947.                             vVar6 = func_363(vVar5, Subtract(func_765(Global_1312302_11), Global_1312302_8));

  948.                             Global_1312302_2 = Subtract(Global_1312302_8, Modulate(vVar6, NewVector3(300.0f, 300.0f, 300.0f)));

  949.                             Global_1312302_5 = Subtract(Global_1312302_11, Modulate(vVar6, NewVector3(300.0f, 300.0f, 300.0f)));

  950.                         }

  951.                         else

  952.                         {

  953.                             Global_1312302_2 = func_3001(Global_1312302_8, iVar0, -300.0f);

  954.                             Global_1312302_5 = func_3001(Global_1312302_11, iVar0, -300.0f);

  955.                         }

  956.                     }

  957.                     else

  958.                     {

  959. [color=#333333]                        Global_1312302_8 = GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(iVar0, (Var1.x - 0
Reply
#2
Jesus hell dude
What Is This Too lol
This account is currently banned
Ban reason: leeching and spamming
Reply
#3
What The Hell This its Just Shit
Disc = 0xemiil
Reply
#4
the fuck is this??
Reply
#5
Lol this looks like grabage
Reply

Users browsing: 1 Guest(s)