mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-29 09:35:48 +00:00
13 lines
527 B
Lua
13 lines
527 B
Lua
function OnClientExecuteReq(context, param1, param2, param3)
|
||
local this_config = ScriptLib.GetContextGadgetConfigId(context)
|
||
local this_group = ScriptLib.GetContextGroupId(context)
|
||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||
ScriptLib.SetGadgetState(context, param1)
|
||
if param1==0 then
|
||
ScriptLib.SetGadgetEnableInteract(context, this_group, this_config, false)
|
||
end
|
||
if param1==201 then
|
||
ScriptLib.SetGadgetEnableInteract(context, this_group, this_config, true)
|
||
end
|
||
return 0
|
||
end |