Skip to content

Exports & events

Public API of Cuxial Gang App: one client export to send messages to the app.

Cuxial Gang App exposes one client export and no public events. Its data comes from Cuxial Gang, so anything about organizations, zones or mules is read from Cuxial Gang, not from here.

Client exports ​

SendAppMessage ​

Sends a message to the app interface while it is open on the phone.

lua
exports.cuxial_gang_app:SendAppMessage(action, data)
ParameterTypeDescription
actionstringName of the message.
dataanyPayload delivered with it.

Returns: nothing.

Actions the app answers to:

ActionDataWhat it does
roleChanged{}The app asks for the player's role again and redraws the home screen. Use it after changing a player's organization or job from your own resource.
lua
exports.cuxial_gang_app:SendAppMessage('roleChanged', {})

Events ​

There are no events meant for other resources. The kokka:* events and callbacks are internal and can change between versions.

© Cuxial