Skip to main content

Result Codes

Actions (calls that do something, rather than read something) return TruckersMP::Result. Getters never return a result; they signal "no answer" by returning an empty optional instead, as described in Data and Handles.

CodeMeaning
OkThe operation succeeded.
InternalErrorThe client failed internally; check the client log.
InvalidParameterA parameter was missing or malformed, for example a string over its length limit.
WrongThreadCalled off the main thread; see Threading.
NotSupportedThe declared SDK version is newer than the client, or the member was retired; see Versioning.
NotAuthorizedThe plugin does not hold the required intent; see Intents.
UnknownEventThe event ID is not known to this client.
ServiceUnavailableNo world or service can answer right now, for example in the main menu.
ChatCommandAlreadyRegisteredA chat command with this name already exists. Chat commands belong to the gated chat module.
ChatCommandNotRegisteredNo chat command with this name exists.