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-LumberJack/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)
	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 

Last updated