API Functions
Functions for others scripts
Dispatch Alert
Using server event:
artz_poldisp:sendDispatchExamples:
-- 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:

Dispatch Chat
To send text to chat panel you can use:
You can use html code and class to this message like this example:

Last updated