This moves a lot of duplicated code from a server side only function (server_addCargo) to a client/server function called fn_addCargo.