Jump to content
  • 0

MTA SA 1.1: Custom Vehicle Color Demonstration


Xierra

Question

Hello! This is XX3 going to give some explanations about a new feature in MTA SA 1.1, custom car colors!

Check out the new update of get/setVehicleColor

I have been testing MTA SA 1.1 for a while, and as you can see, you can paint your car with RGB format, means you can make your own colors in any way you want!

Here are some works that I tried. It was a great success.

Note: This uses San Andreas Complete Vehicle Fix mod.

Comet in British Racing Green / Dark Green (0,50,0)

scaled.php?server=600&filename=mtascreen20110628103932.png&res=medium

Comet in Lavender (175,200,150)

scaled.php?server=824&filename=mtascreen20110628104525.png&res=medium

Comet in Dark Red (50,0,0)

scaled.php?server=834&filename=mtascreen20110628104348.png&res=medium

These are my 3 sample colors. Maybe I forgot to include orange to the list! :D

Anyway, there was one problem while I was coloring. In an Infernus, setting color to (255,175,0) caused the color to go black instead. It happened on MTA SA 1.1 unstable 2483 (where the sound problem occurs). Tell me if someone else occured the same thing.

I really want to see someone who could create an RGB scrollbar / pallete for vehicles instead of color IDs (or both). It would be much better than those color IDs.

Link to comment

19 answers to this question

Recommended Posts

  • 0
  • Discord Moderators
May i suggest using ryden's colour picker as used in the editor. dxscoreboard does the same.

I made one using his colour picker some time ago, it's working good. I was planning on adding a video about it.

Good work XX3

Link to comment
  • 0

Well, here's how I do it:

addEventHandler("onClientGUIScroll",root, 
function () 
    if source == redBar or source == greenBar or source == blueBar then 
    guiLabelSetColor(labelColor,(guiScrollBarGetScrollPosition(redBar)*2.55),(guiScrollBarGetScrollPosition(greenBar)*2.55),(guiScrollBarGetScrollPosition(blueBar)*2.55)) 
    end 
end) 

Link to comment
  • 0

Great! And yes, I was not a pro at GUI functions. I still need to learn more including scrollbar.

Since Zango made the vehicle color using Ryden's color picker, can you place this in 3 places, which is DKR (Yes you Zango :D), Freeroam GUI, and map editor (Vehicle settings)?

Second wish! I need a vehicle color picker with presets, which you can load & save your favorite colors. Is it possible?

Here are some more samples! This time I took colors from the internet and used vick's colorpicker to create the vehicle color picker! It was amazing to be able to do what the modders can't customize ingame (GTA SA modders need to open carcols.dat to change / make their own color, thus replacing one of the IDs)

Cheetah in Rossa Corsa / Ferrari's Red (168, 9, 13)

scaled.php?server=405&filename=mtascreen20110628205918.png&res=medium

Windsor in Olivine Green (154, 185, 115)

scaled.php?server=535&filename=mtascreen20110628205112.png&res=medium

FINALLY! ORANGE!! Sabre in Dark Orange, which... doesn't look that dark. (255, 145, 0)

scaled.php?server=811&filename=mtascreen20110628210953.png&res=medium

You're welcome Zango! I didn't help anything anyway, but... never mind. :P

Link to comment
  • 0
Well, here's how I do it:
addEventHandler("onClientGUIScroll",root, 
function () 
    if source == redBar or source == greenBar or source == blueBar then 
    guiLabelSetColor(labelColor,(guiScrollBarGetScrollPosition(redBar)*2.55),(guiScrollBarGetScrollPosition(greenBar)*2.55),(guiScrollBarGetScrollPosition(blueBar)*2.55)) 
    end 
end) 

Triggering would be anti-stealing scripts as you did with setVehicleHeadLightColor in your userpanel :lol:.

Well, I'm making a NFS server (hope no one steals the idea :D), so I've made a tunning garage with some server car mods started, and you don't know EVEN! how does it look with custom car colors (it rocks!)... well later I'll put an image here.

Link to comment
  • 0

But triggering events is fine for a server with a good conection I think... I use it for my server and there isn't any problem... (I always play with the vehicle light scrollbars, it's like a second panel, all is triggered there so no one can steal that).

Link to comment
  • 0
Well, I'm making a NFS server (hope no one steals the idea)

I'm working on the same one for a long time :b

i have seen such colors in 1.0.5 already(DDC servers)

Those are just special pre-defined (same as default) colors that are not documented on the mta-wiki. The goal of the thing that XX3 showing us is that you can set any color you want using RGB palette.

Link to comment
  • 0
Well, I'm making a NFS server (hope no one steals the idea)

I'm working on the same one for a long time :b

i have seen such colors in 1.0.5 already(DDC servers)

Those are just special pre-defined (same as default) colors that are not documented on the mta-wiki. The goal of the thing that XX3 showing us is that you can set any color you want using RGB palette.

Isn't the same one, it's not what I want to do (it's totally different... I just want to make something with cops (not NPCs) included, tunning garages, custom GUI, etc, etc... (I'll take about 3 months ye).

Well, leave the servers on their finish (btw cool idea the motor city server).

Link to comment
  • 0

tigerman, those RGB color was possible for DDC, but only for name & chat color, right?

What I meant, is for the vehicle's color. You know you can't change vehicle's color in RGB palette unless you play MTA SA 1.1

And Dakilla, you just forgot to say "Vehicle's" color. Thanks anyway. :)

Anyway Dakilla, that's a fine work you got there, you must be following Need For Speed World's design! Keep it up!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...