El Colorado

Wasted script

Recommended Posts

Can someone help me out with script ? I need script that when my player dies it will show WASTED text like in original GTA san andreas 

Share this post


Link to post

You'll have to use the onPedWasted event and, depends on how you want to do it, you can use GUI, or dxElements.

Share this post


Link to post

Using the provided event and the dxDrawText function, you can easily do this.

Share this post


Link to post

So I need to something similar like this ? 

addEventHandler( "onPlayerWasted", getRootElement( ),
  function createText ( )

Share this post


Link to post
function drawText
  dxDrawText()
end
addEventHandler("onClientRender", root, drawText)
  
addEventHandler("onClientPlayerWasted", root,
    function()
      drawText()
    end
)

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.