Handle Buy House Event
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.
Event syntax
Parameters Explained
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
).
Example use case
Log the details of the house purchase to the console or a file for administrative purposes.
Last updated
Was this helpful?