I'm currently trying to create a ulx command that opens an image on a player when typing !meow {player}
Currently, my issues are:
- It wont say anything in chat (regardless if I use !meow or !smeow)
- I don't know how to make the 'meow' part of #A is making #T enjoy meow, a rainbow colour
- I've seen it done on another server where if they do this to you, the image pops up but you can't close it and it takes up your whole screen (instead of it just being in the steam browser tab)
function ulx.meow( calling_ply, target_plys, openedurl, should_silent )
for k,v in pairs( target_plys ) do
v:SendLua([[gui.OpenURL( "image.com" )]])
end
if should_silent then
ulx.fancyLogAdmin( calling_ply, true, "#A is making #T enjoy meow", openedurl, target_plys )
else
ulx.fancyLogAdmin( calling_ply, "#A is making #T enjoy meow", openedurl, target_plys )
end
end
local url = ulx.command( "Pixels' Addons", "ulx meow", ulx.meow, "!meow" )
url:addParam{ type=ULib.cmds.PlayersArg }
url:defaultAccess( ULib.ACCESS_ADMIN )
url:help( "Makes a user enjoy 'meow'" )
url:setOpposite( "ulx smeow", { _, _, _, true }, "!smeow" )
Any help is appreciated
Thanks,
BlitherLlama