Integration

This is an entire page on what you can integrate with


Notify System

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

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

By default we use the built int qbcore phone system however you can add whatever integration you need here

function MailNotify(msg)
    --For QB-Phone
	TriggerServerEvent('qb-phone:server:sendNewMail', {
		sender = "JV",
		subject = "Car Details",
		message = msg,
		button = {}
	})	
end

Fuel System

You can change this to whatever you need this to be but by default it works with most LegacyFuel like scripts

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

Last updated