Target
Library
Updated 2 months ago ·
v1.3.7i
Client Module - This can only be used on the client
For zone data structures, refer to your target resource
lib.target.box
Create a simple box zone
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | true | Unique zone reference |
| data | Object | true | Zone options |
lib.target.polyzone
Create a polrzone
!
This documentation isn't confirmed / is not implimented yet
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | true | Unique zone reference |
| data | Object | true | Zone options |
lib.target.removeZone
Remove a created zone
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | true | Unique zone reference |
lib.target.entity
Create an entity and allow targeting
| Parameter | Type | Required | Description |
|---|---|---|---|
| entity | String | true | Unique zone reference |
| data | Object | true | Zone options |
lib.target.removeEntity
Remove an entity zone
| Parameter | Type | Required | Description |
|---|---|---|---|
| entity | number | yes | Entity handle |
| net | boolean | no | Is the entity networked |
lib.target.addModels
Add target options to one or more models globally
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Model target data (models, options, distance) |
lib.target.addGlobalVehicle
Add target options to all vehicles
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all vehicles |
lib.target.addGlobalPed
Add target options to all peds
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all peds |
lib.target.addGlobalPlayer
Add target options to all players
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all players |
Was this page helpful?
This page was last updated on 12 March 2026