open.mp forum
[Pawn] Problem with a fuel system when car respawn ... - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Problem with a fuel system when car respawn ... (/showthread.php?tid=1275)



Problem with a fuel system when car respawn ... - DaZzY - 2020-10-24

Hello ,?

I make a fuel system on my GM?

but i get a little problem when a vehicle unoccuppied respawn the fuel do not reset?

example when player leave a car with ?40 % of fuel and car respawn so car not respawn with 100 % of fuel ...

I don't know how to solve that

what a callback i must to use ?


RE: Problem with a fuel system when car respawn ... - Kwarde - 2020-10-25

OnVehicleSpawn() https://wiki.open.mp/docs/scripting/callbacks/OnVehicleSpawn