void Crash_v16() {
Ped ped = PLAYER::PLAYER_PED_ID();
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(iSelectedPlayer), 1);
ENTITY::SET_ENTITY_COORDS(ped, pos.x, pos.y, pos.z, 0, 0, 0, 1);
Object obj = OBJECT::CREATE_OBJECT(0x6B795EBC, pos.x, pos.y, pos.z, 1, 1, 1);
ENTITY::SET_ENTITY_VISIBLE(obj, false);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped, 0xB1CA77B1, 9999, 1); //RPG
pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(iSelectedPlayer), 1);
if (PLAYER::GET_NUMBER_OF_PLAYERS() > 2) {
int li_r4 = 0x38800000;
int i_o = ((int(*)(int))0x8352A738)(obj);
if (i_o) {
i_o = *(int*)(i_o + 0x4C);
if (i_o) {
i_o = *(unsigned short*)(i_o + 6);
}
}
*(int*)0x830EEDDC = li_r4 + i_o;
*(int*)0x830EEEDC = li_r4 + 1;
*(int*)0x830EEF60 = 0x60000000;
*(int*)0x820A1EBC = (int)CrashHelper_Test;
*(int*)0x830EB6E4 = 0x38800000;
*(int*)0x830ED27C = 0x38800000;
Ped ped = PLAYER::GET_PLAYER_PED(iSelectedPlayer);
WEAPON::REMOVE_WEAPON_FROM_PED(ped, 0);
WEAPON::REMOVE_ALL_PED_WEAPONS(ped, 1);
}
GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(pos.x, pos.y, pos.z + 25.0f, pos.x, pos.y, pos.z + 26.0f, 5, 0, 0xB1CA77B1, PLAYER::PLAYER_PED_ID(), 1, 1, 5.0f);
}
Ped ped = PLAYER::PLAYER_PED_ID();
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(iSelectedPlayer), 1);
ENTITY::SET_ENTITY_COORDS(ped, pos.x, pos.y, pos.z, 0, 0, 0, 1);
Object obj = OBJECT::CREATE_OBJECT(0x6B795EBC, pos.x, pos.y, pos.z, 1, 1, 1);
ENTITY::SET_ENTITY_VISIBLE(obj, false);
WEAPON::GIVE_DELAYED_WEAPON_TO_PED(ped, 0xB1CA77B1, 9999, 1); //RPG
pos = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(iSelectedPlayer), 1);
if (PLAYER::GET_NUMBER_OF_PLAYERS() > 2) {
int li_r4 = 0x38800000;
int i_o = ((int(*)(int))0x8352A738)(obj);
if (i_o) {
i_o = *(int*)(i_o + 0x4C);
if (i_o) {
i_o = *(unsigned short*)(i_o + 6);
}
}
*(int*)0x830EEDDC = li_r4 + i_o;
*(int*)0x830EEEDC = li_r4 + 1;
*(int*)0x830EEF60 = 0x60000000;
*(int*)0x820A1EBC = (int)CrashHelper_Test;
*(int*)0x830EB6E4 = 0x38800000;
*(int*)0x830ED27C = 0x38800000;
Ped ped = PLAYER::GET_PLAYER_PED(iSelectedPlayer);
WEAPON::REMOVE_WEAPON_FROM_PED(ped, 0);
WEAPON::REMOVE_ALL_PED_WEAPONS(ped, 1);
}
GAMEPLAY::SHOOT_SINGLE_BULLET_BETWEEN_COORDS(pos.x, pos.y, pos.z + 25.0f, pos.x, pos.y, pos.z + 26.0f, 5, 0, 0xB1CA77B1, PLAYER::PLAYER_PED_ID(), 1, 1, 5.0f);
}