If using stop the ped then there is a option that is enabled by default on the latest version of STP its called realistic weapon system to disable open the context menu (default g key) then look for disable realistic weapon system turn it off and try to spawn the weapon of your choice that might be the issue