OnPlayerUnload events

(untested) atm, will test later today
This commit is contained in:
MrNewb committed 2025-01-27 14:41:16 -05:00
1 parent 86800944fb
commit 65f4b32b45
4 files changed
+16

No files matched your search

+4
View File
@@ -233,6 +233,10 @@ Framework.SetMetadata = function(src, item, slot, metadata)
return player.Functions.AddItem(item, 1, slot, metadata)
end
RegisterNetEvent("QBCore:Server:OnPlayerUnload", function()
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
end)
-- Framework.RegisterUsableItem(item, cb)
-- Registers a usable item with a callback function.
Framework.RegisterUsableItem = function(itemName, cb)