Jump to content

Search the Community

Showing results for tags 'onplayerquit'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Member Title





Found 2 results

  1. Quando o usuário se desconectar eu quero que isto seja feito. addEventHandler('onPlayerQuit', root, function() local account = getPlayerAccount(source) setAccountData(account, 'vehitem', true) end) isso para quando o usuário logar novamente e fazer uma ação em específico essa verificação funcionar: local accsalvo = getPlayerAccount(source) if getAccountData(accsalvo, 'vehitem') then exports._infobox:addNotification(source, 'funcionou', 'warning') else exports._infobox:addNotification(source, 'não funcionou', 'warning') end só que ela sempre retorna false, como se o setAccountData fosse ignorado, e agora?
  2. this is my code: function onQuit(thePlayer) for i,v in pairs(getElementsByType("vehicle",resourceRoot)) do if getElementData(v,"oveie") == getPlayerName(thePlayer) then destroyElement(v) end end end addEventHandler ( "onPlayerQuit", root, onQuit ) but this does not working.. why? how to fix it?
  • Create New...