AddArea
Available
Client
Syntax
AddArea(name, settings)
Parameters
| Variable | Type |
|---|---|
| name | String |
| settings | Array |
Settings parameters
locations parameters
| Variable | Type | Default value |
|---|---|---|
| x | Number | 0 |
| y | Number | 0 |
| z | Number | 0 |
Exemple
exports.ft_libs:AddArea("ft_libs_area_exemple", {
marker = {
type = 1,
weight = 1,
height = 1,
red = 255,
green = 255,
blue = 153,
},
trigger = {
weight = 4,
active = {
callback = activeCallback,
},
},
blip = {
text = "Exemple",
colorId = 18,
imageId = 51,
},
locations = {
{
x = -451.02,
y = -359.98,
z = -186.46,
},
{
x = -451.02,
y = -359.98,
z = -186.46,
},
},
})
exports.ft_libs:AddArea(
["ft_libs_area_exemple_1"] = {
marker = {
type = 1,
weight = 1,
height = 1,
red = 255,
green = 255,
blue = 153,
},
trigger = {
weight = 4,
active = {
callback = activeCallback,
},
},
blip = {
text = "Exemple",
colorId = 18,
imageId = 51,
},
locations = {
{
x = -451.02,
y = -359.98,
z = -186.46,
},
{
x = -451.02,
y = -359.98,
z = -186.46,
},
},
},
["ft_libs_area_exemple_2"] = {
marker = {
type = 1,
weight = 1,
height = 1,
red = 255,
green = 255,
blue = 153,
},
trigger = {
weight = 4,
active = {
callback = activeCallback,
},
},
blip = {
text = "Exemple",
colorId = 18,
imageId = 51,
},
locations = {
{
x = -451.02,
y = -359.98,
z = -186.46,
},
{
x = -451.02,
y = -359.98,
z = -186.46,
},
},
},
})
Updated about 7 years ago
