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
Parameter | Beskrivelse | Type | Default |
---|---|---|---|
playerSrc | Senders src or 0 for unknown sender | number | 0 |
message | Message to be sent | string | "" |
job | One of the jobs in Config.jobs | string | "" |
coords or x | Vector with x,y coords or x | vector2(x, y) or number | 0 |
y | Not necessary if you send coords as vector2(x,y) | number | 0 |
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()