Beta Branch
Changes:
Added better anti building when event is active.
Added command to spawn crate at any position can be used with timed commands.
Added command to add loot to events.
Attempt fixing npcs getting stuck in rocks should now only find a position around the crate and roam.

Note:
Please make sure to read the update notes.

Example Lang:
{
  "InvalidSyntax": "/gc start <name>\n/gc stop\n/gc here <event-name>\n/gc loot <event-name>\n/gc pos <event-name> <vector-pos>",
  "Prefix": "<color=#856afc>Guarded Crate</color>: ",
  "NoPermission": "sorry you don't have permission to do that.",
  "StartNewEvent": "new event has started.",
  "StopAllEvents": "all crate events have been cleared.",
  "EventStart": "<color=#b697fc>{0}</color> event has started at <color=#b697fc>{1}</color>, eliminate the guards before they leave in <color=#b697fc>{2}</color>.",
  "EventEnded": "<color=#b697fc>{1}</color> cleared the event at <color=#b697fc>{0}</color>",
  "EventClear": "event ended at <color=#b697fc>{0}</color>; You were not fast enough; better luck next time!",
  "EventNotFound": "no event found by that name.",
  "EventPosInvalid": "event position invalid.",
  "EliminateGuards": "all guards must be eliminated.",
  "LootUpdated": "loot table updated."
}​


Commands:
/gc start Easy
/gc stop
/gc loot Easy
/gc here Easy
/gc pos Easy 0,0,0​


Config Data:

{
  "enable events to spawn automatically": true,
  "time between event spawns": 3600.0,
  "manage command name": [
    "gc"
  ]
}


Stored Data:

