Client Exports

Client exports available for other resources

openUI

Opens the collectables UI.

exports.mad_collectables:openUI(view?)

Parameters

  • view?: 'leaderboard' | 'collectables'

    • Which tab to open. Defaults to 'collectables' if not specified or invalid.

Examples

-- Open to the collectables tab (default)
exports.mad_collectables:openUI()

-- Open directly to the leaderboard
exports.mad_collectables:openUI('leaderboard')

-- Open directly to the collectables
exports.mad_collectables:openUI('collectables')

Use with Inventory

The stickerbook inventory item uses this export:


closeUI

Closes the collectables UI.


getPersonalStats

Gets the current player's collectable stats

  • returns: table | nil

    • Returns a table containing the current player's collectable statistics, or nil if data couldn't be loaded

Example

Last updated