Housing

The Housing module provides events for housing system integration.

Functions

GetResourceName

Returns the housing resource name.

local name = Bridge.Housing.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the Housing module resource. Used for internal identification. Always returns "default" for the built-in Housing module.

Client Events

community_bridge:Client:OnPlayerInside

Fired when a player enters or exits a house/property.

RegisterNetEvent('community_bridge:Client:OnPlayerInside', function(isInside, propertyData)
    -- isInside: boolean
    -- propertyData: table (property info, may vary by housing resource)
end)