reskate.outfit puts items on the local skater, over the outfit the player chose: a tattoo where your plugin places it, moles, a pair of glasses. Every function needs the outfit permission; calling one without it raises an error. See permissions.
How it works
- Slots. An item goes in a slot of the skater’s outfit, by the slot’s name (
"tattoo_legl","moles","eyewear"). Only slots whose name holdstattoo,molesoreyewearare allowed: the face and skin layers, and eyewear.reskate.outfit.slots()lists the skater’s slots. - One plugin a slot. A slot taken by one plugin is refused to the others until it clears it.
- Covers. By default an item goes only in an empty slot: where the player wears something of their own, the player’s item stays. With
covers = trueyour item goes over theirs. - Placement. A tattoo’s first parameters say where it sits.
placementwrites up to 8 numbers over them;slots()shows what the parameters are now. - Paid items. An item sold in the game’s store is refused, whoever owns it.
- Menus. While one of the game’s menus is up, the skater is given back its own outfit, because the menus change it. Your items go back on about a second after the menu closes.
- Skaters. After a respawn or a level change the new skater comes from the player’s profile; your items are put on it again.
reskate.outfit.set(slot, item, options)
Puts item in slot, over the skater’s outfit. The item is put on within a second or two; status() says how it went.
string
required
The slot’s name, at most 48 characters, any case. The first of the skater’s slots whose name contains it is used.
string
required
The item’s name, at most 200 characters.
find() turns the end of a name into the full one.table
boolean
True when the slot is taken for the item.
string
Why not:
"only tattoo, moles and eyewear slots", "<plugin> has that slot", "the paid items are not known yet; try again in a moment", "that is a paid store item", "a placement is at most 8 finite numbers" or "asked more than 4 times in a second".false and why.
Needs the
outfit permission. Shares the budget of 4 control calls a second with skater.noclip, boost, freeze, camera.follow, ai.spawn, animation.play and board.toss.reskate.outfit.clear(slot)
Takes this plugin’s items off.
string
One slot’s name (at most 48 characters, any case). Without it, every slot this plugin took.
Needs the
outfit permission. When the plugin stops, its items are cleared whether or not it calls this.reskate.outfit.find(ending)
The installed item whose name ends in ending, any case. Use it to find an item’s full name from its end, which stays the same between installs.
string
required
At most 200 characters.
string or nil
The item’s full name, or
nil when none ends so (or there is no skater to look with).Needs the
outfit permission.reskate.outfit.slots()
The skater’s outfit slots as they are now, with what is in each.
table
A list, empty without a skater. Each entry:
Needs the
outfit permission.reskate.outfit.status()
What the outfit service is doing now, for the player or your log.
string
Such as
"nothing worn", "2 item(s) worn", "a game menu is up: the outfit is the game's", or "waiting: " and why.Needs the
outfit permission.