Help me please with "Wasted Screen"!

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)
1 Like

I have tested this script few time ago, it work fine: [Release] Wasted Screen on Death v3

1 Like

I this script has been edited, there are those features that aren’t in the original. to put it simply a remake.

you are able to help in native?

And besides, the developer of this script does not know some features. I helped my friends in adding new features to the script such as “Shaking camera” and how to work with sound (but it does not work, as the screen “killer” player

local function EndScreen(text, type)
    Citizen.CreateThread(function()
       while true do
           Citizen.Wait(0)      
                if endScreen then 
                    StartScreenEffect(type, 0, 0)
                    PlaySoundFrontend(-1, "Bed", "WastedSounds", 1)
                    
                    local scaleform = RequestScaleformMovie("MP_BIG_MESSAGE_FREEMODE")

                    if HasScaleformMovieLoaded(scaleform) then
                        Citizen.Wait(0)

                    PushScaleformMovieFunction(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE")
                    BeginTextComponent("STRING")
                    AddTextComponentString(text)
                    EndTextComponent()
                    PopScaleformMovieFunctionVoid()

                    Citizen.Wait(500)

                    PlaySoundFrontend(-1, "TextHit", "WastedSounds", 1)
                    while endScreen do
                        DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255)
                        Citizen.Wait(0)
                    end 
                    Citizen.Wait(1000)
                    StopScreenEffect(type)
                    
                end
            end
        end
    end)
end

I use this version as a function. “type” and “test” are send by calling when necessary ex: EndScreen(“Wasted!!”, “DeathFailOut”)

hope this help…

1 Like

Nope, my converted script looks better and more original, look at it.

EndScreen(“Wasted” , “DeathFailOut”)

Is it a type of text animation from red to white?

No it’s just a call of the fuction with special texte and effect (for exemple, if a player kill himself, or killed by a car, the deathscreen can be different)