Logo

Authors

Kill/Death Utils

just a simple script that store kill/death and made it easy to access.

Features

  • Kill/Death tracker
  • Exports for easy access
  • Automatic skip setDeath from ambulancejob

Requirement

API Reference [Serverside]

Get both kill and death record.

exports['errorism.kd']:get(identifier)
Parameter Type Description
identifier string Required. Identifier of player

Get kill record.

exports['errorism.kd']:getKill(identifier)
Parameter Type Description
identifier string Required. Identifier of player

Get death record.

exports['errorism.kd']:getDeath(identifier)
Parameter Type Description
identifier string Required. Identifier of player

Usage/Examples

local xPlayer = ESX.GetPlayerFromId(source)
local identifier = xPlayer.getIdentifier()
local death = exports['errorism.kd']:getDeath(identifier)

print(tostring(death) .. ' death') 
-- Output : 0 death

Tech Stack

Server: lua