Client to Server

How do I send client to the server?

I have a console command that is admin only, it’s purpose is to set and give rights for weapons. However, in my last question. Sombody said I’m running it on the client.

Here is one of my commands:

[LUA]
function cmd_give(ply,command,args)
local pl = player.GetByID(args[1])
pl:GiveRights()
print(pl:Name() … “has now got weapon rights!”)
end
concommand.Add(“urp_giveRights”,cmd_give)
[/LUA]

How would I send a message to the server telling the supplied player to get rights?

Anyone know how to do this, cause I need an answer quick if possible!

You could just… run the function serverside right? put it in autorun/server or where ever your doing it.

Thanks for help, it works. Finally…

:slight_smile:

:slight_smile:
Glad i could help