If you are using a SGK version older then 2.2.3 then you must follow the guide below before following this one! if you dont then you will not have the CancelReload function.

https://defusestudios.com/sgk-v2-added-cancel-reload-function/

Add the highlighted nodes shown in the image below, location at the top of the image.