Skip to content

Commit 94da3bb

Browse files
committed
Update v2.6.1
1 parent 2f90eaa commit 94da3bb

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

client/functions/main.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,13 @@ exports('GetClosestPlayers', MSK.GetClosestPlayers)
206206
MSK.IsAceAllowed = function(command)
207207
return MSK.Trigger('msk_core:isAceAllowed', ('command.%s'):format(command))
208208
end
209+
exports('IsAceAllowed', MSK.IsAceAllowed)
209210

210211
MSK.RegisterCommand = function(command, cb, restricted)
211212
RegisterCommand(command, function(source, args, raw)
212213
if not restricted or MSK.IsAceAllowed(command) then
213214
cb(source, args, raw)
214215
end
215216
end)
216-
end
217+
end
218+
exports('RegisterCommand', MSK.RegisterCommand)

fxmanifest.lua

Lines changed: 1 addition & 1 deletion
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 'Functions for MSK Scripts'
7-
version '2.6.0'
7+
version '2.6.1'
88

99
lua54 'yes'
1010

server/functions/ace.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MSK.IsAceAllowed = function(playerId, command)
22
return IsPlayerAceAllowed(playerId, ('command.%s'):format(command))
33
end
4-
exports('IsAceAllowed', IsAceAllowed)
4+
exports('IsAceAllowed', MSK.IsAceAllowed)
55

66
local allowAce = function(allow)
77
return allow == false and 'deny' or 'allow'

server/functions/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ local parseArgs = function(source, args, raw, params)
4848
value = false
4949
end
5050

51-
if value then
51+
if value and MSK.GetPlayer then
5252
value = MSK.GetPlayer({source = value})
5353
end
5454
else

0 commit comments

Comments
 (0)