REC_Notify
Handler
Welcome to REC_Notify documentation.
- Added
- Updated
handler/cl_handler.lua runs on every notification before it is drawn. Returning false drops it, and editing notify in place changes how it looks — a color per job, a longer duration for one type, a mute during a cutscene.
---@param notify REC_Notify.Shared.Notify
---@return boolean
function handler:onShow(notify)
if notify.type == "error" then
notify.duration = 8000
end
return true
end
handler/sv_handler.lua does the same on the server with onNotify(playerId, payload), called once per target, so returning false skips that one player and leaves the rest alone.
