Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. Config = {
  2. Greenzones = {
  3. ["sspd"] = {
  4. location = {x = -440.28, y = 6018.93, z = 31.49},
  5. diameter = (20 * 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.
  6. visabilitydistance = 100.0, -- the maximum distance from the circle's shell that the player is able to see. (reccomended distance is 25.0).
  7. color = {r = 0, g = 0, b = 0, a = 0}, -- The color of the zone's sphere (set a to equal 0 to be transparent).
  8. restrictions = {
  9. blockattack = true, -- disables any type of attack and weapon usage.
  10. speedlimit = 35.0, -- NOTE: Measurement is in MP/H. Change to a speed if enabled. Else change to nil to disable.
  11. },
  12.  
  13. customrestrictions = {
  14. -- Enable/Disable run function to loop while inside the zone.
  15. -- NOTE: All functions will be executed on the side the function is called on.
  16. -- Meaning if you call this function through the client-side, you must use client-sided methods and natives.
  17.  
  18. enabled = true,
  19.  
  20. -- (customrestriction.loop = true => run function while player is inside.)
  21. -- (customrestriction.loop = false => run function when player goes inside.)
  22.  
  23. loop = false,
  24.  
  25. -- Runs while/when player is inside the zone.
  26.  
  27. run = function(zone)
  28. end,
  29.  
  30. -- 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.
  31.  
  32. stop = function(zone)
  33. end,
  34. },
  35. },
  36. ["sspd2"] = {
  37. location = {x = 219.28, y = 6542.34, z = 31.84},
  38. diameter = (20 * 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.
  39. visabilitydistance = 100.0, -- the maximum distance from the circle's shell that the player is able to see. (reccomended distance is 25.0).
  40. color = {r = 0, g = 0, b = 0, a = 0}, -- The color of the zone's sphere (set a to equal 0 to be transparent).
  41. restrictions = {
  42. blockattack = true, -- disables any type of attack and weapon usage.
  43. speedlimit = 35.0, -- NOTE: Measurement is in MP/H. Change to a speed if enabled. Else change to nil to disable.
  44. },
  45.  
  46. customrestrictions = {
  47. -- Enable/Disable run function to loop while inside the zone.
  48. -- NOTE: All functions will be executed on the side the function is called on.
  49. -- Meaning if you call this function through the client-side, you must use client-sided methods and natives.
  50.  
  51. enabled = true,
  52.  
  53. -- (customrestriction.loop = true => run function while player is inside.)
  54. -- (customrestriction.loop = false => run function when player goes inside.)
  55.  
  56. loop = false,
  57.  
  58. -- Runs while/when player is inside the zone.
  59.  
  60. run = function(zone)
  61. end,
  62.  
  63. -- 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.
  64.  
  65. stop = function(zone)
  66. end,
  67. },
  68. },
  69. },
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement