IsUtilityPaid
lua
It reads the utility status cached on the client. The cache is filled when the player enters the property or opens its menu, and updates when the server sends changes. For an exact answer, use the server-side IsUtilityPaid.
If utilities are turned off (Config.Utilities.Enabled = false), it always returns true.
Parameters
- propertyId:
numberThe property ID - utilityType:
'electricity' | 'water' | 'internet'The utility
Return Value
booleantrueif the bill is not due.falseif it is due, the property doesn't exist, or the status is not cached yet.
Example
lua