Configuration
Complete configuration guide for the Boyraz Spawn Selector system. Customize spawn locations, framework settings, and client integrations.
Documentation Sections
System Configuration (Customize Table)
Customize Table)Global system parameters and operational settings.
Customize = {
Locale = 'en',
Framework = nil,
Client = {
SetUI = function(visible)
-- ...
end,
},
Locations = {
-- ...
}
}Locale
LocaleDetermines the language for the spawn selector interface.
Type:
stringValues:
'en','de','bg','es','fr','it','pt','tr'Default:
'en'
Example:
Framework
FrameworkSpecifies your server's framework. Set to nil for automatic detection.
Type:
nil|stringValues:
nil(auto-detect),'QBCore','ESX','Qbox'Default:
nil
Example:
Client Integrations (Customize.Client)
Customize.Client)Client-side integration functions for third-party resources.
SetUI
SetUIFunction to control UI/HUD visibility during spawn selection.
Parameters:
visible(boolean) -trueto show UI,falseto hide
Default Implementation:
Custom Integration Examples:
Spawn Locations (Customize.Locations)
Customize.Locations)Define predefined spawn points for players to choose from.
Location Structure
Each location must include the following properties:
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:
Tip: You can add unlimited spawn locations. Players will be able to scroll through all available options.
Icon Configuration
The icon property supports custom icon identifiers. Configure icons based on your UI system.
Example Icons:
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)
Join your server and navigate to the desired location
Press F8 to open the console
Type:
getcoordsorgetposCopy the coordinates displayed (format: x, y, z, heading)
Convert to vec4 format:
vec4(x, y, z, heading)
Alternative:
Open TxAdmin panel
Go to Live Console
Use the Teleport feature to save locations
Using Server Commands
Most frameworks include coordinate commands:
Note: Available commands depend on your server's installed resources.
Using Custom Script
Create a temporary client script to log coordinates:
Use /mycoords in-game to display coordinates in console (F8).
Heading Matters: Make sure to set the heading correctly so players face the right direction when they spawn.
Complete Configuration Example
Best Practices
Performance Tips:
Keep descriptions concise and clear
Test each spawn location in-game before deploying
Ensure coordinates are accurate and safe (no spawning in walls)
Balance the number of locations (5-10 is ideal)
Avoid:
Spawn points in restricted areas
Coordinates that spawn players underground
Too many locations (can overwhelm players)
Duplicate location names
Last updated
Was this helpful?