QBX Configuration

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

circle-exclamation

πŸ”§ Required Core Modifications

To ensure full compatibility, you must replace the default spawn resource references in your QBX core files with our script identifier.

Target File: qbx_core > client > character.lua


Modification 1: Resource Missing Detection

Line: ~345

Locate the resource state validation check and update the target name:

-- Replace this line:
if GetResourceState('qbx_spawn') == 'missing' then
-- With this line:
if GetResourceState('uz_SpawnSelector-2') == 'missing' then

Modification 2: Resource Started Detection

Line: ~442

Update the conditional check for the active resource state:


πŸ’‘ Global Search Tip

circle-info

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


βœ… Verification Steps

  1. Save character.lua.

  2. Restart your FiveM server.

  3. Monitor Console for script initialization errors.

  4. Test In-Game by creating a new character or forcing a respawn.

circle-check

⚠️ Maintenance Note

triangle-exclamation

πŸ†˜ Troubleshooting

Spawn selector not appearing?

  • Verify both code changes were applied correctly

  • Check console for errors

  • Ensure uz_SpawnSelector-2 is started after QBX core

Getting errors in console?

  • Double-check the resource name is exactly uz_SpawnSelector-2

  • Verify the resource is properly installed in your resources folder

  • Make sure you saved all changes to the character.lua file

Last updated

Was this helpful?