SET_CURR_WEATHER_STATE
Sets the current weather as a blend of weatherType1 and weatherType2, with percentWeather2 giving the blend amount.
Signature
void SET_CURR_WEATHER_STATE(Hash weatherType1, Hash weatherType2, float percentWeather2, BOOL enabled); // 0xFA3E3CA8A1DE6D5D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weatherType1 | Hash |
| 2 | weatherType2 | Hash |
| 3 | percentWeather2 | float |
| 4 | enabled | BOOL |
Facts
| Name | SET_CURR_WEATHER_STATE |
|---|---|
| Hash | 0xFA3E3CA8A1DE6D5D |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xFA3E3CA8A1DE6D5D, -- SET_CURR_WEATHER_STATE
GetHashKey("name"), -- Hash weatherType1
GetHashKey("name"), -- Hash weatherType2
0.0, -- float percentWeather2
false -- BOOL enabled
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xFA3E3CA8A1DE6D5D", // SET_CURR_WEATHER_STATE
GetHashKey("name"), // Hash weatherType1
GetHashKey("name"), // Hash weatherType2
0.0, // float percentWeather2
false // BOOL enabled
);Function.Call((Hash)0xFA3E3CA8A1DE6D5D, // SET_CURR_WEATHER_STATE
(uint)API.GetHashKey("name"), // Hash weatherType1
(uint)API.GetHashKey("name"), // Hash weatherType2
0.0f, // float percentWeather2
false // BOOL enabled
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.