Jump to content

[REQ] : DX TEXT


Recommended Posts

سلام عليكم ورحمة الله وبركاته

شباب انا ابغى مثلأ

Hello World

تطلع لي من اول شيء لـ اخر شيء

يعني

H e l l o W o r l d

وكذا

ماعليش كثرت مواضيعي

Link to comment
local text = "Hello World" 
local num = 1 
local all = string.len(text) 
local label = "" 
  
addEventHandler("onClientResourceStart",resourceRoot, 
    function () 
        time = setTimer(function () 
            if num > all then 
                killTimer(time) 
            else 
                label = string.sub(text,1,num) 
                num = num + 1 
            end 
        end,250,0) 
    end 
) 
  
addEventHandler("onClientRender",root, 
    function () 
        local x,y = guiGetScreenSize() 
        dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") 
    end 
) 
  

مجرب و شغال لكن اذا عندك خبره تقدر تعدل عليه و تضيفه في قيم في مود اي شي

Link to comment
local text = "Hello World" 
local num = 1 
local all = string.len(text) 
local label = "" 
  
addEventHandler("onClientResourceStart",resourceRoot, 
    function () 
        time = setTimer(function () 
            if num > all then 
                killTimer(time) 
            else 
                label = string.sub(text,1,num) 
                num = num + 1 
            end 
        end,250,0) 
    end 
) 
  
addEventHandler("onClientRender",root, 
    function () 
        local x,y = guiGetScreenSize() 
        dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") 
    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...