Skip to content

Commit 4ef1637

Browse files
committed
allowInVehicle
1 parent f979cfc commit 4ef1637

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

pages/interact/client/addCoords.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Adds a static coordinates-based interaction to the game. This function registers
1212
- `onEnter` (`function(data: CPoint)`) [onEnter](https://overextended.dev/ox_lib/Modules/Points/Lua/Client) cb function for an ox_lib point
1313
- `onExit` (`function(data: CPoint)`) [onExit](https://overextended.dev/ox_lib/Modules/Points/Lua/Client) cb function for an ox_lib point
1414
- `nearby` (`function(data: CPoint)`) [nearby](https://overextended.dev/ox_lib/Modules/Points/Lua/Client) cb function for an ox_lib point
15+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1516
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1617
- `label` (`string`): The text displayed for the option.
1718
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addEntity.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Registers an interaction for a networked entity in the game. This function enabl
99
- `netId` (`number`): The network ID for the networked entity.
1010
- `offset?` (`vec3`): The offset from the entity's position where the interaction is located.
1111
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
12+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1213
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1314
- `label` (`string`): The text displayed for the option.
1415
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addGlobalModel.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Registers interactions for one or more models in the game. This function enables
1010
- `model` (`string | number`): The model name or hash for which the interaction is being registered.
1111
- `offset?` (`vec3`): The offset from the model's position where the interaction is located.
1212
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
13+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1314
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1415
- `label` (`string`): The text displayed for the option.
1516
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addGlobalPed.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Registers a global interaction for non-player characters (NPCs) or peds in the g
77
- `data` (`PedInteractionData`): A table containing the interaction data. It must include:
88
- `id` (`string | number`): A unique identifier for the interaction.
99
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
10+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1011
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1112
- `label` (`string`): The text displayed for the option.
1213
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addGlobalPlayer.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Registers a global interaction for players in the game. This function enables in
77
- `data` (`PedInteractionData`): A table containing the interaction data. It must include:
88
- `id` (`string | number`): A unique identifier for the interaction.
99
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
10+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1011
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1112
- `label` (`string`): The text displayed for the option.
1213
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addGlobalVehicle.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Registers a global interaction for networked vehicles in the game. This function
77
- `data` (`VehicleInteractionData`): A table containing the interaction data. It must include:
88
- `id` (`string | number`): A unique identifier for the interaction.
99
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
10+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1011
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1112
- `label` (`string`): The text displayed for the option.
1213
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

pages/interact/client/addLocalEntity.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Registers an interaction for a local (non-networked) entity in the game. This al
99
- `entity` (`number`): The entity handle of the local entity.
1010
- `offset?` (`vec3`): The offset from the entity's position where the interaction is located.
1111
- `bone?` (`string or string[]`): name of the bone to interact with or an array of bones. will use the first valid bone for the entity from the array
12+
- `allowInVehicle?` (`boolean`): wether or not you can use this interaction in a car (default: `false`).
1213
- `options` (`table`): A list of options for the interaction. Each option is a table with the following fields:
1314
- `label` (`string`): The text displayed for the option.
1415
- `icon` (`string`): The simple FontAwesome icon name displayed for the option (e.g., "hand").

0 commit comments

Comments
 (0)