Jump to content

Script start


Ramyxfa

Recommended Posts

Yo i get an little code and here it is :

function resetWantedLevel ( attacker, weapon, bodypart, loss ) 
    if attacker and getElementType(attacker) == "player" then 
    local x,y,z = getElementPosition(attacker) 
        local zone = getZoneName(x,y,z,true) 
           if zone ~= "Las Venturas" then return end 
           setPlayerWantedLevel(attacker,0) 
    end 
end 
addEventHandler ( "onPlayerDamage", getRootElement (), resetWantedLevel ) 

i need to put it where and create .lua or what please help if i want to start an script and i get this code that is up where i have to put it ?

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