Skip to main content

State Bags

Replicated state exposed by Wasabi Garage Creator (wasabi_garage). Read them; do not set them from other scripts.


Player state bags​

KeyTypeDescription
wsbInteriortable|nilSet while the player is inside a walk-in garage: { garage, preset, visitor?, host? }. visitor = true for showcase visitors and accepted join requests.
wsbShowroomboolean|nilLocal 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​

KeyTypeDescription
wsbPlatestringPlate of a vehicle spawned by Wasabi Garage Creator.
wsbPersistentbooleanVehicle restored by street persistence after a restart.
local plate = Entity(vehicle).state.wsbPlate
if plate then
-- this vehicle was spawned from a garage
end