πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Actions Configuration

Configure available actions (robberies, activities) that are displayed based on police presence.

Actions Structure

Actions = {
    [1] = {
        title = "JEWELRY ROBBERY",
        img = "./assets/action1.png",
        minPolice = 2
    },
    [2] = {
        title = "SHOP ROBBERY",
        img = "./assets/action2.png",
        minPolice = 1
    },
    [3] = {
        title = "BANK ROBBERY",
        img = "./assets/action3.png",
        minPolice = 2
    },
    [4] = {
        title = "VEHICLE ROBBERY",
        img = "./assets/action4.png",
        minPolice = 1
    }
}

Configuration Parameters

title

  • Type: String
  • Description: The name of the action displayed on the scoreboard
  • Example: "JEWELRY ROBBERY", "BANK ROBBERY"

img

  • Type: String (file path)
  • Description: Path to the image file for this action
  • Location: Images should be placed in html/assets/ folder
  • Format: PNG recommended

minPolice

  • Type: Number (integer)
  • Description: Minimum number of police officers required for this action to be available
  • Example: 2 means at least 2 police officers must be online

Adding Custom Actions

To add a new action, add a new entry with the next index number:

[5] = {
    title = "HUMANE LABS RAID",
    img = "./assets/action5.png",
    minPolice = 4
}

Custom Action Images

To add custom images for your actions:

  1. Create or obtain a PNG image
  2. Place it in the html/assets/ folder
  3. Reference it in your action configuration:
[6] = {
    title = "PRISON BREAK",
    img = "./assets/prison_break.png",
    minPolice = 3
}

Example: Full Configuration

Actions = {
    [1] = {
        title = "JEWELRY ROBBERY",
        img = "./assets/action1.png",
        minPolice = 2
    },
    [2] = {
        title = "SHOP ROBBERY",
        img = "./assets/action2.png",
        minPolice = 1
    },
    [3] = {
        title = "BANK ROBBERY",
        img = "./assets/action3.png",
        minPolice = 2
    },
    [4] = {
        title = "VEHICLE ROBBERY",
        img = "./assets/action4.png",
        minPolice = 1
    },
    [5] = {
        title = "FLEECA BANK",
        img = "./assets/fleeca.png",
        minPolice = 2
    },
    [6] = {
        title = "PACIFIC BANK",
        img = "./assets/pacific.png",
        minPolice = 4
    },
    [7] = {
        title = "YACHT HEIST",
        img = "./assets/yacht.png",
        minPolice = 3
    }
}

How It Works

The scoreboard automatically:

  1. Counts the number of online police officers
  2. Compares it with each action's minPolice requirement
  3. Displays actions in green if enough police are online
  4. Displays actions in red if not enough police are online

Tips

  • Use descriptive titles that players will understand
  • Images should be clear and recognizable at small sizes
  • Set realistic minPolice values based on your server population
  • Order actions by difficulty (lower index = easier actions)