# 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-Boosting/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)
    --For QB-Phone
	TriggerServerEvent('qb-phone:server:sendNewMail', {
		sender = "JV",
		subject = "Car Details",
		message = msg,
		button = {}
	})	
end
```

***

## Fuel System

{% hint style="info" %}
You can change this to whatever you need this to be but by default it works with most LegacyFuel like scripts
{% endhint %}

```
function SetFuel(vehicle, fuel)
    if Config.FuelScript == "none" then
        return
    else
        exports[Config.FuelScript]:SetFuel(vehicle, fuel)
    end
end
```

***
