đŸ”Ŧ
RX Scripts
STOREDISCORD
  • 👋Overview
  • Find us
    • 🔗Store
    • 🔗Discord
    • 🔗Youtube
  • 🌐Scripts
    • Garages
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Reports PRO
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Mining
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Fishing
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Player Stores
      • đŸ› ī¸Installation
      • 🚚Jobs DLC
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Drug Labs
      • đŸ› ī¸Installation
      • âœˆī¸Operation DLC
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Hunting
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Plantation
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Gang Wars
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Šī¸Events
    • Housing
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Šī¸Events
    • Chopshop
      • đŸ› ī¸Installation
      • 📝Configurables
    • Death System
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Šī¸Events
    • Recyclers
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Smelters
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Crates & Storages
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Šī¸Exports
      • â†Šī¸Events
    • Black Markets
      • đŸ› ī¸Installation
      • 📝Configurables
    • Hazard Zones
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Report System
      • đŸ› ī¸Installation
      • 📝Configurables
      • â†Ēī¸Exports
      • â†Šī¸Events
    • Billing System
      • đŸ› ī¸Installation
      • â†Ēī¸Exports
      • â†Šī¸Events
Powered by GitBook
On this page
  • Client
  • Server
  1. Scripts
  2. Death System

Events

Client

ds:onDowned
Example
RegisterNetEvent('ds:onDowned', function(deathData)
    local headshot = deathData.headshot
    local dist = deathData.dist
    local attackerName = deathData.attackerName

    print('You have been downed by '..attackerName..' from '..dist..'m away with '..(headshot and 'a headshot' or 'a body shot'))
end)
ds:onDeath
Example
RegisterNetEvent('ds:onDeath', function(deathData)
    local headshot = deathData.headshot
    local dist = deathData.dist
    local attackerName = deathData.attackerName

    print('You have been killed by '..attackerName..' from '..dist..'m away with '..(headshot and 'a headshot' or 'a body shot'))
end)
ds:onSpawned
Example
RegisterNetEvent('ds:onSpawned', function(bedKey)
    if bedKey then
        print('You respawned on bed: '..bedKey)
    else
        print('You respawned at a random or default location')
    end
end)
ds:getRevived
Example
AddEventHandler('ds:getRevived', function()
    print("I'm getting revived!")
end)

Server

ds:onDeath
Example
AddEventHandler('ds:onDeath', function(deathData)
    local headshot = deathData.headshot
    local dist = deathData.dist
    local attackerName = deathData.attackerName

    print('You have been killed by '..attackerName..' from '..dist..'m away with '..(headshot and 'a headshot' or 'a body shot'))
end)
ds:onRevivePlayer
Example
RegisterNetEvent('ds:onRevivePlayer', function(reviverNetId, revivedNetId)
    print('PlayerID: '..reviverNetId..' revived PlayerID: '..revivedNetId)
end)
PreviousConfigurablesNextRecyclers

Last updated 11 months ago

🌐
â†Šī¸