Jump to content

Sprayshop - Car colour selection & custom Crew Colour editor


Recommended Posts

I couldn't find a trainer with a really good set of tools for editing car colours (especially RGB values), so I wrote one myself.

 

Features include:

  • Support for all colourable parts, primary / secondary / tertiary / pearlescent / wheel / trim / accent / dashboard.
  • Choice of all colours not normally available in Los Santos Customs, including Worn and Utility colours.
  • Switching paint finishes while retaining the colour, e.g. changing Worn Sea Wash to metallic.
  • Changing base paint colours without resetting the pearlescent colour.
  • RGB editing of custom primary and secondary colours, as well as support for inputting and generating hex Crew Colours.
Screenshots:

 

 

 

Usage:

Press F6 while in a car to open the menu.

 

Prerequisites:

How to install:

Place the ColourEditor.dll into the scripts folder of your GTAV install. If you don't have a scripts folder, create one.

 

Version history:

1.0 - Initial release.

1.1 - Added Epsilon, Faded Utility, Brushed Gold and Pure Gold textures. Updated Classic texture.

 

Download

 

Source available on request - it's currently a bit messy though.

Edited by pez2k

NativeUI itself seems to have some performance impact in all mods I've tried that use it, but that's a lot larger than I've experienced. Unfortunately I couldn't find another UI framework that is as accurate to the look of the native menus - if there are any suggestions I'm open to trying a different one.

 

The script itself isn't doing anything outside of reacting to menu actions, other than using the tick event to do a one-line check that the player hasn't gotten out of their car (if they have, it closes the menus). The only thing that even requires much CPU time is detecting the texture of your selected paintjob, as it has to basically match that colour against one in each category. Even then though, the most common colours will be caught first, you'd need a car in matte purple or chrome to make much of an impact and that code only runs at the time the menu is first opened, or when you select a colour. I'll have a look for any optimisation tricks to using NativeUI though.

  • Like 1

I've updated the tool now to include a few less common textures that I'd missed, including super-shiny Epsilon and Pure Gold.

 

I also have a couple of future ideas to do with NativeUI optimisation that I need to try out, but I'll probably have to add a configuration file to toggle them even if they do work.

  • 1 month later...

The tool is now updated to v1.5 with some new features: changing the menu key, saving and loading custom colours, and an option to automatically repair and clean the car when applying colour changes like in LSC.

 

It now creates a configuration file on first run to store the settings and saved colours. I've tried to make it fairly robust so that you can add new colours to the config file manually if needed - most of the fields should be fairly self-explanatory. You don't need to include every field for each saved colour either, there's sane defaults for each missing field so just the RGB fields or hex field alone is enough to work. It's worth mentioning though that if you have both RGB values and a hex code entered for a saved colour the hex code will always take precedence if they differ.

 

Unfortunately there are no optimisations that I can find to reduce the load that NativeUI takes up - generally the only improvements end up with a flickering menu.

Edited by pez2k
  • 7 months later...
  • 5 months later...
  • 5 years later...

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.