ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,14 @@
|
|||
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)
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,13 @@
|
|||
if GetResourceState('bcs-housing') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
RegisterNetEvent('Housing:client:EnterHome', function(insideId)
|
||||
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', insideId)
|
||||
end)
|
||||
|
||||
RegisterNetEvent("Housing:client:DeleteFurnitures", function()
|
||||
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
||||
end)
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,5 @@
|
|||
if GetResourceState('bcs-housing') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,5 @@
|
|||
if GetResourceState('esx_property') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,15 @@
|
|||
if GetResourceState('esx_property') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
RegisterNetEvent('esx_property:enter', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx_property:leave', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,5 @@
|
|||
if GetResourceState('ps-housing') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,15 @@
|
|||
if GetResourceState('ps-housing') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
RegisterNetEvent('ps-housing:server:enterProperty', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,5 @@
|
|||
if GetResourceState('qb-appartments') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,11 @@
|
|||
if GetResourceState('qb-appartments') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId, bool, isVisiting)
|
||||
local src = source
|
||||
insideId = bool and house .. '-' .. insideId or nil
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,5 @@
|
|||
if GetResourceState('qb-houses') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
|
@ -0,0 +1,11 @@
|
|||
if GetResourceState('qb-houses') == 'missing' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
|
||||
RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
|
||||
local src = source
|
||||
insideId = bool and insideId or nil
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
|
||||
return Housing
|
Loading…
Add table
Add a link
Reference in a new issue