IsUtilityCutOff
lua
A utility is cut off when its bill stayed unpaid past the grace period. Use it to turn off things that need power, water or internet, such as a phone app or a crafting bench.
If utilities are turned off, it always returns false.
Parameters
- propertyId:
numberThe property ID - utilityType:
'electricity' | 'water' | 'internet'The utility
Return Value
booleantrueif the utility is cut off.falseif not, or the property doesn't exist.
Example
lua