cityrp.net

Functions

cityrp.net.GetGlobalVar(string, any)

View source »

Get a global variable

Parameters

  • string

    key The key of the variable

  • any

    default The default value of the variable

Returns

  • any

    any The value of the variable

cityrp.net.SetGlobalVar(string, any)

View source »

Set a global variable, which will be networked to everyone

Parameters

  • string

    key The key of the variable

  • any

    value The value of the variable