Client
Target System
Lib47.AddBoxZone
--- @param name string Unique name for the zone
--- @param center vector3 Central coordinates
--- @param length number Length of the box
--- @param width number Width of the box
--- @param options table Zone options (minZ, maxZ, debugPoly, heading, useZ)
--- @param targetoptions table List of options using qb-target structure
Lib47.AddBoxZone("my_zone", vector3(100.0, 200.0, 30.0), 2.0, 2.0, {
minZ = 29.0,
maxZ = 31.0,
debugPoly = false,
heading = 90.0
}, {
options = {
{
type = "client", -- or "server", "command"
event = "myscript:client:action",
icon = "fas fa-user",
label = "Interact",
job = "police", -- qb-target standard
gang = "ballas", -- qb-target standard
item = "handcuffs", -- qb-target standard
action = function() -- Optional function support if not using event
print("Clicked")
end
}
},
distance = 2.5
})Lib47.AddPolyZone
Lib47.AddCircleZone
Lib47.AddTargetEntity
Lib47.AddTargetModel
Lib47.RemoveZone
UI & Progress
Lib47.ShowProgress
Lib47.Notify
Inventory (Client)
Lib47.OpenStash
Lib47.OpenSearchInventory
Lib47.CloseInventory
Lib47.SetInventoryBusy
Vehicles & Keys
Lib47.GiveVehicleKey
Lib47.RemoveVehicleKey
Lib47.SetVehicleFuel
Lib47.StoreVehicleHousing
Lib47.OpenGarageHousing
Status
Lib47.IsDead
Lib47.IsLastStand
Lib47.IsIncapacitated
Last updated