AddVehicleComponent will not work
#1

I have a new problem now:
When I add a vehicle component, it doesnt add it to the vehicle

heres my coding:
Код:
if(CarInfo[idx][cMod2] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod2]); // Exausts
	    		if(CarInfo[idx][cMod3] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod3]); // Front bumber
	    		if(CarInfo[idx][cMod4] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod4]); // Front bullbar
	    		if(CarInfo[idx][cMod5] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod5]); // Rear bullbar
	    		if(CarInfo[idx][cMod6] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod6]); // Sideskirt
	    		if(CarInfo[idx][cMod7] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod7]); // Wheels
	    		if(CarInfo[idx][cMod8] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod8]); // Stereo
	    		if(CarInfo[idx][cMod9] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod9]); // Hydraulics
	    		if(CarInfo[idx][cMod10] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod10]); // Nitro
This does nothing when ever i load the vehicles on server startup
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)