Skip to content
DizzasTeR edited this page Nov 7, 2020 · 11 revisions

Server Functions


Server Class

Functions

  • getSettings()

  • getOption(ServerOption option) — Gets value of a server option

  • setOption(ServerOption option, bool toggle) — Toggles a server option

  • getName() — string Server Name

  • setName(string newServerName)

  • getPassword() — string Server Password

  • setPassword(string newServerPassword)

  • setClassPosition:

    • setClassPosition(Table position)
    • setClassPosition(float x, float y, float z)
  • setClassCameraPosition:

    • setClassCameraPosition(Table position)
    • setClassCameraPosition(float x, float y, float z)
  • setClassCameraLook:

    • setClassCameraLook(Table position)
    • setClassCameraLook(float x, float y, float z)
  • getBounds()

  • setBounds(float max_X, float min_X, float max_Y, float min_Y)

  • getSkinID(string skinName)

  • getSkinName(int skinID)

  • getWeaponID(string weaponName)

  • getWeaponName(int weaponID)

  • getDistrictName:

    • getDistrictName(Table position)
    • getDistrictName(float x, float y, float z)

Properties

  • tick
  • fallTimer
  • timeRate
  • hour
  • minute
  • weather
  • gravity
  • waterLevel
  • gameSpeed
  • flightAltitude
  • vehicleRespawnHeight

Clone this wiki locally