RX Scripts Logo
Housing

Events

All client- & serversided events included within this script. Events serve as listeners that capture and respond to actions executed by this script.
If additional events are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.

Server Events

housing:onHouseBought

Triggered after a house has been bought.

RegisterNetEvent('housing:onHouseBought', function(playerId, property) end)
playerId
number required

Source of the player that bought the house.

property
table required

Data of the property that has been bought.

housing:onHouseEntered

Triggered after a player has entered a house.

RegisterNetEvent('housing:onHouseEntered', function(playerId, property, isBreakIn, isRaid) end)
playerId
number required

Source of the player that entered the house.

property
table required

Data of the property that has been entered.

isBreakIn
boolean required

Indicates if the player is breaking in.

isRaid
boolean required

Indicates if the player is raiding the house.

housing:onHouseExited

Triggered after a player has exited a house.

RegisterNetEvent('housing:onHouseExited', function(playerId, propertyId) end)
playerId
number required

Source of the player that exited the house.

propertyId
number required

ID of the property that has been exited.

Client Events

No client-sided events available at this time.