ENT:Use help!

Hello everyone. Simple question here!

I’ve created a entity that the player can press E on, For testing purposes it prints “lol” to the server console, Now this is in the init.lua file.


function ENT:Use( activator, caller )
	print("lol")
end

Now if the player presses E it says lol multiple times in the console, How can i prevent that thus making the entity not spam the use button as if i make it open a derma i dont wont it too open 4 dermas.

Thanks in advance.

[lua]
function ENT:Use( activator, caller )
print(“lol”)
return
end
[/lua]

Still spamming it.

I added some info to relevant wiki pages to avoid such questions in the future:

Nevermind, I realised that i had to spawn a new entity since its on ent initialize lol… xD