can anyone help me with the 2.5k drop code? , im new to gta 5 coding , i need some assistance ofc, if anyone willing to help , it will be highly appreciated :D
(10-02-2018 - 02:05 PM)shandor96 Wrote:(10-02-2018 - 01:03 PM)Bandit33800 Wrote: for which platform?
PC probably
only on PC have this issue with 2,5k
as far I know
it's always better to ask since most of them forgot to specify the platform on which their questions
(10-02-2018 - 06:59 PM)depreseedddd Wrote:(10-02-2018 - 01:03 PM)Bandit33800 Wrote: for which platform?
for pc , as 2k drops are patched
no the 2k is not patched
at each update of the game, some things must be updated in your codings option
void moneyDrop(Player player)
{
const uint32_t prop = 2628187989ul;
const uint32_t pkup = 3ul; //if you use the index and not the hash (undetected)
Entity entity = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player);
if (ENTITY::DOES_ENTITY_EXIST(entity))
{
if (!STREAMING::HAS_MODEL_LOADED(prop))
STREAMING::REQUEST_MODEL(prop);
else
{
Vector3 pos = ENTITY::GET_ENTITY_COORDS(entity, false);
Pickup cashBag = OBJECT::CREATE_AMBIENT_PICKUP(pkup, pos.x, pos.y, pos.z + 1.5f, 0, 2500, prop, false, true, true);
if (cashBag) ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED(&cashBag);
}
}
}
{
const uint32_t prop = 2628187989ul;
const uint32_t pkup = 3ul; //if you use the index and not the hash (undetected)
Entity entity = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player);
if (ENTITY::DOES_ENTITY_EXIST(entity))
{
if (!STREAMING::HAS_MODEL_LOADED(prop))
STREAMING::REQUEST_MODEL(prop);
else
{
Vector3 pos = ENTITY::GET_ENTITY_COORDS(entity, false);
Pickup cashBag = OBJECT::CREATE_AMBIENT_PICKUP(pkup, pos.x, pos.y, pos.z + 1.5f, 0, 2500, prop, false, true, true);
if (cashBag) ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED(&cashBag);
}
}
}
(10-03-2018 - 12:49 AM)give-two Wrote: void moneyDrop(Player player)great code :D , thanks a lot
{
const uint32_t prop = 2628187989ul;
const uint32_t pkup = 3ul; //if you use the index and not the hash (undetected)
Entity entity = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(player);
if (ENTITY::DOES_ENTITY_EXIST(entity))
{
if (!STREAMING::HAS_MODEL_LOADED(prop))
STREAMING::REQUEST_MODEL(prop);
else
{
Vector3 pos = ENTITY::GET_ENTITY_COORDS(entity, false);
Pickup cashBag = OBJECT::CREATE_AMBIENT_PICKUP(pkup, pos.x, pos.y, pos.z + 1.5f, 0, 2500, prop, false, true, true);
if (cashBag) ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED(&cashBag);
}
}
}
Users browsing: 5 Guest(s)