jirco Posted May 25, 2013 Share Posted May 25, 2013 local UtilityServiceCar = {} UtilityServiceCar[1] = createVehicle(482, -2080.7998046875, -168.599609375, 35.5, 0, 0, 180.24719238281, "Utility Service") -- Burrito hello everybody i wanted to ask how i can get 1 color for about 15 veh in a script this is one line of the script how can i add the color for the 15 vehicles in this? Link to comment
Moderators IIYAMA Posted May 25, 2013 Moderators Share Posted May 25, 2013 https://wiki.multitheftauto.com/wiki/SetVehicleColor for i=1, #UtilityServiceCar do local vehicle= UtilityServiceCar[i] if isElement(vehicle) then setVehicleColor (vehicle, 100,100,100 ) -- r1, g1, b1, [int r2, int g2, int b2,] [int r3, int g3, int b3,] [int r4, int g4, int b4] else UtilityServiceCar[i]= nil end end Link to comment
jirco Posted May 25, 2013 Author Share Posted May 25, 2013 thank you i added it and it works Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now