12 lines
442 B
Lua
12 lines
442 B
Lua
require "QMIA_State"
|
|
|
|
Events.OnClientCommand.Add(function(module, command, player, args)
|
|
if module ~= QMIA.MOD_ID or command ~= "setMark" then return end
|
|
local accepted = QMIA.applyRequest(player, args)
|
|
local payload = type(args) == "table" and args or {}
|
|
sendServerCommand(player, QMIA.MOD_ID, "markResult", {
|
|
accepted = accepted, enabled = payload.enabled == true,
|
|
playerNum = payload.playerNum,
|
|
})
|
|
end)
|