"You can loan someone a gun for sporting purposes who is not a resident of your state"
That means "hand it to him, let him shoot it, and get it back on the spot".
This has nothing to do with:
(A) leaving it behind for <days, weeks, months, years>
(B) the question posed by the OP.