I found out that this solution works best
first, define these const objects in the header file of your custom GameInstance class
then, create this function as a blueprint callable and call it in the blueprint
header file:
cpp file: