GetPlayerGameVersion

From Onset Developer Wiki
GetPlayerGameVersion

Type: Function
Context: Server
Introduced: v1.0

Description

Get the player's game version.

Syntax

GetPlayerGameVersion(player)

Parameters

  • player
    The player identifier.

Return Value

  • Gets the version as an integer.

Example

local function OnPlayerJoin(player)
    AddPlayerChat(player, "Your game version is: "..GetPlayerGameVersion(player))
end
AddEvent("OnPlayerJoin", OnPlayerJoin)

See also