Jump to content

[SOLVED]Help in Simple Script


-RoCk-Alex

Recommended Posts

My this script ain't working help please :(

  
function showClientImage() 
  JoinImg = guiCreateStaticImage( 0.0, 0.0, 1279.0, 770, "image.png", false ) 
  
setTimer(function () local alpha = guiGetAlpha(JoinImg) guiSetAlpha(JoinImg, alpha - 0.1) 
end, 500, 6) 
end 
addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) 

Edited by Guest
Link to comment
function showClientImage() 
JoinImg = guiCreateStaticImage( 0.0, 0.0, 1279.0, 770, "image.png", false ) 
setTimer(function() guiSetAlpha(JoinImg, guiGetAlpha(JoinImg) - 0.1) end, 500, 6) 
end 
addEventHandler("onClientResourceStart", resourceRoot, showClientImage) 

Link to comment
function showClientImage() 
JoinImg = guiCreateStaticImage( 0.0, 0.0, 1279.0, 770, "image.png", false ) 
setTimer(function() guiSetAlpha(JoinImg, guiGetAlpha(JoinImg) - 0.1) end, 500, 6) 
end 
addEventHandler("onClientResourceStart", resourceRoot, showClientImage) 

Dbug

attempt to call global function 'addEventHandler' a nil value
Link to comment
function showClientImage() 
JoinImg = guiCreateStaticImage( 0.0, 0.0, 1279.0, 770, "image.png", false ) 
setTimer(function() guiSetAlpha(JoinImg, guiGetAlpha(JoinImg) - 0.1) end, 500, 6) 
end 
addEventHandler("onClientResourceStart", resourceRoot, showClientImage) 

Dbug

attempt to call global function 'addEventHandler' a nil value

are you using MTA debug system or a program?

it's shouldn't show this error

the script must work 100%

or maybe you did something wrong in meta (show your meta).

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