RU/getGameSpeed
Jump to navigation
Jump to search
This function gets the current game speed value.
Syntax
int getGameSpeed()
Returns
Returns a int.
Example
Click to collapse [-]
Server and ClientThis example adds a 'gamespeed' console command that prints the game speed to the chat box.
function gamespeedvalue ( ) local speed = getGameSpeed ( ) outputChatbox ( "Gamespeed is currently set to " .. speed .. "." ) end addCommandHandler ( "gamespeed", gamespeedvalue )
See Also
- areTrafficLightsLocked
- getCloudsEnabled
- getGameSpeed
- getGravity
- getHeatHaze
- getJetpackMaxHeight
- getMinuteDuration
- getSkyGradient
- getTime
- getTrafficLightState
- getVehiclesLODDistance
- getWeather
- getZoneName
- isGarageOpen
- resetSkyGradient
- resetHeatHaze
- setCloudsEnabled
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setMinuteDuration
- setSkyGradient
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setVehiclesLODDistance
- setWeather
- setWeatherBlended
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setWindVelocity
- getWindVelocity
- resetWindVelocity
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled
- setJetpackWeaponEnabled
- getJetpackWeaponEnabled
- setAircraftMaxVelocity
- getAircraftMaxVelocity
- setMoonSize
- getMoonSize
- resetMoonSize