Does anyone know how to set the stats in the new update

So i see FiveM launched a new update and now server owners can set peoples stats anyone know how to do this?

With natives such as: StatSetInt(statName, value, save)
https://runtime.fivem.net/doc/reference.html#_0x4B33C4243DE0C432

Example:
Using StatSetInt("MP0_WALLET_BALANCE", 500, true) will give you:

https://illusivetea.me/WhyIsThereSoManyFuckingRpServers/41646K3er.png

(Native money!)

3 Likes

Hey there, once setting the stat, I only see the money in the pause menu. How do I tell the native hud to stay on display forever?
I tried SetMultiplayerBankCash() in a loop but I crashed the client :stuck_out_tongue:

Try display cash or show a hud component iirc

This kinda works, but it lets the hud fade out and makes it reappear, not actually fixed

Citizen.CreateThread(function()
	while true do
		Wait(1)
		if not IsHudComponentActive(4) and GetPlayerPed(-1) then
			ShowHudComponentThisFrame(4)
		end
	end
end)