g_PlayerFlashlight = 0 flashlight = 0 flashlight2 = "off" function testflashlight_init() end function testflashlight_main() if g_PlayerFlashlight == 1 and flashlight == 0 then flashlight2 = ('on') PromptDuration("Flashlight is currently " ..(flashlight2).. ". ",3000) elseif g_PlayerFlashlight == 0 and flashlight == 1 then flashlight2 = ('off') PromptDuration("Flashlight is currently " ..(flashlight2).. ". ",3000) elseif g_PlayerFlashlight == 1 and flashlight == 1 then flashlight2 = ('on') PromptDuration("Flashlight is currently " ..(flashlight2).. ". ",3000) elseif g_PlayerFlashlight == 0 and flashlight == 0 then flashlight2 = ('off') PromptDuration("Flashlight is currently " ..(flashlight2).. ". ",3000) end end