> For the complete documentation index, see [llms.txt](https://docs.gpscripts.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpscripts.dev/tax-system/installation/step-2-qb-core-changes.md).

# Step 2 - \[QB-Core] Changes

{% hint style="info" %}
To make everything work with QB-Core you have to add some code to qb-menu.

Add "TriggerEvent("gp\_taxSystem:closeMenu")" like shown below
{% endhint %}

{% code title="qb-menu/client/main.lua" lineNumbers="true" %}

```lua
local function closeMenu()
    sendData = nil
    headerShown = false
    TriggerEvent("gp_taxSystem:closeMenu")
    SetNuiFocus(false)
    SendNUIMessage({
        action = 'CLOSE_MENU'
    })
end
```

{% endcode %}

{% code title="qb-menu/client/main.lua" lineNumbers="true" %}

```lua
RegisterNUICallback('closeMenu', function(_, cb)
    headerShown = false
    sendData = nil
    SetNuiFocus(false)
    TriggerEvent("gp_taxSystem:closeMenu")
    cb('ok')
end)
```

{% endcode %}
