SA-MP Forums Archive
Tuning out of garages - 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: Tuning out of garages (/showthread.php?tid=578118)



Tuning out of garages - Rodri99 - 16.06.2015

How can i script a variable to allow players onplayervehiclemod(, to mod vehicles ONLY on tune garages?
Because the tune garages are not an interior, so i cant use an interior variable to make that.
Thanks to all repliers,
Rodrigo Dionigi


Re: Tuning out of garages - Lajko1 - 16.06.2015

Well you have to detect if player is at tuning garage, umm IsPlayerInRangeOfPoint might help? So if player will be in some radio it will allow him to call OnPlayerVehicleMod callback? Than Pickups and checkpoints might detect that also.


Re: Tuning out of garages - Konstantinos - 16.06.2015

Actually mod shops are in a different interior than 0. Get the player's interior and if it's equal to 0, return 0 to desync the components. Using a command/menu etc to tune your vehicles (AddVehicleComponent) outside of a mod shop doesn't call OnVehicleMod.