Skip to main content

Client Events

The call list has a few events that make it easy to communicate with the call list from the client side. See the available client events below.

Adding a New Call

Event: omik_callist:newCall

Send a new call to the call list from a client script

Aliases

The following event names all perform the same action:

  • omik_callist:newCall
  • omik_callist:NewCall
  • omik_callist:addCall
  • omik_callist:AddCall
TriggerEvent("omik_callist:newCall", playerSrc, message, job, coords)

Parameters

ParameterDescriptionTypeDefault
playerSrcSender's source ID or 0 for unknown sendernumber0
messageMessage to be sentstring""
jobOne of the jobs in Config.jobsstring""
coordsVector with x,y coordsvector2(x, y)

Example

-- Using your current player information
local player = GetPlayerServerId(PlayerId())
local playerCoords = GetEntityCoords(PlayerPedId())
TriggerEvent("omik_callist:newCall", player, "I need help", "police", playerCoords.xy)

Opening the Call List

Event: omik_callist:open

Open the call list interface from a client script

Aliases

The following event names all perform the same action:

  • omik_callist:open
  • omik_callist:Open

Example

-- To open the call list interface
TriggerEvent("omik_callist:open")