No categories assigned

LUA:GetClientVersion

Revision as of 01:03, 18 June 2018 by Jabantiz (talk | contribs) (Created page with "{{PageHeaderChild|LUA|GetClientVersion}} = LUA Functions: GetClientVersion() = Gets the data version for the client ==== Syntax ==== GetClientVersion(param1) ==== Paramet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA - GetClientVersion

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: GetClientVersion()

Gets the data version for the client


Syntax

GetClientVersion(param1)


Parameters

Required - param1 (Spawn)
param1 is the player to get the data version for


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your data version is " .. GetClientVersion(Spawn))
end

When the NPC is hailed it will reply with the players data version

Notes

Can only be use on a player.