jirco Posted May 25, 2013 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?
Moderators IIYAMA Posted May 25, 2013 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Moderators IIYAMA Posted May 25, 2013 Moderators Posted May 25, 2013 any time Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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