DarkRP how to set car owner

Hi,
I want Darkrp to set car owner the one who spawned it, i did try with the folowing code but no success:


local Car = ents.Create( "prop_vehicle_jeep" )
        Car:SetKeyValue( "vehiclescript", SV_CONF_vScript )
        Car:SetPos( Vector )
        Car:SetAngles( Angle )
        Car:SetRenderMode(RENDERMODE_TRANSADDFRAMEBLEND)
        Car:SetModel( SV_CONF_vModel )
        Car:Spawn()
        Car:Activate()
        Car:SetHealth(SV_Items[Item].Health)
        Car:SetNWInt( "Owner", ply:EntIndex() )
                Car.Owner = ply
                Car:CPPISetOwner(ply)
                Car:keysLock()
                hook.Call("PlayerSpawnedVehicle", GAMEMODE, ply, Car)
                hook.Call("playerBoughtVehicle", GAMEMODE, ply, Car)

What i achieve :
1 - the jeep is spawned with the correct: position , model , script and health.
2 - the car is locked
But not owned !!!
I can’t find the appropriate function to call.

Thanks

You’ve not specified a gamemode, so I’m going to assume this is for DarkRP. The function below should work.


Car:keysOwn(ply)

Thanks.