Skip to main content

Server Exports

Only one yard can be robbed at a time, so these exports apply to the whole heist.

Reset

Resets the heist, clearing the active yard, contract, containers, and guards.

IsRobberyInitiated

Returns whether a robbery is currently active.
Returns
  • true if a robbery is in progress, false otherwise

GetActiveLocation

Returns the key of the yard being robbed, from Config.Locations.
Returns
  • location (string | nil) — e.g. "port", or nil if no yard is active
Example