Italian language support + Doc for dynamic slots and minor improvements (#37)

* Added Italian language support + usability improvements

* cleaner sql file

Co-authored-by: d3rp-jsx <15928886+derp-jsx@users.noreply.github.com>
This commit is contained in:
Demetrio
2021-08-11 01:33:40 +02:00
committed by GitHub
parent 52250d0d49
commit e65a4cb181
4 changed files with 27 additions and 6 deletions
+5
View File
@@ -1,7 +1,12 @@
Config = {}
Config.Locale = 'en'
--------------------
-- This is the default number of slots for EVERY player
-- If you want to manage extra slots for specific players you can do it by using '/setslots' and '/remslots' commands
Config.Slots = 1
--------------------
Config.Spawn = vector4(-113.7, 565.3, 195.2, 0) -- Sets the location for character selection
-- To set the spawn location for new characters, modify the default value in the `users` SQL table
+3 -6
View File
@@ -1,7 +1,4 @@
CREATE TABLE `multicharacter_slots` (
`identifier` VARCHAR(60) NOT NULL DEFAULT '' COLLATE 'utf8mb4_unicode_ci',
`slots` INT(11) NOT NULL DEFAULT '1'
)
COLLATE='utf8mb4_unicode_ci'
ENGINE=InnoDB
;
`identifier` VARCHAR(60) NOT NULL,
`slots` INT NOT NULL
);
+18
View File
@@ -0,0 +1,18 @@
Locales['it'] = {
['male'] = "Maschio",
['female'] = "Femmina",
['delete_label'] = "Cancella %s %s?",
['select_char'] = "Seleziona Personaggio",
['create_char'] = "Crea un nuovo personaggio",
['char_play'] = "Gioca questo personaggio",
['char_delete'] = "Cancella questo personaggio",
['cancel'] = "Annulla",
['confirm'] = "Conferma",
['command_setslots'] = "Imposta il numero di slot di personaggi di un player",
['command_remslots'] = "Rimuovi il numero di slot di personaggi di un player",
['command_identifier'] = "Identifier del giocatore",
['command_slots'] = "# di slot",
['slotsadd'] = "Hai aggiunto %s slot a %s",
['slotsedit'] = "Hai impostato %s slot a %s",
['slotsrem'] = "Hai rimosso gli slot a %s",
}
+1
View File
@@ -8,6 +8,7 @@
### Installation
- Modify your ESX config with `Config.Multichar = true`
- Set your database name for `Config.Database` in server/main.lua
- Run `esx_multicharacter.sql` into your database
- All owner and identifier columns should be set to `VARCHAR(60)` to ensure correct data entry
- The resource will attempt to set columns automatically