xeon17 Posted February 7, 2014 Share Posted February 7, 2014 I created a script whitch let cars have the color of Team , but it not work vehicle get invisible lol. function Car_Color ( player ) if(isElementWithinMarker(player,marker2)) then local playerTeam = getPlayerTeam ( player ) if ( playerTeam ) then local r, g, b = getTeamColor ( playerTeam ) setVehicleColor( Maverick, r, g, b ) end end end addCommandHandler ( "comprar", Car_Color ) Link to comment
xeon17 Posted February 7, 2014 Author Share Posted February 7, 2014 P.S , Problem fixed i forgot to define Maverick omg Link to comment
tosfera Posted February 7, 2014 Share Posted February 7, 2014 P.S , Problem fixed i forgot to define Maverick omg indeed, all you had to do was add this; local vehicle = getPedOccupedVehicle ( player ) or replace the maveric with; getPedOccupiedVehicle ( player ) Link to comment
xeon17 Posted February 7, 2014 Author Share Posted February 7, 2014 No , problem was : createVehicle ( 487, 242.3865814209,1922.9990234375,17.640630722046 ) i changed to : Maverick = createVehicle ( 487, 242.3865814209,1922.9990234375,17.640630722046 ) And worked 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