Jump to content

[Ped]Godmode


Black2

Recommended Posts

  • 2 weeks later...

Here you go, remember to make the script CLIENT SIDE!.

theped = createPed ( 255, 0, 0, 3 ) --saves the ped on a global 
function cancelPedDamage ( attacker ) --the function 
    if source == theped then --checks if the ped that is being attacked is the global 
        cancelEvent() -- cancel any damage done to ped 
    end --ends the check 
end --ends the function 
addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) --adds the event 

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