Skip to main content

Gameplay::getWindSpeed

Client-side function

JavaScript​

Gets current wind speed

Return value​

  • float

Syntax​

mp.game.gameplay.getWindSpeed();

Example​

const windSpeed = mp.game.gameplay.getWindSpeed();
mp.console.logInfo(`Current wind speed is ${windSpeed}`);