Guest Posted September 7, 2018 Share Posted September 7, 2018 function check ( localPlayer ) if isPedOnGround (localPlayer) then addEventHandler ( "onClientRender", root, pedonground ) if not isPedOnGround (localPlayer) then addEventHandler ( "onClientRender", root, pednotonground ) end end end function pedonground ( ) dxDrawText("isPedOnGround: True", 44, 204, 568, 257, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end function pednotonground ( ) dxDrawText("isPedOnGround: False", 44, 204, 568, 257, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end في خطأ؟ ليش الكتابة مو ضاهرة Link to comment
KillerX Posted September 7, 2018 Share Posted September 7, 2018 Client : addEventHandler('onClientRender',getRootElement(), function() if isPedOnGround (localPlayer) then dxDrawText("isPedOnGround: True", 44, 204, 568, 257, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) else dxDrawText("isPedOnGround: False", 44, 204, 568, 257, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end end ) 1 Link to comment
Trefeor Posted September 7, 2018 Share Posted September 7, 2018 تقدر تختصرها كذا حط مكان الكلام الي بالدي اكس كذا ( isPedOnGround ( localPlayer ) and "True" or "False" ) 1 Link to comment
Rakan# Posted September 7, 2018 Share Posted September 7, 2018 22 minutes ago, Trefeor said: تقدر تختصرها كذا حط مكان الكلام الي بالدي اكس كذا ( isPedOnGround ( localPlayer ) and "True" or "False" ) ماينفع لان اللون يختلف يبيه على حسب الكلام ولو سوا نفس طريقتك على اللون بيصير لحسه ومايعتبر اختصار يصير نفس الشي 1 Link to comment
Trefeor Posted September 7, 2018 Share Posted September 7, 2018 مانتبهت لـ لون يقدر يسويها كذا addEventHandler('onClientRender',getRootElement(),function() local color = isPedOnGround ( localPlayer ) and tocolor(255,255,255,255) or tocolor(255,0,0,255) local text = isPedOnGround ( localPlayer ) and "True" or "False" dxDrawText(text, 44, 204, 568, 257, color, 1.00, "bankgothic", "left", "top", false, false, false, false, false) end ) 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