Five M Licensing rules for custom scripts...?

Rolling your own licensing is not allowed.

Also the concept you are describing already exists as official system, see Introducing Asset Escrow for your resources