Jump to content

سؤال لو سمحتوآ


Recommended Posts

local marker = createMarker(1849.5064697266, 2793.0202636719, 56.899742126465, "checkpoint", 1, 0, 255, 0, 0) 
addEventHandler("onMarkerHit", marker, 
function (person) 
        x,y,z = getElementPosition( person ) 
    car = createVehicle ( 429, x, y, z ) 
            warpPedIntoVehicle(person,car) 
------  setVehicleHandling ( element theVehicle, string property, var value ) ؟-شو احط هنا عشان تجيه وزينه 
end 
  
) 

في ارقام طويله الي اطلعها من ملف الوزينه وين احطها

Link to comment
اتتوقع كذا يكون الككود
setVehicleHandling(theVehicle, "mass", 2.0) 

وارقام الوزينه

الي اطلعها من ملف الوزينه

اتوقع في مكان mass

setVehicleHandling(source, "mass", 2.0) 

بجرب

يمشي اسوي

mass = الارقام 
 setVehicleHandling(source, "mass", 2.0) 

  
 setVehicleHandling(source, "maولا لازم هناss", 2.0) 

Link to comment

حآولت اسويهآ بس مم عندي اللعبه عشآت اجربهآ

جرب كذآ :

server:

local gHandles =  
{ 
    --[ 'Property' ] = Value 
    [ 'maas' ]  = 1.0, 
    [ 'turnMass' ] = 0.0, 
}; 
  
  
addEventHandler ( 'onResourceStart', resourceRoot, 
    function( resource ) 
        veh = createVehicle ( 432, x, y, z ); 
        for Property, Value in ipairs ( gHandles ) do 
            setVehicleHandling( veh, Property, Value ); 
        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...