Configuration

Complete configuration guide for the Boyraz Spawn Selector system. Customize spawn locations, framework settings, and client integrations.

Documentation Sections


System Configuration (Customize Table)

Global system parameters and operational settings.

Customize = {
    Locale = 'en',
    Framework = nil,
    
    Client = {
        SetUI = function(visible) 
        -- ...
        end,
    },
    
    Locations = {
        -- ... 
    }
}

Locale

Determines the language for the spawn selector interface.

  • Type: string

  • Values: 'en', 'de', 'bg', 'es', 'fr', 'it', 'pt', 'tr'

  • Default: 'en'

Example:


Framework

Specifies your server's framework. Set to nil for automatic detection.

  • Type: nil | string

  • Values: nil (auto-detect), 'QBCore', 'ESX', 'Qbox'

  • Default: nil

Example:

circle-info

Recommended: Leave as nil to allow automatic framework detection. Only set manually if you experience compatibility issues.


Client Integrations (Customize.Client)

Client-side integration functions for third-party resources.

SetUI

Function to control UI/HUD visibility during spawn selection.

Parameters:

  • visible (boolean) - true to show UI, false to hide

Default Implementation:

Custom Integration Examples:


Spawn Locations (Customize.Locations)

Define predefined spawn points for players to choose from.

Location Structure

Each location must include the following properties:

Property
Type
Required
Description

icon

string

βœ…

Icon identifier for the location

name

string

βœ…

Display name of the location

description

string

βœ…

Brief description shown to players

coords

vec4

βœ…

Spawn coordinates (x, y, z, heading)

Default Configuration

Adding Custom Locations

To add new spawn locations, simply add a new table entry to the Locations array:

circle-check

Icon Configuration

The icon property supports custom icon identifiers. Configure icons based on your UI system.

Example Icons:

circle-info

Icon System: The icon format depends on your UI implementation. Contact support for custom icon integration.


Coordinate Reference

The coords property uses the vec4 format:

  • x, y, z: World coordinates

  • heading: Player facing direction (0-360 degrees)

Finding Coordinates

To get coordinates for your spawn locations, use one of these methods:

Using TxAdmin Console (Recommended - Universal)

  1. Join your server and navigate to the desired location

  2. Press F8 to open the console

  3. Type: getcoords or getpos

  4. Copy the coordinates displayed (format: x, y, z, heading)

  5. Convert to vec4 format: vec4(x, y, z, heading)

Alternative:

  • Open TxAdmin panel

  • Go to Live Console

  • Use the Teleport feature to save locations

circle-exclamation

Complete Configuration Example


Best Practices

circle-check
circle-exclamation

Last updated

Was this helpful?