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:
2means 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:
- Create or obtain a PNG image
- Place it in the
html/assets/folder - 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:
- Counts the number of online police officers
- Compares it with each action's
minPolicerequirement - Displays actions in green if enough police are online
- 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
minPolicevalues based on your server population - Order actions by difficulty (lower index = easier actions)