General > Developers Corner

ULX custom command

(1/1)

CheeseSalt:
I was trying to figure out how to make a command that when you type "!textures" would either copy a link to your clip board and say "Link copied to clipboard" or it would open the page in the steam browser. I have no idea how i would do this, if anybody could help that would be much appreciated!

JamminR:
Do you know lua?

CheeseSalt:
Bits and peices im not great at it. I do have a friend who could help me.

Bytewave:
gui.OpenURL() is your friend.
You'd probably also want to use the Net library, as gui.OpenURL() is a client-side function.

You can check out my ULX command template for a base on which to write your code.

MrPresident:
http://wiki.garrysmod.com/page/Global/SetClipboardText

You can also use this (clientside) to set a players clipboard.

Navigation

[0] Message Index

Go to full version