mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
also remove the canInteract sample code because people copy-paste it like the braindead apes they are without any understanding of what it's actually doing
1.2 KiB
1.2 KiB
Usage
When calling exports to add options, the input is an array of tables with the following properties.
- label:
stringDisplay text. - name?:
stringUsed as an identifier to remove the option. - icon?:
stringName of a Font Awesome icon. - iconColor?:
string - distance?:
number - bones?:
string|string[]A bone name or array of bone names.- Refer to GetEntityBoneIndexByName.
- groups?:
string|string[]|table<string, number>A group, array of groups, or pairs of groups-grades required to show the option.- Groups are framework dependent, and may refer to jobs, gangs, etc.
- items?:
string|string[]|table<string, number>` An item, array of items, or pairs of items-count required to show the option.- Items are framework dependent.
- canInteract?:
function(entity, distance, coords, name, bone)Check if the option should display or be hidden.- Do not use this function to "return true". Options will always display if this is undefined.
- onSelect?:
function(data) - export?:
string - event?:
string - serverEvent?:
string - command?:
string