FaustinResources

Configuration

Every setting in the three open config files. Restart the resource after a change.

config.lua

The settings most servers change. For many servers this is all you need.

SettingDefaultWhat it does
Config.framework'auto'auto, qbx, qb or esx.
Config.locale'en'en or sv. Copy locales/en.lua to add a language.
Config.serverName'YOUR SERVER'Shown top left in character selection.
Config.maxSlots5Character slots shown, 1 to 5. On Qbox the real limit per player is in qbx_core/config/server.lua.
Config.allowDeletetruePlayers can delete their own characters.
Config.transition'dive'dive, switch or fade.
Config.firstSpawn'lsia'Spot id where new characters start.
Config.lastLocationtrueOffer "Last location" to returning characters.
Config.units'imperial'Distances in the spawn menu: imperial or metric.
Config.charSelectCommandsee CommandsName of the command, on or off, admin only.
Config.spawnCommandsee CommandsName of the command, on or off, admin only, cooldown, allowed in vehicles.

config_spawns.lua

The spawn spots and the groups in the list. See Spawn spots.

config_advanced.lua

You rarely need to touch these, the defaults work fine.

SettingWhat it does
Config.hideHudHides your HUD while the menus are open.
Config.notifySends notifications to your own system. Uses ox_lib by default.
Config.onArriveThe text shown after you arrive.
Config.appearanceWhich appearance menu to use. See Appearance menu.
Config.deleteHoldMsHow long the delete button has to be held. Default 2000 ms.
Config.rulesName length, age range, backstory length, nationalities and blocked words.
Config.sceneWhere the lineup stands, spacing, camera distances, studio lights, optional forced time and weather.
Config.idlesIdle poses for the lineup.
Config.soundsMenu sounds.
Config.nationalitiesThe list on QBCore and ESX. Qbox uses its own qbx_core/data/nationalities.lua.
Config.starterLooksThe starting look of a new character before the appearance menu opens.
Config.diveTiming, end position, sweep limit, landing effect and sounds of the dive.
Config.cameraDrone height, distance, orbit speed and clearance above roofs.
Config.mapThe map image and the world area it covers. Only change this if you swap the image.

Identity rules

RuleDefaultWhat it does
nameMin, nameMax2, 16Name length.
minAge, maxAge18, 90Age in years, from today's real date.
backstory500Max characters. 0 hides the field.
limitNationalitiestrueOnly allow nationalities from the list.
defaultNationality'American'Selected from the start.
blockeda short listLower case. Names that contain one of these words are refused.

Your own HUD and notifications

lua
-- Your HUD: hidden while character selection, creation and the spawn menu are open
Config.hideHud = function(hidden)
    TriggerEvent('my_hud:toggle', not hidden)
end

-- Notifications. kind: 'success' | 'error' | 'inform'
Config.notify = function(text, kind)
    lib.notify({ description = text, type = kind or 'inform' })
end

-- Shown after you arrive. Make it an empty function to show nothing.
Config.onArrive = function(placeName)
    -- your own arrival text
end

Moving the lineup

Set Config.scene.origin to the centre of the line and the direction the characters face. Any flat spot works, since every ped is snapped to the ground under it.

Languages

English and Swedish are included. Copy locales/en.lua, translate it and set Config.locale to the name of your file.