Jump to content

مساعده


jakson

Recommended Posts

هلا شباب اليوم انا مسوي فنكش يغلق السيراه المملوكه و تفتحها  ولاكن بتقبلني مشكله السياره ما تغلق او تفتح و انا باخرج السياره فا كيف اسويها بتغلق السياره و الاعب بل خارج و تفتح السياره ول لاعب بل خارج

addCommandHandler("غلق", function (source)
		pov = getPedOccupiedVehicle(source)
		if(getElementData(pov, "mycar") == getPlayerID(source)) then
			if(getElementData(pov, "locked") == 1) then
				setElementData(pov, "locked", 0)
				setVehicleLocked(pov, false)
			else
				setElementData(pov, "locked", 1)
				setVehicleLocked(pov, true)
			end
end
end)

 

Link to comment

getPedCccupiedVehicle : This function gets the vehicle that the ped is currently in or is trying to enter, if any.

 

ليه ما تحفظ السياره على قاعدة البيانات مو أفضل؟ تقدر تجيب السيارة في أي وقت وتقدر تحفظ الضرر واللون وكل شي, ومافيه امكانية إنها تروح البيانات مثل الداتا !

عموماً تحتاج تحفظ السيارة أولاً عشان تقدر تجيبها وتقفلها أو تفتحها, كذا ما تقدر.

Edited by Sha67
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...