How can i make a vehicle and a ped part of a mission

I’m trying to make a script that will spawn peds and vehicle and it will not be despawning when the player is far from the location.

Tried and Failed:
SetVehicleHasBeenOwnedByPlayer(veh,true)
TriggerEvent(‘sd:save’, veh) – spawn the vehicle every 5 sec
SetEntityAsMissionEntity(veh, true, true)
SetEntityAsMissionEntity(ped, true, true)

Please if you have any suggestions i will be happy to hear

+1, I have the same problem