DirkScripts
Docs
Target
âšī¸ 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
lualib.target.box(id, data)
| 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
lualib.target.polyzone(id, data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | true | Unique zone reference |
| data | Object | true | Zone options |
#lib.target.removeZone
Remove a created zone
lualib.target.removeZone(id)
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | true | Unique zone reference |
#lib.target.entity
Create an entity and allow targeting
lualib.target.entity(entity, data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| entity | String | true | Unique zone reference |
| data | Object | true | Zone options |
#lib.target.removeEntity
Remove an entity zone
lualib.target.removeEntity(entity, net)
| 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
lualib.target.addModels(data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Model target data (models, options, distance) |
#lib.target.addGlobalVehicle
Add target options to all vehicles
lualib.target.addGlobalVehicle(data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all vehicles |
#lib.target.addGlobalPed
Add target options to all peds
lualib.target.addGlobalPed(data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all peds |
#lib.target.addGlobalPlayer
Add target options to all players
lualib.target.addGlobalPlayer(data)
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | table | yes | Target options for all players |
