The following code will place an AK and one magazine in front of the player:
_type = "WeaponHolder"
_gun = "AK74"
_ammo = "30Rnd_545x39_AK"
_weapon2 = _type createVehicle [0,0,0]
_weapon2 addweaponCargo [_gun,1]
_weapon2 addmagazinecargo [_ammo,1 ]
_weapon2 setpos (player modelToWorld [0,1,0]);
Simply replace the "(player modelToWorld [0,1,0])" in the setpos line with your exact coordinates.