In Vdk_Inventory in server.lua ^^
thank you verry Munch
but i have a problem i don’t have the UI in game, i don’t saw the DirtyMoney icon and amount
Does it work for anyone? We can have a small screen to see what it gives
Doesn’t work for me can’t see dirty money at all.
Same for me, rcon command does not work, no display of dirty money … hope that the problem is resolved.
edit: rcon work but no display
No dirty money HUD display…
I will check this. I probably missed something in the ui.html
It will be fixed
Any idea for this one ? Cause I don’t have dirty money display on hud
me too, I think there is an error in the ui.html
Have you prepared it? I need it for my server
The ui HUD is display for you ?
Yes
Can you put the script in .rar or .zip here please ?
es_free or es_roleplay ?
I have Es_freeroam
sorry i have es_roleplay which is very different de es_free
Me too I have es_roleplay
–> es_roleplay\server\roleplay_area.lua
line 86
RegisterServerEvent('es_roleplay:spawn')
AddEventHandler('es_roleplay:spawn', function()
TriggerEvent('es:getPlayerFromId', source, function(user)
if(user)then
TriggerClientEvent('es:activateMoney', source, user.money)
TriggerClientEvent('es:activatedirtyMoney', source, user.dirty_money)
end
end)
local pos = nil
if(game.secondaryArea)then
local spawns = MergeTable(game.currentArea.spawns, game.secondaryArea.spawns)
pos = spawns[ math.random( #spawns ) ]
else
pos = game.currentArea.spawns[ math.random( #game.currentArea.spawns ) ]
end
local model = "mp_m_freemode_01"
TriggerClientEvent('es_roleplay:spawnPlayer', source, pos.x, pos.y, pos.z, model)
end)