Target

Library
Updated 2 months ago · v1.3.7
i

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
Was this page helpful?
This page was last updated on 12 March 2026
DIRKSCRIPTS
All you need for your FiveM server.10% off your first order

Unsubscribe any time.

Copyright © 2026 DirkScripts. Not affiliated with or endorsed by Rockstar North or Take-Two Interactive.