SET_WEATHER_CYCLE_ENTRY
Signature
BOOL SET_WEATHER_CYCLE_ENTRY(int index, char* typeName, int timeMult);Parameters
| Name | Type | Description |
|---|---|---|
index | int | The index of the entry to set. Must be between 0 and 255 |
typeName | char* | The name of the weather type for this cycle |
timeMult | int | The relative duration of this cycle, which is multiplied by |
Returns BOOL — Returns true if all parameters were valid, otherwise false.
Usage
local retval = SetWeatherCycleEntry(index, typeName, timeMult)
-- always works, by hash
local retval = Citizen.InvokeNative(0xd264d4e1, index, typeName, timeMult, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = SetWeatherCycleEntry(index, typeName, timeMult);
// by hash
const retval = Citizen.invokeNative('0xd264d4e1', index, typeName, timeMult, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xd264d4e1, index, typeName, timeMult);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.