DouglaS666 Posted June 6, 2018 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
Moderators Lord Henry Posted June 6, 2018 Moderators Posted June 6, 2018 A função PlayerNameTags não existe. Delete essa linha. 1 Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
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