So basically I’m trying to run this console command through lua code: “ulx adduser username member”. The username must be inside quotes in the command.
I found that I should use “RunConsoleCommand”. I also noticed that it requires two parameters, the command and the value. I have no idea how it could work with the command I want to run, so I tried creating something like this:
RunConsoleCommand("ulx adduser " .. '"' .. ply:GetName() .. '"', "member")
However I get an error saying
RunConsoleCommand: Command has invalid characters! (ulx adduser "JohnnyKing" (' ')) The first parameter of this function should contain only the command, the second parameter should contain arguments.
Any help would be appreciated!