mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 16:23:21 +00:00
Spacing went fucked
This commit is contained in:
+6
-6
@@ -250,13 +250,13 @@ QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items, am
|
|||||||
if Player ~= nil then
|
if Player ~= nil then
|
||||||
if type(items) == 'table' then
|
if type(items) == 'table' then
|
||||||
local count = 0
|
local count = 0
|
||||||
local finalcount = 0
|
local finalcount = 0
|
||||||
for k, v in pairs(items) do
|
for k, v in pairs(items) do
|
||||||
if type(k) == 'string' then
|
if type(k) == 'string' then
|
||||||
finalcount = 0
|
finalcount = 0
|
||||||
for i, _ in pairs(items) do
|
for i, _ in pairs(items) do
|
||||||
if i then finalcount = finalcount + 1 end
|
if i then finalcount = finalcount + 1 end
|
||||||
end
|
end
|
||||||
local item = Player.Functions.GetItemByName(k)
|
local item = Player.Functions.GetItemByName(k)
|
||||||
if item ~= nil then
|
if item ~= nil then
|
||||||
if item.amount >= v then
|
if item.amount >= v then
|
||||||
@@ -267,7 +267,7 @@ QBCore.Functions.CreateCallback('QBCore:HasItem', function(source, cb, items, am
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
finalcount = #items
|
finalcount = #items
|
||||||
local item = Player.Functions.GetItemByName(v)
|
local item = Player.Functions.GetItemByName(v)
|
||||||
if item ~= nil then
|
if item ~= nil then
|
||||||
if amount ~= nil then
|
if amount ~= nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user