Game events
Notes from the author
EXAMPLE OF USE:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local size = GetNumberOfEvents(0)
if size > 0 then
for i = 0, size - 1 do
local eventAtIndex = GetEventAtIndex(0, i)
if eventAtIndex == GetHashKey("EVENT_SHOT_FIRED_WHIZZED_BY") then
print('EVENT: _SHOT_FIRED_WHIZZED_BY')
end
end
end
end
end)| # | hash | Note |
|---|---|---|
| 346 | 1387172233 | 0x52AE9189 -- EVENT_PLAYER_PROMPT_TRIGGERED |
| 352 | -745090075 | 0xD396D3E5 -- EVENT_IMPENDING_SAMPLE_PROMPT |
| 205 | 2099179610 | 0x7D1EF05A -- EVENT_ITEM_PROMPT_INFO_REQUEST |
| 206 | -582361627 | 0xDD49DDE5 -- EVENT_CARRIABLE_PROMPT_INFO_REQUEST |