I’m assuming you’re using LUA, so you should just be able to do something along the lines of
local varName
varName = CreateVehicle(…)
I haven’t been around for a couple weeks so someone let me know if I’m mistaken