SA-MP Forums Archive
Setting the vehicle's health constantly? - 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: Setting the vehicle's health constantly? (/showthread.php?tid=391040)



Setting the vehicle's health constantly? - mSlat3r - 09.11.2012

So, Im looking in doing a Vehicle Health Hack system

How can I make any vehicle's created, the health will be set to 999, I know I can do SetVehicleHealth, but would I do this on VehicleStreamIn? Or what? Since I could create a loop for the max vehicles and set all the vehicles HP to 999, but I have no idea where to place it

Thanks


Re: Setting the vehicle's health constantly? - nmader - 09.11.2012

Perhaps under OnVehicleSpawn would make sense.


Re: Setting the vehicle's health constantly? - mSlat3r - 09.11.2012

Thank you!