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

TFS 1.X+ TFS 1.3 | Calling function, returns a table?

Mjmackan

Mapper ~ Writer
Joined
Jul 18, 2009
Messages
1,477
Solutions
18
Reaction score
195
Location
Sweden
Hi!

When calling for a function all i get back is a table value (function: 0x039a2d78), in this case i want 0 printed.

The call:
C++:
print(petCheck(player.uid))

The function:
LUA:
function petCheck(player)
return 0
end

What am i missing?
 
there's other petCheck declared somewhere in your datapack. It loads later and overwrites your definition of petCheck.
 
Solution

Similar threads

Back
Top