Interact Options
All interact actions are formated as an array containing objects with the following properties.
InteractOptions:
name?:
stringlabel:
stringicon?:
string (fontawesome icon)key?:
string (default: E)progress?:
ProgressPropsdistance?:
numberpointDistance?:
numbergroups?:
string | string[] | table<string, number | number[]>canInteract?:
function(entity, distance, coords, name, bone)onSelect?:
function(data)export?:
string (example: ox_inventory.openInventory)event?:
stringserverEvent?:
stringcommand?:
stringargs?:
any
ProgressProps:
duration?:
numbercolor?:
stringcolor2?:
stringcolor2Percentage?:
string
Callback
This is the data returned to a registered callback or event for selected option.
A selected option will trigger a single action, in order of priority:
onSelect
export
event
server event
command
data:
tablecoords:
vector3coordsId:
stringplayerId:
numberentity:
numberdistance:
number
Last updated