Maksoud Posted July 10, 2016 Share Posted July 10, 2016 السلام عليكم و رحمة الله و بركاته سويت ماب و فيها سيارات بدى كود يخلى السيارات معمول لها فريز شكرا مقدما Link to comment
Adham Posted July 10, 2016 Share Posted July 10, 2016 setVehicleFrozen او setElementFrozen Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 شكلك ما فهمتنى !! مااب فيه سياراات و بدى احط كود يخلى السيارات كلها البالماب معمولها تجمييد Link to comment
Adham Posted July 10, 2016 Share Posted July 10, 2016 (edited) شكلك انت الم تفهم ولله قلت لك فوق Edited July 10, 2016 by Guest Link to comment
Me[Z]oO Posted July 10, 2016 Share Posted July 10, 2016 --Server Side addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do setElementFrozen(veh,true) end end ) Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 --Server Side addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do setElementFrozen(veh,true) end end ) ذه راح يسوي فريز لكل السيارات ولا السيارات الخاصة بالماب فقط ؟ Link to comment
Me[Z]oO Posted July 10, 2016 Share Posted July 10, 2016 (edited) لكل السيارات قول والله ! هو يسئلني ولا يسئلك انت --Server Side addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do if getElementDimation(veh) == 16346 then --- هنا setElementFrozen(veh,true) end end end ) بدل 16346 ب رقم الديميشن حق الماب Edited July 10, 2016 by Guest Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 لكل السيارات ههه يسوي لكل السيارات البالماب فقط Link to comment
Me[Z]oO Posted July 10, 2016 Share Posted July 10, 2016 (edited) --Server Side addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do if getElementDimension(veh) == 16346 then --- هنا setElementFrozen(veh,true) end end end ) بدل 16346 ب رقم الديميشن حق الماب Edited July 10, 2016 by Guest Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 اولا الديمنشن حق الماب 0 ثانيا dimension مب dimation Link to comment
Me[Z]oO Posted July 10, 2016 Share Posted July 10, 2016 اولا الديمنشن حق الماب 0 ثانيا dimension مب dimation يب ض خربطت المهم سوي الديمشين حق الماب اي شي وغيره بالكود Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 ما ينفع اغيره لانه مكان لعرض السيارات Link to comment
Adham Posted July 10, 2016 Share Posted July 10, 2016 addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do if getElementDimension(veh) == 0 then setElementFrozen(veh,true) end end end ) Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do if getElementDimension(veh) == 0 then setElementFrozen(veh,true) end end end ) مرة ناصح ^^ Link to comment
Mhmd.z Posted July 10, 2016 Share Posted July 10, 2016 انت مسوي السيارات عن طريق جدول ولوب؟ لو مسويها بجدول تقدر تعطي السيارات كلها داتا باسم VehiclesResource وبعدها تسوي addEventHandler('onResourceStart',resourceRoot, function() for i , v in ipairs (getElementsByType('vehicle')) do if getElementData(v, "VehiclesResource") then setElementFrozen(v,false) end end end ) Link to comment
Mhmd.z Posted July 10, 2016 Share Posted July 10, 2016 مب مسوى جدول ذه ماب تقصد انك صانع السيارات بملف .map ? Link to comment
Me[Z]oO Posted July 10, 2016 Share Posted July 10, 2016 addEventHandler('onResourceStart',resourceRoot, function() for i , veh in ipairs (getElementsByType('vehicle')) do if getElementDimension(veh) == 0 then setElementFrozen(veh,true) end end end ) مرة ناصح ^^ هههههههههههههههههههههههههههه والله جد ناصح فعلا +2609436735 ^ Link to comment
Mhmd.z Posted July 10, 2016 Share Posted July 10, 2016 طيب خذ ذا, بس عليك تعدل احداثيات المنطقه local theShape = createColRectangle(X1, Y1, X2, XY) addEventHandler("onResourceStart",resourceRoot, function() for i , v in ipairs (getElementsByType('vehicle')) do if isElementWithinColShape(v, theShape) then setElementFrozen(v, true) end end end ) Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 كيف اسوى احدثيات للكول شيب Link to comment
a7zan Posted July 10, 2016 Share Posted July 10, 2016 بملف سيرفر سايد حق الماب ضيف فيه الكود ذا addEventHandler('onResourceStart',resourceRoot, function ( ) for _, Vehicles in ipairs ( getElementsByType ( 'vehicle' , resourceRoot ) ) do setElementFrozen( Vehicles , true ) end end ) ; Link to comment
Maksoud Posted July 10, 2016 Author Share Posted July 10, 2016 بملف سيرفر سايدحق الماب ضيف فيه الكود ذا addEventHandler('onResourceStart',resourceRoot, function ( ) for _, Vehicles in ipairs ( getElementsByType ( 'vehicle' , resourceRoot ) ) do setElementFrozen( Vehicles , true ) end end ) ; مشكوور Link to comment
Vunili Posted July 10, 2016 Share Posted July 10, 2016 addCommandHandler ("StartFreeze", function (plr) if getPlayerSerial (plr) == "سريالك" then for i,k in ipairs (getElementsByType("player")) do setElementFrozen (k,true) setTimer(setElementFrozen,1000,1,plr,false) if isPedInVehicle (k) then setElementFrozen (getPedOccupiedVehicle(k),true) end setTimer(function(plr) if getPedOccupiedVehicle (plr) then setElementFrozen (getPedOccupiedVehicle(plr),false) end end,2000,1,plr) end outputChatBox ( 'تم اعطاء الجميع فريز الرجاء الانتظار *', root, 255, 0, 0, true ) end end) addCommandHandler ( "StopFreeze", function (plr) if getPlayerSerial (plr) == "سريالك" then for _,k in ipairs ( getElementsByType ( "player" )) do setElementFrozen ( k, false ) end for e,v in ipairs (getElementsByType("vehicle")) do setElementFrozen (v,false) end outputChatBox ( '! تم فك الفريز يمكنك الإنطلاق *', root, 255, 255, 255, true ) 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