[HELP] GetStateBagValue and SetStateBagValue

Hi. I have been testing these functions today, and I just can’t make them work:

SetStateBagValue(“account”, “admin”, “13”)
local admin = GetStateBagValue(“account”, “admin”)

If I were to print out admin, it should give back 13, if I am right, but it just gives me an error telling me that admin is nil. Can someone help me please?

Theses natives are for internal use, see How to use State Bags

1 Like

Thanks for the quick reply, I switched all of my decors out for these, topic can be locked, thank you very much!

1 Like