Grant Perms On Enter, Revoke On ExitSolved

I'm trying to make a PVP zone where I grant permissions to use specific kits on entry, that works 100% perfect.  I'm trying to setup the .json file to revoke that same permission on "Run On": "Exit", but every time I try to modify the data file, it fails on compile.  How do I write the data file to do work on entry & exit?

Thank you for the re-write - this mod really opens up elements of the game - great work!

{
"Zone ID": "24849365",
"Actions": [
{
"Frequency": "Always",
"Time Frequency": null,
"Use Game Time": false,
"Run On": "Enter",
"Commands": [
{
"Command": "oxide.grant user {player.id} kits.wipe",
"Arguments": [],
"Clientside": false,
"Chat Command": false,
}
]
"Run On": "Exit",
"Commands": [
{
"Command": "oxide.grant user {player.id} kits.wipe",
"Arguments": [],
"Clientside": false,
"Chat Command": false
}
]
}
]
}

Hi, I did this, and it compiled for me

{
  "Zone ID": "swamp_c",
  "Actions": [
    {
      "Frequency": "Always",
      "Time Frequency": null,
      "Use Game Time": false,
      "Run On": "Enter",
      "Commands": [
        {
          "Command": "oxide.grant user {player.id} vehiclelicence.use",
          "Arguments": [],
          "Clientside": false,
          "Chat Command": false
        }]
    },
    {
      "Frequency": "Always",
      "Time Frequency": null,
      "Use Game Time": false,
      "Run On": "Exit",
      "Commands": [
        {
          "Command": "oxide.revoke user {player.id} vehiclelicence.use",
          "Arguments": [],
          "Clientside": false,
          "Chat Command": false
        }]}]}

The code I posted is a mess, sorry for that. but it should compile.

That worked 100%, thank you for helping me :)

Happy to assist!

make sure u check if JSON is valid via jsonlint and such :)

Locked automatically