Skip to main content

Server Exports

All exports require a valid location key from Config.Stores (e.g. "PillboxHill", "PaletoBay", "CypressFlats").

Reset

Resets the robbery at the given location, clearing active state and restoring the store.
exports['projectx-ammunationrobbery-prompt']:Reset('PillboxHill')
Returns
  • true if the location exists and was reset successfully

IsRobberyInProgress

Returns whether a robbery is currently active at the given location.
local active = exports['projectx-ammunationrobbery-prompt']:IsRobberyInProgress('PillboxHill')
Returns
  • true if a robbery is in progress at that location, false otherwise

GetActiveRobberyCount

Returns the total number of active Ammunation robberies across all locations.
local count = exports['projectx-ammunationrobbery-prompt']:GetActiveRobberyCount()
Returns
  • count (number) — total active robberies