Hop til hovedindhold

Events & Exports

This section contains documentation for all the events and exports available in the omik_callist resource.

Available Documentation

Server-Side Integration

Client-Side Integration

Quick Reference

Adding a New Call

You can add a new call to the call list using any of these methods:

Server-Side

-- Using events
TriggerEvent("omik_callist:newCall", playerSrc, message, job, coords)

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

Client-Side

-- Using events
TriggerEvent("omik_callist:newCall", playerSrc, message, job, coords)

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

Opening the Call List

You can open the call list interface using any of these methods:

Server-Side

-- Only available on the client side

Client-Side

-- Using events
TriggerEvent("omik_callist:open")

-- Using exports
exports["omik_callist"]:open()

Getting Configuration

-- Only available as an export
local config = exports["omik_callist"]:Config()