DouglaS666 Posted June 6, 2018 Share Posted June 6, 2018 (edited) F10\clean.lua:1: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] addEventHandler("onClientRender",getRootElement(),PlayerNameTags) local screenWidth,screenHeight = guiGetScreenSize() addEventHandler("onClientResourceStart", resourceRoot, function() myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight ) end ) function cleanmyscreen() if myScreenSource then dxUpdateScreenSource( myScreenSource ) dxDrawImage( screenWidth - screenWidth, screenHeight - screenHeight, screenWidth, screenHeight, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true) end end function tooglecleanmyscreen () enabled = not enabled playSound("music.wav") if enabled then addEventHandler( "onClientRender", root, cleanmyscreen) else playSound("music.wav") removeEventHandler( "onClientRender", root, cleanmyscreen) end end bindKey ("f10", "down", tooglecleanmyscreen) Edited June 6, 2018 by DouglaS666 Link to comment
Other Languages Moderators Lord Henry Posted June 6, 2018 Other Languages Moderators Share Posted June 6, 2018 A função PlayerNameTags não existe. Delete essa linha. 1 Link to comment
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