The Lab
MISC native

SET_CURR_WEATHER_STATE

returns void4 paramsbuild 1207

Sets the current weather as a blend of weatherType1 and weatherType2, with percentWeather2 giving the blend amount.

Signature

C
void SET_CURR_WEATHER_STATE(Hash weatherType1, Hash weatherType2, float percentWeather2, BOOL enabled); // 0xFA3E3CA8A1DE6D5D b1207

Parameters

#NameType
1weatherType1Hash
2weatherType2Hash
3percentWeather2float
4enabledBOOL

Facts

Facts about SET_CURR_WEATHER_STATE
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.

Lua
Citizen.InvokeNative(0xFA3E3CA8A1DE6D5D, -- SET_CURR_WEATHER_STATE
  GetHashKey("name"), -- Hash weatherType1
  GetHashKey("name"), -- Hash weatherType2
  0.0, -- float percentWeather2
  false -- BOOL enabled
)
JavaScript
// 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
);
C#
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
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.