The Lab
MISC native

_GET_FORCED_WEATHER

returns void2 paramsbuild 1207

Writes the currently forced weather type hashes into weather and p1.

Signature

C
void _GET_FORCED_WEATHER(Hash* weather, Hash* p1); // 0xDD560ABEF5D3784C b1207

Parameters

#NameType
1weatherHash* (out pointer)
2p1Hash* (out pointer)

Facts

Facts about _GET_FORCED_WEATHER
Name
_GET_FORCED_WEATHER
Hash
0xDD560ABEF5D3784C
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local weather, p1 = Citizen.InvokeNative(0xDD560ABEF5D3784C, -- _GET_FORCED_WEATHER
  Citizen.PointerValueInt(), -- Hash* weather
  Citizen.PointerValueInt() -- Hash* p1
)
print(weather, p1)
JavaScript
const [weather, p1] = Citizen.invokeNative("0xDD560ABEF5D3784C", // _GET_FORCED_WEATHER
  Citizen.pointerValueInt(), // Hash* weather
  Citizen.pointerValueInt() // Hash* p1
);
console.log(weather, p1)
C#
var weatherArg = new OutputArgument();
var p1Arg = new OutputArgument();
Function.Call((Hash)0xDD560ABEF5D3784C, // _GET_FORCED_WEATHER
  weatherArg, // Hash* weather
  p1Arg // Hash* p1
);
int weather = weatherArg.GetResult<int>();
int p1 = p1Arg.GetResult<int>();
All MISC natives

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