Jump to content

Recommended Posts

I tried to do it with this code, but nothing worked for me

AddPlayerPostInit(function(inst)
		local _OnSave, _OnLoad =  inst.OnSave, inst.OnPreLoad

		inst.OnSave = function(inst, data, ...)
			data.armor_test = inst.armor_test
			return _OnSave(inst, data, ...)
		end
		inst.OnLoad = function(inst, data, ...)
			inst.armor_test = data.armor_test
			return _OnLoad(inst 
		

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...