mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
clarify use of ox_target addEntity/removeEntity
This commit is contained in:
1 parent
34976f4134
commit
448759f3e8
2 files changed
+8
-4
No files matched your search
@@ -1,3 +1,5 @@
|
||||
Registers options that will apply to all entities of that type (object, ped, player, vehicle).
|
||||
|
||||
```lua
|
||||
local options = {
|
||||
{
|
||||
|
||||
@@ -42,18 +42,20 @@ exports.ox_target:removeModel(models, optionNames)
|
||||
|
||||
## 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
|
||||
exports.ox_target:addEntity(entities, options)
|
||||
exports.ox_target:addEntity(netIds, options)
|
||||
```
|
||||
|
||||
## 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
|
||||
exports.ox_target:removeEntity(entities, optionNames)
|
||||
exports.ox_target:removeEntity(netIds, optionNames)
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user