[Tool/Web/Other] SA:MP vehicle colors named.
#1

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:

Reply
#2

Sweet script
Reply
#3

You might want to post the example script too.
Reply
#4

Quote:
Originally Posted by Verc
View Post
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.
Reply
#5

Cool how many colors are there ahha
Reply
#6

Quote:
Originally Posted by Spydah
View Post
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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)