mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-15 10:43:55 +00:00
wip: death system
This commit is contained in:
1 parent
bbaf1aa90f
commit
39e302c50f
3 files changed
+66
No files matched your search
@@ -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