@@ -15,6 +15,26 @@ exports.ox_target:disableTargeting(state)
15
15
- state: ` boolean `
16
16
- Setting ` state ` to ` true ` will turn off the targeting eye if it is active and prevent it from reopening until ` state ` is set to ` false ` again.
17
17
18
+ ## addGlobalOption
19
+
20
+ Creates new targetable options which are displayed at all times.
21
+
22
+ ``` lua
23
+ exports .ox_target :addGlobalOption (options )
24
+ ```
25
+
26
+ - options: ` TargetOptions `
27
+
28
+ ## removeGlobalOption
29
+
30
+ Removes all options from the global options list with the option names.
31
+
32
+ ``` lua
33
+ exports .ox_target :removeGlobalOption (optionNames )
34
+ ```
35
+
36
+ - optionNames: ` string ` or ` string[] `
37
+
18
38
## addGlobalObject
19
39
20
40
Creates new targetable options for all Object entity types.
@@ -23,7 +43,7 @@ Creates new targetable options for all Object entity types.
23
43
exports .ox_target :addGlobalObject (options )
24
44
```
25
45
26
- - options: ` table `
46
+ - options: ` TargetOptions `
27
47
28
48
## removeGlobalObject
29
49
@@ -43,7 +63,7 @@ Creates new targetable options for all Ped entity types (excluding players).
43
63
exports .ox_target :addGlobalPed (options )
44
64
```
45
65
46
- - options: ` table `
66
+ - options: ` TargetOptions `
47
67
48
68
## removeGlobalPed
49
69
@@ -63,7 +83,7 @@ Creates new targetable options for all Player entities.
63
83
exports .ox_target :addGlobalPlayer (options )
64
84
```
65
85
66
- - options: ` table `
86
+ - options: ` TargetOptions `
67
87
68
88
## removeGlobalPlayer
69
89
@@ -83,7 +103,7 @@ Creates new targetable options for all Vehicle entity types.
83
103
exports .ox_target :addGlobalVehicle (options )
84
104
```
85
105
86
- - options: ` table `
106
+ - options: ` TargetOptions `
87
107
88
108
## removeGlobalVehicle
89
109
@@ -104,7 +124,7 @@ exports.ox_target:addModel(models, options)
104
124
```
105
125
106
126
- models: ` number ` or ` string ` or ` Array<number | string> `
107
- - options: ` table `
127
+ - options: ` TargetOptions `
108
128
109
129
## removeModel
110
130
@@ -126,7 +146,7 @@ exports.ox_target:addEntity(netIds, options)
126
146
```
127
147
128
148
- netIds: ` number ` or ` number[] `
129
- - options: ` table `
149
+ - options: ` TargetOptions `
130
150
131
151
## removeEntity
132
152
@@ -148,7 +168,7 @@ exports.ox_target:addLocalEntity(entities, options)
148
168
```
149
169
150
170
- entities: ` number ` or ` number[] `
151
- - options: ` table `
171
+ - options: ` TargetOptions `
152
172
153
173
## removeLocalEntity
154
174
@@ -174,7 +194,7 @@ exports.ox_target:addSphereZone(parameters)
174
194
- radius?: ` number `
175
195
- debug?: ` boolean `
176
196
- drawSprite?: ` boolean `
177
- - options: ` table `
197
+ - options: ` TargetOptions `
178
198
179
199
Return:
180
200
- id: ` number `
@@ -193,7 +213,7 @@ exports.ox_target:addBoxZone(parameters)
193
213
- rotation?: ` number `
194
214
- debug?: ` boolean `
195
215
- drawSprite?: ` boolean `
196
- - options: ` table `
216
+ - options: ` TargetOptions `
197
217
198
218
Return:
199
219
- id: ` number `
@@ -212,7 +232,7 @@ exports.ox_target:addPolyZone(parameters)
212
232
- thickness?: ` number `
213
233
- debug?: ` boolean `
214
234
- drawSprite?: ` boolean `
215
- - options: ` table `
235
+ - options: ` TargetOptions `
216
236
217
237
Return:
218
238
- id: ` number `
0 commit comments