I want to add in this script the line ‘NetworkGetEntityKillerOfPlayer(player)’
But I have it not working. Want as in GTA:Online show which player killed which place (on cinematic camera aimed at the enemy). Also i can’t understand why no sound? And last, how to make a “respawn faster” player? That is the mouse button the player will be faster to revive.
If you need the code where I’ve added the necessary, here it is:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsEntityDead(PlayerPedId()) then
SetAudioFlag("LoadMPData", true)
ShakeGameplayCam("DEATH_FAIL_IN_EFFECT_SHAKE", 1.200)
StartScreenEffect("DeathFailMPDark", 0, 0)
Citizen.Wait(800)
PlaySound(-1, "MP_Flash", "WastedSounds", 0, 0, 1)
NetworkGetEntityKillerOfPlayer(player)
StartScreenEffect("DeathFailMPIn")
local scaleform = RequestScaleformMovie("MP_BIG_MESSAGE_FREEMODE")
if HasScaleformMovieLoaded(scaleform) then
end
Citizen.Wait(0)
PushScaleformMovieFunction(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE")
BeginTextComponent("STRING")
AddTextComponentString("Wasted")
EndTextComponent()
PopScaleformMovieFunctionVoid()
Citizen.Wait(0)
while IsEntityDead(PlayerPedId()) do
DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255)
Citizen.Wait(0)
end
StopScreenEffect("DeathFailMPIn")
StopScreenEffect("DeathFailMPDark")
end
end
end)