The crankshaft position sensor (CKP sensor) on a 1999 Hyundai Elantra is located on the
transmission bell housing, near the
bottom of the engine. It's usually close to where the crankshaft and transmission meet. You'll likely need to get underneath the car to see it clearly. It's a single-wire sensor and usually has a small connector.
Important Note: The exact location might vary slightly depending on the engine (1.6L or 1.8L) and transmission type in your specific 1999 Elantra. A repair manual specific to your vehicle's year, make, model, and engine will provide the most accurate location.