Mooza Posted January 3, 2011 Share Posted January 3, 2011 (edited) Hello guys, I need some help about scripting. I want to set a color for all vehicles/players, when the race map starts. function resource_starts () setVehicleColor (6) end addEventHandler ( "onClientResourceStart", getRootElement(), resource_starts ) Can you please tell me, why doesn't that work? Edited January 3, 2011 by Guest Link to comment
Castillo Posted January 3, 2011 Share Posted January 3, 2011 you are just making random code and expecting us to fix it for you. Link to comment
eAi Posted January 3, 2011 Share Posted January 3, 2011 Passing rootElement as the first argument for setVehicleColor should work. Link to comment
Mooza Posted January 4, 2011 Author Share Posted January 4, 2011 and can you tell me how can I do that if a player touches a marker, his/her vehicle color will change to a color ?? Link to comment
Castillo Posted January 4, 2011 Share Posted January 4, 2011 use the event onMarkerHit and setVehicleColor. https://wiki.multitheftauto.com/wiki/OnMarkerHit https://wiki.multitheftauto.com/wiki/SetVehicleColor Link to comment
Mooza Posted January 4, 2011 Author Share Posted January 4, 2011 thank you I will try it 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