[help] show kill name join name?

show kill name join name

I don’t think anyone has any idea what you want

  1. You want to show a notification when someone gets killed?
  2. When someone joins?
  3. Show killers name with the name of their Steam/FiveM username?
  4. Anything else?

Please ask an grammatically somewhat correct question that people can understand.

Show killers name with the name of their Steam/FiveM username? yes

You want to show a notification when someone gets killed?
When someone joins?
Show killers name with the name of their Steam/FiveM username yes

where do i go???

Copy to???

RegisterNetEvent(‘showNotification’)
AddEventHandler(‘showNotification’, function(text)
ShowNotification(text)
end)
function ShowNotification(text)
SetNotificationTextEntry(“STRING”)
AddTextComponentString(text)
DrawNotification(0,1)
end
Citizen.CreateThread(function()
– main loop thing
alreadyDead = false
while true do
Citizen.Wait(50)
local playerPed = GetPlayerPed(-1)
if IsEntityDead(playerPed) and not alreadyDead then
killer = GetPedKiller(playerPed)
killername = false
for id = 0, 64 do
if killer == GetPlayerPed(id) then
killername = GetPlayerName(id)
end
end
if killer == playerPed then
TriggerServerEvent(‘playerDied’,0,0)
elseif killername then
TriggerServerEvent(‘playerDied’,killername,1)
else
TriggerServerEvent(‘playerDied’,0,2)
end
alreadyDead = true
end
if not IsEntityDead(playerPed) then
alreadyDead = false
end
end
end)

Copy to???

client_script ‘client.lua’
server_script ‘server.lua’

To put on???

If you don’t know how to create a resource, follow this guide

Created Where to put it?

Do you actually have some mental issues? It’s okay if you do, but if you don’t, look at what I wrote above!

It literally tells you what to do. Apply some logic. If you cannot figure it out, then running a server is not for you!!! It’s very very very simple.

1 Like

There should be a test to running a server…

2 Likes

+1 :joy:
I totally agree lol

Show Join ----------------------------------------- No show kill ???Kill does not work----------I need to fix it.???****

1 Like