Accessible code
Utils = {}
Utils.Notification = function(title, description, type, duration)
lib.notify({
title = title,
description = description,
type = type,
duration = duration
})
end
function Utils.Dispatch()
local PlayerCoords = GetEntityCoords(cache.ped)
local PlayerHeading = GetEntityHeading(cache.ped)
local PlayerVehicle = GetVehiclePedIsIn(cache.ped, false)
-- here you can put your function for dispatch
endUtils = {}
Utils.Notification = function(src, title, description, type, duration)
TriggerClientEvent('ox_lib:notify', src, {
title = title,
description = description,
type = type,
duration = duration
})
end
Utils.SendBill = function(targetId, job, reason, amount)
if Config.billingType == 'esx_billing' then
TriggerEvent('esx_billing:sendRadarBill', targetId, 'society_'..job, reason, amount)
elseif Config.billingType == 'custom' then
-- your event
end
endLast updated