v5.5.53 parche
Rent and mortgages that survive restarts, eviction for unpaid charges and your ideas from tickets
17cambios

Rent and mortgages that survive restarts, eviction for unpaid charges and your ideas from tickets
17cambios

[02] Versión
Rent and mortgage due dates are now kept in the database, unpaid charges can evict tenants and owners, and a long list of customer ideas is now configurable: agent-only sales, bank buy-back share, key limit, a webhook per action, interior interactions, door distances and the creator's zone height and owner list. Plus fixes for buying new houses, house transfers, the voice assistant and two server-side checks.
Nothing to do in the database. The new columns (creditNextChargeAt, unpaidRentCount, unpaidCreditCount) are added to player_houses the first time the resource starts.
qb-inventory users: add the pet_food and pet_water items from the items.lua that ships with the resource.
Your current config keeps working. Every new option falls back to the old behaviour when it is missing, so you can copy the new blocks from config/main.lua, config/agency.lua, config/assistant.lua and config/webhooks.lua whenever you want.
Automatic eviction is off by default. Turn it on per charge in Config.UnpaidAutoEviction: after MaxUnpaid unpaid automatic charges in a row the tenant is evicted (the house goes back up for rent) or the owner loses the house. A successful charge resets the count. While mortgage eviction is on, a mortgage charge only goes through if the payer can afford it.
Nothing under server/custom/ changed. client/custom/target/qb-target.lua changed: if you edited it, add the IsHouseInteractionEnabled(...) checks by hand instead of replacing the file. Everything else can be replaced.
With qb-inventory, opening a house stash through the server now also requires a key to the house the player is in.
Turning off Sell to bank or Sell to player in Config.ManagementButtons now blocks the action on the server, not only in the UI.
Config.UnpaidAutoEviction: after a number of unpaid automatic charges in a row, the tenant is evicted and the house goes back up for rent, or the owner loses the house. Off by default; the evicted player is notified if online.
Config.Agency.onlyAgentsCanSell: players can no longer list their own house; only agency members with the canSellHouses permission can.
Config.BankSellPercent sets what selling a house back to the bank pays (it was always 50%). The sell window shows the real percentage.
Config.MaxKeysPerHouse limits key holders plus meta keys per house (the owner does not count). Meta keys are refused before any money is taken.
Separate webhooks for buying and selling, house creation, rent and evictions in config/webhooks.lua. Any left empty go to the main DiscordWebhook.
Config.HouseInteractions toggles cooking, sinks, bathtubs and showers one by one, in shells, IPLs and placed furniture, for both target and [E] prompts.
Config.EnterDistance for entering, buying and ringing a house, and Config.BreakInDistance for lockpicking and police raids.
Each house in the creator's list now shows its owner and tenant. Config.CreatorTeleportButton can hide the Teleport to house button.
Config.CreatorZoneHeight sets the starting, minimum and maximum height of a zone while drawing it.
pet_food and pet_water are now in items.lua.
Interval-mode rent and mortgage due dates are saved in the database, so restarting the server no longer resets them.
Nothing is downloaded until a player first uses push-to-talk. Set preloadOnStart to true to load them as soon as the UI starts.
A misconfigured society or creator payout no longer aborts the purchase. The creator is paid after the purchase is completed.
A house can no longer be transferred to a player who already owns the maximum number of houses.
When a player's network blocks the model downloads, the error is shown once per session and then only written to the console.