SA-MP Forums Archive
Why Can`t I Mod A Police Vehicle? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why Can`t I Mod A Police Vehicle? (/showthread.php?tid=170460)



Why Can`t I Mod A Police Vehicle? - michaelw352 - 23.08.2010

THIS TOPIC HAS BEEN SOLVED BY THE HELP OF MEMBER SOUVLAKI AND THIS TOPIC MAY BE LOCKED NOW.


Re: Why Can`t I Mod A Police Vehicle? - Souvlaki - 23.08.2010

pawn Code:
AddStaticVehicleEx ( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, (color1), (color2), 15 );

Change Color 1 ANd color 2 to a color of your choise.Remove the bracets as well



pawn Code:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay)



Re: Why Can`t I Mod A Police Vehicle? - JaTochNietDan - 23.08.2010

Quote:
Originally Posted by michaelw352
View Post
Why Can`t I Mod A Police Vehicle>?

I see other servers with red,yellow,green,white,and other police cars,but how do they do it?

When I go to a body swap shop,it says i cant mod the vehicle

need help here.
They do it through scripting, as the default game doesn't offer you a way to change the color of the vehicle.

So use

https://sampwiki.blast.hk/wiki/ChangeVehicleColor

And also you could change it when creating the vehicle with AddStaticVehicle or whatever you're using by simply changing the "color" parameter.


Re: Why Can`t I Mod A Police Vehicle? - michaelw352 - 23.08.2010

Quote:
Originally Posted by Souvlaki
View Post
pawn Code:
AddStaticVehicleEx ( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, (color1), (color2), 15 );
Change Color 1 ANd color 2 to a color of your choise.Remove the bracets as well

is there any way i can do it in-game?


Re: Why Can`t I Mod A Police Vehicle? - sekol - 23.08.2010

Ahh, you were first


Re: Why Can`t I Mod A Police Vehicle? - Souvlaki - 23.08.2010

Quote:
Originally Posted by michaelw352
View Post
is there any way i can do it in-game?
For I.G use https://sampwiki.blast.hk/wiki/ChangeVehicleColor as JaTochNietDan said above


Re: Why Can`t I Mod A Police Vehicle? - michaelw352 - 23.08.2010

Quote:
Originally Posted by Souvlaki
View Post
For I.G use https://sampwiki.blast.hk/wiki/ChangeVehicleColor as JaTochNietDan said above
ok thank you