mo7taref2014 Posted May 3, 2015 Posted May 3, 2015 انا سويت سياره مثال vehicle_ = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) كيف اخلي لها سرعه معينه ؟ ____________________________________________________________________________________ Learning lua language
Mr.R Posted May 3, 2015 Posted May 3, 2015 شلون يعني , تثبيت سرعه ؟ + القسم خطأ * There is no God but Allah, Mohammed is the Messenger Of Allah
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 يعني مثال هي سرعتها القصوى 150 انا بدي اخلي سرعتها القصوى 50 ____________________________________________________________________________________ Learning lua language
yazan Posted May 3, 2015 Posted May 3, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) سبحان الله ---------------------------------- LUA 56%
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 تسلم ____________________________________________________________________________________ Learning lua language
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 اخي انا بدي اياها اتكو سرعتها القصوى 50 لسياره معينه ____________________________________________________________________________________ Learning lua language
yazan Posted May 3, 2015 Posted May 3, 2015 طيب ستخدم هذه setVehicleHandling ( vehicle,'maxVelocity',50 ) سبحان الله ---------------------------------- LUA 56%
mo7taref2014 Posted May 3, 2015 Author Posted May 3, 2015 تسلم ____________________________________________________________________________________ Learning lua language
yazan Posted May 3, 2015 Posted May 3, 2015 العفو سبحان الله ---------------------------------- LUA 56%
Mr.R Posted May 4, 2015 Posted May 4, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) يايزن طيب شلون اخلي اذا ضغطت رقم 9 وانا مثلا ماشي على سرعة 120 تثبت 120 واذا فكيت رقم 9 وانا باقي ماشي تكمل السرعه ؟ * There is no God but Allah, Mohammed is the Messenger Of Allah
yazan Posted May 4, 2015 Posted May 4, 2015 اذا قصدك مثبت سرعه في مود جاهز اما اذا قصدك مثل ما انا فهمت عليك كذا function on(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',2000 ) setVehicleHandling ( vehicle,'engineAcceleration',200 ) end end end function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',120 ) setVehicleHandling ( vehicle,'engineAcceleration',35 ) end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", on) bindKey (v, "9", "up", off) end end) سبحان الله ---------------------------------- LUA 56%
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 القسم غلط تفضل تشتغل على زر 9 تقدر تغير الايفنت server # function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) يايزن طيب شلون اخلي اذا ضغطت رقم 9 وانا مثلا ماشي على سرعة 120 تثبت 120 واذا فكيت رقم 9 وانا باقي ماشي تكمل السرعه ؟ keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released skype : 011101000110111000110110011001010110110000110000001110010011000000111001
Mr.R Posted May 4, 2015 Posted May 4, 2015 لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) السبب من فنكشن setVehicleHandling ماعرفت له * There is no God but Allah, Mohammed is the Messenger Of Allah
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود function off(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if ( vehicle ) then setVehicleHandling ( vehicle,'maxVelocity',400 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',35 )----- تسارع end end end addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do bindKey (v, "9", "down", off) end end) السبب من فنكشن setVehicleHandling ماعرفت له هذا setVehicleHandling ماله شغل بالسرعة بس يعدل لك الوزنية حقت السيارة skype : 011101000110111000110110011001010110110000110000001110010011000000111001
Mr.R Posted May 4, 2015 Posted May 4, 2015 keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released هههههههههه ارسلت ردي بعدين شفت ردك معليش مشكور + ممكن توضح اكثر * There is no God but Allah, Mohammed is the Messenger Of Allah
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 انا اقصد تكون سرعة السياره القصوى 50 ما تقدر تغيرها ____________________________________________________________________________________ Learning lua language
</Mr.Tn6eL> Posted May 4, 2015 Posted May 4, 2015 انا اقصد تكون سرعة السياره القصوى 50 ما تقدر تغيرها يقدر يعدلها من حرف b اذ كان موجود مود hedit keyState: A string that has one of the following values: "up": If the bound key should trigger the function when the key is released "down": If the bound key should trigger the function when the key is pressed "both": If the bound key should trigger the function when the key is pressed or released هههههههههه ارسلت ردي بعدين شفت ردك معليش مشكور + ممكن توضح اكثر يقول لك both : تعمل الوظيفة اذ ضغط الزر او فلته يعني كنت تضغط زر تاب يضهر لك scoreboard واذ كنت ضاغط وفلت يشيله وهكذا skype : 011101000110111000110110011001010110110000110000001110010011000000111001
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 اخي انت مو فاهم قضدي بوضحلك انا سويت سياره local vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) انا بدي السياره هذي تكون سرعتها القصوى 50 بدون اي زر ____________________________________________________________________________________ Learning lua language
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 خلاص تسلموا سويتها طلعت local vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) setVehicleHandling ( vehicle,'maxVelocity',50 ) ------- سرعتها القصوى setVehicleHandling ( vehicle,'engineAcceleration',7 )----- تسارع ____________________________________________________________________________________ Learning lua language
yazan Posted May 4, 2015 Posted May 4, 2015 من قبل سنه اقلك لك ستخدم setVehicleHandling ( vehicle,'maxVelocity',50 ) مع الايفنت سبحان الله ---------------------------------- LUA 56%
mo7taref2014 Posted May 4, 2015 Author Posted May 4, 2015 من قبل سنه اقلك لك ستخدم setVehicleHandling ( vehicle,'maxVelocity',50 ) مع الايفنت اسمحلي ما فهمتك و شكرا على المساعده ____________________________________________________________________________________ Learning lua language
yazan Posted May 4, 2015 Posted May 4, 2015 العفو هلا فيك سبحان الله ---------------------------------- LUA 56%
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now