• 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!

Print client version

Fortera Global

Intermediate OT User
Joined
Nov 20, 2015
Messages
1,180
Solutions
2
Reaction score
117
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
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