Back

Resource details

About this resource

Documentation

Advanced NPC dialog system with cinematic camera, interactive buttons, and a modern React UI. Fully customizable, API-ready, and integrated with ox_lib for immersive conversations.

Key Features

  • Automatic camera management — cinematic framing for the NPC and the player
  • Interactive dialogs — multiple buttons with custom callbacks
  • Modern UI — smooth, responsive, and built for RedM
  • Simple APIshowDialog, hideDialog, plus click and close events

Example

exports["rco-dialogs"]:showDialog({
  npc = shopkeeper,
  name = { text = "Shopkeeper" },
  message = { text = "Welcome to my shop!" },
  buttons = {
    { message = "Buy Items", onSelect = function() end },
    { message = "Leave", onSelect = function()
      exports["rco-dialogs"]:hideDialog()
    end }
  }
})

Requirements

  • ox_lib

Compatibility

Standalone. Works alongside RSG V2 and VORP.