SA-MP Forums Archive
nitro 2x 5x 10x - 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: nitro 2x 5x 10x (/showthread.php?tid=636678)



nitro 2x 5x 10x - Bussyman - 02.07.2017

Hi,

If vehicle can have 2x nitro then can have 5x and 10x, is there any specific model that i need to check for ex he can have 2x but can't 10x


Re: nitro 2x 5x 10x - JasonRiggs - 02.07.2017

Let him add it, Then do GetVehicleComponentType, if the car which you don't want to have 10x nos then RemoveVehicleComponent,

GetVehicleComponentType
RemoveVehicleComponent
Components IDS

You should also make that system under that callback >> OnPlayerModVehicle