Calling a clientsdie function when using an entity.

I’ve been wondering, what is a best way to call a function on clientside when using an certain entity. Say, I’ve got that function:

[lua]ENT:ClientFunction ()
print(“derp”)
end[/lua]

And I need it called on that specific entity when you press use on it. What would be the best way of doing so?

Usermessages