-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
36 lines (29 loc) · 1.87 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Config = {
Greenzones = {
["pillbox"] = {
location = {x = 278.63, y = -583.48, z = 43.29},
diameter = (21 * 3.14159), -- the maximum width of the sphere. this is also the width on ground level. Multiply this by 3.14159 to have a better looking sphere, It's not required to do that however.
visabilitydistance = 25.0, -- the maximum distance from the circle's shell that the player is able to see. (reccomended distance is 25.0).
color = {r = 255, g = 255, b = 255, a = 0}, -- The color of the zone's sphere (set a to equal 0 to be transparent).
restrictions = {
blockattack = true, -- disables any type of attack and weapon usage.
speedlimit = 35.0, -- NOTE: Measurement is in MP/H. Change to a speed if enabled. Else change to nil to disable.
},
customrestrictions = {
-- Enable/Disable run function to loop while inside the zone.
-- NOTE: All functions will be executed on the side the function is called on.
-- Meaning if you call this function through the client-side, you must use client-sided methods and natives.
enabled = true,
-- (customrestriction.loop = true => run function while player is inside.)
-- (customrestriction.loop = false => run function when player goes inside.)
loop = false,
-- Runs while/when player is inside the zone.
run = function(zone)
end,
-- Same as above, but runs once when the player leaves the zone. This also stops the loop of the run function if looping is enabled.
stop = function(zone)
end,
},
},
},
}