Configuration
This file contains the necessary configurations for the character creation and management system. Below is a comprehensive explanation of what each parameter does and how to configure them properly.
Table of Contents
UI Configuration
Character Slots
Spawn Settings
Character Appearance
Items and Commands
Advanced Settings
UI Configuration
UIColor
Defines the interface colors using hex color codes.
💡 Tip: You can use any hex color code for the interface color (e.g., #FF4F79, #FBCA79, #3498db)
UIColor = '#FBCA79', -- Interface colorUIDisplay
Controls which UI elements are displayed to players.
UIDisplay = {
BuySlot = true, -- Shows the character slot purchase button
DeleteCharacter = true, -- Shows the character deletion button
},CustomUIFunction
Allows you to define custom interface logic that triggers when the camera becomes active.
Character Slots
MaxCharacterSlot
Sets the maximum number of character slots a player can have.
DefaultCharSlot
Determines how many character slots players start with by default.
Spawn Settings
SkipSelection
When enabled, players will skip the spawn selection menu and respawn at their last location.
SpawnFunction
Defines custom spawn logic that runs on the client side when a character spawns.
⚠️ Note: This function only runs on the client side.
DefaultSpawn
Sets the default spawn location using vec4 format (x, y, z, heading).
SetHousingSpawnUI
Configures the housing spawn interface for apartment/property spawning.
Character Appearance
SetSkin
Handles character skin/appearance setup on the client side.
⚠️ Note: This function only runs on the client side.
SkinSql
Retrieves character skin data from the database on the server side.
⚠️ Note: This function only runs on the server side.
FirstCharacterSkinMenu
Opens the character customization menu when creating a new character.
⚠️ Note: This function only runs on the client side.
Items and Commands
StarterItems
Defines the items given to new characters upon creation.
Command
Configures custom commands with permission levels.
Advanced Settings
CharacterOffsets
Defines positioning offsets for character display based on the number of available slots.
GiveStarterItems
Function that handles giving starter items to new characters. Supports both QBX and QB-Core frameworks.
QBXConfig
Loads the configuration file for QBX Core framework compatibility.
Last updated
Was this helpful?