> 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/visumsystem/developers/exports.md).

# Exports

{% hint style="info" %}
If you need any other callback or event, just let me know!
{% endhint %}

## ***getVisumState (client)***

{% hint style="info" %}
Returns the current visum state of the player:

"whitelisted" -> Player is whitelisted

"visum" -> Player has valid visum

"expired" -> Player visum has expired&#x20;
{% endhint %}

```lua
local visumState = exports['gp_visum']:getVisumState()
```

Example how to limit shops using ox\_inventory:

{% code title="ox\_inventory/client.lua in line 166" lineNumbers="true" %}

```lua
...
if inv == 'shop' and invOpen == false then
    -- get user state
    local visumState = exports['gp_visum']:getVisumState()
    -- return if user is not whitelisted
    if visumState ~= "whitelisted" then return end

    if cache.vehicle then
        return lib.notify({ id = 'cannot_perform', type = 'error', description = locale('cannot_perform') })
    end

    left, right = lib.callback.await('ox_inventory:openShop', 200, data)
elseif inv == 'crafting' then
...
```

{% endcode %}

{% hint style="info" %}
You can block all functions for people who are not listed and only have visa or it has expired.
{% endhint %}
