DirkScripts Logo

Login With FiveM

Login

📚 Library
â€ē
Modules
â€ē

target

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

lua
lib.target.box(id, data)
Parameter TypeRequiredDescription
idStringtrueUnique zone reference
dataObjecttrueZone options

lib.target.polyzone

Create a polrzone

âš ī¸ This documentation isn't confirmed / is not implimented yet

lua
lib.target.polyzone(id, data)
Parameter TypeRequiredDescription
idStringtrueUnique zone reference
dataObjecttrueZone options

lib.target.removeZone

Remove a created zone

lua
lib.target.removeZone(id)
Parameter TypeRequiredDescription
idStringtrueUnique zone reference

lib.target.entity

Create an entity and allow targeting

lua
lib.target.entity(entity, data)
Parameter TypeRequiredDescription
entityStringtrueUnique zone reference
dataObjecttrueZone options

lib.target.removeEntity

Remove an entity zone

lua
lib.target.removeEntity(entity, net)
ParameterTypeRequiredDescription
entitynumberyesEntity handle
netbooleannoIs the entity networked

lib.target.addModels

Add target options to one or more models globally

lua
lib.target.addModels(data)
ParameterTypeRequiredDescription
datatableyesModel target data (models, options, distance)

lib.target.addGlobalVehicle

Add target options to all vehicles

lua
lib.target.addGlobalVehicle(data)
ParameterTypeRequiredDescription
datatableyesTarget options for all vehicles

lib.target.addGlobalPed

Add target options to all peds

lua
lib.target.addGlobalPed(data)
ParameterTypeRequiredDescription
datatableyesTarget options for all peds

lib.target.addGlobalPlayer

Add target options to all players

lua
lib.target.addGlobalPlayer(data)
ParameterTypeRequiredDescription
datatableyesTarget options for all players

Copyright Š 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.