forked from brentN5/bt-target
-
Notifications
You must be signed in to change notification settings - Fork 3
AddCircleZone
Liam Dormon edited this page Aug 5, 2021
·
9 revisions
Creates a CircleZone using PolyZone which can be interacted with.
AddCircleZone(name: string, center: vector3, radius: float, options: table, parameters: table)
options = {
name: string -- Name of BoxZone
debugPoly: boolean -- Toggle debug drawing for CircleZone
}
parameters= {
options: table {event: string, icon: string, label: string, job:string[]}
distance: int -- distance between player and the model
}Citizen.CreateThread(function()
AddCircleZone("PoliceDuty", vector3(441.79, -982.07, 30.69), 1.4, {
name="PoliceDuty",
debugPoly=false,
}, {
options = {
{
event = "signon",
icon = "far fa-clipboard",
label = "Sign On",
job = {"police", "ambulance", "mechanic"}
},
{
event = "signoff",
icon = "far fa-clipboard",
label = "Sign Off",
job = {"police", "ambulance", "mechanic"},
},
},
distance = 1.5
})
end)