v2.0.74 patch
Motel and apartment spawns, frozen player fix and name rules
12changes

Motel and apartment spawns, frozen player fix and name rules
12changes

[02] Release
Characters can now spawn in the motel room they rent or inside the apartment they own. A player whose character fails to load is sent back to the selection instead of staying frozen, names accept accents and any language, and QS Core now checks on the server that the character belongs to the player.
config/main.lua has new settings. Your old config keeps working, but the motel spawns stay off until you add them:
Config.MotelSpawns = true — spawn in the rented qs-motels-creator room.Config.ApartmentSpawnForExistingCharacters = false — set to true to let existing characters spawn inside the apartment they own.Config.HudList = { ['qs-interface'] = 'qs' } — replaces the old local hudList. Optional.Config.LoadingScreenFocusGuardMs was removed. You can delete it; it is ignored.custom/ changed. If you edited them yourself, copy the changes into your version. Otherwise replace them: the motel and apartment spawns and the frozen player fix need them.getPlayerRentals export).qs-multicharacter/server/version.lua. It was replaced by server/updater.lua in 2.0.73.Replace every file in the resource, except what you edited yourself:
qs-multicharacter/fxmanifest.lua — the version number.qs-multicharacter/config/main.lua — the new settings above.qs-multicharacter/client/main.lua — the cursor fix and reopening the selection when a character fails to load.qs-multicharacter/client/charCreator.lua — the character creator camera fix.qs-multicharacter/client/custom/hud/main.lua — new. Detects qs-interface when it is used, not only at start-up.qs-multicharacter/client/custom/hud/qs.lua — qs-interface HUD setup.qs-multicharacter/client/custom/hud/standalone.lua — no HUD.qs-multicharacter/client/modules/spawnselector/selector.lua — the motel and apartment spawns.qs-multicharacter/custom/server.lua — reads motel rooms and owned apartments.qs-multicharacter/custom/esx/server.lua — ESX: motel and apartment spawns, recovering a lost slot.qs-multicharacter/custom/qb/client.lua — QBCore: HUD setup on relog.qs-multicharacter/custom/qb/server.lua — QBCore: motel and apartment spawns, reopening the selection.qs-multicharacter/custom/qs/server.lua — QS Core: the ownership check, motel and apartment spawns.qs-multicharacter/server/main.lua — name and date of birth rules, reopening the selection.qs-multicharacter/locales/* — new texts in every language.qs-multicharacter/web/* — the identity form name rules and the rebuilt interface.On QS Core, the server loaded whatever character the client asked for. The character is now looked up with the player's own license and the selected slot, and any other request is refused.
If the character rents a room in qs-motels-creator, it shows up in the spawn selector and the player appears at its door. On by default with `Config.MotelSpawns = true`. Needs an up-to-date qs-motels-creator.
Existing characters that own an apartment in qs-apartments or qb-apartments get a "My Apartment" option in the spawn selector and appear inside it. If the apartment cannot be entered, they appear at the building entrance. Off by default: set `Config.ApartmentSpawnForExistingCharacters = true`.
`exports['qs-multicharacter']:IsSessionActive()` returns true while the multicharacter owns the screen (selection, identity, creator hand-off and spawn selector), so other resources can wait before showing their UI.
Added the texts for the motel room and apartment spawns and for the new name errors in every language file.
When the selected character could not be loaded, the player stayed frozen and invisible with no way out. The selection now recovers the slot that was picked, or opens the character selection again. Works on ESX, QBCore and QS Core.
Names with accents, ñ, Cyrillic, Arabic, Chinese and other alphabets are now accepted. Spaces, apostrophes and hyphens are allowed between letters. The form also explains what is wrong: invalid characters or too many characters.
Creating a character on ESX without esx_identity failed with "Invalid character identity" because the date of birth format was not accepted. The date is now read correctly and stored in the same format as esx_identity.
When another resource took the mouse cursor away during the selection, it was only given back in the first seconds. It is now given back for the whole selection and identity creation.
If qs-interface started after the multicharacter, it was not detected for the whole session. It is now detected when it is needed. The first-time HUD setup of qs-interface no longer appears on top of the character selection.
Some cameras of the character creator could stay active after leaving it. They are now always removed.
No longer needed: the cursor is now kept for the whole selection. You can delete it from your config; it is ignored.