Jump to content

يغلق


Recommended Posts

هو الفنشكن باقي جديد مخرف شوية ..

جرب كذا .. :

local Mover = 0 
      
addEvent ( "setit", true ) --if the vehicle is a car 
addEventHandler ( "setit", root, function ( theVeh ) 
              Mover = 0 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              outputChatBox("Working !") --tester 
              x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component 
              Timer = setTimer ( function (  ) 
              if ( Mover >= y ) then 
                if ( isTimer ( Timer ) ) then 
                           killTimer ( Timer ) 
                      end 
                  end 
               Mover = Mover + 0.002 
              end, 1000, 0 ) 
              setVehicleComponentPosition( theVeh, "coveral", x, Mover, z)   
end ) 
Link to comment
هو الفنشكن باقي جديد مخرف شوية ..

جرب كذا .. :

local Mover = 0 
      
addEvent ( "setit", true ) --if the vehicle is a car 
addEventHandler ( "setit", root, function ( theVeh ) 
              Mover = 0 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              outputChatBox("Working !") --tester 
              x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component 
              Timer = setTimer ( function (  ) 
              if ( Mover >= y ) then 
                if ( isTimer ( Timer ) ) then 
                           killTimer ( Timer ) 
                      end 
                  end 
               Mover = Mover + 0.002 
              end, 1000, 0 ) 
              setVehicleComponentPosition( theVeh, "coveral", x, Mover, z)   
end ) 

ok

Link to comment
هو الفنشكن باقي جديد مخرف شوية ..

جرب كذا .. :

local Mover = 0 
      
addEvent ( "setit", true ) --if the vehicle is a car 
addEventHandler ( "setit", root, function ( theVeh ) 
              Mover = 0 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              outputChatBox("Working !") --tester 
              x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component 
              Timer = setTimer ( function (  ) 
              if ( Mover >= y ) then 
                if ( isTimer ( Timer ) ) then 
                           killTimer ( Timer ) 
                      end 
                  end 
               Mover = Mover + 0.002 
              end, 1000, 0 ) 
              setVehicleComponentPosition( theVeh, "coveral", x, Mover, z)   
end ) 

ok

نفس النتيجه

Link to comment

local Mover = 0 
      
addEvent ( "setit", true ) --if the vehicle is a car 
addEventHandler ( "setit", root, function ( theVeh ) 
              Mover = 0 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              outputChatBox("Working !") --tester 
              x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component 
              Timer = setTimer ( function (  ) 
              if ( Mover >= y ) then 
                if ( isTimer ( Timer ) ) then 
                           killTimer ( Timer ) 
                      end 
                  end 
               Mover = Mover + 0.001 
              end, 500, 0 ) 
              setVehicleComponentPosition( theVeh, "coveral", x, y+Mover, z)   
end ) 
Link to comment

إذا بيدك تجريب عندك إستبدال :

x, y, z = getVehicleComponentPosition( theVeh, "coveral") 
 setVehicleComponentPosition( theVeh, "coveral", x, Mover, z)  

ب

  
x, y, z = getVehicleComponentPosition( theVeh, "door_lf_ok") 
 setVehicleComponentPosition( theVeh, "door_lf_ok", x, Mover, z) 
  

أو أدخل إل infernus

إل باب إلي على اليسار لازم يتحرك

Link to comment
local Mover = 0 
      
addEvent ( "setit", true ) --if the vehicle is a car 
addEventHandler ( "setit", root, function ( theVeh ) 
              Mover = 0 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              outputChatBox("Working !") --tester 
              x, y, z = getVehicleComponentPosition( theVeh, "coveral") -- get the position of the component 
              Timer = setTimer ( function (  ) 
              if ( Mover >= y ) then 
                if ( isTimer ( Timer ) ) then 
                           killTimer ( Timer ) 
                      end 
                  end 
               Mover = Mover + 0.001 
              end, 500, 0 ) 
              setVehicleComponentPosition( theVeh, "coveral", x, y+Mover, z)   
end ) 

ما بيتحرك شي للأسف

Link to comment
اخوي الكود تمام ما فيه اي اشكالية .. المشكلة من عندكـ او من استخدام الفنشكن او من الفنكشن نفسه !

ضيفني على سكايب

edit:

تم حل المشكله

Edited by Guest
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...