# Client

```
local Config = lib.load('shared.config')
local CORE = nil

if GetResourceState('es_extended') == 'started' then 
    CORE = exports['es_extended']:getSharedObject() 
elseif GetResourceState('qb-core') == 'started' then 
    CORE = exports['qb-core']:GetCoreObject() 
end

function Editable_OnEnter()
end

function Editable_OnExit()
end

function Editable_OnInside()
end

function Notify(title, description, type, duration)
    local message = title
    if description then
        message = title .. '\n' .. description
    end
    
    if Config.Notify == 'qb' then
        CORE.Functions.Notify(message, type or 'primary', duration or 5000)
    elseif Config.Notify == 'esx' then
        CORE.ShowNotification(message, type or 'info', duration or 5000)
    elseif Config.Notify == 'qbx' then
        exports.qbx_core:Notify(message, type or 'primary', duration or 5000)
    elseif Config.Notify == 'ox' then
        lib.notify({
            title = title,
            description = description,
            type = type or 'info',
            duration = duration or 5000
        })
    end
end

function Disarm_Weapon()
    if Config.Inventory == 'qb' then
        SetCurrentPedWeapon(PlayerPedId(), `WEAPON_UNARMED`, true)
    elseif Config.Inventory == 'esx' then
        SetCurrentPedWeapon(PlayerPedId(), `WEAPON_UNARMED`, true)
    elseif Config.Inventory == 'ox' then
        TriggerEvent('ox_inventory:disarm', true)
    end
end
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://foreststore.gitbook.io/forest-store/scripts/safezone-creator/editable-files/client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
