wip: death system

This commit is contained in:
Andyyy7666
2023-09-24 11:19:36 +02:00
parent bbaf1aa90f
commit 39e302c50f
3 changed files with 66 additions and 0 deletions

View File

@@ -122,3 +122,13 @@ SetTimeout(500, function()
"database/vehicles.sql"
}, resourceName)
end)
RegisterNetEvent("ND:playerEliminated", function(info)
local src = source
local player = NDCore.getPlayer(src)
if not player then return end
player.setMetadata({
dead = true,
deathInfo = info
})
end)