From 4bdcc11d51d8d6afadeecd35d085eca1c70025b3 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 17 Sep 2022 16:50:06 +0100 Subject: [PATCH] Update shared.lua --- shared/shared.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/shared.lua b/shared/shared.lua index 27dbf5b..e056dd7 100644 --- a/shared/shared.lua +++ b/shared/shared.lua @@ -51,7 +51,7 @@ function triggerNotify(title, message, type, src) end end -function countTable(table) local i = 0 for keys in pairs(table) do i = i + 1 end return i end +function countTable(table) local i = 0 for keys in pairs(table) do i += 1 end return i end function toggleItem(give, item, amount) TriggerServerEvent("jim-consumables:server:toggleItem", give, item, amount) end @@ -244,4 +244,4 @@ function StopEffects() -- Used to clear up any effects stuck on screen AnimpostfxStop('RaceTurbo') AnimpostfxStop('FocusIn') AnimpostfxStop('Rampage') -end \ No newline at end of file +end