Hierarchy (view full)

Constructors

Methods

  • Parameters

    • field: string
    • amount: string | number

    Returns string[]

  • Parameters

    • field: string

    Returns string

    Description

    Returns the value of a player variable

    Example

    export const init_functions = [
    Core.log(Player.get_value("name"))
    ];
  • Parameters

    • field: string
    • amount: string | number

    Returns string[]

  • Parameters

    • function_call: string

    Returns string[]

    Description

    Run a function on the player

    Example

    export const init_functions = [
    Player.run_function('custom_function()')
    ]
  • Parameters

    • function_call: string

    Returns string[]

  • Parameters

    • field: string
    • arr: any[]

    Returns string[]

    Description

    Sets an array field on the player with the contents arr. If is_string = true then the items will be added to the array as strings.

    Example

    const items = [
    "test",
    "test2",
    "test3"
    ]

    export const init = [
    player.setArray("test_items", items, true)
    ]
  • Parameters

    • field: string
    • value: string | number

    Returns string[]

    Description

    Sets a variable field on the player to value.

    Example

    export const init_functions = [
    Player.set_value("name", `"xXCool_NameXx"`)
    ];

Generated using TypeDoc