OnVehicleRespray. - 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: OnVehicleRespray. (
/showthread.php?tid=360860)
OnVehicleRespray. -
budelis - 19.07.2012
Hi. Why when i respray my car this callback is not call? just when i change color in vehicle tuning menu, then this callback is call. But when i simple respray car no.
Re: OnVehicleRespray. -
L.Hudson - 19.07.2012
Do you have the 0.3e pack?
Re: OnVehicleRespray. -
MP2 - 19.07.2012
OnVehicleRespray is only called when a vehicle's colors are changed in a
mod shop. Learn to wiki.
https://sampwiki.blast.hk/wiki/OnVehicleRespray
To detect pay 'n' spray you will have to set vehicles' health to 999 on spawn (hook CreateVehicle/AddStaticVehicle(Ex) and use OnVehicleSpawn) and if it increases to 1000 they pay 'n' spray'd, and you can set it back to 999.
Re: OnVehicleRespray. -
budelis - 19.07.2012
I need to set some variables to zero, when player car get repair.
Re: OnVehicleRespray. -
budelis - 20.07.2012
Next thing. How much tunings zones is in all san andreas? i count 5 is it right?
Re: OnVehicleRespray. -
newbienoob - 20.07.2012
Yes, there are 5 tuning/modding shops in San Andreas.
3 Transfenders (LS,SF,LV)
1 Wheel Arch Angle (SF)
1 Loco low (LS)
Re: OnVehicleRespray. -
budelis - 22.07.2012
If i change color with pawno function: ChangeVehicleColor:
Is this callback: OnVehicleRespray will be called?
Re: OnVehicleRespray. -
Mike.FTW - 22.07.2012
Quote:
Originally Posted by budelis
If i change color with pawno function: ChangeVehicleColor:
Is this callback: OnVehicleRespray will be called?
|
No. I tested it.
Re: OnVehicleRespray. -
budelis - 22.07.2012
Thanks. Other thing. How to make when player respray the car, the car color will not change. I was do it, but i don't remeber now how.
Re: OnVehicleRespray. -
Dan. - 22.07.2012
If he enters a p'N's, so far as I know, the color wont change.