0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-29 09:35:48 +00:00
GC-Resources/Resources/Scripts/Gadget/SetGadgetWorkOption.lua
KingRainbow44 b77f8d326e
Revert "The Great De-Local'ifying of Lua Scripts"
This reverts commit 54223c3d4857544a2cc9b94a9e10377596e367e4.
2023-08-29 21:33:58 -04:00

19 lines
544 B
Lua

---
--- Generated by Luanalysis
--- Created by binghong.shen_187191.
--- DateTime: 2022/6/13 14:29
---
function OnClientExecuteReq(context, param1, param2, param3)
local this_target = ScriptLib.GetContextGadgetConfigId(context)
--ScriptLib.PrintLog("##config="..this_target)
local this_group = ScriptLib.GetContextGroupId(context)
if (param1 == 0) then
ScriptLib.SetWorktopOptionsByGroupId(context, this_group, this_target, {})
else
ScriptLib.SetWorktopOptionsByGroupId(context, this_group, this_target, {param1})
end
return 0
end