Skip to main content

Server Exports

Reset

Resets the heist, unlocking the bank and clearing any active robbery state. Useful for admin commands or external integrations.
exports['projectx-sandybankrobbery-prompt']:Reset()

IsRobberyInitiated

Returns whether a robbery is currently active.
local active = exports['projectx-sandybankrobbery-prompt']:IsRobberyInitiated()
Returns
  • active (boolean) - true if a robbery is in progress, false otherwise
Example
local active = exports['projectx-sandybankrobbery-prompt']:IsRobberyInitiated()
if active then
    print("A robbery is currently in progress")
end