Browse docs

Callbacks

Register server callbacks in the existing Sky callback owner.

RegisterServerCallback(name, callback)

Required anticheat setup: When Resource Protection is enabled, whitelist all installed Sky resources in the anticheat, including sky_base. Blocking callback requests or responses prevents operations from completing. See Anticheat Resource Protection.

Server only · sky_base. Registers a callback through Sky.Cb.Register. name must be a unique string and callback must be callable. Registration with an existing name is rejected. The callback remains associated with its invoking resource.

This registration export has no success-value contract; invalid registration raises an error. Validate the requesting player, permissions and payload inside any callback that exposes protected data or changes server state.

HasServerCallbackApi()

Server only · sky_base. Returns true when this export is registered. It describes callback-API availability, not job-resource readiness or player permissions.

For a Sky resource, use the imported Sky.Cb library and its documented callback contracts. For shared job operations, prefer the existing Jobs Base server APIs.