Posts: 152
Threads: 68
Joined: Dec 2014
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
Posts: 1,233
Threads: 269
Joined: Oct 2008
Reputation:
0
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.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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.