LiOneLMeSsIShoT Posted August 2, 2013 Posted August 2, 2013 I made a Client side in script shows the points of the weapon in label 2,and shows the Levels in Label 3 but the problem...The label 3 Don't shows any Level...when i reached for the Points....The script Client: function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ) end addEventHandler( "onClientRender", root, WeaponPoints ) addEventHandler( "onClientRender",root, function() local skills = guiGetText(GUIEditor.label[2]) if skills then local Point = tonumber(skills) if Point == Point: 100 then guiSetText (GUIEditor.label[3],"Level: 1") end end end ) And thanks for helping
LiOneLMeSsIShoT Posted August 2, 2013 Author Posted August 2, 2013 Post level script or send me in skype. What do you mean?! Only need shows the Levels if the Point label 100..only
xXMADEXx Posted August 2, 2013 Posted August 2, 2013 local skills local points what? Try this: function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ) end addEventHandler( "onClientRender", root, WeaponPoints ) addEventHandler( "onClientRender",root, function() local skills = guiGetText(GUIEditor.label[2]) if skills then local Point = tonumber(skills) if Point == 100 then guiSetText (GUIEditor.label[3],"Level: 1") end end end )
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