> For the complete documentation index, see [llms.txt](https://dragon-heart-studios.gitbook.io/dragonheartstudios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-lumberjack/integration.md).

# Integration

This is an entire page on what you can integrate with

{% 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 
```

***
