Skip to content

Commit e41b77e

Browse files
committed
Update v1.4.2
* Added MSK.Trim_ function * Added MSK.HasItem function
1 parent 980ed11 commit e41b77e

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.1
1+
1.4.2

client.lua

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ MSK.Trim = function(str)
3131
return (string.gsub(str, "%s+", ""))
3232
end
3333

34+
MSK.Trim_ = function(str)
35+
return (str:gsub("^%s*(.-)%s*$", "%1"))
36+
end
37+
3438
MSK.Notification = function(text)
3539
SetNotificationTextEntry('STRING')
3640
AddTextComponentString(text)

config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Config = {}
22
----------------------------------------------------------------
33
Config.VersionChecker = true
44
----------------------------------------------------------------
5-
-- Only Required for MSK.RegisterCommand // View Wiki for more Information about that!
5+
-- Only Required for MSK.RegisterCommand and MSK.HasItem // View Wiki for more Information about that!
66
Config.Framework = 'esx' -- Set to 'standalone', 'esx' or 'qbcore'
77
----------------------------------------------------------------

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.4.1'
7+
version '1.4.2'
88

99
lua54 'yes'
1010

server.lua

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ MSK.Trim = function(str)
3939
return (string.gsub(str, "%s+", ""))
4040
end
4141

42+
MSK.Trim_ = function(str)
43+
return (str:gsub("^%s*(.-)%s*$", "%1"))
44+
end
45+
4246
MSK.RegisterCommand = function(name, group, cb, console, framework, suggestion)
4347
if type(name) == 'table' then
4448
for k, v in ipairs(name) do

0 commit comments

Comments
 (0)