Jump to content

Help Please..and Thanks


Recommended Posts

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

Link to comment
  
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 ) 
  

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