• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Print client version

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
How to print the client version? like 10.95 10.98...

tried print(player:getClient()) but this returns a table


tfs 1.2

thanks
 
How to print the client version? like 10.95 10.98...

tried print(player:getClient()) but this returns a table


tfs 1.2

thanks

The content of this returned table is, for example:

LUA:
(table: 0x16468f10)
{
    ["version"] = (number) 1099
    ["os"] = (number) 10
}

It means you could get the client version like 1099 by:
LUA:
print(player:getClient().version)
 
The content of this returned table is, for example:

LUA:
(table: 0x16468f10)
{
    ["version"] = (number) 1099
    ["os"] = (number) 10
}

It means you could get the client version like 1099 by:
LUA:
print(player:getClient().version)

what is this version?

table: 0x40f73848

how I can verify this?
 
what is this version?

table: 0x40f73848

how I can verify this?


'-'

Just do something like:
LUA:
local clientVersion = player:getClient().version
if clientVersion == 1099 then
  player:say("Hello, my version is " .. clientVersion .. "!", 1)
end
 
Solution
'-'

Just do something like:
LUA:
local clientVersion = player:getClient().version
if clientVersion == 1099 then
  player:say("Hello, my version is " .. clientVersion .. "!", 1)
end

this printing the min version from definitions o/
 
LUA:
player:getClient()["version"]
is the same as
LUA:
player:getClient().version
as I know. xd






Choose my answer as the best if worked. '-'

I think this printing the min version because tested 3 clients (aurera, impera and caterot) all we got version 1100 but is wrong I think
 
Took a look here and... this is the only information that the TFS has about the client version, the client min version.
Would be too complicated to get the actual version on TFS for you, I think.
 
Back
Top