UZ Scripts
Spawn Selector

QBX Configuration

Required code modifications to route QBX framework spawn logic through the Boyraz Spawn Selector.

This guide covers the necessary code adjustments to route the QBX framework's native spawn logic through the Boyraz Spawn Selector.

Important: Always create a backup of your qbx_core files before making any modifications.

Target File

You need to edit one file in your QBX core:

character.lua

Required Modifications

Resource Missing Detection

Line ~345 — Locate the resource state validation check and update the target name:

if GetResourceState('qbx_spawn') == 'missing' then
if GetResourceState('uz_SpawnSelector-2') == 'missing' then

Resource Started Detection

Line ~442 — Update the conditional check for the active resource state:

elseif GetResourceState('qbx_spawn'):find('start') then
elseif GetResourceState('uz_SpawnSelector-2'):find('start') then

Verify Changes

  1. Save character.lua
  2. Restart your FiveM server
  3. Monitor the console for script initialization errors
  4. Test in-game by creating a new character or forcing a respawn

Use your code editor's global search (Ctrl + Shift + F) to find all instances of qbx_spawn across your installation to ensure no references are missed.

Setup Complete: Your Qbox framework is now routing spawns through the Boyraz UI.

Maintenance Note

Updating qbx_core will overwrite these changes. Remember to reapply modifications to character.lua after any framework updates.

Troubleshooting

On this page