OnVehicleRespray.
#1

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.

Код:
OnVehicleRespray
Reply
#2

Do you have the 0.3e pack?
Reply
#3

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.
Reply
#4

I need to set some variables to zero, when player car get repair.
Reply
#5

Next thing. How much tunings zones is in all san andreas? i count 5 is it right?
Reply
#6

Yes, there are 5 tuning/modding shops in San Andreas.
3 Transfenders (LS,SF,LV)
1 Wheel Arch Angle (SF)
1 Loco low (LS)
Reply
#7

If i change color with pawno function: ChangeVehicleColor:

Is this callback: OnVehicleRespray will be called?
Reply
#8

Quote:
Originally Posted by budelis
Посмотреть сообщение
If i change color with pawno function: ChangeVehicleColor:

Is this callback: OnVehicleRespray will be called?
No. I tested it.
Reply
#9

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.
Reply
#10

If he enters a p'N's, so far as I know, the color wont change.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)