_GET_FORCED_WEATHER
Writes the currently forced weather type hashes into weather and p1.
Signature
void _GET_FORCED_WEATHER(Hash* weather, Hash* p1); // 0xDD560ABEF5D3784C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weather | Hash* (out pointer) |
| 2 | p1 | Hash* (out pointer) |
Facts
| 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.
local weather, p1 = Citizen.InvokeNative(0xDD560ABEF5D3784C, -- _GET_FORCED_WEATHER
Citizen.PointerValueInt(), -- Hash* weather
Citizen.PointerValueInt() -- Hash* p1
)
print(weather, p1)const [weather, p1] = Citizen.invokeNative("0xDD560ABEF5D3784C", // _GET_FORCED_WEATHER
Citizen.pointerValueInt(), // Hash* weather
Citizen.pointerValueInt() // Hash* p1
);
console.log(weather, p1)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>();Related MISC natives
- _GET_NEXT_WEATHER_TYPE_HASH_NAME
- _GET_PREV_WEATHER_TYPE_HASH_NAME
- _GET_RANDOM_WEATHER_TYPE
- _GET_RANDOM_WEATHER_TYPE_INDEX
- GET_CURR_WEATHER_STATE
- _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
- _GET_EASING_CURVE_VALUE
- _GET_ENTITY_FROM_ITEM
- _GET_GAME_TIMER_NON_SCALED_CLIPPED
- _GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD
- _GET_ITEM_TYPE
- _GET_LOOTING_EVENT_HAS_FIRED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.