#
AutoPro API
I can feel the cash flowing though the code.
This is a technical page, and assumes familiarity with Roblox Studio's Explorer, alongside with Roblox's scripting language, Luau.
AutoPro is our most advanced automatic door system designed for convenience and efficiency, providing seamless access control for any environment. Each AutoPro instance has a singular API BindableFunction.
Located directly in the root folder after game startup, the API allows you to interface easily with the doors.
#
Syntax
workspace["JSM | ATM V3"].Integrations["JSM-BankIntegration"].OnInvoke = function (Request: string, User: player, Amount: number): (bool | number)
if Request == "withdraw" then
return true -- returns if the payment should be accepted
elseif Request == "balance" then
return math.random(100,1000) -- returns the amount that the user has
end
end
What do these mean?
- Request: (
string) The player we need to check. - Player: (
player) The player we need to check. - Amount: (
number) Payment price.
What does it expect?
For withdraw:
- If you
return true: The ATM will proceed with the withdraw. - If you
return false: It will deny the withdraw.
For balance:
- Return a
numbervalue which will be displayed to the user as their balance.
Something's unclear? Visit our FAQ Page for help, or contact Whitehill Support via our Discord server for further assistance.