+Source|> Posted July 6, 2017 Share Posted July 6, 2017 لما ادخل الماركر السيارة تتتصلح بس المشكله انه لما اطلع من الماركر واصدم السيارة بعد تتصلح؟؟ 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
#BrosS Posted July 6, 2017 Share Posted July 6, 2017 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 ) انت حاطط تايمر غير منتهي 1 Link to comment
+Source|> Posted July 6, 2017 Author Share Posted July 6, 2017 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
#BrosS Posted July 6, 2017 Share Posted July 6, 2017 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 ) 1 Link to comment
+Source|> Posted July 6, 2017 Author Share Posted July 6, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now