Get Entity ID?

I need to get an entity ID. For Citylife RP, you can disable doors. It’s doing it by ID, but I can’t figure out how to get the ID to add more.