Jump to content

Fakedeath


Nico.de

Recommended Posts

addEventHandler("onPlayerJoin",root,function () bindKey(source,"X","down",fakeDeath) end) 
  
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),function  () 
    for index, player in pairs(getElementsByType("player")) do 
        bindKey(player,"X","down",fakeDeath) 
    end 
end) 
  
function fakeDeath(player) 
    setPedAnimation(player,"WUZI","CS_Dead_Guy") 
end 

The animation is incorrect, you'll have to search for a good one.

Link to comment

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.
×
×
  • Create New...