Jump to content

Help


Recommended Posts

لما ادخل الماركر السيارة تتتصلح

بس المشكله انه لما اطلع من الماركر

واصدم السيارة بعد تتصلح؟؟

addEventHandler("onClientMarkerHit", fixmrkr,
	function(thePlayer)
    	if thePlayer == localPlayer then
		if getPedOccupiedVehicle ( thePlayer ) then
		local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )
		local currentFreezeStatus = isElementFrozen ( playerVehicle )
		local newFreezeStatus = not currentFreezeStatus
		local newFreezeStatus2 = currentFreezeStatus
		setElementFrozen ( playerVehicle, newFreezeStatus )
			setTimer( function()
			fixVehicle( playerVehicle )
			setTimer( function()
			setElementFrozen ( playerVehicle, newFreezeStatus2 )
			end, 1000, 0)
			end, 500, 0 )
		end
	end
end
)

 

Link to comment
1 hour ago, A7MEDENO said:

لما ادخل الماركر السيارة تتتصلح

بس المشكله انه لما اطلع من الماركر

واصدم السيارة بعد تتصلح؟؟


addEventHandler("onClientMarkerHit", fixmrkr,
	function(thePlayer)
    	if thePlayer == localPlayer then
		if getPedOccupiedVehicle ( thePlayer ) then
		local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )
		local currentFreezeStatus = isElementFrozen ( playerVehicle )
		local newFreezeStatus = not currentFreezeStatus
		local newFreezeStatus2 = currentFreezeStatus
		setElementFrozen ( playerVehicle, newFreezeStatus )
			setTimer( function()
			fixVehicle( playerVehicle )
			setTimer( function()
			setElementFrozen ( playerVehicle, newFreezeStatus2 )
			end, 1000, 0)
			end, 500, 0 )
		end
	end
end
)

 

انت حاطط تايمر غير منتهي

  • Like 1
Link to comment
3 minutes ago, #BrosS said:

انت حاطط تايمر غير منتهي

addEvent("nobr", true)
addEventHandler("nobr", root,
	function(thePlayer)
		if getPedOccupiedVehicle ( thePlayer ) then
		local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )
			setTimer( function()
			fixVehicle( playerVehicle )
			end,400,1)
		end
	end
)

مشكله في


        if getPedOccupiedVehicle
 

Link to comment
1 minute ago, A7MEDENO said:

addEvent("nobr", true)
addEventHandler("nobr", root,
	function(thePlayer)
		if getPedOccupiedVehicle ( thePlayer ) then
		local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )
			setTimer( function()
			fixVehicle( playerVehicle )
			end,400,1)
		end
	end
)

مشكله في


        if getPedOccupiedVehicle
 

addEvent("nobr", true)
addEventHandler("nobr", root,
	function()
		local playerVehicle = getPlayerOccupiedVehicle (source)
           if playerVehicle then
			setTimer( function()
			fixVehicle( playerVehicle )
			end,400,1)
		end
	end
)

 

  • Like 1
Link to comment
3 minutes ago, #BrosS said:

addEvent("nobr", true)
addEventHandler("nobr", root,
	function()
		local playerVehicle = getPlayerOccupiedVehicle (source)
           if playerVehicle then
			setTimer( function()
			fixVehicle( playerVehicle )
			end,400,1)
		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...