Update resource.lua