feat(Functions): Added cage ped
This commit is contained in:
parent
73d378a7e6
commit
3fe2e840ad
@ -235,4 +235,12 @@ namespace big::features::functions
|
||||
OBJECT::CREATE_AMBIENT_PICKUP(hash, location.x, location.y, location.z + 0.5f, 0, amount, hash, false, true);
|
||||
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
|
||||
}
|
||||
|
||||
void cage_ped(Ped ped)
|
||||
{
|
||||
Hash hash = RAGE_JOAAT("prop_gold_cont_01");
|
||||
|
||||
Vector3 location = ENTITY::GET_ENTITY_COORDS(ped, true);
|
||||
OBJECT::CREATE_OBJECT(hash, location.x, location.y, location.z - 1.f, true, false, false);
|
||||
}
|
||||
}
|
@ -16,6 +16,7 @@ namespace big::features::functions
|
||||
Entity spawn_vehicle(const char* model, Vector3 location, float heading);
|
||||
|
||||
void create_ambient_money(Vector3 location, int amount);
|
||||
void cage_ped(Ped ped);
|
||||
|
||||
bool take_control_of_entity(Entity ent);
|
||||
|
||||
|
Reference in New Issue
Block a user