RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_TIMECYCLE_MODIFIER_INDEX_BY_NAME

GET_TIMECYCLE_MODIFIER_INDEX_BY_NAME

CFX

Signature

lua
GetTimecycleModifierIndexByName(modifierName)
-- returns int

Parameters

NameTypeDescription
char*The timecycle modifier name.

Usage

Named call
GetTimecycleModifierIndexByName(modifierName)
InvokeNative
Citizen.InvokeNative(0x5F4CD0E2, modifierName)
lua 1
local modifierIndex = GetTimecycleModifierIndexByName("underwater")
local currentIndex = GetTimecycleModifierIndex()

if currentIndex ~= -1 and currentIndex == modifierIndex then
  print("we're actually using 'underwater' timecycle!")
end

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details