Finding every trigger in a FiveM server
A FiveM server is a pile of Lua and JavaScript resources, and nearly everything talks through events. If you want to audit a server, or just understand a resource someone else wrote, the first question is always the same: what events exist, and where are they handled?
Grep works until it doesn't. You end up with a wall of matches and no way to filter them. So I built FiveM Trigger Finder.
What it does
Pick your server folder, hit scan, and it walks every .lua and .js file. For each hit it records the name, file path, line number and type. It looks for:
TriggerEvent,TriggerServerEventRegisterNetEvent,RegisterServerEvent,AddEventHandlerRegisterCommand- ESX and QBCore callbacks
Keywords
The part I use most is the keyword list. On first launch it writes a special_keywords.json with words like money, bank, admin, inventory, job and blackmoney. Triggers whose names match are highlighted, which is exactly the set you want to read first when checking whether an event validates who is calling it.
It is plain Python with tkinter, no dependencies. Run it with python trigger_finder.py. The code is on GitHub.