Jump to content

Search the Community

Showing results for tags 'first script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. Guest

    help

    Hey guys i'm new in scripting, i used wiki to learn i have made this code just to test myself addEventHandler("onPlayerChangeNick", getRootElement(), wasNickChangedByUser) function changenick (onPlayerChangeNick) outPutChatBox ( " Your have been changed your nickname " ) end How can i fix it ?, ik it's cancer ====================================================================== after some time because no one answered I tried this code and it's worked addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('You have been changed your nickname', 255, 100, 100) end) But what's is " root, " and why in some script there is function testmod (oldNick, newNick) And other script only function(oldNick, newNick)
  2. I'm trying to do a login but when I connect I just get black screen local screenWidth, screenHeight = guiGetScreenSize() addEventHandler("onClientResourceStart", localPlayer, function() loginGUI.background = guiCreateStaticImage(0, 0, 1920, 1200, "background.png", false) loginGUI.font = guiCreateFont("Roboto-Thin.ttf", 10) loginGUI.windowLogin = guiCreateStaticImage((screenWidth - 238) / 2, (screenHeight - 184) / 2, 238, 184, "images/login.png", false) loginGUI.loginUsername = guiCreateEdit(15, 30, 238, 36, "Usuário ou E-mail", false, loginGUI.windowLogin) loginGUI.loginPassword = guiCreateEdit(15, 69, 238, 36, "Senha", false, loginGUI.windowLogin) guiEditSetMaxLength(loginGUI.loginUsername, 64) guiEditSetMaxLength(loginGUI.loginPassword, 32) guiEditSetMasked(loginGUI.loginPassword, true) guiSetFont(loginGUI.loginUsername, loginGUI.font) guiSetFont(loginGUI.loginPassword, loginGUI.font) guiLabelSetHorizontalAlign(loginGUI.loginUsername, "right") guiLabelSetHorizontalAlign(loginGUI.loginPassword, "right") loginGUI.windowReg = guiCreateStaticImage((screenWidth - 238) / 2, (screenHeight - 223) / 2, 0, 0, 238, 223, "images/register.png", false) loginGUI.regUsername = guiCreateEdit(15, 30, 238, 36, "Usuário", false, loginGUI.windowReg) loginGUI.regPassword = guiCreateEdit(15, 69, 238, 36, "Senha", false, loginGUI.windowReg) loginGUI.regEmail = guiCreateEdit(15, 108, 238, 36, "E-mail", false, loginGUI.windowReg) guiEditSetMaxLength(loginGUI.regUsername, 22) guiEditSetMaxLength(loginGUI.regPassword, 32) guiEditSetMaxLength(loginGUI.regEmail, 64) guiEditSetMasked(loginGUI.regPassword, true) guiSetFont(loginGUI.regUsername, loginGUI.font) guiSetFont(loginGUI.regPassword, loginGUI.font) guiSetFont(loginGUI.regEmail, loginGUI.font) guiLabelSetHorizontalAlign(loginGUI.regUsername, "right") guiLabelSetHorizontalAlign(loginGUI.regPassword, "right") guiLabelSetHorizontalAlign(loginGUI.regEmail, "right") showLogin() introMusic = playSound("sounds/intro.mp3", true) setSoundVolume(soundIntro, 0.7) triggerEvent("onAccountRegister", hideEverything()) triggerEvent("onAccountLogin", hideEverything()) end ) function showLogin() guiSetVisible(loginGUI.background, true) guiSetVisible(loginGUI.windowLogin, true) guiSetVisible(loginGUI.windowReg, false) showChat(false) showCursor(true) end
×
×
  • Create New...