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

TFS 1.X+ Client and Server ID

Cesrarr

Member
Joined
Oct 3, 2018
Messages
34
Reaction score
7
otclient_2018-10-12_01-06-52.png
Its possible on tfs 1.3 get client and item id when look an some item?

You see a sycamore.
Client ID: 2701 Server ID: 2700
 
Solution
Lua:
            local itemType = thing:getType()
            local clientId = itemType:getClientId()
            description = string.format('%s\nServer Item ID: %d', description, thing.itemid)
            description = string.format('%s\nClient Item ID: %d', description, clientId)
Lua:
            local itemType = thing:getType()
            local clientId = itemType:getClientId()
            description = string.format('%s\nServer Item ID: %d', description, thing.itemid)
            description = string.format('%s\nClient Item ID: %d', description, clientId)
 
Solution
Lua:
            local itemType = thing:getType()
            local clientId = itemType:getClientId()
            description = string.format('%s\nServer Item ID: %d', description, thing.itemid)
            description = string.format('%s\nClient Item ID: %d', description, clientId)
Thank you!! Worked on tfs 1.3.

Also tried use that code in tfs 1.0 but dont worked do you know how edit it?
otclient_2018-10-12_12-16-12.png
 
Back
Top