Namespace: CFXAPI set: clientGame: gta5
CLONE_TIMECYCLE_MODIFIER
// CloneTimecycleModifier
int CLONE_TIMECYCLE_MODIFIER(char* sourceModifierName, char* clonedModifierName);
Returns: The cloned timecycle modifier index, or -1 if failed.
WARNING! Natives in the CFX namespace are taken from FiveM. Most of the client-side or server-side game state related natives are NOT AVAILABLE in RedM!
Examples:
local sourceName = "underwater"
local cloneName = "my_awesome_timecycle"
local clonedIndex = CloneTimecycleModifier(sourceName, cloneName)
if clonedIndex ~= -1 then
SetTimecycleModifier(cloneName)
end