Minotaur Posted June 12, 2013 Posted June 12, 2013 How to set up thet when the player change the skin he have full hp. How do i remove this? thanks in advence
iPrestege Posted June 12, 2013 Posted June 12, 2013 As far as i know you can do that but you have to edit the freeroam .
xXMADEXx Posted June 12, 2013 Posted June 12, 2013 You could do something like: local hp = getElementHealth ( player ) setElementModel ( player, 200 ) setElementHealth ( player, hp )
Minotaur Posted June 12, 2013 Author Posted June 12, 2013 where to set up this? not the script... and i dont understand this script . what does it do?
iPrestege Posted June 12, 2013 Posted June 12, 2013 Can you tell me which resource set the health to fully . Freeroam or admin or or .
Minotaur Posted June 12, 2013 Author Posted June 12, 2013 I want to change another skin the hp is do not go up. You understand my bad english?
iPrestege Posted June 12, 2013 Posted June 12, 2013 You didn't answer for my question i said which resource you're using it to set a skin.
iPrestege Posted June 12, 2013 Posted June 12, 2013 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 !
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now