Merge pull request #144 from TheOrderFivem/crowleys-branch

prep for behaviors
This commit is contained in:
MrNewb authored and GitHub committed 2025-08-31 03:12:26 -04:00
commit c0e8b7e447
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -323,4 +323,4 @@ AddEventHandler('onResourceStop', function(resourceName)
end
end)
return ClientEntity
return ClientEntity
+4 -1
View File
@@ -93,6 +93,9 @@ function ServerEntity.Set(id, data)
return true
end
function ServerEntity.RegisterBehavior(id, behavior)
Behaviors.Create(id, behavior)
end
-- Clean up entities associated with a stopped resource
AddEventHandler('onResourceStop', function(resourceName)
@@ -108,4 +111,4 @@ AddEventHandler('community_bridge:Server:OnPlayerLoaded', function(source)
end)
return ServerEntity
return ServerEntity