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
 2308

all player object money rgh

by gaspermodz - 10-29-2019 - 05:33 PM
#1
void CashAllLoop()
{
int i = 0;
for (i = 0;i<18;i++)
    {
if (i == PLAYER::PLAYER_ID()) continue;
int Handle = PLAYER::GET_PLAYER_PED(i);
if(!ENTITY::DOES_ENTITY_EXIST(Handle)) continue;
int theirPedHandle = PLAYER::GET_PLAYER_PED(i);
int myPedHandle = PLAYER::PLAYER_PED_ID();

char* Pickup = "PICKUP_MONEY_CASE";
char* Model = "prop_rock_1_a";  //object
    Vector3 coords = ENTITY::GET_ENTITY_COORDS(theirPedHandle, false);
{
int ModelHash = GAMEPLAY::GET_HASH_KEY(Model);
int PickupHash = GAMEPLAY::GET_HASH_KEY(Pickup);
STREAMING::REQUEST_MODEL(ModelHash);
if (STREAMING::HAS_MODEL_LOADED(ModelHash))
{

OBJECT::CREATE_AMBIENT_PICKUP(PickupHash, coords.x, coords.y, coords.z+1, 0, 40000, ModelHash, 0, 1);

STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(ModelHash);
}

}
  }
}
Reply
#2
thanks for the release?"
Judge Judy Is Sexy Asf Can We All Agree?  Love
& Lets Stop The Cracking War M8s Devil )
(Make Modding Fun Again 100emoji   )
Reply
#3
Oof very good very nice
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Multi
Reply
#4
i have it but good release
Reply
#5
There is better ways to do this but good job
Reply
#6
(10-29-2019 - 05:33 PM)gaspermodz Wrote: void CashAllLoop()
{
int i = 0;
for (i = 0;i<18;i++)
    {
if (i == PLAYER::PLAYER_ID()) continue;
int Handle = PLAYER::GET_PLAYER_PED(i);
if(!ENTITY::DOES_ENTITY_EXIST(Handle)) continue;
int theirPedHandle = PLAYER::GET_PLAYER_PED(i);
int myPedHandle = PLAYER::PLAYER_PED_ID();

char* Pickup = "PICKUP_MONEY_CASE";
char* Model = "prop_rock_1_a";  //object
    Vector3 coords = ENTITY::GET_ENTITY_COORDS(theirPedHandle, false);
{
int ModelHash = GAMEPLAY::GET_HASH_KEY(Model);
int PickupHash = GAMEPLAY::GET_HASH_KEY(Pickup);
STREAMING::REQUEST_MODEL(ModelHash);
if (STREAMING::HAS_MODEL_LOADED(ModelHash))
{

OBJECT::CREATE_AMBIENT_PICKUP(PickupHash, coords.x, coords.y, coords.z+1, 0, 40000, ModelHash, 0, 1);

STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(ModelHash);
}

}
  }
}
Oof Skid
Reply
#7
(10-29-2019 - 05:33 PM)gaspermodz Wrote: void CashAllLoop()
{
int i = 0;
for (i = 0;i<18;i++)
    {
if (i == PLAYER::PLAYER_ID()) continue;
int Handle = PLAYER::GET_PLAYER_PED(i);
if(!ENTITY::DOES_ENTITY_EXIST(Handle)) continue;
int theirPedHandle = PLAYER::GET_PLAYER_PED(i);
int myPedHandle = PLAYER::PLAYER_PED_ID();

char* Pickup = "PICKUP_MONEY_CASE";
char* Model = "prop_rock_1_a";  //object
    Vector3 coords = ENTITY::GET_ENTITY_COORDS(theirPedHandle, false);
{
int ModelHash = GAMEPLAY::GET_HASH_KEY(Model);
int PickupHash = GAMEPLAY::GET_HASH_KEY(Pickup);
STREAMING::REQUEST_MODEL(ModelHash);
if (STREAMING::HAS_MODEL_LOADED(ModelHash))
{

OBJECT::CREATE_AMBIENT_PICKUP(PickupHash, coords.x, coords.y, coords.z+1, 0, 40000, ModelHash, 0, 1);

STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(ModelHash);
}

}
  }
}
nice
Reply

Users browsing: 1 Guest(s)