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

Add Standalone Server Config Option #22

Closed SaltyGrandpa closed 3 years ago

SaltyGrandpa commented 3 years ago

This PR will create an option in the config file for standalone servers. This will deactivate all ESX and essentialmode dependencies and rely only on mysql-async. The database table will automatically be created if it does not exist. If standalone mode is enabled, the resource manifest must be modified by the user as well to remove ESX dependencies from the resource. I've included details on what changes to make within the config file, following your format.

In addition, I've wrapped all SQL queries in the MySQL.Ready function to ensure the resource will wait on the DB in the unlikely chance it needs to.

These additions should retain full functionality for ESX, but I am unable to test it at this time due to not having an ESX server setup. Let me know if there are any modifications you'd like me to make, or feel free to make the tweaks prior to merging.