Shared Property Template

From RAGE Multiplayer Wiki
Revision as of 23:03, 4 February 2018 by TedJr (talk | contribs) (Created page with "{{Shared}} This is an example description for a shared property template. == Syntax == <syntaxhighlight lang="javascript"> mp.examples.prop = str; </syntaxhighlight> === A...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Shared

This is an example description for a shared property template.

Syntax

mp.examples.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 = mp.examples.prop;

//Setter Type
mp.examples.prop = "Example String";

See Also