Jump to content

[HELP]getElementModel


HUNGRY:3

Recommended Posts

hello i made a script that if some one have CJ skin it draws a rectangle

but it's not working idk why

code:

lp = getLocalPlayer() 
  
addEventHandler("onClientRender", root, 
    function() 
    if getElementModel( lp, 0) == true then 
        dxDrawRectangle(0, 0, 1680, 1050, tocolor(0, 0, 0, 255), false) 
        dxDrawText("Please Wait 10 Seconds", 445 + 1, 459 + 1, 1186 + 1, 596 + 1, tocolor(0, 0, 0, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
        dxDrawText("Please Wait 10 Seconds", 445, 459, 1186, 596, tocolor(254, 255, 254, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
    end 
end 
) 
  

Link to comment

try this

local lp = getLocalPlayer() 
  
addEventHandler("onClientRender", root, 
    function() 
    if getElementModel lp == 0 true 
    then 
        dxDrawRectangle(0, 0, 1680, 1050, tocolor(0, 0, 0, 255), false) 
        dxDrawText("Please Wait 10 Seconds", 445 + 1, 459 + 1, 1186 + 1, 596 + 1, tocolor(0, 0, 0, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
        dxDrawText("Please Wait 10 Seconds", 445, 459, 1186, 596, tocolor(254, 255, 254, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
    end 
end 
) 

Edited by Guest
Link to comment
hello i made a script that if some one have CJ skin it draws a rectangle

but it's not working idk why

code:

lp = getLocalPlayer() 
  
addEventHandler("onClientRender", root, 
    function() 
    if getElementModel( lp, 0) == true then 
        dxDrawRectangle(0, 0, 1680, 1050, tocolor(0, 0, 0, 255), false) 
        dxDrawText("Please Wait 10 Seconds", 445 + 1, 459 + 1, 1186 + 1, 596 + 1, tocolor(0, 0, 0, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
        dxDrawText("Please Wait 10 Seconds", 445, 459, 1186, 596, tocolor(254, 255, 254, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) 
    end 
end 
) 
  

(getElementModel ( lp ) == 0) 

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