-RoCk-Alex Posted March 13, 2012 Posted March 13, 2012 (edited) 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 March 13, 2012 by Guest
-RoCk-Alex Posted March 13, 2012 Author Posted March 13, 2012 not working how? any errors in debug? yea dbug attempt to call global (getThisResource (nil value)
TAPL Posted March 13, 2012 Posted March 13, 2012 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)
-RoCk-Alex Posted March 13, 2012 Author Posted March 13, 2012 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
TAPL Posted March 13, 2012 Posted March 13, 2012 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).
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