Example Config

Below you can see basic config of Multicharacter

Config = {}

Config.Framework = 'esx'
Config.SkinChanger = 'esx_skin' -- esx_skin, illenium-appearance and qb-clothing are preconfigured. you can configure your own skinchanger in bridge/*/client.lua
Config.Language = 'eng'
Config.WelcomeText = true

Config.RelogCommand = 'relog' -- string | false: Command to relog player

Config.Prefix = "char" -- if Prefix is set to "char", player's new character identifier will be "char1:xxxxxxxxx"
Config.Identifier = "license" -- this value shouldn't be changed
Config.FiveGuardResourceName = false -- false or string | if you're using fiveguard on your server, put here it's resource name (to avoid false bans)

Config.DefaultSlots = 1 -- Count of slots player will have by default
Config.Preslots = { -- if slots are predefined here, database slots won't be used
    ['xxxxxxxxx'] = 3
}

Config.MinimumLengths = {
    Firstname = 3, -- length < Config.MiminumLengths.Firstname
    Lastname = 3,
    Year = 1920
}

-- Scene

Config.PlayerPedPos = vec3(-769.2403, 331.0389, 210.4471) -- Position of (invisible) player ped in vector3
Config.CreatePos = vector4(-793.3962, 326.1761, 208.8566, 359.24237060547) -- Position where player will be teleported and character creation will be opened
Config.AfterCreatePos = vector4(-539.592, -213.2891, 35.66985, 208.2704) -- Position where player will be teleported after creating character

Config.AmbientPeds = {
    {
        model = 's_f_y_clubbar_01',
        coords = vector4(-769.5366, 341.276, 210.4071, 268.1698),
        animDict = 'missheist_agency3aig_23',
        animName = 'urinal_sink_loop',
        time = 48.466667
    },
    {
        model = 'U_M_Y_Mani',
        coords = vector4(-772.7531, 343.7479, 211.397, 0.6112787),
        scenario = "WORLD_HUMAN_BINOCULARS"
    },
    {
        model = 'a_m_y_eastsa_01',
        coords = vector4(-779.4266, 337.132, 210.7141, 91.57652),
        scenario = 'PROP_HUMAN_SEAT_CHAIR_DRINK'
    },
    {
        model = 'a_m_y_beach_03',
        coords = vector4(-782.1051, 335.9135, 210.6635, 273.1129),
        animDict = 'amb@lo_res_idles@',
        animName = 'lying_face_up_lo_res_base',
        time = 5.3333335
    },
    {
        model = 'g_f_y_vagos_01',
        coords = vector4(-772.5359, 333.1292, 211.3971, 91.25613),
        scenario = 'WORLD_HUMAN_LEANING'
    },
    {
        model = 'IG_LesterCrest_3',
        coords = vector4(-775.6514, 339.2728, 210.9622, 273.5555),
        scenario = 'PROP_HUMAN_SEAT_COMPUTER_LOW',
        prop = {
            model = `xm_prop_x17_laptop_lester_01`,
            coords = vector4(-775.0714, 339.3597, 211.2204, 269.0)
        }
    }
}

Config.PlayerPeds = {
    {
        coords = vector4(-784.0997, 338.779, 210.6741, 179.594),
        animDict = 'timetable@jimmy@mics3_ig_15@',
        animName = 'idle_a_jimmy',
        time = 46.86667,
        camCoords = vector3(-784.1481, 335.5031, 211.6537),
        fov = 46.0557,
        defaultSkin = nil -- Optional, you can use it if you want to set default skin of this ped (when this character doesn't exist)
    },
    {
        coords = vector4(-775.9455, 341.8924, 210.4069, 6.088138),
        animDict = 'mini@telescope',
        animName = 'idle',
        time = 67.066666,
        camCoords = vector3(-773.489, 340.9801, 212.432),
        fov = 38.0557,
        defaultSkin = nil
    },
    {
        coords = vector4(-780.8934, 340.0441, 210.2071, 313.1672),
        animDict = "anim@amb@nightclub@dancers@crowddance_single_props_transitions@",
        animName = "trans_dance_prop_hi_to_li_09_v1_female^2",
        time = 180.03334,
        camCoords = vector3(-778.3817, 341.4497, 211.8971),
        fov = 46.0,
        defaultSkin = nil
    },
    {
        coords = vector4(-771.2338, 336.519, 210.4069, 4.867599),
        animDict = 'timetable@floyd@clean_kitchen@base',
        animName = 'base',
        time = 21.866667,
        camCoords = vector3(-769.4869, 335.0796, 212.3969),
        fov = 56.0,
        defaultSkin = nil
    }
}

Last updated