So I've been facing the issue that on every gamemode's map change or an gamemode change, the player's money is set to 0. I stopped all resources and started only the gamemode resource, it's map, mapmanager. Changed the map and it still didn't work. So I guess the money is being set by some MTA script. Is there any way I can prevent this from happening?
How can I get the some of money of players in a specific team? Maybe something like this?
function checkMoney (team)
local players = getPlayersInTeam(team)
for i,v in ipairs(players) do
money = getPlayerMoney(v)
end
end
I drew a circle on top right corner of screen. But it doesn't fit on all resolutions, any please help me with it?
sWidth, sHeight = guiGetScreenSize()
function circle()
dxDrawCircle( sWidth-130, sHeight*(158/1080), 100, 5, 1, 0, 360, tocolor(0,0,0,255) )
end
addEventHandler("onClientRender", root, renderHealth2)
Is there any function which I can use to fade sound? Like a sound is being played and after an event it fades (from high volume to low volume and then mute).