mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-16 21:46:03 +01:00
wip: death system
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user