I try to use the default GTA 5 money system because I see a screen of player with money on FiveM !
I’m sure that is possible but for the moment no scripts allow this !
I have create a money drop but he doesn’t work !
RegisterNetEvent('admin:c_moneydrop')
local moneydrop = false
AddEventHandler('admin:c_moneydrop', function()
if (moneydrop == false) then
moneydrop = true
elseif (moneydrop == true) then
moneydrop = false
end
end)
Citizen.CreateThread(function()
while true do
Wait(50)
if (moneydrop == true) then
local playerPosition = GetEntityCoords(GetPlayerPed(-1))
CreateAmbientPickup(GetHashKey("PICKUP_MONEY_CASE"), playerPosition.x, playerPosition.y, playerPosition.z + 1.3, 0, 40000, 1, false, true)
end
end
end)
And in game:
Sorry for my english because i’m a baguette !