- A loadingbar that will execute a callback after a certain amount of time.
cd resources
git clone https://github.com/qalle-fivem/t0sic_loadingbar
- Download from this.
- Add this to your
server.cfg
:
start t0sic_loadingbar
- This will make a progressbar with the title
Taking bandage...
and it will executeSetEntityHealth
after10000ms
exports["t0sic_loadingbar"]:StartDelayedFunction("Taking bandage...", 10000, function()
SetEntityHealth(PlayerPedId(), GetPedMaxHealth(PlayerPedId()))
end)