AddZone
AddZone
Arguments
Argument
Description
Usage
exports['nyx2_target']:AddZone(identifier, type, zoneOptions, options)Example (Circle Zone)
exports['nyx2_target']:AddZone('debug_zone_circle', 'circle', {
name = 'debug_zone_circle',
center = vector3(-73.65, -816.52, 326.18 - 1.0),
radius = 1.0,
debugPoly = true,
useZ = true,
}, {
{
title = 'Debug Circle Zone',
icon = 'fas fa-cube',
action = function(zone)
local QBCore = exports['qb-core']:GetCoreObject()
QBCore.Functions.Notify('You are inside a circle zone!', 'success')
end,
canInteract = function(zone)
return true
end,
job = nil, -- if nil, all jobs can interact
gang = nil, -- if nil, all gangs can interact
citizenid = nil, -- if nil, all players can interact
item = nil, -- if nil, don't require an item to interact
}
})Example (Box Zone)
RemoveZone
Arguments
Argument
Description
Example
Last updated