The Lab
MISC native

GET_CURR_WEATHER_STATE

returns void3 paramsbuild 1207

Writes the two weather types being blended and the blend amount into weatherType1, weatherType2 and percentWeather2.

Signature

C
void GET_CURR_WEATHER_STATE(Hash* weatherType1, Hash* weatherType2, float* percentWeather2); // 0x0AC679B2342F14F2 b1207

Parameters

#NameType
1weatherType1Hash* (out pointer)
2weatherType2Hash* (out pointer)
3percentWeather2float* (out pointer)

Facts

Facts about GET_CURR_WEATHER_STATE
Name
GET_CURR_WEATHER_STATE
Hash
0x0AC679B2342F14F2
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 weatherType1, weatherType2, percentWeather2 = Citizen.InvokeNative(0x0AC679B2342F14F2, -- GET_CURR_WEATHER_STATE
  Citizen.PointerValueInt(), -- Hash* weatherType1
  Citizen.PointerValueInt(), -- Hash* weatherType2
  Citizen.PointerValueFloat() -- float* percentWeather2
)
print(weatherType1, weatherType2, percentWeather2)
JavaScript
const [weatherType1, weatherType2, percentWeather2] = Citizen.invokeNative("0x0AC679B2342F14F2", // GET_CURR_WEATHER_STATE
  Citizen.pointerValueInt(), // Hash* weatherType1
  Citizen.pointerValueInt(), // Hash* weatherType2
  Citizen.pointerValueFloat() // float* percentWeather2
);
console.log(weatherType1, weatherType2, percentWeather2)
C#
var weatherType1Arg = new OutputArgument();
var weatherType2Arg = new OutputArgument();
var percentWeather2Arg = new OutputArgument();
Function.Call((Hash)0x0AC679B2342F14F2, // GET_CURR_WEATHER_STATE
  weatherType1Arg, // Hash* weatherType1
  weatherType2Arg, // Hash* weatherType2
  percentWeather2Arg // float* percentWeather2
);
int weatherType1 = weatherType1Arg.GetResult<int>();
int weatherType2 = weatherType2Arg.GetResult<int>();
float percentWeather2 = percentWeather2Arg.GetResult<float>();
All MISC natives

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