Jump to content

Vehicle Colors and lights


#Paper

Recommended Posts

Posted

my code:

function crand ( source ) 
        for i, car in ipairs( getElementsByType( "vehicle" ) ) do 
            local color = {} 
            color[1] = math.random(0,126) 
            color[2] = math.random(0,126) 
            color[3] = math.random(0,126) 
            color[4] = math.random(0,126) 
            setVehicleColor ( car, color[1], color[2], color[3], color[4] ) 
        end 
end 

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

Posted

1 is it server side or client side?

2 what is should exactly do?

3 is it a command handler?

4 you should NOT use "source" as argument name!!!!

answer to all questions

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...