Client Property Template: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{ClientSide}} This is an example description for a client-side property template. == Syntax == <syntaxhighlight lang="javascript"> example.prop = str; </syntaxhighlight>...")
 
m (Added clientside category onto the bottom)
Line 28: Line 28:


* [[Example::Stuff|Example Stuff]]
* [[Example::Stuff|Example Stuff]]
[[Category:Clientside API]]

Revision as of 10:52, 11 May 2018

Client-Side

This is an example description for a client-side property template.

Syntax

example.prop = str;

Attribute Types

  • Getter: Explanation of getter type, output should be in string type.
  • Setter: Explanation of setter type, input should be in string type.

Examples

This is a basic explanation about what does the example below do.

//Getter Type
let val = example.prop;

//Setter Type
example.prop = "Example String";

See Also