playerdropped handler

This commit is contained in:
MrNewb committed 2025-01-27 18:42:38 -05:00
1 parent 65f4b32b45
commit 1d23d256c0
4 files changed
+20

No files matched your search

+5
View File
@@ -181,6 +181,11 @@ RegisterNetEvent("ND:characterUnloaded", function()
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
end)
AddEventHandler("playerDropped", function()
local src = source
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
end)
Framework.RegisterUsableItem = function(itemName, cb)
exports(itemName, function(event, item, inventory, slot, data)
local slotData = exports.ox_inventory:GetSlot(inventory.id, slot)