Client Functions
This page will explain all exported functions from the SonoranCAD Core that can be used on the client side
getApiMode
exports.sonorancad.getApiMode()Type
Description
-- Example: Determining the API mode
Config = { mode = "development" }
local apiMode = getApiMode()
print(apiMode) -- Output: 0 (development mode)
Config = { mode = nil }
local apiModeDefault = getApiMode()
print(apiModeDefault) -- Output: 1 (default to production mode)
Config = { mode = "production" }
local apiModeProd = getApiMode()
print(apiModeProd) -- Output: 1 (production mode)
Last updated
Was this helpful?

