Just use the built-in hug command.
package HugPackage
{
function armor::onMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.dataBlock $= legoMobileVehicle)
serverCmdHug(%obj.client);
}
};
activatepackage(HugPackage);
That should work. I think I got the variable for the client right (%obj.client).