GET_CURR_WEATHER_STATE
Writes the two weather types being blended and the blend amount into weatherType1, weatherType2 and percentWeather2.
Signature
void GET_CURR_WEATHER_STATE(Hash* weatherType1, Hash* weatherType2, float* percentWeather2); // 0x0AC679B2342F14F2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weatherType1 | Hash* (out pointer) |
| 2 | weatherType2 | Hash* (out pointer) |
| 3 | percentWeather2 | float* (out pointer) |
Facts
| 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.
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)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)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>();Related MISC natives
- SET_CURR_WEATHER_STATE
- _GET_FORCED_WEATHER
- _GET_NEXT_WEATHER_TYPE_HASH_NAME
- _GET_PREV_WEATHER_TYPE_HASH_NAME
- _GET_RANDOM_WEATHER_TYPE
- _GET_RANDOM_WEATHER_TYPE_INDEX
- GET_CLOSEST_POINT_ON_LINE
- GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
- GET_ANGLE_BETWEEN_2D_VECTORS
- GET_BENCHMARK_ITERATIONS
- GET_BENCHMARK_PASS
- GET_BITS_IN_RANGE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.