AddSphereZone
Creates a spherical target zone at specified coordinates.
Syntax:
Bridge.Target.AddSphereZone(name, coords, radius, heading, options)
Parameters:
name
(string) - Unique name for the zonecoords
(table) - Center coordinates of the sphere (vector3)radius
(number) - Radius of the sphereheading
(number) - Rotation heading (may not apply to all systems)options
(table) - Array of target option configurations
Example:
local Bridge = exports['community_bridge']:Bridge()
local coords = vector3(150.0, 250.0, 30.0)
local zoneId = Bridge.Target.AddSphereZone("atm_zone", coords, 1.5, 0.0, {
{
label = "Use ATM",
icon = "fas fa-credit-card",
onSelect = function()
-- Open ATM interface
end
}
})
Last updated