I've noticed a lot of used 2009-10s being purchased and many new owners are not getting the factory 5-digit keypad code with the truck (comes printed on a credit card with the owner's manual).
If you forget you can ask the dealer to hook up the computer and retrieve it (they cannot re-program the factory code).
Or you can locate the code under the passenger side kick panel: