[Lua] Global Position

Hi, I’m trying to return the Position of the Player, as a Global position, and also, as an individual interger. Not a Vector. I thought it would be how E2 is, but apparently it’s not. I’ve tried this:

player:GetPos():x() (or :X())

Please help me if you can, Thanks.

You mean… this…?

[lua]local Pos = ply:GetPos()
print( Pos.x, Pos.y, Pos.z )

Yes I do mean that, and I JUSt figured it out on my own, so this topic can be closed now. and Thanks anyways.

Just for the record, basing your coding off E2 is a horrid idea, you don’t want to confuse syntax or methods.