Mooza Posted January 3, 2011 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
Castillo Posted January 3, 2011 Posted January 3, 2011 you are just making random code and expecting us to fix it for you.
eAi Posted January 3, 2011 Posted January 3, 2011 Passing rootElement as the first argument for setVehicleColor should work.
Mooza Posted January 4, 2011 Author 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 ??
Castillo Posted January 4, 2011 Posted January 4, 2011 use the event onMarkerHit and setVehicleColor. https://wiki.multitheftauto.com/wiki/OnMarkerHit https://wiki.multitheftauto.com/wiki/SetVehicleColor
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