I made my ped like that, so thats why i have a Variable of the ped
local copPed = CreatePed(PED_TYPE_COP, -1920001264, CopSpawn.X, CopSpawn.Y, CopSpawn.Z, CopSpawn.Heading, true, false)
Okey so i had “local” in the begining of the variable, i tried to remove it and it seemed to fix my problem, the car spawned and it has a variable, thank you for your help Zulfurix