A senior detective told the court a delivery driver for a Chinese restaurant was threatened at gunpoint.