diff --git a/BigBaseV2/src/features/functions.cpp b/BigBaseV2/src/features/functions.cpp index f39a447f..1bd534a1 100644 --- a/BigBaseV2/src/features/functions.cpp +++ b/BigBaseV2/src/features/functions.cpp @@ -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); + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/functions.hpp b/BigBaseV2/src/features/functions.hpp index 7ac8b9ba..3934d7c8 100644 --- a/BigBaseV2/src/features/functions.hpp +++ b/BigBaseV2/src/features/functions.hpp @@ -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);