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