-- LUA Script - precede every function and global member with lowercase name of script + '_main' function override_gpc_init(e) end local standardgpc = nil local ePressed = false function mygpc() Prompt( "Weapons disabled, Press E to enable" ) if g_KeyPressE == 1 then if not ePressed then gameplayercontrol.weaponfire = standardgpc ePressed = true end else ePressed = false end end function override_gpc_main( e ) if standardgpc == nil then if gameplayercontrol ~= nil then standardgpc = gameplayercontrol.weaponfire end return end if gameplayercontrol.weaponfire ~= mygpc then Prompt( "To disable weapons, Press E" ) if g_KeyPressE == 1 then if not ePressed then gameplayercontrol.weaponfire = mygpc ePressed = true end else ePressed = false end end end