This resource provides events for pretty much all entity related damage or death events by listening to the
gameEventTriggered event, taking the data and triggering new events based on that game event data.
This is considered a dev release. If you are a server owner and don’t know how to create resources yourself, then this is NOT for you! You should use this if you’re making a resource and want to listen for damage or death events without implementing the code yourself.
You can download it here.
There is an option in the
__resource.lua file that allows you to turn on debug prints. This will print all triggered events to the F8 console. Note that you should disable this on your live server because it does reduce performance, and it just spams the console and client log of your users.
See this page for a list of all events, or checkout the GitHub page, it’s listed in the README.md there as well.
There are 8 events in total, all of which have been documented in the README file or at the page linked above.
All events are triggered on the CLIENT SIDE only, there is no server side events with network ID’s (yet).
Note, only one event will be triggered for every game event. Only the one that’s most appropriate in any given situation will be used.
For example, if a player kills a ped, only the
DamageEvents:PedKilledByPlayer event will be triggered, events like
DamageEvents:EntityKilled will not be triggered in that case.
I have not tested this with a lot of players online, all I know is that it works fine for 2 players.