API Functions

Functions for others scripts

Dispatch Alert

Using server event:

artz_poldisp:sendDispatch

Examples:

-- On client side:
TriggerServerEvent("artz_poldisp:sendDispatch", 
    "COD-37", -- Code Recommend 6 chars maximun
    "Text to dispatch alert", -- Text to alert msg
    vector3(0,0,0), -- Alert coords
    {sprite = 2, color = 57, text="Blip Name"} -- Blip settings
)
-- On server side:
TriggerEvent("artz_poldisp:sendDispatch", 
    "COD-37", -- Code Recommend 6 chars maximun
    "Text to dispatch alert", -- Text to alert msg
    vector3(0,0,0), -- Alert coords
    {sprite = 2, color = 57, text="Blip Name"} -- Blip settings
)

Another examples for car vehicles:

Result this code in:

Result from code above

Dispatch Chat

To send text to chat panel you can use:

You can use html code and class to this message like this example:

Result from code above

Last updated