View Single Post
  #2  
Old 01-30-2011, 08:09 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
You can't alter clientr. variables from clientside. You can, however, alter client. variables clientside but these types are far less secure. It depends on your need, really.

Anyways, this is how you can alter a clientr. variable

PHP Code:
function onActionServerSide() {
  if (
params[0] == "test") {
    
clientr.variable 1;
  }
}

//#CLIENTSIDE

function GuiButton.onAction() {
  
triggerserver("gui"this.name"test");

Reply With Quote