_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 BOOLParameters
| Name | Type | Description |
|---|---|---|
| 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
