Last updated
Last updated
The housing:handleBuyHouse
event is designed to trigger when a player purchases a house in the Housing system. This event allows developers to listen to the transaction and implement custom logic such as logging, external integrations, or additional processes.
playerSrc
: The server ID of the player who is purchasing the house.
house
: The unique identifier of the house being purchased.
housePrice
: The price of the house.
isCredit
: A boolean value indicating if the house is being purchased with credit (true
) or with direct payment (false
).
Log the details of the house purchase to the console or a file for administrative purposes.