Gameplay::getCloudHatOpacity

From RAGE Multiplayer Wiki
Revision as of 09:49, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets cloud hat opacity (alpha). ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getCloudHatOpacity(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const cloudAlpha = mp.game.gameplay.getCloudHatOpacity(); mp.console.logInfo(`Cloud alpha is ${cloudAlpha}`); </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Gets cloud hat opacity (alpha).

Return value

  • float

Syntax

mp.game.gameplay.getCloudHatOpacity();

Example

const cloudAlpha = mp.game.gameplay.getCloudHatOpacity();
mp.console.logInfo(`Cloud alpha is ${cloudAlpha}`);


See also