GetZoneUtilityConfig
lua
Utility prices are set per zone in the Zone Editor. A zone with no prices of its own uses the default prices.
Parameters
- zoneId:
string | nilThe zone ID. Passnilto get the default prices. - utilityType:
'electricity' | 'water' | 'internet'The utility
Return Value
- flatPrice:
numberThe fixed price per bill - usagePrice:
numberThe price per unit used (0for internet)
Example
lua