Client exports
Client exports allow other resources to interact directly with the warehouse system from the player’s side.
Open warehouse menu
warehouseKey | string | The unique warehouse identifier defined in Config.Warehouses
exports['z1_warehouse']:OpenWarehouseMenu(warehouseKey)Example usage
exports['z1_warehouse']:OpenMenu("east")Returns
Nothing
Get nearest warehouse
No arguments
exports['z1_warehouse']:GetNearestWarehouse()Example usage
local nearestWarehouse, distance = exports['z1_warehouse']:GetNearestWarehouse()
print('Your nearest warehouse is: ' .. nearestWarehouse.label)Returns
warehouseData | Returns the whole config from shared configuration
distance | Returns the distance to the nearest warehouse
Last updated