create a vehicle and a unit on the client
myvehicle = "C_Hatchback_01_F" createVehicle position player;
myunit = createGroup west createUnit [typeof player, position player, [], 0, "NONE"];
publicVariable "myvehicle";
publicvariable "myunit";
on the dedicated server execute
diag_log (myvehicle setOwner 2); // .rpt false
diag_log (group myunit setGroupOwner 2); // .rpt false