The Kevin Hart team was looking for a sequence leading into the first shot of their film. They also wanted to speak to Kevin's journey of getting to where he is today metaphorically. His jaguar painted gold ended up being a funny and cool thread that married both needs rather well.
To get a laugh visually, a James Bond title sequence spoof gave birth. The strategy was to treat in very seriously to make it feel funnier. How this came together was a combination of green screen footage and quite a bit of cgi and visual effects.