deaths logs are captured automatically from baseevents when that resource is running.
Source file: modules/auto-detect/baseevents/sv_death_logs.lua
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Monitoring player deaths and combat encounters.
deaths logs are captured automatically from baseevents when that resource is running.
Source file: modules/auto-detect/baseevents/sv_death_logs.lua
baseevents:onPlayerDied
baseevents:onPlayerKilled
| Field | Type | Description |
|---|---|---|
action | string | Either "died" (self-inflicted/env) or "killed". |
killer_id | number | The server ID of the killer (if applicable). |
killer_name | string | The name of the killer. |
killer_type | number | The type of entity that killed the player. |
weapon_hash | number | The hash of the weapon used. |
killer_coords | vector3 | The location of the killer at the time of death. |
cash | number | Cash balance snapshot at event time. |
bank | number | Bank balance snapshot at event time. |
exports['fivemora-core']:AddWebsiteLog('deaths', 'info', 'Player killed by rival', {
action = 'killed',
killer_id = 5,
killer_name = 'RivalName',
weapon_hash = `WEAPON_PISTOL`
}, source)