Notify
VORP ships 17 named notify styles. RSG Core has none of its own — it delegates entirely to ox_lib's single lib.notify. wc_lib gives you full access to every VORP variant, and best-effort maps each one down to RSG's one notify type when that's what's running.
Notify(source, opts)client
Sends a notification using whichever framework is active.
| Field | Type | Used by |
|---|---|---|
| variant | string | nil | Picks a VORP style. Defaults to 'avanced'. |
| title | string | All variants. |
| subtitle | string | nil | left, simpletop, fail, update, warning, leftrank, leftinteractive |
| dict / icon | string | nil | left, avanced, leftrank, leftinteractive |
| color | string | nil | left, avanced, leftrank, leftinteractive |
| duration | number | nil | All variants. Defaults to 4000ms (-1 on leftinteractive = stays on screen). |
| quality / showQuality | number / boolean | avanced only. |
| audioref / audioname | string | nil | dead, warning |
| second_description | string | nil | threesimpletop only |
| location | string | nil | top only |
Try it — pick a variant and a framework, see what wc_lib actually calls underneath:
underneath, on —
your code (same on both)
wc:Notify(source, {
variant = 'righttip',
title = "Job updated: Marshal",
duration = 4000,
})
vorp_core — exact variant, full fidelity
Core.NotifyRightTip("Job updated: Marshal", 4000)
rsg — collapsed to ox_lib's one notify type
lib.notify({
title = "Job updated: Marshal",
type = 'inform',
duration = 4000,
})
Visual fidelity is intentionally asymmetric. VORP is the richer "main" experience this lib is built around — every one of its 17 variants is preserved exactly. RSG gets the closest reasonable fallback, not a 1:1 match, since ox_lib's notify just doesn't have that many distinct visual styles to map to.
Variant reference
Every VORP variant, and what it collapses to on RSG.
| variant | VORP call | RSG fallback type |
|---|---|---|
| avanced (default) | NotifyAvanced | success |
| left | NotifyLeft | inform |
| tip | NotifyTip | inform |
| righttip | NotifyRightTip | inform |
| objective | NotifyObjective | inform |
| top | NotifyTop | inform |
| simpletop | NotifySimpleTop | inform |
| center | NotifyCenter | inform |
| bottomright | NotifyBottomRight | inform |
| fail | NotifyFail | error |
| dead | NotifyDead | error |
| update | NotifyUpdate | success |
| warning | NotifyWarning | error |
| leftrank | NotifyLeftRank | success |
| onesimpletop | NotifyOneSimpleTop | inform |
| threesimpletop | NotifyThreeSimpleTop | inform |
| leftinteractive | NotifyLeftInteractive | inform |
example — money reward (default variant)
-- no variant specified — uses 'avanced', the default
wc:Notify(source, {
title = "+$50",
icon = 'itemtype_cash',
color = 'COLOR_WHITE',
})