Перейти к содержанию

Server Property Template

Материал из RAGE MP Wiki Archive
Версия от 14:06, 26 октября 2018; imported>Rootcause
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Server-Side

This is an example description for a server-side 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.

Server-Side
//Getter Type
let val = mp.examples.prop;

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

See Also