Jump to content

nagugg

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by nagugg

  1.  

    THE ERRORS ARE:

     

    WARNING!:bad argument "isPedInVehicle" [Expected ped at argument 1, got string "repair"]

    WARNING!:bad argument "outputChatBox" [Expected bool at argument 5, got number "0"]

     

    and my script is this: (the chatbox are in spanish)

     

    function mecanico ( thePlayer )
    car= getPedOccupiedVehicle ( thePlayer )
          if isPedInVehicle( thePlayer ) then
          outputChatBox("reparaste el auto correctamente", thePlayer, 255, 255, 0)
    fixVehicle( car )
          
          else
          outputChatBox("No estas en el vehiculo para reparar el coche", thePlayer, 255, 0, 0)

          
         end
    end
    addEventHandler("onPlayerVehicleEnter", getRootElement(), mecanico)
    addCommandHandler("reparar", mecanico)

     

    any solution please??

×
×
  • Create New...