I need help

I cant lock and launch missiles while using a ground vehicle, do i need a script or code for this?