Jump to content

Can someone give me this code?


GamerDeMTA

Recommended Posts

Posted

It's easy :

addEventHandler("onClientResourceStart",resourceRoot, 
    function ( ) 
      local x, y = guiGetScreenSize(); 
  Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); 
  setTimer(guiSetVisible,8000,1,Image,false); 
end 
); 
Posted
    function asd ( ) 
      local x, y = guiGetScreenSize(); 
  Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); 
  setTimer(guiSetVisible,8000,1,Image,false); 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), asd) 

Posted
    function asd ( ) 
      local x, y = guiGetScreenSize(); 
  Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); 
  setTimer(guiSetVisible,8000,1,Image,false); 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), asd) 

No, Because onPlayerJoin is Server-Side Event .Has to be with onClientResourceStart.

Posted
    function asd ( ) 
      local x, y = guiGetScreenSize(); 
  Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); 
  setTimer(guiSetVisible,8000,1,Image,false); 
end 
addEventHandler ( "onClientPlayerJoin", getRootElement(), asd) 

Posted

what's the problem guys? on client join won't work! use client resource start! only for that player it's client ._. use my code it's only for that player how join the server .

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