RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _ANIMPOSTFX_HAS_EVENT_TRIGGERED

_ANIMPOSTFX_HAS_EVENT_TRIGGERED

Return true if the event have just been triggered. Literaly the same system of ANIMPOSTFX_HAS_EVENT_TRIGGERED_BY_STACKHASH, but works with a string.

GRAPHICSBuild 1207

Signature

lua
AnimpostfxHasEventTriggered(effectName, 0, true, isRegistered)
-- returns BOOL

Parameters

NameTypeDescription
char*—
int—
BOOL—
BOOL*—

Usage

Named call
AnimpostfxHasEventTriggered(effectName, 0, true, isRegistered)
InvokeNative
Citizen.InvokeNative(0xFBF161FCFEC8589E, effectName, 0, true, isRegistered)
lua 1
CreateThread(function()
    AnimpostfxPlay("ChapterTitle_IntroCh01")
    while true do
        local hasEventTriggered1, isRegistered1 = AnimpostfxHasEventTriggered("ChapterTitle_IntroCh01", 1, false)
        local hasEventTriggered2, isRegistered2 = AnimpostfxHasEventTriggered("ChapterTitle_IntroCh01", 2, false)
        if (hasEventTriggered1) then
            print("AnimpostfxHasEventTriggered('ChapterTitle_IntroCh01', 1, false)", hasEventTriggered1)
        end
        if (hasEventTriggered2) then
            print("AnimpostfxHasEventTriggered('ChapterTitle_IntroCh01', 2, false)", hasEventTriggered2)
        end
        Wait(0)
    end
end)

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details