CreatorsClient exports
ShowToast
Last updated on
Shows an OPX toast on the local player's screen.
local res = exports.opx_infinity:ShowToast(definition)Sync.
Parameters
- definition:
table- message:
string— cut to 240 characters - kind?:
string— e.g.'success' - title?:
string— cut to 64 characters - icon?:
string— a glyph name - durationMs?:
integer - id?:
string— letters, digits,_ - ., max 48. Kept in your own namespace: showing the sameidagain replaces your toast.
- message:
Returns
- the toast id
Errors
export.badArgument,export.callerDenied, or the toast's own refusal
exports.opx_infinity:ShowToast({ id = 'order', message = 'Order ready', kind = 'success' })