Skip to content

Framework Integrations

This page covers framework bridges and the optional surname-change patch.

Supported frameworks:

  • Qbox
  • QB-Core
  • ESX

Inventory:

  • ox_inventory
  • qb-inventory

Target:

  • ox_target
  • qb-target
  • or set UseTarget = false in config

Surname change#

Config:

lua
SurnameChange = {
    enable = true,
    restoreOnDivorce = true,
},

Qbox / QB-Core#

Add the code from INSTALL/integrations.md into your framework.

If you skip this, marriage still works, but surname may not change.

ESX#

No extra code needed.

Config:

lua
esx = {
    table = 'users',
    lastnameColumn = 'lastname',
    identifierColumn = 'identifier',
},

Change these if your ESX table/columns are different.

Payment not working#

  1. Correct framework?
  2. Does the player have money?
  3. Turn debug on and check logs
lua
Debug = true,

Checklist#

  1. Framework starts before marriage
  2. Inventory script is running
  3. If you use target, target is running
  4. If surname is on, integrations are done