Jump to content

تعديل بسيط


Recommended Posts

اسلام عليكم

انا بدي كود اذا كان لاعب مو معة فلوس بيكون لونة ابيض

اما اذا كان معة فلوس بيكون لونة اخضر

اذا كان فلوس تحت صفر بيكون لونة احمر

clientside

  
function hud() 
local moneycount=getPlayerMoney(getLocalPlayer()) 
local money= '$' ..moneycount 
dxDrawText(tostring (money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(0, 100, 0, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) 
  
end 
addEventHandler("onClientRander", root, hud) 
  

وشكرا

Link to comment

جرب

function hud() 
    local money = getPlayerMoney() 
    if money == 0 then 
        r, g, b = 255, 255, 255 
    elseif money > 0 then 
        r, g, b = 0, 100, 0 
    elseif money < 0 then 
        r, g, b = 255, 0, 0 
    end 
    dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) 
end 
addEventHandler("onClientRander", root, hud) 

Link to comment
جرب
function hud() 
    local money = getPlayerMoney() 
    if money == 0 then 
        r, g, b = 255, 255, 255 
    elseif money > 0 then 
        r, g, b = 0, 100, 0 
    elseif money < 0 then 
        r, g, b = 255, 0, 0 
    end 
    dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) 
end 
addEventHandler("onClientRander", root, hud) 

تسلممم :mrgreen::mrgreen::mrgreen::mrgreen::mrgreen::mrgreen::mrgreen::mrgreen:

Link to comment
جرب
function hud() 
    local money = getPlayerMoney() 
    if money == 0 then 
        r, g, b = 255, 255, 255 
    elseif money > 0 then 
        r, g, b = 0, 100, 0 
    elseif money < 0 then 
        r, g, b = 255, 0, 0 
    end 
    dxDrawText("$"..tostring(money), (835/1024)*sWidth, (24/768)*sHeight, (994/1024)*sWidth, (39/768)*sHeight, tocolor(r, g, b, 255), (0.70/1024)*sWidth, (0.70/768)*sHeight, "bankgothic", "left", "top", false, false, false, true) 
end 
addEventHandler("onClientRander", root, hud) 

Event Name: onClientRander > onClientRender

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