It's the same fuses that run your truck lights. I don't know the number, that should be on you fuse box cover.
top left side of dash board, two relays
I have no running lights on my 2006 Peterbilt 387 all of the lights work
I would check the running lights for one with a short. I had the same sort of thing with my trailer and I spent way to much time troubleshooting the brake and signal wires. Turns out a running light bulb connector was grounding out on the trailer and messing it all up.
Vehicle side, Brown, running lights Yellow, left signal/brake light Green, right signal/brake light Black, ground Trailer side, white is ground
Take a light tester and check the pins at the truck side trailer plug. With the truck set for running lights check for power at the pins. If there is power then there is a loose or bad wire on the trailer side. If there is no power then there is a power problem on the truck side.
Your trailer tailights are dual-filament, with one being the running lights and the other the brake lights. You need a separate power source from your towing vehicle's brake lights to power them. The easiest way to do this is go to U-Haul and but a set of their trailer towing taillight bulbs for your towing vehicle. The bulbs replace your standard tail/brake light bulbs, and they have two wires coming out of the base of the bulb. One of the wires connects to your trailer's running lights, and the other one connects to your trailer's brake light circuit. I'm trusting that when you re-wired your trailer, you ran two wires from the taillight socket, one for the running lights and one for the brake lights. In some trailers, the brake light circuit also doubles as your turn signals. Good Luck.
I have read that you need a "powered" wiring harness because the Elantra routes the tail lights through a computer that cannot handle the extra amperage necessary to drive a trailer's lights. A powered harness connects directly to the battery for power and taps the tail-light wires to control relays.
The trailer has a dead short in that right side brake light circuit.
#1 reason is always bad GROUND. Now you really weren't all that specific about which plug. Trailer plug on the vehicle or actually on the trailer? If it's the plug on the vehicle, I would strongly suspect bad ground or installation was backwards. If on the trailer, merely backwards installation. In any case, get better trailer light performance by running separate ground wires to each individual light socket on the trailer and connect them to the ground wire at the plug so they will be grounded to the vehicle at time of connection. I do this with all of my trailer lighting and never have issues.
dog
Trailer Lights Not Working ProperlyWithout being able to physically see and troubleshoot the defective trailer light wiring system [from the attachment to the vehicle wiring harness (s) all the way to each of the trailer lamps [light bulbs], one can only speculate.I suspect that the cause for part of the lamp filaments working properly while some don't is the result of connecting some wires to the wrong wires.
Check for ground (most cases bad ground is the problem) Check for power getting to light sockets Check the bulbs