Firstly, Thank you MrPresident for the SendLua (I tested it and worked with a basic string)
This is my current code, and apparently the Universe Explodes if these 2 functions a put together. (I tested the 2 seperately)
http://pastebin.com/hdcCe4C0-- Copies Target's SteamID to Clipboard
function ulx.steam_id ( calling_ply, target_ply )
local steamid = tostring ( target_ply:SteamID() )
calling_ply:SendLua( " SetClipboardText ( " .. steamid .. " ) " )
-- calling_ply:SendLua( " SetClipboardText ( 'taco' ) " ) -- Sets Clipboard to Taco, works and tested
-- Prints targets SteamID to console (works and tested)
Msg ( steamid )
ulx.fancyLogAdmin ( calling_ply, true, "#A's clipboard consist of #T's SteamID", target_ply )
end
local steam_id = ulx.command ( CATEGORY_NAME, "ulx id", ulx.steam_id, "!id" )
steam_id:addParam { type = ULib.cmds.PlayerArg }
steam_id:defaultAccess ( ULib.ACCESS_ALL )
steam_id:help ( "Copies the Target's SteamID to Clipboard." )
Console and Server Error
[ERROR] LuaCmd:1: '<name>' expected near '0'
1. unknown - LuaCmd:0
I fixed (with a friend) this to my knowledge and it works, so thank you for you help.