Jump to content

Search the Community

Showing results for tags 'ontrailerdetach'.

  • 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. Kas7

    {Help} Fix Code

    addEventHandler("onTrailerAttach", resourceRoot, function ( TruckerVeh1 ) local driver1 = getVehicleOccupant ( TruckerVeh1 ) if ( driver1 ) then if (isElement(TruckerVeh1) and isElement(TruckerTra1)) then triggerClientEvent(driver1 , "TrailerAttach", resourceRoot ) outputChatBox("The load has been attached",driver1) end end end ) addEventHandler("onTrailerDetach", resourceRoot, function ( TruckerVeh1) local driver1 = getVehicleOccupant ( TruckerVeh1 ) if ( driver1 ) then if (isElement(TruckerVeh1) and isElement(TruckerTra1)) then triggerClientEvent(driver1 , "TrailerDetach", resourceRoot ) outputChatBox("The load has been Detach",driver1) end end end ) addEventHandler("onTrailerAttach", resourceRoot, function ( TruckerVeh2 ) local driver2 = getVehicleOccupant ( TruckerVeh2 ) if ( driver2 ) then if (isElement(TruckerVeh2) and isElement(TruckerTra2)) then triggerClientEvent(driver2 , "TrailerAttach", resourceRoot ) outputChatBox("The load has been attached",driver2) end end end ) addEventHandler("onTrailerDetach", resourceRoot, function ( TruckerVeh2 ) local driver2 = getVehicleOccupant ( TruckerVeh2 ) if ( driver2 ) then if (isElement(TruckerVeh2) and isElement(TruckerTra2)) then triggerClientEvent(driver2 , "TrailerDetach", resourceRoot ) outputChatBox("The load has been Detach",driver2) end end end ) Why when I connect the first trailer to the first truck it shows me in the chat "The load has been attached" twice even though I did a verification condition and so on onTrailerDetach
  2. addEventHandler("onTrailerAttach", resourceRoot, function ( TruckerVeh1 ) local driver1 = getVehicleOccupant ( TruckerVeh1 ) if ( driver1 ) then if (isElement(TruckerVeh1) and isElement(TruckerTra1)) then triggerClientEvent(driver1 , "TrailerAttach", resourceRoot ) outputChatBox("تم ربط الحمولة",driver1) end end end ) addEventHandler("onTrailerDetach", resourceRoot, function ( TruckerVeh1) local driver1 = getVehicleOccupant ( TruckerVeh1 ) if ( driver1 ) then if (isElement(TruckerVeh1) and isElement(TruckerTra1)) then triggerClientEvent(driver1 , "TrailerDetach", resourceRoot ) outputChatBox("احترس فتم ايقاع الحمولة اذهب لكي تقوم بربطها",driver1) end end end ) addEventHandler("onTrailerAttach", resourceRoot, function ( TruckerVeh2 ) local driver2 = getVehicleOccupant ( TruckerVeh2 ) if ( driver2 ) then if (isElement(TruckerVeh2) and isElement(TruckerTra2)) then triggerClientEvent(driver2 , "TrailerAttach", resourceRoot ) outputChatBox("تم ربط الحمولة",driver2) end end end ) addEventHandler("onTrailerDetach", resourceRoot, function ( TruckerVeh2 ) local driver2 = getVehicleOccupant ( TruckerVeh2 ) if ( driver2 ) then if (isElement(TruckerVeh2) and isElement(TruckerTra2)) then triggerClientEvent(driver2 , "TrailerDetach", resourceRoot ) outputChatBox("احترس فتم ايقاع الحمولة اذهب لكي تقوم بربطها",driver2) end end end ) onTrailerDetach لية لما اربط الترلا الاولة في الشاحنة الاولة يظهرلي في الشات"تم ربط الحمولة" مرتين برغم اني مسوي شرط تحقق وكذالك لما افي
×
×
  • Create New...