mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-01-10 15:43:00 +08:00
19 lines
712 B
Lua
19 lines
712 B
Lua
RegisterServerEvent('baseevents:onPlayerDied')
|
|
RegisterServerEvent('baseevents:onPlayerKilled')
|
|
RegisterServerEvent('baseevents:onPlayerWasted')
|
|
RegisterServerEvent('baseevents:enteringVehicle')
|
|
RegisterServerEvent('baseevents:enteringAborted')
|
|
RegisterServerEvent('baseevents:enteredVehicle')
|
|
RegisterServerEvent('baseevents:leftVehicle')
|
|
|
|
AddEventHandler('baseevents:onPlayerKilled', function(killedBy, data)
|
|
local victim = source
|
|
|
|
RconLog({msgType = 'playerKilled', victim = victim, attacker = killedBy, data = data})
|
|
end)
|
|
|
|
AddEventHandler('baseevents:onPlayerDied', function(killedBy, pos)
|
|
local victim = source
|
|
|
|
RconLog({msgType = 'playerDied', victim = victim, attackerType = killedBy, pos = pos})
|
|
end) |