local DropMoney = {}
function DropMoney.tick()
local playerPed = PLAYER.PLAYER_PED_ID()
local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed)
if(playerExists) then
if(get_key_pressed(107)) then
print("Money")
local prop_bag = GAMEPLAY.GET_HASH_KEY("prop_money_bag_01")
STREAMING.REQUEST_MODEL(prop_bag)
local player = PLAYER.GET_PLAYER_PED(playerPed)
local playerPosition = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), false)
if(STREAMING.HAS_MODEL_LOADED(prop_bag)) then
OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_CASE"), playerPosition.x, playerPosition.y+5, playerPosition.z, 0, 40000, prop_bag, false, true)
end
end
end
end
return DropMoney
or whatever can you tell it to me pls thank you