Jump to content

مساعده


Recommended Posts

Posted

انا سويت سياره مثال

    vehicle_ = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) 

كيف اخلي لها سرعه معينه ؟

____________________________________________________________________________________

Learning lua language

Posted

شلون يعني , تثبيت سرعه ؟

+ القسم خطأ

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted

يعني مثال هي سرعتها القصوى 150

انا بدي اخلي سرعتها القصوى 50

____________________________________________________________________________________

Learning lua language

Posted

القسم غلط

تفضل تشتغل على زر 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%

Posted

اخي انا بدي اياها اتكو سرعتها القصوى 50 لسياره معينه

____________________________________________________________________________________

Learning lua language

Posted

طيب ستخدم هذه

setVehicleHandling ( vehicle,'maxVelocity',50 )

سبحان الله

----------------------------------

LUA 56%

Posted
القسم غلط

تفضل تشتغل على زر 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 وانا باقي ماشي تكمل السرعه ؟ :roll:

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted

اذا قصدك مثبت سرعه في مود جاهز اما

اذا قصدك مثل ما انا فهمت عليك

كذا

  
  
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%

Posted
القسم غلط

تفضل تشتغل على زر 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 وانا باقي ماشي تكمل السرعه ؟ :roll:

YfPBwx.bmp

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

Posted

لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود

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

Posted
لالا قصدي هذا الكود ابغيه مثبت سرعه مو لازم مود
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

Posted
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

Posted

انا اقصد تكون سرعة السياره القصوى 50 ما تقدر تغيرها

____________________________________________________________________________________

Learning lua language

Posted
انا اقصد تكون سرعة السياره القصوى 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

واذ كنت ضاغط وفلت يشيله

وهكذا :arrow::|:mrgreen:

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

اخي انت مو فاهم قضدي

بوضحلك

انا سويت سياره

local  vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) 

انا بدي السياره هذي تكون سرعتها القصوى 50 بدون اي زر

____________________________________________________________________________________

Learning lua language

Posted

خلاص تسلموا سويتها طلعت

local  vehicle = createVehicle(560, 2228.9113769531, -1152.0667724609, 25.854433059692) 
  setVehicleHandling ( vehicle,'maxVelocity',50 ) ------- سرعتها القصوى 
  setVehicleHandling ( vehicle,'engineAcceleration',7 )----- تسارع 

____________________________________________________________________________________

Learning lua language

Posted

من قبل سنه اقلك لك ستخدم

setVehicleHandling ( vehicle,'maxVelocity',50 )

مع الايفنت

سبحان الله

----------------------------------

LUA 56%

Posted
من قبل سنه اقلك لك ستخدم

setVehicleHandling ( vehicle,'maxVelocity',50 )

مع الايفنت

اسمحلي ما فهمتك و شكرا على المساعده

____________________________________________________________________________________

Learning lua language

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