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/Oceanid_Platform.lua
KingRainbow44 b8cde25332
Revert "The Great De-Local'ifying of Lua Scripts (pt. 3)"
This reverts commit aa45c07369da944f31842aaadf87884dc319c8b1.
2023-08-29 21:28:58 -04:00

19 lines
548 B
Lua

function OnClientExecuteReq(context, param1, param2, param3)
if param1 == 1 then
if 901 == ScriptLib.GetGadgetState(context) then
ScriptLib.SetGadgetState(context, 0)
else
local s = ScriptLib.GetGadgetState(context)
ScriptLib.PrintContextLog(context, "error_state="..s)
end
elseif param1 == 202 then
if 201 == ScriptLib.GetGadgetState(context) then
ScriptLib.SetGadgetState(context, 202)
else
local s = ScriptLib.GetGadgetState(context)
ScriptLib.PrintContextLog(context, "error_state="..s)
end
end
return 0
end