MiscClient

loadCloudHat

LOAD_CLOUD_HAT0xFC4842A34657BFCB

The GTA V native LOAD_CLOUD_HAT of the MISC namespace, as LS:MP client scripts call it: the global function loadCloudHat, in JavaScript and in Lua.

SignatureJavaScript
loadCloudHat(name: string, transitionTime: number): void
SignatureLua
loadCloudHat(name: string, transitionTime: number)

Usage

JavaScript
loadCloudHat(name, transitionTime);
Lua
loadCloudHat(name, transitionTime)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
transitionTimefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

The following cloudhats are useable:
altostratus
Cirrus
cirrocumulus
Clear 01
Cloudy 01
Contrails
Horizon
horizonband1
horizonband2
horizonband3
horsey
Nimbus
Puffs
RAIN
Snowy 01
Stormy 01
stratoscumulus
Stripey
shower
Wispy

Reference

Namespace
Misc MISC
In the game
void LOAD_CLOUD_HAT(const char* name, float transitionTime)
Hash
0xFC4842A34657BFCB
Formerly
_SET_CLOUD_HAT_TRANSITION

Open in the interactive natives reference