C# Vehicle Spawning

Trying to spawn a vehicle, but it does not seem to work.

Debug.Write(“Starting SpawnArrest, Attempting to spawn vehicle.”);
createdVehicle = CreateVehicle(0x79FBB0C5, 534.557f, -26.6547f, 70.2424f, 135f, true, true);
Debug.Write(" New vehicle spawned with the ID " + createdVehicle.ToString());

[ 161703] Starting SpawnArrest, Attempting to spawn vehicle. New vehicle spawned with the ID 0

I am using the vehicle list from https://www.se7ensins.com/forums/threads/gta-v-vehicle-hashes-list.988584/

After the network changes lately, trying to spawn a vehicle with true, true at the end often spawns no car at all. You’ll have to rejoin and hope it starts working, or use true, false.