clarify use of ox_target addEntity/removeEntity

This commit is contained in:
Linden committed 2022-11-14 10:14:56 +11:00
1 parent 34976f4134
commit 448759f3e8
2 files changed
+8 -4

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
Registers options that will apply to all entities of that type (object, ped, player, vehicle).
```lua ```lua
local options = { local options = {
{ {
+6 -4
View File
@@ -42,18 +42,20 @@ exports.ox_target:removeModel(models, optionNames)
## addEntity ## addEntity
Add new options when targeting a networked entity or list of entities. Add new options when targeting a networked entity matching the given netid or list of netids.
Requires the use of [NetworkGetNetworkIdFromEntity](https://docs.fivem.net/natives/?_0x9E35DAB6) on an entity id.
```lua ```lua
exports.ox_target:addEntity(entities, options) exports.ox_target:addEntity(netIds, options)
``` ```
## removeEntity ## removeEntity
Remove options from a networked entity or list of entities. Remove options from a networked entity matching the given netid or list of netids.
Requires the use of [NetworkGetNetworkIdFromEntity](https://docs.fivem.net/natives/?_0x9E35DAB6) on an entity id.
```lua ```lua
exports.ox_target:removeEntity(entities, optionNames) exports.ox_target:removeEntity(netIds, optionNames)
``` ```