It is based on information from this post:
I have client comand by key:
local out = {}
out["p"] = p;
out["d"] = d;
sendClientCommand(char, "PD", "getPD", out);
On server i have:
function OnClientCommand(module, command, player, args)
print("CLIENT COMMAND",command,args);
if not isServer() then
print("not isServer()");
return
end;
if module ~= MOD_ID then
print("module ~= ",MOD_ID);
return
end;
if command == "getPD" then t);
--DoThing
priint("done");
end;
end
Events.OnClientCommand.Add(OnClientCommand);
The server is not one of the prints is not see, but standart server comands is here:
SERVER COMMAND hoursElapsed table 0x22973086
What wrong?