Skip to content

Commit 3ab9a79

Browse files
committed
Update v1.9.8
* Fixed MSK.HasItem function
1 parent d13d619 commit 3ab9a79

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.7
1+
1.9.8

client/main.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ end
7070
exports('Draw3DText', MSK.Draw3DText)
7171

7272
MSK.HasItem = function(item)
73-
if not Config.Framework:match('esx') or not Config.Framework:match('qbcore') then
73+
if not Config.Framework:match('esx') and not Config.Framework:match('qbcore') then
7474
return logging('error', ('Function %s can not used without Framework!'):format('MSK.HasItem'))
7575
end
7676

fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ games { 'gta5' }
44
author 'Musiker15 - MSK Scripts'
55
name 'msk_core'
66
description 'Core functions for MSK Scripts'
7-
version '1.9.7'
7+
version '1.9.8'
88

99
lua54 'yes'
1010

server/main.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ MSK.RegisterCommand = function(name, group, cb, console, framework, suggestion)
2626
end
2727

2828
if RegisteredCommands[name] then
29-
logging('debug', ('Command %s is already registerd. Overriding Command...'):format(name))
29+
logging('debug', ('Command ^3%s^0 is already registerd. Overriding Command...'):format(name))
3030
end
3131

3232
local added = addChatSuggestions(name, suggestion)
@@ -162,7 +162,7 @@ exports('AddWebhook', MSK.AddWebhook)
162162

163163
MSK.HasItem = function(xPlayer, item)
164164
if not xPlayer then logging('error', 'Player on Function MSK.HasItem does not exist!') return end
165-
if not Config.Framework:match('esx') or not Config.Framework:match('qbcore') then
165+
if not Config.Framework:match('esx') and not Config.Framework:match('qbcore') then
166166
return logging('error', ('Function %s can not used without Framework!'):format('^3MSK.HasItem^0'))
167167
end
168168
local hasItem

0 commit comments

Comments
 (0)