PainedPsyche / cui_character

An advanced character and clothes editor for esx framework that aims to be comfortable to use, hide complexity and blend in with original GTA V interface elements.
73 stars 47 forks source link

CleanUI (cui) character

An advanced character and clothes editor that aims to be comfortable to use, hide complexity and blend in with original GTA V interface elements.

Character Customization Features

I tried to cover every feature that GTA Online character creator offers, notably:

I have made improvements in places where I thought Rockstar's creator didn't do a particularly good job:

Additional features

Requirements and usage notes

I intended this to be fully functional resource with minimal configuration. Editing and saving characters to the database should work out-of-the-box.

Thanks to SaltyGrandpa you can now use this resource standalone, without esx framework. To do so, follow his instructions in shared/config.lua.

In order to use this resource with esx, you need: legacy version of es_extended OR extendedmode

Usage with extendedmode requires additional configuration (explained in shared/config.lua)

In addition, the skin data column that esx_skin uses is required (SQL file included). It will most likely conflict with esx_skin as it labels and uses some data in exact same way.

Optional integration with esx_identity is possible. Optional features can be configured editing config.lua file.

Admins can use /identity, /features, /style, /apparel commands to open respective tabs or /character to open full character customization anywhere.

Simplest possible installation guide

If you are able to install and configure esx, you should have no problem using this resource, but in case you do, here's a very simple step-by-step guide:

  1. Click the Code button on the github page and select Download Zip.
  2. Save the file to your disk, extract it and rename cui_character-master folder to cui_character.
  3. Put that folder in your server's resources.
  4. Make sure you have skin column in your database's users table. If you don't, run the included esx_skin.sql file.
  5. Open your server.cfg and add start cui_character somewhere under start es_extended.
  6. If you wish to use esx_identity integration, make sure that is installed, configured and started as well and before this resource (it's not in dependencies, so won't be auto-started).

Known Issues

Clothes selection

Clothes customization is sort-of experimental. It relies on pulling entire data set from the game using natives and filtering them to only those that Rockstar gave names. This seems to result in a more limited selection as well as a noticable loading time when building the html dynamically.

I would be grateful if someone could point out a way to do it better. Preferably one that does not involve including and parsing custom, several megabytes large data files.

Gloves have been omitted entirely from the clothes selection, they are really messy and I have not found a way to automatically match them with other currently selected components. It would require an arduous, manual approach to get them in now.