Jump to content

Text while downloading server files


Sande

Recommended Posts

Posted

Hello, i would like to know how to make a text "Resources Loading, Please wait.". I have been trying to do it with onClientPreRender & dxDraw but some reason it didn´t work. So the idea is when you join to server there are coming text "Resources Loading, Please wait" and when these is loaded the text comes off.

560x95_FFFFFF_FF9900_000000_000000.png
Posted

addEvent( "onClientSend",true ) 
  
local serverDisplay,serverText 
  
addEventHandler( "onClientSend",root, 
    function( ) 
        textDisplayRemoveObserver( serverDisplay, source ) 
    end 
) 
  
addEventHandler( "onPlayerJoin",root, 
    function( ) 
        serverDisplay = textCreateDisplay( ) 
        textDisplayAddObserver ( serverDisplay, source ) 
        serverText = textCreateTextItem ( "Downloading.Please wait!", 0.5, 0.5,1,255,0,0,255,2,"center","center",200 )   
        textDisplayAddText ( serverDisplay, serverText )         
    end 
) 

local timer = setTimer( 
    function( ) 
        if not isTransferBoxActive( ) then 
            triggerServerEvent( "onClientSend",localPlayer ) 
            killTimer( timer ) 
        end  
    end, 
1000, 
2 ) 
  • Thanks 1

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
@Max+ Ohh thank you very much!

your , welcome

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

Does this show immediately if i change "onPlayerJoin" event to "onPlayerConnect", like other servers have it immeaditely when you join to the server.

560x95_FFFFFF_FF9900_000000_000000.png
Posted
Does this show immediately if i change "onPlayerJoin" event to "onPlayerConnect", like other servers have it immeaditely when you join to the server.

Just Keep it, onPlayerJoin it will work when player enter immeditely .

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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