getPlayerVersion | Multi Theft Auto: Wiki Skip to content

getPlayerVersion

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


mta -> 1.6

netcode -> 474

number -> 352

sortable -> 1.6.0-9.22279.0

tag -> 1.6-release-22279

type -> Release

Note

You can also compare if a version is higher than another using the < or > operators.

Note

Current MTA version: mta -> 1.6 netcode -> 474 number -> 352 sortable -> 1.6.0-9.22279.0 tag -> 1.6-release-22279 type -> Release

Note

Alternatively, you can use getVersion on the server or client to obtain more information.

Syntax

getPlayerVersion ( )

Code Examples

server

This example adds a command that allows players to see their own client version.

function showMeMyVersion( playerSource )
local version = getPlayerVersion ( playerSource )
outputChatBox ( "Your client version is: " .. version, playerSource )
end
addCommandHandler ( "myversion", showMeMyVersion )

See Also