State Bags
Replicated state exposed by Wasabi Garage Creator (wasabi_garage). Read them; do not set them from other scripts.
Player state bags
| Key | Type | Description |
|---|---|---|
wsbInterior | table|nil | Set while the player is inside a walk-in garage: { garage, preset, visitor?, host? }. visitor = true for showcase visitors and accepted join requests. |
wsbShowroom | boolean|nil | Local only (not replicated): true while the showroom menu is open on this client. |
-- server
local inside = Player(serverId).state.wsbInterior
if inside then
print('In garage ' .. inside.garage)
end
Use these to hide your own HUD or block other menus while a player is in a garage interior or the showroom.
Vehicle state bags
| Key | Type | Description |
|---|---|---|
wsbPlate | string | Plate of a vehicle spawned by Wasabi Garage Creator. |
wsbPersistent | boolean | Vehicle restored by street persistence after a restart. |
local plate = Entity(vehicle).state.wsbPlate
if plate then
-- this vehicle was spawned from a garage
end