mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 02:01:33 +00:00
fix: remove usable item after resource stop
This commit is contained in:
@@ -18,6 +18,14 @@ AddEventHandler('playerDropped', function(reason)
|
||||
QBCore.Players[src] = nil
|
||||
end)
|
||||
|
||||
AddEventHandler("onResourceStop", function(resName)
|
||||
for i,v in pairs(QBCore.UsableItems) do
|
||||
if v.resource == resName then
|
||||
QBCore.UsableItems[i] = nil
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- Player Connecting
|
||||
|
||||
local function onPlayerConnecting(name, _, deferrals)
|
||||
|
||||
Reference in New Issue
Block a user