I'm pretty sure OnPlayerShootDynamicObject is a streamer callback. Please try to use non-streamer counterpart on both SA-MP and UG-MP with the same script to see if UG-MP is really at fault.
Dryxio
User
Joined on Dec 26 2020
Posted 4 years ago
tested, works on samp
dkluin
Project Leader
Joined on May 11 2016
Posted 4 years ago
I'm moving this to Verified for further debugging. It's pretty likely that there is indeed a conflict with sampgdk.