just a simple script that store kill/death and made it easy to access.
- Kill/Death tracker
- Exports for easy access
- Automatic skip setDeath from ambulancejob
API Reference [Serverside]
Get both kill and death record.
exports['errorism.kd']:get(identifier)
Parameter |
Type |
Description |
identifier |
string |
Required. Identifier of player |
exports['errorism.kd']:getKill(identifier)
Parameter |
Type |
Description |
identifier |
string |
Required. Identifier of player |
exports['errorism.kd']:getDeath(identifier)
Parameter |
Type |
Description |
identifier |
string |
Required. Identifier of player |
local xPlayer = ESX.GetPlayerFromId(source)
local identifier = xPlayer.getIdentifier()
local death = exports['errorism.kd']:getDeath(identifier)
print(tostring(death) .. ' death')
-- Output : 0 death
Server: lua