Jump to content

ta_programavel

Members
  • Posts

    4
  • Joined

  • Last visited

Details

  • Gang
    G.S

ta_programavel's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Agora sim, podem fechar, achei o que queria: https://wiki.multitheftauto.com/wiki/AddEvent
  2. Aproveitando o post existe alguma maneira de criar uma variável que é acessível tanto em um script client e server?
  3. Agora sim, está tudo funcionando. Obrigado, podem fechar o post
  4. Olá, peguei um script de exemplo no site do MTA que usa a função getPedOccupiedVehicle. O problema é o seguinte, o código sempre retorna para mim que não estou em um veículo (mesmo dirigindo ava). O meu script está funcionando como client. function showVehicleName ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then outputChatBox ( "Name of the Vehicle: " .. getVehicleName ( theVehicle ), thePlayer ) else outputChatBox ( "You do not have a Vehicle!", thePlayer, 255, 0, 0, true ) end end addCommandHandler ( "getcarname", showVehicleName ) meta.xml: <meta> <script src="script.lua" type="client" /> </meta> O que pode ser? Já usei também o getPlayerOccupiedVehicle e continua igual. Alguém? Fonte: https://wiki.multitheftauto.com/wiki/Ge ... iedVehicle
×
×
  • Create New...