{
  "CrateEventEntries": [
    {
      "event display name)": "Easy Guard",
      "event duration": 600.0,
      "enable notifications": true,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 60.0,
      "enable marker": true,
      "marker color 1": "#A0FF70",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": true,
      "min loot items": 12,
      "max loot items": 12,
      "guard spawn amount": 10,
      "guard spawn config": {
        "Name": "Guard",
        "Kit": "",
        "Health": 300.0,
        "RoamRange": 15.0,
        "ChaseRange": 35.0,
        "DamageScale": 1.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 0.8,
        "DisableRadio": true,
        "CanRunAwayWater": false,
        "Speed": 6.0,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": null,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "CombatStationaryState"
        ],
        "Sensory": {
          "AttackRangeMultiplier": 3.0,
          "SenseRange": 200.0,
          "MemoryDuration": 15.0,
          "CheckVisionCone": false,
          "VisionCone": 360.0
        },
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 2832868079
          },
          {
            "ShortName": "hoodie",
            "SkinID": 2832865955
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "Amount": 1,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          },
          {
            "ShortName": "syringe.medical",
            "Amount": 10,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          }
        ]
      },
      "create loot items": [
        {
          "DisplayName": null,
          "Shortname": "jackhammer",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "sulfur.ore",
          "SkinID": 0,
          "MinAmount": 5000,
          "MaxAmount": 8000
        },
        {
          "DisplayName": null,
          "Shortname": "lowgradefuel",
          "SkinID": 0,
          "MinAmount": 250,
          "MaxAmount": 300
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rifle.explosive",
          "SkinID": 0,
          "MinAmount": 150,
          "MaxAmount": 250
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rifle.explosive",
          "SkinID": 0,
          "MinAmount": 30,
          "MaxAmount": 50
        },
        {
          "DisplayName": null,
          "Shortname": "metal.ore",
          "SkinID": 0,
          "MinAmount": 8000,
          "MaxAmount": 9000
        },
        {
          "DisplayName": null,
          "Shortname": "hq.metal.ore",
          "SkinID": 0,
          "MinAmount": 250,
          "MaxAmount": 500
        },
        {
          "DisplayName": null,
          "Shortname": "scrap",
          "SkinID": 0,
          "MinAmount": 500,
          "MaxAmount": 750
        },
        {
          "DisplayName": null,
          "Shortname": "targeting.computer",
          "SkinID": 0,
          "MinAmount": 3,
          "MaxAmount": 6
        },
        {
          "DisplayName": null,
          "Shortname": "cctv.camera",
          "SkinID": 0,
          "MinAmount": 3,
          "MaxAmount": 6
        },
        {
          "DisplayName": null,
          "Shortname": "leather",
          "SkinID": 0,
          "MinAmount": 250,
          "MaxAmount": 500
        },
        {
          "DisplayName": null,
          "Shortname": "cloth",
          "SkinID": 0,
          "MinAmount": 750,
          "MaxAmount": 1000
        },
        {
          "DisplayName": null,
          "Shortname": "roadsign.kilt",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.plate.torso",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.facemask",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "autoturret",
          "SkinID": 0,
          "MinAmount": 5,
          "MaxAmount": 5
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.lr300",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.l96",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "pistol.prototype17",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "weapon.mod.extendedmags",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "lmg.m249",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.ak",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "explosive.timed",
          "SkinID": 0,
          "MinAmount": 5,
          "MaxAmount": 7
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.hv",
          "SkinID": 0,
          "MinAmount": 5,
          "MaxAmount": 15
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.basic",
          "SkinID": 0,
          "MinAmount": 5,
          "MaxAmount": 7
        }
      ]
    },
    {
      "event display name)": "Medium",
      "event duration": 600.0,
      "enable notifications": true,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 120.0,
      "enable marker": true,
      "marker color 1": "#FFAC70",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": true,
      "min loot items": 12,
      "max loot items": 16,
      "guard spawn amount": 15,
      "guard spawn config": {
        "Name": "Guard",
        "Kit": "",
        "Health": 300.0,
        "RoamRange": 15.0,
        "ChaseRange": 60.0,
        "DamageScale": 1.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 0.9,
        "DisableRadio": true,
        "CanRunAwayWater": false,
        "Speed": 6.0,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": null,
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "CombatStationaryState"
        ],
        "Sensory": {
          "AttackRangeMultiplier": 3.0,
          "SenseRange": 200.0,
          "MemoryDuration": 15.0,
          "CheckVisionCone": false,
          "VisionCone": 360.0
        },
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 2832868079
          },
          {
            "ShortName": "hoodie",
            "SkinID": 2832865955
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "Amount": 1,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          },
          {
            "ShortName": "syringe.medical",
            "Amount": 10,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          }
        ]
      },
      "create loot items": [
        {
          "DisplayName": null,
          "Shortname": "jackhammer",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "sulfur.ore",
          "SkinID": 0,
          "MinAmount": 5000,
          "MaxAmount": 10000
        },
        {
          "DisplayName": null,
          "Shortname": "lowgradefuel",
          "SkinID": 0,
          "MinAmount": 500,
          "MaxAmount": 750
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rifle.explosive",
          "SkinID": 0,
          "MinAmount": 256,
          "MaxAmount": 500
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rifle.explosive",
          "SkinID": 0,
          "MinAmount": 30,
          "MaxAmount": 50
        },
        {
          "DisplayName": null,
          "Shortname": "metal.ore",
          "SkinID": 0,
          "MinAmount": 8000,
          "MaxAmount": 10000
        },
        {
          "DisplayName": null,
          "Shortname": "hq.metal.ore",
          "SkinID": 0,
          "MinAmount": 500,
          "MaxAmount": 750
        },
        {
          "DisplayName": null,
          "Shortname": "scrap",
          "SkinID": 0,
          "MinAmount": 750,
          "MaxAmount": 1000
        },
        {
          "DisplayName": null,
          "Shortname": "targeting.computer",
          "SkinID": 0,
          "MinAmount": 3,
          "MaxAmount": 6
        },
        {
          "DisplayName": null,
          "Shortname": "cctv.camera",
          "SkinID": 0,
          "MinAmount": 3,
          "MaxAmount": 6
        },
        {
          "DisplayName": null,
          "Shortname": "leather",
          "SkinID": 0,
          "MinAmount": 500,
          "MaxAmount": 750
        },
        {
          "DisplayName": null,
          "Shortname": "cloth",
          "SkinID": 0,
          "MinAmount": 1000,
          "MaxAmount": 2000
        },
        {
          "DisplayName": null,
          "Shortname": "roadsign.kilt",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.plate.torso",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.facemask",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "autoturret",
          "SkinID": 0,
          "MinAmount": 5,
          "MaxAmount": 5
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.lr300",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.l96",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "pistol.prototype17",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "weapon.mod.extendedmags",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "lmg.m249",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.ak",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "explosive.timed",
          "SkinID": 0,
          "MinAmount": 7,
          "MaxAmount": 10
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.hv",
          "SkinID": 0,
          "MinAmount": 7,
          "MaxAmount": 12
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.basic",
          "SkinID": 0,
          "MinAmount": 7,
          "MaxAmount": 12
        }
      ]
    },
    {
      "event display name)": "Hard",
      "event duration": 1800.0,
      "enable notifications": true,
      "enable lock to player when completing the event": true,
      "enable clan tag": true,
      "enable auto hacking of crate when an event is finished": true,
      "hackable locked crate": 180.0,
      "enable marker": true,
      "marker color 1": "#FF70E7",
      "marker color 2": "#000000",
      "marker radius": 0.7,
      "marker opacity": 0.6,
      "enable loot table": true,
      "min loot items": 20,
      "max loot items": 20,
      "guard spawn amount": 18,
      "guard spawn config": {
        "Name": "Guard",
        "Kit": "",
        "Health": 300.0,
        "RoamRange": 30.0,
        "ChaseRange": 60.0,
        "DamageScale": 1.0,
        "TurretDamageScale": 0.25,
        "AimConeScale": 1.0,
        "DisableRadio": true,
        "CanRunAwayWater": false,
        "Speed": 7.0,
        "AreaMask": 1,
        "AgentTypeID": -1372625422,
        "HomePosition": "(-40.7, 58.0, 155.0)",
        "States": [
          "RoamState",
          "ChaseState",
          "CombatState",
          "CombatStationaryState"
        ],
        "Sensory": {
          "AttackRangeMultiplier": 3.0,
          "SenseRange": 200.0,
          "MemoryDuration": 30.0,
          "CheckVisionCone": false,
          "VisionCone": 360.0
        },
        "WearItems": [
          {
            "ShortName": "metal.facemask",
            "SkinID": 0
          },
          {
            "ShortName": "metal.plate.torso",
            "SkinID": 0
          },
          {
            "ShortName": "roadsign.kilt",
            "SkinID": 0
          },
          {
            "ShortName": "pants",
            "SkinID": 2832868079
          },
          {
            "ShortName": "hoodie",
            "SkinID": 2832865955
          },
          {
            "ShortName": "shoes.boots",
            "SkinID": 0
          }
        ],
        "BeltItems": [
          {
            "ShortName": "rifle.ak",
            "Amount": 1,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          },
          {
            "ShortName": "syringe.medical",
            "Amount": 10,
            "SkinID": 0,
            "Ammo": null,
            "Mods": []
          }
        ]
      },
      "create loot items": [
        {
          "DisplayName": null,
          "Shortname": "pistol.prototype17",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "hmlmg",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.l96",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.lr300",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "lmg.m249",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "multiplegrenadelauncher",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "smg.mp5",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rocket.launcher",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.ak",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.bolt",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "riflebody",
          "SkinID": 0,
          "MinAmount": 25,
          "MaxAmount": 25
        },
        {
          "DisplayName": null,
          "Shortname": "weapon.mod.burstmodule",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.plate.torso",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metal.facemask",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "roadsign.kilt",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "explosive.satchel",
          "SkinID": 0,
          "MinAmount": 15,
          "MaxAmount": 20
        },
        {
          "DisplayName": null,
          "Shortname": "explosive.timed",
          "SkinID": 0,
          "MinAmount": 15,
          "MaxAmount": 20
        },
        {
          "DisplayName": null,
          "Shortname": "jackhammer",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rifle.explosive",
          "SkinID": 0,
          "MinAmount": 256,
          "MaxAmount": 256
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.basic",
          "SkinID": 0,
          "MinAmount": 15,
          "MaxAmount": 18
        },
        {
          "DisplayName": null,
          "Shortname": "ammo.rocket.fire",
          "SkinID": 0,
          "MinAmount": 15,
          "MaxAmount": 18
        },
        {
          "DisplayName": null,
          "Shortname": "sulfur.ore",
          "SkinID": 0,
          "MinAmount": 15000,
          "MaxAmount": 20000
        },
        {
          "DisplayName": null,
          "Shortname": "metal.ore",
          "SkinID": 0,
          "MinAmount": 15000,
          "MaxAmount": 20000
        },
        {
          "DisplayName": null,
          "Shortname": "lowgradefuel",
          "SkinID": 0,
          "MinAmount": 500,
          "MaxAmount": 600
        },
        {
          "DisplayName": null,
          "Shortname": "metal.refined",
          "SkinID": 0,
          "MinAmount": 600,
          "MaxAmount": 1000
        },
        {
          "DisplayName": null,
          "Shortname": "weapon.mod.extendedmags",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "rifle.m39",
          "SkinID": 0,
          "MinAmount": 1,
          "MaxAmount": 1
        },
        {
          "DisplayName": null,
          "Shortname": "metalpipe",
          "SkinID": 0,
          "MinAmount": 50,
          "MaxAmount": 100
        },
        {
          "DisplayName": null,
          "Shortname": "techparts",
          "SkinID": 0,
          "MinAmount": 25,
          "MaxAmount": 30
        }
      ]
    }
  ]
}

 

So the beta branch only has 3 tiers instead of 4?

since May 28th, npcspawn made your beta branch not working anymore:
https://codefling.com/extensions/npc-spawn?changelog=10792

also there seems to be some issues with nps dropping way too much and precious stuff when dying.
one of them dropped me an l96 and many of them dropping grenade-ammo.
maybe loot table for dead NPCs?