diff --git a/README.md b/README.md index e6adb95..4ade623 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ This is a development resource, if you don't use the exports the resource itself Since this is a client script, you will need to use **setr** to set these convars. -- **fivem-appearance:customization**: 1 or 0, default **1**, toggle the built-in customization interface and customization exports. - **fivem-appearance:locale**: the name of one file inside `locales/`, default **en**, choose the locale file for the customization interface. config.cfg example: diff --git a/fxmanifest.lua b/fxmanifest.lua index 18b4e38..7fed5e5 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -4,20 +4,15 @@ game { "gta5" } author 'Snake' description 'A flexible player customization script for FiveM.' repository 'https://github.com/snakewiz/fivem-appearance' -version '1.1.0' +version '1.2.0' client_script 'typescript/build/client.js' files { + 'ui/build/index.html', + 'ui/build/static/js/*.js', + 'locales/*.json', 'peds.json' } -if GetConvarInt('fivem-appearance:customization', 1) then - ui_page 'ui/build/index.html' - - files { - 'ui/build/index.html', - 'ui/build/static/js/*.js', - 'locales/*.json', - } -end \ No newline at end of file +ui_page 'ui/build/index.html' \ No newline at end of file diff --git a/typescript/src/client/index.ts b/typescript/src/client/index.ts index e320a6e..78734a8 100644 --- a/typescript/src/client/index.ts +++ b/typescript/src/client/index.ts @@ -388,9 +388,7 @@ function setPedAppearance(ped: number, appearance: Omit) } function init(): void { - if (GetConvarInt('fivem-appearance:customization', 1)) { - Customization.loadModule(); - } + Customization.loadModule(); // Getters exp('getPedModel', getPedModel);