SA-MP Forums Archive
Hidden vehicle colors - 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: Hidden vehicle colors (/showthread.php?tid=162678)



Hidden Vehicle Colors - Jay. - 24.07.2010

Hidden vehicle colors
Hey guys

Now i was in my server messing around a bit spawning vehicles and i found some secret colors there pretty cool.

It will even show a picture of the color, And the ID. ^^

And i don't have any idea if these have been found or not so go easy.

Enjoy, Btw tell me if I'm in the wrong section thanks

The colors:








Enjoy ^^


Re: Hidden vehicle colors - Jay. - 24.07.2010

Any comments this took some time.


Re: Hidden vehicle colors - Kitten - 24.07.2010

=O i seen these colors on some server but now i found them out muahah >:]
nice


Re: Hidden vehicle colors - Jay. - 24.07.2010

Quote:
Originally Posted by Kitten
Посмотреть сообщение
=O i seen these colors on some server but now i found them out muahah >:]
nice
Thanks enjoy!

Btw i'll be finding more colors another time


Re: Hidden vehicle colors - bartje01 - 24.07.2010

Niiiice xD How are you able to find a code 56732 xD
That would cost time to find out :P

Btw I have a feeling that 66021 is one too. I don't know why I think that :P


Re: Hidden vehicle colors - Jay. - 24.07.2010

Quote:
Originally Posted by bartje01
Посмотреть сообщение
Niiiice xD How are you able to find a code 56732 xD
That would cost time to find out :P

Btw I have a feeling that 66021 is one too. I don't know why I think that :P
I'll test 66021 and tell you ^^


Nope its just black.


Re: Hidden vehicle colors - Vince - 24.07.2010

IIRC, colors range from 0 to 255. Anything above that will wrap around.

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


Re: Hidden vehicle colors - Jay. - 24.07.2010

Quote:
Originally Posted by Vince
Посмотреть сообщение
IIRC, colors range from 0 to 255. Anything above that will wrap around.

https://sampwiki.blast.hk/wiki/Color_ID
These colors work fine i've tested them.


Re: Hidden vehicle colors - kc - 24.07.2010

Unfortunately, all of the possible hidden vehicle colours have been found.



Vehicle colours are stored in one unsigned byte, so their values range from 0 to 255.

As Vince said above, values higher than 255 will simply wrap around (so 256 is 0, 257 is 1, 300 is 44 etc)

Using modulo (remainder of a division) on a number is a quick way to see what a value would be when it has been limited to 256 (0 to 255) values.

So, for example 3223 % 256 = 151 which upon checking on the image above shows 151 is the same red as you showed for 3223.

So in conclusion, yes - your colours will show up on vehicles fine, but they are not new or any different to the ones on the image above.


Re: Hidden vehicle colors - Jay. - 24.07.2010

Quote:
Originally Posted by kc
Посмотреть сообщение
Unfortunately, all of the possible hidden vehicle colours have been found.



Vehicle colours are stored in one unsigned byte, so their values range from 0 to 255.

As Vince said above, values higher than 255 will simply wrap around (so 256 is 0, 257 is 1, 300 is 44 etc)

Using modulo (remainder of a division) on a number is a quick way to see what a value would be when it has been limited to 256 (0 to 255) values.

So, for example 3223 % 256 = 151 which upon checking on the image above shows 151 is the same red as you showed for 3223.

So in conclusion, yes - your colours will show up on vehicles fine, but they are not new or any different to the ones on the image above.
Okay, I was just trying to help. ;(