Skip to main content

Server Exports

The call list has a few exports that make it easy to communicate with the call list. See the available server exports below.

newCall

Send a new call to the call list

exports["omik_callist"]:newCall(playerSrc, message, job, coords, y)

Parametre

ParameterBeskrivelseTypeDefault
playerSrcSenders src or 0 for unknown sendernumber0
messageMessage to be sentstring""
jobOne of the jobs in Config.jobsstring""
coords or xVector with x,y coords or xvector2(x, y) or number0
yNot necessary if you send coords as vector2(x,y)number0

Example

local player = source
local ped = GetPlayerPed(player)
local playerCoords = GetEntityCoords(ped)
exports["omik_callist"]:newCall(source, "I need help", "police", playerCoords.xy)

Config

Get the config for the call list

exports["omik_callist"]:Config()