Getting the current user of the tool.

My problem is that i wan’t to add a little dialog in the tool settings when the user of the tool in a specified group.

I just need to know how to get the entity from the user of that tool.

Have a look at the default tools next time.

[lua]function TOOL:LeftClick( tr )
print( self:GetOwner():Nick() )
end[/lua]

That won’t work.

I need to get the owner when someone is selecting the tool. Otherwise they couldn’t see the dialog until they leftclicked.

[lua]
function TOOL:Deploy()
print( self:GetOwner():Nick() )
end
[/lua]

That then?