#Paper Posted November 3, 2010 Share Posted November 3, 2010 How i can set vehicle lights and colors only for one player? my script set for all players <_< Link to comment
CowTurbo Posted November 3, 2010 Share Posted November 3, 2010 show us your code... but maybe use client side ? ( im not sure, that was worked to everyone in client side too if im right.. , so i got no idea ) Link to comment
#Paper Posted November 3, 2010 Author Share Posted November 3, 2010 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 Link to comment
dzek (varez) Posted November 3, 2010 Share Posted November 3, 2010 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 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