SA-MP Forums Archive
Saving Vehicle Health - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saving Vehicle Health (/showthread.php?tid=493981)



Saving Vehicle Health - Krakuski - 10.02.2014

Howdy ya'll,

Does anyone know if you are able to make it so a vehicle's health will save into a file, and then the next time it spawns/respawns, it will spawn with that amount of health?

Thanks! - Krakuski


Re: Saving Vehicle Health - Shockey HD - 10.02.2014

Yes you are able to.

Use the SetVehicleHealth and GetVehicleHealth function.

https://sampwiki.blast.hk/wiki/SetVehicleHealth

https://sampwiki.blast.hk/wiki/GetVehicleHealth