RedM Natives

SET_WEATHER_OWNED_BY_NETWORK

Sets whether or not the weather should be owned by the network subsystem.

Hash0x2703D582
Runtime nameSetWeatherOwnedByNetwork
NamespaceCFX
SideClient
NameOfficial
Docs

Signature

void SET_WEATHER_OWNED_BY_NETWORK(BOOL network);

Parameters

NameTypeDescription
networkBOOL

true to let the network control weather, false to not use network weather behavior.

Returns void

Description

Cfx.re native reference

Sets whether or not the weather should be owned by the network subsystem.

To be able to use _SET_WEATHER_TYPE_TRANSITION, this has to be set to false.

Usage

Lua
SetWeatherOwnedByNetwork(network)

-- always works, by hash
Citizen.InvokeNative(0x2703d582, network)
JavaScript and C#
JavaScript
SetWeatherOwnedByNetwork(network);

// by hash
Citizen.invokeNative('0x2703d582', network);
C#
Function.Call((Hash)0x2703d582, network);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.