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

rxhousing:onPropertyBought

Triggered after a property has been bought.

RegisterNetEvent('rxhousing:onPropertyBought', function(playerId, property) end)
playerId
number

Source of the player that bought the property.

property
table

Data of the property that has been bought.

rxhousing:onPropertyRented

Triggered after a property has been rented.

RegisterNetEvent('rxhousing:onPropertyRented', function(playerId, property) end)
playerId
number

Source of the player that rented the property.

property
table

Data of the property that has been rented.

rxhousing:onPropertyEntered

Triggered after a player has entered a property.

RegisterNetEvent('rxhousing:onPropertyEntered', function(src, property, isBreakIn, isRaid) end)
src
number

Source of the player that entered the property.

property
table

Data of the property that has been entered.

isBreakIn
boolean

Indicates if the player is breaking in.

isRaid
boolean

Indicates if the player is raiding the property.

rxhousing:onPropertyExited

Triggered after a player has exited a property.

RegisterNetEvent('rxhousing:onPropertyExited', function(src, propertyId) end)
src
number

Source of the player that exited the property.

propertyId
number

ID of the property that has been exited.

rxhousing:onPropertyCreated

Triggered when a new property is created.

RegisterNetEvent('rxhousing:onPropertyCreated', function(property) end)
property
table

Data of the newly created property.

rxhousing:onKeyholderAdded

Triggered when a keyholder is added to a property.

RegisterNetEvent('rxhousing:onKeyholderAdded', function(propertyId, identifier, addedBy) end)
propertyId
number

ID of the property.

identifier
string

Identifier of the new keyholder.

addedBy
string|number

Source of who added the keyholder or 'Export'.

rxhousing:onKeyholderRemoved

Triggered when a keyholder is removed from a property.

RegisterNetEvent('rxhousing:onKeyholderRemoved', function(propertyId, identifier, removedBy) end)
propertyId
number

ID of the property.

identifier
string

Identifier of the removed keyholder.

removedBy
string|number

Source of who removed the keyholder or 'Export'.

rxhousing:onFurniturePlaced

Triggered when furniture is placed in a property.

RegisterNetEvent('rxhousing:onFurniturePlaced', function(propertyId, furnitureData, playerId) end)
propertyId
number

ID of the property.

furnitureData
table

Data about the placed furniture including model, position, etc.

playerId
number

Source of the player who placed the furniture.

rxhousing:onFurnitureRemoved

Triggered when furniture is removed from a property.

RegisterNetEvent('rxhousing:onFurnitureRemoved', function(propertyId, furnitureId, playerId) end)
propertyId
number

ID of the property.

furnitureId
number

ID of the furniture that was removed.

playerId
number

Source of the player who removed the furniture.

rxhousing:onPropertyTransferred

Triggered when property ownership is transferred.

RegisterNetEvent('rxhousing:onPropertyTransferred', function(propertyId, oldOwner, newOwner) end)
propertyId
number

ID of the property.

oldOwner
string

Identifier of the previous owner.

newOwner
string

Identifier of the new owner.

Client Events

No client-sided events available at this time.