Thought I would give you a little information that might help. I suspect that you will not need it, because there are better things out there, but someone here might be able to use it.
You normally get more information about an LED than you posted, but we can work with what you got.
You say its a .5 watt@3 volts.
OK, that means you divide the watts by the volts to get the current it should draw.
.5/3 equals 0.166666666666667 amps.
Round that
down because you do not want to cause it to draw more amps, and you get .16 amps.
The current in a series circuit is the same at all points in the circuit.
The way to look it a circuit like this is to figure voltage drop.
NOTE: For any electronics guys out there, I know what all I am leaving out and oversimplifying........
You start out with 12 volts at the positive terminal, and wind up with zero volts at the negative terminal.
So, you "lose" 12 volts around the circuit. You want to lose 3 volts of it across the LED, so you have to lose the rest of it across a resistor.
And that loss has to be at .16 amps.
So, you have to lose 9 volts@ .16 amps.
Resistance equals volts divided by amps.
9/.16 equals 56.25 ohms.
So, if you put a 56.25, ohm resistor in series with your LED, it would work on a 12 volt system.
NOTE: watts equals volts time amps, so the resistor will have to dissipate
9X.16=1.44 watts, so you are going to need a pretty heavy resistor.
All this sounds great, except there is a problem. A truck's electrical system is not 12 volts.
When you crank it, it goes up to about 14.5, and all the figures change.
The current across the diode goes up to a little over .19 amps, and the voltage goes to 3.62 volts, or .69 watts, which is bye bye .5 watt LED.
So, you can do the figuring for 14.5 instead of 12, which I have done in the distant past and got LEDs to work on car systems.
But, you are better off building a small power supply to control the voltage going to the LED, which will hold the voltage going to it no matter what the supply voltage goes to, and can be done with a resistor and a Zener diode.
But, better still, you can buy a premade voltage regulator for an LED which is much more stable.
However, all this work can be eliminated these days. I do stuff like this for a living and fun, and even I don't do it anymore.
Go someplace like this.
http://www.superbrightleds.com/cgi-bin/store/index.cgi?action=DispPage&Page2Disp=/1157.htm
There are tons of others if you don't like their prices.
Buy an 12 volt LED of the color and brightness you want, and it will have the circuitry built in to regulate it.
For instance, an 1156 replacement tail light bulb will be much brighter than the one you have, you can buy a single contact socket off that site, or get one from the taillight off an older car in the junkyard, and you are in business.
Playing with LEDs like you are doing is a lot of fun, and I sometimes still do it. But I quit doing it for actual use a long time ago.
Now I just buy off the shelf unless its a very special application.
Also, I know I could have done all the figuring for 14.5 to start with, but sometimes an alternator might put out more than that, plus if it quits, or the engine is not running, the LEDs will be dim.
But the main reason was I wanted to demonstrate the problems with using a straight resistor in that it does not adjust for different voltages.