From 554aaba4901c4ff4d5927c7c9713e42a88f4e319 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:25:11 +1100 Subject: [PATCH] Update index.md --- docs/ox_target/Usage/index.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/ox_target/Usage/index.md b/docs/ox_target/Usage/index.md index 0da3cd81..997edf77 100644 --- a/docs/ox_target/Usage/index.md +++ b/docs/ox_target/Usage/index.md @@ -7,13 +7,17 @@ When calling exports to add options, the input is an array of tables with the fo - icon?: `string` Name of a [Font Awesome](https://fontawesome.com/icons) icon. - iconColor?: `string` - distance?: `number` -- bones?: `string` | `string[]` A bone name or array of bone names. - - Refer to [GetEntityBoneIndexByName](https://docs.fivem.net/natives/?_0xFB71170B7E76ACBA). -- groups?: `string` | `string[]` | `table` A group, array of groups, or pairs of groups-grades required to show the option. +- bones?: `string` | `string[]` + - A bone name or array of bone names (refer to [GetEntityBoneIndexByName](https://docs.fivem.net/natives/?_0xFB71170B7E76ACBA)). +- groups?: `string` | `string[]` | `table` + - 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` An item, array of items, or pairs of items-count required to show the option. +- items?: `string` | `string[]` | `table` + - 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. +- anyItem?: `boolean` + - Only require a single item from the items table to exist. +- canInteract?: `function(entity, distance, coords, name, bone)` - Do not use this function to "return true". Options will always display if this is undefined. - onSelect?: `function(data)` - export?: `string`