diff --git a/README.md b/README.md index 7b3b678d..88df41b8 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,40 @@ -# fxserver-esx_skin -FXServer ESX Skin +# esx_skin -[REQUIREMENTS] +## Requirements +- [skinchanger](https://github.com/ESX-Org/skinchanger) -- skinchanger => https://github.com/FXServer-ESX/fxserver-skinchanger +## Download & Installation -[INSTALLATION] - -1) CD in your resources/[esx] folder -2) Clone the repository +### Using [fvm](https://github.com/qlaffont/fvm-installer) ``` -git clone https://github.com/FXServer-ESX/fxserver-esx_skin esx_skin +fvm install --save --folder=esx esx-org/esx_skin ``` -3) Add this in your server.cfg : + +### Using Git +``` +cd resources +git clone https://github.com/ESX-Org/esx_skin [esx]/esx_skin +``` + +### Manually +- Download https://github.com/ESX-Org/esx_skin/archive/master.zip +- Put it in the `[esx]` directory + +- Import `esx_skin.sql` in your database +- Add this in your `server.cfg`: ``` start esx_skin ``` + +# Legal +### License +esx_skin - skin selector for ESX + +Copyright (C) 2015-2018 Jérémie N'gadi + +This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version. + +This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details. + +You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/. \ No newline at end of file diff --git a/__resource.lua b/__resource.lua index c2ff2048..b5658f30 100644 --- a/__resource.lua +++ b/__resource.lua @@ -1,24 +1,28 @@ +resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' + description 'ESX Skin' -version '1.0.1' +version '1.0.2' server_scripts { - '@es_extended/locale.lua', - 'config.lua', - 'locales/de.lua', - 'locales/br.lua', - 'locales/en.lua', - 'locales/fr.lua', - '@mysql-async/lib/MySQL.lua', - 'server/main.lua', + '@mysql-async/lib/MySQL.lua', + '@es_extended/locale.lua', + 'locales/de.lua', + 'locales/br.lua', + 'locales/en.lua', + 'locales/fr.lua', + 'locales/sv.lua', + 'config.lua', + 'server/main.lua' } client_scripts { - '@es_extended/locale.lua', - 'config.lua', - 'locales/de.lua', - 'locales/br.lua', - 'locales/en.lua', - 'locales/fr.lua', - 'client/main.lua', + '@es_extended/locale.lua', + 'locales/de.lua', + 'locales/br.lua', + 'locales/en.lua', + 'locales/fr.lua', + 'locales/sv.lua', + 'config.lua', + 'client/main.lua' } diff --git a/locales/sv.lua b/locales/sv.lua new file mode 100644 index 00000000..02ddd5f0 --- /dev/null +++ b/locales/sv.lua @@ -0,0 +1,6 @@ +Locales['sv'] = { + ['skin_menu'] = 'skin meny', + ['use_rotate_view'] = 'använd ~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ och ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ för att rotera.', + ['skin'] = 'ändra skin', + ['saveskin'] = 'spara skin till fil', +} diff --git a/server/main.lua b/server/main.lua index 2299b58c..2528f460 100644 --- a/server/main.lua +++ b/server/main.lua @@ -65,7 +65,7 @@ end, function(source, args, user) TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, 'Insufficient permissions!') end, {help = _U('skin')}) -TriggerEvent('es:addGroupCommand', 'saveskin', 'admin', function(source, args, user) +TriggerEvent('es:addGroupCommand', 'skinsave', 'admin', function(source, args, user) TriggerClientEvent('esx_skin:requestSaveSkin', source) end, function(source, args, user) TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")