[Tool/Web/Other] SA:MP vehicle colors named. - 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)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] SA:MP vehicle colors named. (
/showthread.php?tid=657265)
SA:MP vehicle colors named. -
DBZdabIt3Bro7 - 04.08.2018
since i basically needed a list of hte SAMP vehicle colors in a name format and i couldn't find it anywhere, i took use of the NTC JavaScript library (created by Chirag Mehta) and wrote a quick script to convert all vehicle hex colors to an array of names (pawn format)
https://api.hamiltondev.net/sampNTC.php
the script will automatically run and display the code when you visit. make sure to force SSL so that the document sends a HTTPS request to the jquery file.
quick example of its usage:
Re: SA:MP vehicle colors named. -
Akeem - 04.08.2018
Sweet script
Re: SA:MP vehicle colors named. -
Verc - 04.08.2018
You might want to post the example script too.
Re: SA:MP vehicle colors named. -
DBZdabIt3Bro7 - 04.08.2018
Quote:
Originally Posted by Verc
You might want to post the example script too.
|
then i might reconsider re-creating the wheel as well. there's nothing advanced in using an array in PAWN. if someone doesn't know how to use an array, they shouldn't be scripting yet.
Re: SA:MP vehicle colors named. -
Spydah - 04.08.2018
Cool how many colors are there ahha
Re: SA:MP vehicle colors named. -
DBZdabIt3Bro7 - 04.08.2018
Quote:
Originally Posted by Spydah
Cool how many colors are there ahha
|
gta sa vehicle colors - 128 (256 / )
samp vehicle colors - 128 (256 / 2)
named vehicle colors - 256
worldwide colors - 16 581 375 (256 ^ 3)
ntc library colors - ~1500, however, its scripting uses a math query to select the most matching color palette
Re: SA:MP vehicle colors named. -
Chaprnks - 07.10.2018
URL already dead, this is why its recommended to use a reliable host (github etc) & not some personal site that'll go offline in a month or two