wasvendel_dispatch
wasvendel scripts
wasvendel_dispatch
wasvendel scripts
wasvendel_dispatch.wasvendel_dispatch folder into your server's resources directory.server.cfg after your framework core.Edit config.lua to configure the command, keybind, map blips, sounds, prompt locations, and alerted jobs.
| Setting | Default | Description |
|---|---|---|
Config.Command.command | noti | Command used to open the dispatch menu. |
Config.Command.button | PageUp | Keybind used to open the dispatch menu. |
wasvendel_robbery automatically integrates with wasvendel_dispatch when both resources are started.
Robbery creator dispatch steps call wasvendel_dispatch:senddispatch directly.
Supports VORP and RSG.
Job detection uses the active framework's player job API.
| Export | Signature | Description |
|---|---|---|
OpenDispatchMenu | (jobs, coords) | Opens the dispatch creation menu. |
| Parameter | Description |
|---|---|
jobs | Table of job names, for example {"police", "marshall"}. |
coords | vector3 or nil. If nil, the player's current position is used. |
| Event | Payload | Description |
|---|---|---|
wasvendel_dispatch:senddispatch | header, message, coords, job, alertSource | Sends an alert to all players with the selected job. |
| Parameter | Type | Description |
|---|---|---|
header | string | Alert title. |
message | string | Alert body. |
coords | table | Location table: { x, y, z }. |
job | string | Target job name. |
alertSource | number? | Optional server ID used for logging. |
| Event | Payload | Description |
|---|---|---|
wasvendel_dispatch:requestAll | job | Loads stored notifications for a job. |
wasvendel_dispatch:requestAllForMe | None | Loads notifications for the caller's job. |
wasvendel_dispatch:deleteNotification | id | Deletes a notification. |
wasvendel_dispatch:editNotification | id, newMessage | Edits a notification message. |
wasvendel_dispatch:getNotiSettings | None | Gets UI settings. |
wasvendel_dispatch:saveNotiSettings | data | Saves UI settings. |
| Event | Payload | Description |
|---|---|---|
wasvendel_dispatch:sendalert | header, message, location, number | Sends an incoming dispatch alert. |
wasvendel_dispatch:open | None | Opens the dispatch panel. |
wasvendel_dispatch:openDispatchMenu | jobs, coords | Opens the dispatch creation menu. |
wasvendel_dispatch:loadStored | job, list, hidden | Loads stored notifications. |
wasvendel_dispatch:updateRemote | id, newMessage | Updates a remote notification. |
wasvendel_dispatch:deleteRemote | id | Deletes a remote notification. |
| Event | Payload | Description |
|---|---|---|
wasvendel_dispatch:logdispatch | src, message, location, job | Triggered when a dispatch is logged. |