Billing and Rent
rcore_housing runs an automatic billing loop for rent and utilities. The defaults work out of the box - see billing configuration for every knob.
โฑ๏ธ Cycle
[ cycle starts ] โโ30 daysโโโถ [ bill issued ] โโ1 day graceโโโถ [ in-game grace 2h ] โโโถ [ eviction / cutoff ]Cycle
30 days
How often a new bill is generated for rent and utilities.
Grace
1 day
Wall-clock grace period before penalties trigger.
In-Game Grace
2 hours
Extra time that only counts down while the player is online.
Check Interval
1 hour
How often the server scans for due bills.
The check interval and time units flip to seconds in TestMode - see the warning in billing configuration.
๐ฐ Owner Payouts
Config.Billing.OwnerRentShare = 90Rent paid by a tenant is split: the owner receives OwnerRentShare % and the remainder is voided as a system fee. Defaults to 90 / 10.
Config.Billing.RentedUtilitiesPayer ('tenant' or 'owner') decides who covers utilities on rented properties.
๐ธ Advance Payments
Tenants can prepay multiple months at a discount:
1
0%
3
5%
6
10%
12
15%
Config.Billing.MaxPrepaidDays (default 31) caps the absolute number of days that can be prepaid.
๐ช Eviction & Cutoff
If a bill goes unpaid past Grace + In-Game Grace:
Rent: the tenant is evicted - their role and keys are removed, and the property becomes available again.
Utilities: the property's utilities are cut. Use the server API (
HasUtilities,HasElectricity,HasWater) to gate gameplay on this state.
๐ Ledger
Every payment is recorded in rcore_housing_rent_ledger. The property dashboard shows a per-cycle payment history for both owner and tenant.
๐งช Test Mode
Switches every time unit to seconds. Convenient for testing eviction flow during QA - make sure to flip it back off for production.
Last updated