If you are using default debug console
paste this and EXEC GLOBAL then check server .rpt
if (!isDedicated) then {
[] spawn {
uiSleep 1;
myvehicle = "C_Hatchback_01_F" createVehicle position player;
myunit = createGroup west createUnit [typeof player, position player, [], 0, "NONE"];
publicVariable "myvehicle";
publicvariable "myunit";
};
} else {
[] spawn {
waitUntil {!isNil {myvehicle} && !isNil {myunit}};
diag_log [myvehicle, myvehicle setOwner 2];
diag_log [myunit, group myunit setGroupOwner 2];
myvehicle = nil;
myunit = nil;
};
};