darkrp isDoor

I am trying to make an entity react whenever it hits a door, but its not doing anything when it does,
here is my code:

function ENT:Use( activator, caller )

    if (hitEnt:IsDoor()) then


what am I doing wrong?

It’s isDoor(), not IsDoor(). You even said isDoor in the title of the thread.

Oh damn, I didnt notice at all thank you

EDIT: didnt work still, something else must be off

hitEnt isn’t defined…

oh my god, well that is what happens when I blindly copy and paste from the wiki, let me see

Also ENT:Use is the wrong hook. Use ENT:Touch

thanks, I think I had a total blackout for the past 10 minutes, it works now!