QBX Configuration

This guide covers the necessary configuration steps for integrating Boyraz Spawn Selector with the QBX framework.

circle-exclamation

πŸ”§ Required Modifications

To ensure full compatibility with the Boyraz Spawn Selector, you must update spawn resource references in your QBX framework files.


File Location

Path: qbx_core > client > character.lua


Modification 1: Resource Missing Detection

Line: ~345

Locate the resource state validation check and update the resource 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 started resource state:


πŸ’‘ Finding the Code

circle-info

Search Tip: Use your code editor's global search function:

  • Windows/Linux: Ctrl + Shift + F

  • macOS: Cmd + Shift + F

  • Search for: qbx_spawn

This will help you locate all instances of qbx_spawn across your QBX installation, ensuring you don't miss any references.


βœ… Verification

After making the changes:

  1. Save the modified file

  2. Restart your server

  3. Check Console for any errors related to spawn systems

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

circle-check

⚠️ Important Notes

triangle-exclamation
circle-info

Line Numbers: Line numbers are approximate and may vary based on your QBX version. Use the code patterns above to locate the exact positions.


πŸ†˜ 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?