show kill name join name
I don’t think anyone has any idea what you want
- You want to show a notification when someone gets killed?
- When someone joins?
- Show killers name with the name of their Steam/FiveM username?
- 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.
There should be a test to running a server…
+1
I totally agree lol
I think you should try to search “Google Translate” and come back