SA-MP Forums Archive
[FilterScript] Carcols.dat - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Carcols.dat (/showthread.php?tid=369834)



Carcols.dat - DeadLy™ - 18.08.2012

Introduction


Well,I decided to do a quick tutorial for carcols.dat editing...

Part 1

Carcols.dat (Program files/Rockstar Games/GTA San Andreas/data/) manages vehicles' colors.It can be edited by text editors like Notepad.Once you open it,you'll see something like this:

Код:
0,0,0 # 0 black black
That mean 0=Red,0=Green,0=Blue
# 0 black=color id name
black=hue I think

So,it uses RGB scale. Here you can find a list of most used colors (see the RGB Value column).


Example:I want to change this colour
Image

To this one

Image


Now,I search for 4th color (ID 3,because they start from 0) and I change its value from this

Код:
132,4,16
To this

Код:
255,0,0
Close and save it.

Part 2


If you scroll down you'll see something like this:

Код:
admiral, 34,34, 35,35, 37,37, 39,39, 41,41, 43,43, 45,45, 47,47

Well,it means it's an Admiral,and it has 1/8 of chances to being the 34th colour,another 1/8 to being the 35th etc...So it could be something like:


Код:
carmodelname, color1,color1, color2,color2, color3,color3 etc.

For two-colours cars (like Cops,Ambulance,etc) it's a bit different.Infact,they have only one chance to be two colours.Let's see LS Cop Car (copcarla):


Код:
copcarla, 0,1

It means it has one chance to being black and white (0=black color ID,1=white color ID).Don't add more chances to these ones,they may crash!

This little tutorial finished for the moment,but there are some things you gotta know: That's all! My Friends

PS:Sorry for my really bad english

__________________________________________________ _______________________________________________

If i help you Dont Forget To Add My Rep!
Thank You Allz!
Regards
Talkro



Respuesta: Carcols.dat - HydraX - 18.08.2012

Wrong section to post.


Re: Carcols.dat - Lordzy - 19.08.2012

Wrong section.
And this isnt [Filterscript]


Re: Carcols.dat - Bug. - 21.08.2012

good


Re: Carcols.dat - DeadLy™ - 22.08.2012

Thx