Browse docs

Exports

Client and server exports provided by Free Phone, with arguments, return values, security boundaries, and complete Lua examples.

Choose the execution side or feature below. These exports belong to sky_phone; Base provider bridges are listed separately in Base Exports.

This page documents the supported public integration calls. Client exports must run in a client script and server exports must run in a server script. Internal NUI callbacks and net events are not public APIs.

Keep the resource folder named sky_phone. Validate every returned success value and keep money, permissions, ownership, and other authoritative changes on the server.

Client Exports

Server Exports

Billing Exports

Trusted Adapter Exports

Exports ending in FromAdapter are reserved for resources explicitly listed in Config.CustomApps.TrustedAdapters. Normal custom apps must use the owner-bound exports above.

RuntimeExportSignature
ClientAddCustomAppFromAdapter(ownerResource, definition)
ClientUpdateCustomAppFromAdapter(ownerResource, definition)
ClientRemoveCustomAppFromAdapter(ownerResource, appId)
ClientOpenCustomAppFromAdapter(ownerResource, appId, data?)
ClientCloseCustomAppFromAdapter(ownerResource, appId)
ClientCloseActiveCustomAppFromAdapter(ownerResource)
ClientSendCustomAppMessageFromAdapter(ownerResource, appId, payload)
ClientSendCustomAppNotificationFromAdapter(ownerResource, appId, notification)
ServerAddCustomAppPolicyFromAdapter(ownerResource, definition)
ServerUpdateCustomAppPolicyFromAdapter(ownerResource, definition)
ServerRemoveCustomAppPolicyFromAdapter(ownerResource, appId)
client.lua
-- Trusted adapter example only. Normal apps must not use this export.
local registered, error_code = exports["sky_phone"]:AddCustomAppFromAdapter(
    "legacy_dispatch",
    converted_definition
)

The adapter resource remains responsible for mapping the external contract and preserving the real owner resource.

Compatibility Aliases

Free Phone exposes a documented subset of common third-party phone contracts:

Resource aliasSupported client exports
lb-phoneAddCustomApp, RemoveCustomApp, SendCustomAppMessage, OpenApp, CloseApp, SendNotification
17mov_PhoneAddApplication, RemoveApplication, SendAppMessage
high-phoneaddApplication, sendAppNui
qs-smartphoneaddCustomApp, addCustomAppsBatch, updateCustomApp, removeCustomApp, getCustomApps, OpenPhoneApp
yseriesAddCustomApp, RemoveCustomApp, SendAppMessage, CloseApp, GetDataLoaded

Compatibility is contract-based and does not emulate every feature of the original phone.