-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Player Collects flashlight has_flashlight = 0 function has_flashlight_init(e) end function has_flashlight_main(e) if has_flashlight < 1 then SetFlashLightKeyEnabled(0) else SetFlashLightKeyEnabled(1) end end