Minotaur Posted June 12, 2013 Share 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 Link to comment
iPrestege Posted June 12, 2013 Share Posted June 12, 2013 As far as i know you can do that but you have to edit the freeroam . Link to comment
xXMADEXx Posted June 12, 2013 Share Posted June 12, 2013 You could do something like: local hp = getElementHealth ( player ) setElementModel ( player, 200 ) setElementHealth ( player, hp ) Link to comment
Minotaur Posted June 12, 2013 Author Share Posted June 12, 2013 where to set up this? not the script... and i dont understand this script . what does it do? Link to comment
iPrestege Posted June 12, 2013 Share Posted June 12, 2013 Can you tell me which resource set the health to fully . Freeroam or admin or or . Link to comment
Minotaur Posted June 12, 2013 Author Share Posted June 12, 2013 I want to change another skin the hp is do not go up. You understand my bad english? Link to comment
iPrestege Posted June 12, 2013 Share Posted June 12, 2013 You didn't answer for my question i said which resource you're using it to set a skin. Link to comment
iPrestege Posted June 12, 2013 Share Posted June 12, 2013 And how do you set the player skin | = ? Link to comment
iPrestege Posted June 12, 2013 Share 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 ! Link to comment
Minotaur Posted June 13, 2013 Author Share Posted June 13, 2013 Thank you man makes my life easier Link to comment
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