Jump to content

Change the skin and full hp


Minotaur

Recommended Posts

Go to freeroam open ( fr_server.lua ) File then go to 217 line search for this function :

function setMySkin(skinid) 
    if isPedDead(source) then 
        local x, y, z = getElementPosition(source) 
        if isPedTerminated(source) then 
            x = 0 
            y = 0 
            z = 3 
        end 
        local r = getPedRotation(source) 
        local interior = getElementInterior(source) 
        spawnPlayer(source, x, y, z, r, skinid) 
        setElementInterior(source, interior) 
        setCameraInterior(source, interior) 
    else 
        setElementModel(source, skinid) 
        setElementHealth(source, 100) 
    end 
    setCameraTarget(source, source) 
    setCameraInterior(source, getElementInterior(source)) 
end 

Remove this function :

setElementHealth(source, 100) 

And should work fine ;) !

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