Events & Exports
This section contains documentation for all the events and exports available in the omik_callist resource.
Available Documentation
Server-Side Integration
- Server Events - Events you can trigger on the server side
- Server Exports - Functions you can call from other server-side resources
Client-Side Integration
- Client Events - Events you can trigger on the client side
- Client Exports - Functions you can call from other client-side resources
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()