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-tstudio']: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-tstudio']:IsRobberyInProgress('PillboxHill')
Returns
  • true if a robbery is in progress at that location, false otherwise
Example
local active = exports['projectx-ammunationrobbery-tstudio']:IsRobberyInProgress('PaletoBay')
if active then
    print("Paleto Bay Ammunation is being robbed")
end

GetActiveRobberyCount

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