Files

20 lines
723 B
Lua
Raw Permalink Normal View History

2025-04-15 07:06:57 -04:00
Housing = Housing or {}
---This is an internal event, listen for 'community_bridge:Client:OnPlayerInside' instead.
---This event is triggered when a player enters or leaves a property.
---@param src number
---@param insideId string
RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, insideId)
local currentBucket = GetPlayerRoutingBucket(src)
local playerEntity = GetPlayerPed(src)
local playerCoords = GetEntityCoords(playerEntity)
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
end)
2025-09-10 12:27:12 -04:00
---This will get the name of the in use resource.
---@return string
Housing.GetResourceName = function()
return "default"
end
return Housing