RE:CORD
REC_Notify

Exports

Welcome to REC_Notify documentation.
Added
Updated

Server side

Server-side exports take the target as their first argument. playerId is integer|integer[] — a single id, an array of them, or -1 for everyone connected.

notify

Shows a notification to a player.

ArgumentTypeDescription
playerIdinteger|integer[]Target player, or -1 for everyone
payloadPayloadThe same table as the client side

Returns boolean — false when the payload or the target was unusable.

exports.REC_Notify:notify(playerId, payload)
sample.lua
RegisterCommand("payday", function(source)
    exports.REC_Notify:notify(source, {
        type        = "success",
        title       = "REC_Notify",
        description = "Payday has landed.",
        icon        = "money",
    })

    exports.REC_Notify:notify(-1, {
        type        = "info",
        description = "Payday has been paid out to everyone.",
    })
end, true)

hide

Dismisses one of a player's notifications.

ArgumentTypeDescription
playerIdinteger|integer[]Target player, or -1 for everyone
idstringThe id the notification was sent with

Returns boolean.

exports.REC_Notify:hide(playerId, id)
The id is issued on the client, so the server never learns it on its own. Send payload.id yourself when you intend to dismiss a notification later.

clear

Dismisses everything on a player's screen.

ArgumentTypeDescription
playerIdinteger|integer[]Target player, or -1 for everyone

Returns boolean.

exports.REC_Notify:clear(playerId)

defaultNotify

Displays an ox_lib-compatible notification payload.

ArgumentType
playerIdinteger|integer[]
payloadREC_Notify.Shared.DefaultNotify.Payload

Returns: boolean.

exports.REC_Notify:defaultNotify(playerId, payload)

Client side

notify

Shows a notification to the player running the script.

ArgumentTypeDescription
payloadPayloadThe table below

Returns string? — the id of the notification, nil when nothing was shown.

exports.REC_Notify:notify(payload)
sample.lua
Citizen.CreateThread(function()
    exports.REC_Notify:notify({
        type        = "success",
        title       = "REC_Notify",
        description = "The vehicle has been stored.",
        duration    = 4000,
        position    = "top-right",
    })
end)

Payload is REC_Notify.Shared.Notify.Payload. Every field is optional:

FieldTypeDescription
typeNotifyType?success / error / info / warning / neutral
titlestring?Drawn in the accent color
descriptionstring?Body text
durationinteger?Milliseconds. Falls back to config.ui.defaultDuration
positionPosition?Falls back to config.ui.position
iconstring?A Font Awesome name or class, such as circle-check or fa-solid fa-circle-check
colorstring?Accent color as hex
playSoundboolean?Falls back to config.sound.default
soundstring?An audio file in web/build/sounds/, replacing the sound of the type
idstring?Sending the same id again replaces what is on screen
A payload carrying neither title nor description is dropped, and notify returns nil.

hide

Dismisses one notification before its time is up.

ArgumentTypeDescription
idstringThe id notify returned

Returns boolean.

exports.REC_Notify:hide(id)

clear

Dismisses everything on screen, queued notifications included.

Takes no arguments. Returns boolean.

exports.REC_Notify:clear()

defaultNotify

Displays an ox_lib-compatible notification for the local player.

ArgumentType
payloadREC_Notify.Shared.DefaultNotify.Payload

Returns boolean.

exports.REC_Notify:defaultNotify(payload)
©2026 RE:CORD Development Group. All rights reserved.