Triggers and Exports

Some functions you can have other scripts use in the Scoreboard

BUSY ROBBERY/HEIST

In the Robbery part it will appear as "NOT AVAILABLE" when there are not enough police, but you can also make it appear as "ROBBERY NOT AVAILABLE" when you add the following export to your robbery script. When this trigger is read, the Scoreboard will show the theft as busy because it is in progress and also the time remaining.

  • This is the code snippet:

TriggerEvent("forge-scoreboard:setHeistBusy", "HeistName", CooldownMillis)
  • An example:

TriggerEvent("forge-scoreboard:setHeistBusy", "Fleeca Heist", 900000) -- Fleeca Heist marked as busy for 15 mins.

Last updated