# Integration

{% hint style="warning" %}
WARNING: ONLY MESS WITH THESE IF YOU KNOW WHAT

YOU ARE DOING!!!!
{% endhint %}

***

## Notify System

{% hint style="info" %}
By default we use the built in qbcore notify system however we also support ox\_lib notify but if you know what you are doing you can integrate this as well.

* DHS-LumberJack/client/functions.lua
  {% endhint %}

````lua
```lua
function Notify(text, type, time)
    if Config.Notify == "qbcore" then
        local QBCore = exports['qb-core']:GetCoreObject()
        QBCore.Functions.Notify(text, type, time)
    elseif Config.Notify == "ox_lib" then
        lib.notify({
            title = text,
            type = type,
            duration = time
        })
    elseif Config.Notify == "custom" then
        -- Custom Notify System Here
    else
        print("No Notify System Selected")
    end
end
```
````

***

## Phone System

{% hint style="info" %}
By default we use the built int qbcore phone system however you can add whatever integration you need here
{% endhint %}

```lua
function MailNotify(msg)
	local contact = Config.Lang.phone.contact
	        PlaySoundFrontend(-1, "Menu_Accept", "Phone_SoundSet_Default", true)
	TriggerServerEvent('qb-phone:server:sendNewMail', {
		sender = contact,
		subject = Config.Lang.phone.subject,
		message = msg,
		button = {}
	})	
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://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-lumberjack/integration.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.
