Jump to content

any solution pls, I want to make blood come out of the ped when i shoot him


Neffax

Recommended Posts

function pedblood (attacker, weapon, bodypart ,loss )

 

  attacker = getLocalPlayer ()

 weapon = getPlayerWeapon (localPlayer)

 bodypart = 3

   




 

 if loss >= 5 then

 

       local xa, ya, za = -2399.04736, -601.59784, 132.64844  

          local skin = createPed (107, xa, ya, za)

            local ra, rb, rd = getElementRotation (skin)      

             local x, y, z = getElementPosition (skin)

 

               local effect = createEffect ( "blood_heli", x, y, z, ra, rb, rd, 15, true)

    end


 

end

addEventHandler ("onClientPedDamage", getRootElement(), pedblood)

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...