ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
oxshared

lib.notify

ox shared documentation with a FiveM Lua example.

Summary

Shows a notification using ox_lib. A clean, modern replacement for framework-specific notify functions, usable client-side (and triggerable from server).

Returns

void

Parameters

optionstable{ title, description, type = 'success'|'error'|'inform', position }

Example

-- CLIENT
lib.notify({
  title = 'Success',
  description = 'Item purchased',
  type = 'success'
})

Common pitfalls

  • Requires ox_lib to be started as a dependency.
  • To notify from the server, trigger a client event that calls lib.notify, or use the server export.

Related functions

Related guides

FiveM scripts done right

Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.

Browse Scripts →