OnVehicleMod - 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: OnVehicleMod (
/showthread.php?tid=555183)
OnVehicleMod -
Zaila - 06.01.2015
Got a question regarding OnVehicleMod would like to hear how it is working for others that have been using it.
Simply, whenever you used it, was it called only when you 'purchased' a tuning component or was it also called for you when you were previewing a tuning component (checking how it looks like)?
The reason why i'm asking this is because i've been working with OnVehicleMod whole evening and before, it was earlier this evening, it was being called both when previewing a tuning component and when 'purchasing' a tuning component for me but now, it's just being called when 'purchasing' a tuning component.
Re: OnVehicleMod -
Rufio - 06.01.2015
Hello there,
According to wiki, it gets called
when a vehicle is modded.
As you can see here,
https://sampwiki.blast.hk/wiki/OnVehicleMod
Re: OnVehicleMod -
Zaila - 06.01.2015
Yes, i have checked it but in theory, the vehicle is modded aswell when previewing the tuning component and it is not clear if it's only called during the purchase or during the preview aswell which is why i'm asking here.
Re: OnVehicleMod -
PowerPC603 - 07.01.2015
OnVehicleMod is called when you actually buy the component, not during the preview.
OnVehiclePaintjob is called when previewing the paintjob, not when you actually buy it.