Posts: 65
Threads: 1
Joined: Sep 2017
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:
Posts: 171
Threads: 5
Joined: Apr 2018
You might want to post the example script too.
Posts: 65
Threads: 1
Joined: Sep 2017
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.
Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
Cool how many colors are there ahha
Posts: 65
Threads: 1
Joined: Sep 2017
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
Posts: 603
Threads: 12
Joined: Sep 2007
Reputation:
0
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