Skip to main content

Custom Permission Systems

If you view your config.lua you will find a function to be defined with your permissions check. The same function is called to check for permission to receive notifications and to check if they are allowed to place new ATMs. The requests are differentiated through the type argument. It will be equal to 0 if the permissions check is to see if they can place a ATM, 1 to check if they can currently receive notifications, or 2 to check if they are allowed to initiate the stealing of an ATM, The permission check will be called on every attempted placement, every notification sent, and every attempted robbery.
If you need assistance setting this up you can hire a dev by going here and selecting β€œHire a Developer”.

Developer Documentation

When an ATM is being drilled initially, the sonoran-atmrobbery::ATM::Drilling_s event will fire to the server. The data table can be seen below. Upon completion of the final drilling, if Config.permissionMode is set to ace, the event Sonoran::ATM::Payout will be fired to the server. The data table can be seen below. Example event handlers can also be found below.

Event List

  • Sonoran::ATM::Payout
  • sonoran-atmrobbery::ATM::Drilling_s

Data Table Structure For Sonoran::ATM::Payout

Data Table Structure For sonoran-atmrobbery::ATM::Drilling_s

Example Handler