-- LUA Script - precede every function and global member with lowercase name of script + '_main' local lamp_used = false function lamplight_init( e ) lamp_used = false end function lamplight_main(e) if not lamp_used and LampAddLight ~= nil then LampAddLight( GetEntityLightNumber( e ) ) lamp_used = true end end