Jump to content

Search the Community

Showing results for tags 'getelementmodel'.

  • 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 1 result

  1. Estou querendo fazer com que o comando seja executado apenas dentro de um veículo específico (id 596), porém não está funcionando corretamente, e mesmo que eu esteja dentro do veículo aparece a mensagem que era pra mostrar apenas se eu não estivesse no veículo. function verPorte ( player, cmd, name, theVehicle) local alvo = findPlayer(name) local id = getElementModel(theVehicle) if id == 596 then if name and getElementData(alvo, "porte") == true then outputChatBox("O(a) " ..getPlayerName(alvo).. " possui um porte de arma válido.", player, 255,255,255, true) else outputChatBox("O(a) " ..getPlayerName(alvo).. " não possui um porte de arma valido.", player, 255,255,255, true) end else outputChatBox("Você não esta em uma viatura policial.", player, 255,255,255, true) end end addCommandHandler("vporte", verPorte)
×
×
  • Create New...