Quote:
Originally Posted by Ronnie
Is -loltest , the name of the weapon?
|
In the example above yes it would be, and here's some usage of triggerserver.
PHP Code:
// Weapon Name: -loltest
function onActionServerSide() {
echo("i luld " @ params[0]);
}
//#CLIENTSIDE
function onCreated() {
triggerserver("gui", "-loltest", "lolparam");
// Alternatively you can do..
triggerserver("gui", this.name, "lolparam");
}
Edit: Looks like salesman was a few seconds earlier than I was..