Jump to content

تعريف السورس


Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

الحين ليه ذا مااشتغل :

زر قفل وفتح الابواب حقت السياره

addEventHandler('onClientGUIClick',root, function ( ) 
if ( source == doors ) then 
if ( getPedOccupiedVehicle(localPlayer) ) then 
if ( isVehicleLocked(getPedOccupiedVehicle(localPlayer)) ) then 
setVehicleLocked(getPedOccupiedVehicle(localPlayer),false) 
else 
setVehicleLocked(getPedOccupiedVehicle(localPlayer),true) 
end 
end 
end 
 end 
 ) 

Link to comment
addEventHandler ("onClientGUIClick", resourceRoot,  
    function () 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLocked (veh, not isVehicleLocked (veh)) 
        end 
    end 
) 

لما اضغط الزر مره ثاني مايفتح الابواب

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == doors then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLocked (veh, not isVehicleLocked (veh)) 
        end 
        end 
    end 
) 

Link to comment

طيب

هذي صح حقت انوار السياره

؟

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == doors then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLightState (veh, not istVehicleLightState (veh)) 
        end 
        end 
    end 
) 
  

Link to comment

حطيت الارقمنتات الناقصه

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == doors then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLightState(veh, 2, 1, not setVehicleLightState(veh)) 
        end 
        end 
    end 
) 

Edited by Guest
Link to comment

هلا شباب ,,

المشكله انه لو قفلت الابواب وطلعت وجيت افتح الابواب ماتفتح

الزر =

doors = guiCreateButton(12, 127, 75, 50, "ابواب", false) 

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == doors then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLocked (veh, not isVehicleLocked (veh)) 
        end 
        end 
    end 
) 
  

هذي تقفل وتشغل انوار السياره بس مااشتغلت

الزر =

lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false)   

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == lights then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) 
        end 
        end 
    end 
) 

Edited by Guest
Link to comment

طيب وانوار السياره

هذي تقفل وتشغل انوار السياره بس مااشتغلت

الزر =

lights = guiCreateButton(135, 127, 75, 50, "تشغيل\إيقاف انوار السياره", false)   

addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == lights then 
        local veh = getPedOccupiedVehicle (localPlayer) 
        if (veh) then 
            setVehicleLightState (veh, 2, 1, not setVehicleLightState(veh)) 
        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...