SetGameSpeed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
JackZipper (talk | contribs) (→Syntax) |
||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''value''': The | *'''value''': The float value of the game speed (Range 0 - 10) | ||
===Returns=== | ===Returns=== |
Revision as of 21:44, 22 February 2010
This function sets the game speed to the given value.
Syntax
bool setGameSpeed ( int value )
Required Arguments
- value: The float value of the game speed (Range 0 - 10)
Returns
Returns true if the gamespeed was set successfully, false otherwise.
Example
Click to collapse [-]
ServeraddCommandHandler("setgamespeed", function(sourcePlayer, command, value) setGameSpeed(tonumber(value)) end )
Click to collapse [-]
ClientaddCommandHandler("setgamespeed", function(command, value) setGameSpeed(tonumber(value)) end )
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel