uyuyorumstore
um-multicharacter-xvi

Setup

How to install and configure um-multicharacter-xvi

One resource for Qbox, QBCore and ESX. It finds your framework by itself.

Select Framework

Firstly

  • Make sure your qbx_core version is not old
  • stop basic-gamemode in server.cfg (do not add this again, if you have this, replace ensure with stop)
  • Delete other multicharacter scripts
  • /logout is Qbox's own command (admin only)
client.lua
qbx_core > config > client.lua
-- inside characters = { ... }
useExternalCharacters = true, -- set true

Locale

Supported Locales

al, ar, cs, da, de, el, en, es, et, fi, fr, he, hr, hu, id, it, ja, ko, lt, nl, no, pl, pt, ro, ru, sk, sv, th, tr, zh-cn, zh-tw

server.cfg
setr ox:locale "en"

Other language: see Add a Locale.

Apartment Start

server.cfg
setr um:NewPlayerApartmentInsideStart "true" # true: apartment / spawn script, false: config defaultSpawn

See Spawn.

Server.cfg

Load Order

um-multicharacter-xvi must ensure after oxmysql, ox_lib and qbx_core.

server.cfg
# um config
setr ox:locale "en"
setr um:NewPlayerApartmentInsideStart "true"
---------------

ensure oxmysql
ensure ox_lib
--------------
ensure qbx_core
ensure [qbx]
ensure [standalone]
--------------
ensure um-multicharacter-xvi

Firstly

  • Make sure your qb-core version is not old
  • stop basic-gamemode in server.cfg (do not add this again, if you have this, replace ensure with stop)
  • Delete qb-multicharacter or other multicharacter scripts
  • /logout is added by this resource (qbcore.admin only)

Locale

Supported Locales

al, ar, cs, da, de, el, en, es, et, fi, fr, he, hr, hu, id, it, ja, ko, lt, nl, no, pl, pt, ro, ru, sk, sv, th, tr, zh-cn, zh-tw

server.cfg
setr ox:locale "en"

Other language: see Add a Locale.

Apartment Start

server.cfg
setr um:NewPlayerApartmentInsideStart "true" # true: apartment / spawn script, false: config defaultSpawn

See Spawn.

Server.cfg

Load Order

um-multicharacter-xvi must ensure after oxmysql, ox_lib and qb-core.

server.cfg
# um config
setr ox:locale "en"
setr um:NewPlayerApartmentInsideStart "true"
---------------

ensure oxmysql
ensure ox_lib
--------------
ensure qb-core
ensure [qb]
ensure [standalone]
--------------
ensure um-multicharacter-xvi

Firstly

  • Make sure your es_extended version is not old
  • stop basic-gamemode in server.cfg (do not add this again, if you have this, replace ensure with stop)
  • Delete esx_multicharacter or other multicharacter scripts
  • /relog takes a player back to the character screen (everyone)
  • Starter items come from your es_extended config

es_extended

main.lua
es_extended > shared > config > main.lua
Config.Multichar = true

Register Form

Name Length

ESX saves names in 16 characters. Set maxLength = 16.

um-multicharacter-xvi > config > register.lua
name = {
    minLength = 2,
    maxLength = 16,
},

Set dob.format to the same day / month / year order your server used before:

um-multicharacter-xvi > config > register.lua
dob = {
    format = 'DD-MM-YYYY', -- or 'MM-DD-YYYY', 'YYYY-MM-DD'
    min = 1950,
    max = 2007
},

Locale

Supported Locales

al, ar, cs, da, de, el, en, es, et, fi, fr, he, hr, hu, id, it, ja, ko, lt, nl, no, pl, pt, ro, ru, sk, sv, th, tr, zh-cn, zh-tw

server.cfg
setr ox:locale "en"

Other language: see Add a Locale.

Server.cfg

Load Order

um-multicharacter-xvi must ensure after oxmysql, ox_lib and es_extended.

server.cfg
# um config
setr ox:locale "en"
setr um:NewPlayerApartmentInsideStart "true"
---------------

ensure oxmysql
ensure ox_lib
--------------
ensure es_extended
ensure [core]
ensure [standalone]
--------------
ensure um-multicharacter-xvi

Add a Locale

  1. Copy locales/en.json and name it with your language code, for example locales/uk.json
  2. Translate the texts on the right side. Keep the keys and every %s.
  3. Set setr ox:locale "uk" in server.cfg
  4. Type refresh in the server console, then restart the resource

Main Config

um-multicharacter-xvi > config > main.lua
return {
    debug = false,

    -- Character slots every player gets. Extra slots: config/slots.lua
    defaultSlots = 4,

    -- Rows in the character list. Slots past the player's own show as locked (more via config/slots.lua, Discord or Tebex)
    shownSlots = 6,

    -- true: everyone can delete their characters. false: only licenses in config/slots.lua deleteAccess
    deleteEnabled = true,

    -- server.cfg: setr um:NewPlayerApartmentInsideStart true -> new characters start in an apartment
    apartmentStart = GetConvar('um:NewPlayerApartmentInsideStart', 'false') == 'true',

    -- true: existing characters spawn at their last location, no spawn menu
    onlyLastLocation = false,

    -- New character spawn when apartmentStart is off
    defaultSpawn = vec4(-1037.11, -2736.96, 20.17, 323.76),

    -- Character height (register screen, config/register.lua) scales the ped, synced to every player.
    pedScale = {
        enable = true,
        baseHeight = { [0] = 180, [1] = 170 },
        min = 0.85,
        max = 1.15,
        distance = 80.0, -- other players are scaled within this many metres
    },

    -- /partnerinvite: show a partner next to your character
    partner = true,

    -- Extra slots bought on Tebex (needs sv_tebexSecret)
    tebex = true,

    -- Store banner under the character list: your store address ('https://...'). '' = no banner
    storeUrl = 'https://uyuyorumstore.com',

    -- Selection screen look: preloads the area, keeps peds and cars out, film filter and character lights
    graphics = {
        enable = true,
        timecycle = {},
        lights = true,
    },

    -- Fixed weather and time on the selection screen
    weather = {
        enable = true,
        type = 'EXTRASUNNY',
        hour = 19,
        minute = 30,
    },
}

Store Banner

Put your own store address in storeUrl, or '' to hide the banner.

How-to Guides

Requirements

On this page