Usage

Object syntax: clientr.varname, player.clientr.varname

Explanation

The clientr prefix is used to set variables that are stored in the user's account file on the local game server, of which are accessible both by scripts on the serverside and the clientside, but only completely writable on the serverside.

Warning: Be aware, clientr variables are not fully read-only. Clientside scripts are able to change the value of a clientr variable but the changes remain on the client only and are never sent to the server. If a clientr variable is changed clientside, the clientside value will be lost when it is updated serverside as it will be overwritten.

For account-stored variables that are both readable and writable by the client, see client.

Example

function onPlayerEnters()
{
  player.clientr.variable = "value";
}

//#CLIENTSIDE

function onPlayerChats()
{
  player.chat = player.clientr.variable;
}


Categories

CategoryVariablePrefix
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki