Script Integrations
How to connect your own inventory, target, notify, progressbar, and other scripts
Last updated
function Utils.notify(title, type, duration, description)
exports['my_notify']:Send({
title = title,
description = description,
type = type,
duration = duration
})
endfunction Utils.progressBar(data)
return exports['my_progressbar']:Progress(data)
endfunction Utils.triggerPoliceAlert(alertType)
exports['my_dispatch']:SendAlert({
code = alertType,
coords = GetEntityCoords(cache.ped)
})
endfunction server.exports.beforeJobStart(lobby, job)
if job.name == 'car_theft' and Utils.getPoliceCount() < 2 then
return false
end
return true
end