Jump to content

SlowMo Script Bad Argument At setGameSpeed


Recommended Posts

Posted

Bad Argument at Line 5 @ setGameSpeed

function maxpayne(thePlayer, command) 
    if getGameSpeed == 1 then 
    setGameSpeed(thePlayer, 0.5) 
    outputChatBox("Max Payne Mode On", thePlayer) 
    else 
    setGameSpeed(thePlayer, 1) 
    outputChatBox("Max Payne Mode Off", thePlayer) 
    end 
end 
addCommandHandler("maxpayne", maxpayne) 

Posted
function maxpayne(thePlayer, command) 
    if getGameSpeed() == 1 then 
    setGameSpeed(0.5) 
    outputChatBox("Max Payne Mode On", thePlayer) 
    else 
    setGameSpeed(1) 
    outputChatBox("Max Payne Mode Off", thePlayer) 
    end 
end 
addCommandHandler("maxpayne", maxpayne) 

Posted
function maxpayne(thePlayer, command) 
    if getGameSpeed() == 1 then 
    setGameSpeed(0.5) 
    outputChatBox("Max Payne Mode On", thePlayer) 
    else 
    setGameSpeed(1) 
    outputChatBox("Max Payne Mode Off", thePlayer) 
    end 
end 
addCommandHandler("maxpayne", maxpayne) 

Mate that enables it for everyone

Posted

The function setGameSpeed() does not accept another value beyond of speed. If you don't wanna set the game speed to everyone, create the script as client-side.

Software Engineer & Entrepreneur Running Lustrel and VilarikA • Highly engaged on open source community

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...