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:
Required Modifications
Resource Missing Detection
Line ~345 — Locate the resource state validation check and update the target name:
if GetResourceState('qbx_spawn') == 'missing' thenif GetResourceState('uz_SpawnSelector-2') == 'missing' thenResource Started Detection
Line ~442 — Update the conditional check for the active resource state:
elseif GetResourceState('qbx_spawn'):find('start') thenelseif GetResourceState('uz_SpawnSelector-2'):find('start') thenVerify Changes
- Save
character.lua - Restart your FiveM server
- Monitor the console for script initialization errors
- 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.