feat(Functions): Added cage ped

This commit is contained in:
Yimura 2021-01-15 02:19:29 +01:00
parent 73d378a7e6
commit 3fe2e840ad
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 9 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);