Jump to content

طلب اكواد معرفة حياة سيارة؟


Recommended Posts

نفس المشكلة ؟؟

طيب هو اخليه كلاينكت ولا سيرفر

انا مخليه سيرفر

الكود سيرفر - اكتب في اف 8

debugscript 3

وسو ريستارت للمود وقلي ايش يطلع لك اسفل الشآآشة

Link to comment

سويت كذا ومانفع

addEventHandler("onVehicleDamage", getRootElement(), 
    function(loss) 
        local player = getVehicleOccupant(source) 
        if(player) then 
        local playerVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) 
        local vehicleHealth = getElementHealth ( playerVehicle ) 
            if vehicleHealth < 500 
                fixVehicle ( source ) 
            end  
        end 
    end 
) 

Link to comment
سويت كذا ومانفع
addEventHandler("onVehicleDamage", getRootElement(), 
    function(loss) 
        local player = getVehicleOccupant(source) 
        if(player) then 
        local playerVehicle = getPedOccupiedVehicle ( getLocalPlayer() ) 
        local vehicleHealth = getElementHealth ( playerVehicle ) 
            if vehicleHealth < 500 
                fixVehicle ( source ) 
            end  
        end 
    end 
) 

بدل السطر 7 بـ ذا

if ( vehicleHealth < 500 ) then 

Link to comment
  
addEventHandler("onVehicleDamage", getRootElement(), 
    function() 
        local player = getVehicleOccupant(source) 
        if(player) then 
            if getElementHealth(source) < 500 then 
                fixVehicle ( source ) 
            end  
        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...