Jump to content

كود مآنع الصدم بالسيآره


Recommended Posts

لم يتم التجربة # .

addEventHandler( "onClientGUIClick", resourceRoot, function(  ) 
  if ( source == Button ) then 
     local pVehicle = getPedOccupiedVehicle( localPlayer ) 
       if ( pVehicle ) then 
         if ( getElementModel( pVehicle ) == 411 ) then 
          for _,allvehicle in ipairs( getElementsByType( "vehicle" ) ) do 
              if ( isElementCollidableWith ( allvehicle , pVehicle ) == true ) then 
                setElementCollidableWith( allvehicle, pVehicle, false ) 
         else 
                outputChatBox ( "#FF0000 ** x سيارتكـ لا تنصدم فعلأ x", 255, 0, 0, true ) 
                  end 
               end 
           end 
      else   
            outputChatBox ( "#FF0000 ** x اركب سيارتكـ اولأ x", 255, 0, 0, true ) 
            end 
       end 
end )    
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...