From Multi Theft Auto: Wiki
Jump to: navigation, search

This function sets a rule value that can be viewed by server browsers.


bool setRuleValue ( string key, string value )              

Required Arguments

  • key: The name of the rule
  • value: The value you wish to set for the rule


Returns true if the rule value was set, false if invalid arguments were specified.


This example shows how you could set a rule that shows that your script is running on the server.

setRuleValue ( "myScriptRunning", "yes" )

See Also