diff --git a/BigBaseV2/src/features/functions.cpp b/BigBaseV2/src/features/functions.cpp index 25df2dd0..f39a447f 100644 --- a/BigBaseV2/src/features/functions.cpp +++ b/BigBaseV2/src/features/functions.cpp @@ -227,4 +227,12 @@ namespace big::features::functions return -1; } + + void create_ambient_money(Vector3 location, int amount) + { + Hash hash = RAGE_JOAAT("PICKUP_MONEY_PAPER_BAG"); + + 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); + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/functions.hpp b/BigBaseV2/src/features/functions.hpp index cc54250f..7ac8b9ba 100644 --- a/BigBaseV2/src/features/functions.hpp +++ b/BigBaseV2/src/features/functions.hpp @@ -15,6 +15,8 @@ namespace big::features::functions Entity spawn_vehicle(const char* model, Vector3 location, float heading); + void create_ambient_money(Vector3 location, int amount); + bool take_control_of_entity(Entity ent); BOOL raycast_entity(Entity* ent); diff --git a/BigBaseV2/src/gui/player_window.cpp b/BigBaseV2/src/gui/player_window.cpp index 24efecd5..67f6905c 100644 --- a/BigBaseV2/src/gui/player_window.cpp +++ b/BigBaseV2/src/gui/player_window.cpp @@ -155,8 +155,7 @@ namespace big { Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_selectedPlayer.id), true); - OBJECT::CREATE_AMBIENT_PICKUP(0x1E9A99F8, coords.x, coords.y, coords.z + 0.5f, 0, rand() % 500 + 2000, (Hash)-1666779307, false, true); - STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED((Hash)-1666779307); + features::functions::create_ambient_money(coords, rand() % 500 + 2000); }QUEUE_JOB_END_CLAUSE }