AiweLelia Posted July 25, 2016 Share Posted July 25, 2016 (edited) 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? Edited July 25, 2016 by AiweLelia Link to comment Share on other sites More sharing options...
AiweLelia Posted July 25, 2016 Author Share Posted July 25, 2016 Sorry for distrubing... sendClientCommand(char, "PD", "getPD", out); sendClientComand(char,'PD','getPD',out); Solved Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now