Exports
Functions
OpenDialog
Opens a dialog interaction with a specified NPC or entity, allowing players to select options from a customizable menu.
Parameters:
data
: A table containing the following fields:ped
: The NPC or entity to interact with.pedName
: A string representing the name of the NPC displayed at the top of the dialog.info
(optional): A descriptive text providing additional context or information about the dialog.options
: A table of interaction options. Each option can define an action to take when selected.
Usage:
Example:
Last updated