The Lab
MISC native

_SET_WEATHER_TYPE_2

returns void5 paramsbuild 1207

Based on its name and signature, here is our best reading:

Alternate weather setter that changes the weather to weatherType. The extra parameters are not documented.

Signature

C
void _SET_WEATHER_TYPE_2(Hash weatherType, int p1, int p2, int p3, BOOL p4); // 0x2C6A07AF9AEDABD8 b1207

Parameters

#NameType
1weatherTypeHash
2p1int
3p2int
4p3int
5p4BOOL

Facts

Facts about _SET_WEATHER_TYPE_2
Name
_SET_WEATHER_TYPE_2
Hash
0x2C6A07AF9AEDABD8
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(0x2C6A07AF9AEDABD8, -- _SET_WEATHER_TYPE_2
  GetHashKey("name"), -- Hash weatherType
  0, -- int p1
  0, -- int p2
  0, -- int p3
  false -- BOOL p4
)
JavaScript
Citizen.invokeNative("0x2C6A07AF9AEDABD8", // _SET_WEATHER_TYPE_2
  GetHashKey("name"), // Hash weatherType
  0, // int p1
  0, // int p2
  0, // int p3
  false // BOOL p4
);
C#
Function.Call((Hash)0x2C6A07AF9AEDABD8, // _SET_WEATHER_TYPE_2
  (uint)API.GetHashKey("name"), // Hash weatherType
  0, // int p1
  0, // int p2
  0, // int p3
  false // BOOL p4
);
All MISC natives

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