playerdropped handler
This commit is contained in:
1 parent
65f4b32b45
commit
1d23d256c0
4 files changed
+20
No files matched your search
@@ -211,6 +211,11 @@ RegisterNetEvent("esx:playerLogout", function()
|
|||||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("playerDropped", function()
|
||||||
|
local src = source
|
||||||
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||||
|
end)
|
||||||
|
|
||||||
Framework.Commands = {}
|
Framework.Commands = {}
|
||||||
Framework.Commands.Add = function(name, help, arguments, argsrequired, callback, permission, ...)
|
Framework.Commands.Add = function(name, help, arguments, argsrequired, callback, permission, ...)
|
||||||
ESX.RegisterCommand(name, permission, function(xPlayer, args, showError)
|
ESX.RegisterCommand(name, permission, function(xPlayer, args, showError)
|
||||||
|
|||||||
@@ -181,6 +181,11 @@ RegisterNetEvent("ND:characterUnloaded", function()
|
|||||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("playerDropped", function()
|
||||||
|
local src = source
|
||||||
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||||
|
end)
|
||||||
|
|
||||||
Framework.RegisterUsableItem = function(itemName, cb)
|
Framework.RegisterUsableItem = function(itemName, cb)
|
||||||
exports(itemName, function(event, item, inventory, slot, data)
|
exports(itemName, function(event, item, inventory, slot, data)
|
||||||
local slotData = exports.ox_inventory:GetSlot(inventory.id, slot)
|
local slotData = exports.ox_inventory:GetSlot(inventory.id, slot)
|
||||||
|
|||||||
@@ -261,6 +261,11 @@ RegisterNetEvent("QBCore:Server:OnPlayerUnload", function()
|
|||||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("playerDropped", function()
|
||||||
|
local src = source
|
||||||
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||||
|
end)
|
||||||
|
|
||||||
Framework.Commands = {}
|
Framework.Commands = {}
|
||||||
Framework.Commands.Add = function(name, help, arguments, argsrequired, callback, permission, ...)
|
Framework.Commands.Add = function(name, help, arguments, argsrequired, callback, permission, ...)
|
||||||
QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission, ...)
|
QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission, ...)
|
||||||
|
|||||||
@@ -237,6 +237,11 @@ RegisterNetEvent("QBCore:Server:OnPlayerUnload", function()
|
|||||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", source)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
AddEventHandler("playerDropped", function()
|
||||||
|
local src = source
|
||||||
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||||
|
end)
|
||||||
|
|
||||||
-- Framework.RegisterUsableItem(item, cb)
|
-- Framework.RegisterUsableItem(item, cb)
|
||||||
-- Registers a usable item with a callback function.
|
-- Registers a usable item with a callback function.
|
||||||
Framework.RegisterUsableItem = function(itemName, cb)
|
Framework.RegisterUsableItem = function(itemName, cb)
|
||||||
|
|||||||
Reference in new issue
Block a user