hope this works

This commit is contained in:
Mr.Crowley committed 2025-08-27 05:47:44 -05:00
1 parent 5b6641fc60
commit e06e04a2c6
6 files changed
+138 -102

No files matched your search

+11 -2
View File
@@ -282,12 +282,21 @@ RegisterNetEvent("community_bridge:client:DeleteEntity", function(id)
end)
RegisterNetEvent("community_bridge:client:UpdateEntity", function(id, data)
ClientEntity.Update(id, data)
for k, v in pairs(data) do
ClientEntity.Set(id, k, v)
end
end)
local Loaded = false
AddEventHandler('community_bridge:Client:OnPlayerLoaded', function(resourceName)
if Loaded then return end
Loaded = true
end)
AddEventHandler('onResourceStart', function(resourceName)
if resourceName ~= GetCurrentResourceName() then return end
Behaviors.Setup()
if Loaded then return end
Loaded = true
end)
-- Resource Stop Cleanup