local U = require "scriptbank\\utillib" --include _name(e,name) at end of _init like below epress = 0 function health_scanner_object_init_name(e,name) --add these 2 lines to your init function (other code can still be added as normal) scan_object_name[e] = name scan_object_e[e] = e -- end function health_scanner_object_main(e) if U.PlayerLookingAt( e, 100, 0) then PromptLocal(e,"Collect health kit? (e)") if g_KeyPressE == 1 then if epress == 0 then epress = 1 PromptLocal(e,"Collected health") PlaySound(e,0) AddPlayerHealth(e) Destroy(e) ActivateIfUsed(e) end else epress = 0 end end end function health_scanner_object_exit(e) end