Jump to content

سياره ped طلب اعطاء ال


Recommended Posts

والله الي قدرت عليه سويته :(

            function setupForRace ( ) 
    local RacerPed = createPed ( 0,-2004.6983642578,2569.6906738281,55.141181945801 ) 
    local RaceVehicle = createVehicle ( 562, -2004.6983642578,2569.6906738281,55.141181945801 )           . 
    warpPedIntoVehicle ( RacerPed, RaceVehicle )         
end 
addCommandHandler ( "مركبة", setupForRace ) 
  

هع وغير كيذا الاعب يروح فوق السياره مايدخلها :(

تكفى كمله لي :(

جزاك الله خير ,,

ياريت تكمله او اي واحد من اخوانا الخبراء ..

Link to comment
-- server side 
addCommandHandler ( "تشغيل", 
    function ( ) 
        ped = createPed ( 230, 1808, 1282, 6 ) 
        vehicle = createVehicle ( 411, 1808, 1282, 6 ) -- عدل احداثياتك         
        warpPedIntoVehicle ( ped, vehicle, 0 ) 
        triggerClientEvent ( "setPedControl", getRootElement(), ped ) 
    end 
) 

-- client side 
addEvent( "setPedControl", true ) 
addEventHandler( "setPedControl", getRootElement(), 
    function ( ped ) 
        setPedControlState ( ped, "accelerate", true ) 
    end 
) 

Link to comment
-- server side 
addCommandHandler ( "تشغيل", 
    function ( ) 
        ped = createPed ( 230, 1808, 1282, 6 ) 
        vehicle = createVehicle ( 411, 1808, 1282, 6 ) -- عدل احداثياتك         
        warpPedIntoVehicle ( ped, vehicle, 0 ) 
        triggerClientEvent ( "setPedControl", getRootElement(), ped ) 
    end 
) 

-- client side 
addEvent( "setPedControl", true ) 
addEventHandler( "setPedControl", getRootElement(), 
    function ( ped ) 
        setPedControlState ( ped, "accelerate", true ) 
    end 
) 

Very Good

Thanks

Link to comment

وعليكم السلام

ليه تتعب نفسك وكل شيء عندك

يمكن يفيدك المود

traffic

موجود بكل السيرفرات (من اصل العبه)لاتتعب نفسك كذا اخذ منه اكواد او اخذه هو احسن

بس مشكلته اول ما يشتغل لاق

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