Ped iPed = PLAYER::PLAYER_PED_ID();
int amount = 2500;
if ((timeGetTime() - Features::TimePD1) > 250) // Time between drops
{
STREAMING::REQUEST_MODEL(0x42104CE9);
if (!STREAMING::HAS_MODEL_LOADED(0x42104CE9)) {
WAIT(0);
}
else {
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), FALSE);
OBJECT::CREATE_AMBIENT_PICKUP(0xDE78F17E, pos.x, pos.y, pos.z + 2.f, 0, 2500, GAMEPLAY::GET_HASH_KEY("0x42104CE9"), FALSE, TRUE);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(0x42104CE9);
Features::TimePD1 = timeGetTime();
}
}
}
if ((timeGetTime() - Features::TimePD2) > 250) // Time between drops
{
int amount = 2500;
Ped iPed = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(target);
STREAMING::REQUEST_MODEL(0x42104CE9);
if (!STREAMING::HAS_MODEL_LOADED(0x42104CE9)) {
WAIT(0);
}
else {
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), FALSE);
OBJECT::CREATE_AMBIENT_PICKUP(0xDE78F17E, pos.x, pos.y, pos.z + 2.f, 0, 2500, GAMEPLAY::GET_HASH_KEY("0x42104CE9"), FALSE, TRUE);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(0x42104CE9);
}
Features::TimePD2 = timeGetTime();
}
}
int amount = 2500;
if ((timeGetTime() - Features::TimePD1) > 250) // Time between drops
{
STREAMING::REQUEST_MODEL(0x42104CE9);
if (!STREAMING::HAS_MODEL_LOADED(0x42104CE9)) {
WAIT(0);
}
else {
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), FALSE);
OBJECT::CREATE_AMBIENT_PICKUP(0xDE78F17E, pos.x, pos.y, pos.z + 2.f, 0, 2500, GAMEPLAY::GET_HASH_KEY("0x42104CE9"), FALSE, TRUE);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(0x42104CE9);
Features::TimePD1 = timeGetTime();
}
}
}
if ((timeGetTime() - Features::TimePD2) > 250) // Time between drops
{
int amount = 2500;
Ped iPed = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(target);
STREAMING::REQUEST_MODEL(0x42104CE9);
if (!STREAMING::HAS_MODEL_LOADED(0x42104CE9)) {
WAIT(0);
}
else {
Vector3 pos = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), FALSE);
OBJECT::CREATE_AMBIENT_PICKUP(0xDE78F17E, pos.x, pos.y, pos.z + 2.f, 0, 2500, GAMEPLAY::GET_HASH_KEY("0x42104CE9"), FALSE, TRUE);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(0x42104CE9);
}
Features::TimePD2 = timeGetTime();
}
}