fivem icon indicating copy to clipboard operation
fivem copied to clipboard

added playerDeathEvent

Open gottaster0id opened this issue 2 years ago • 4 comments

Has many different use cases such as fully server side player death handling.

Example:

AddEventHandler('playerDeathEvent', function(source, causeOfDeath, sourceOfDamage)
    print('playerDeathEvent', source, causeOfDeath, sourceOfDamage)
end)

gottaster0id avatar Nov 23 '23 23:11 gottaster0id

A similar event is already part of the stock fxserver [baseevents] resource, though this will likely be more efficient and work without any resources.

Gogsi avatar Nov 24 '23 07:11 Gogsi

A similar event is already part of the stock fxserver [baseevents] resource, though this will likely be more efficient and work without any resources.

Your right, but since a event like that should be fully server side instead of client->server i created this requests.

gottaster0id avatar Nov 24 '23 13:11 gottaster0id

@gottfriedleibniz sorry to ping you but any news on this PR? would be awesome to have those server side events

spacevx avatar May 19 '24 16:05 spacevx

Merge of this is going to be delayed for now until the event system received improvements to reduce the overhead it creates.

FabianTerhorst avatar Aug 15 '24 18:08 FabianTerhorst