enaxdao Posted August 14, 2019 Share Posted August 14, 2019 سلام عليكم محتاج مود الفلشر للسيارات Link to comment
Bassam*Syria Posted August 14, 2019 Share Posted August 14, 2019 7 minutes ago, enaxdao said: سلام عليكم محتاج مود الفلشر للسيارات عليكم السلام اخيو قبل م تطلب مود حاول تبحث عنه لقيته لك ب اقل من 10 ثواني ... خخ المود بالدسكربشن حق الفيديو Link to comment
enaxdao Posted August 14, 2019 Author Share Posted August 14, 2019 1 hour ago, Bassam*Syria said: عليكم السلام اخيو قبل م تطلب مود حاول تبحث عنه لقيته لك ب اقل من 10 ثواني ... خخ المود بالدسكربشن حق الفيديو انا ابي فلشر يمين وفلشر يسار وانتظار هذا يشغل الانتظار بس Link to comment
Bassam*Syria Posted August 14, 2019 Share Posted August 14, 2019 (edited) حمل لك من اليوتيوب باك اب حق سيرفر هجولة ودور فيهم بتحصله Edited August 14, 2019 by Bassam*Syria Link to comment
jakson Posted August 14, 2019 Share Posted August 14, 2019 ---serverside --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- leftkey = "حط هنا الحرف الي بدك اياه للجه اليسرا" rightkey = "حط هنا الحرف الي بدك اياه للجه اليمني" bothkey = "حط هنا الحرف الي ينور الاتين ثوا" --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- LightState1 = {0} LightState2 = {0} BlinkT = {} BlinkS = {} function Blinker(thePlayer,mode) local vehicle = getPedOccupiedVehicle(thePlayer) if vehicle then if BlinkT[vehicle] then killTimer(BlinkT[vehicle]) BlinkT[vehicle] = nil setVehicleLightState(vehicle,0,LightState1[vehicle]) setVehicleLightState(vehicle,1,LightState2[vehicle]) setVehicleLightState(vehicle,3,0) setVehicleLightState(vehicle,2,0) setVehicleOverrideLights(vehicle,0) else setVehicleOverrideLights(vehicle,2) setElementData(vehicle,"asd","asd") local a,b = getVehicleLightState(vehicle,0),getVehicleLightState(vehicle,1) LightState1[vehicle] = a LightState2[vehicle] = b if mode == leftkey then setVehicleLightState ( vehicle, 1, 1 ) setVehicleLightState ( vehicle, 2, 1 ) if a == 0 then BlinkT[vehicle] = setTimer(Blink,400,0,vehicle,1,0,3) elseif a == 1 then BlinkT[vehicle] = setTimer(Blink,400,0,vehicle,2,0,3) end elseif mode == rightkey then setVehicleLightState ( vehicle, 0, 1 ) setVehicleLightState ( vehicle, 3, 1 ) if b == 0 then BlinkT[vehicle] = setTimer(Blink,400,0,vehicle,1,1,2) elseif b == 1 then BlinkT[vehicle] = setTimer(Blink,400,0,vehicle,2,1,2) end elseif mode == bothkey then BlinkT[vehicle] = setTimer(Blink,400,0,vehicle,3,0,1) end end end end function Blink(vehicle,how,l1,l2) if vehicle then if getElementData(vehicle,"asd") then if not BlinkS[vehicle] and how == 1 then setVehicleLightState ( vehicle, l1, 1 ) setVehicleLightState ( vehicle, l2, 1 ) BlinkS[vehicle] = true elseif BlinkS[vehicle] and how == 1 then setVehicleLightState ( vehicle, l1, 0 ) setVehicleLightState ( vehicle, l2, 0 ) BlinkS[vehicle] = false elseif not BlinkS[vehicle] and how == 2 then setVehicleLightState ( vehicle, l2, 1 ) BlinkS[vehicle] = true elseif BlinkS[vehicle] and how == 2 then setVehicleLightState ( vehicle, l2, 0 ) BlinkS[vehicle] = false elseif not BlinkS[vehicle] and how == 3 then setVehicleLightState ( vehicle, 0, 1 ) setVehicleLightState ( vehicle, 1, 1 ) setVehicleLightState ( vehicle, 2, 1 ) setVehicleLightState ( vehicle, 3, 1 ) BlinkS[vehicle] = true elseif BlinkS[vehicle] and how == 3 then setVehicleLightState ( vehicle, 0, 0 ) setVehicleLightState ( vehicle, 1, 0 ) setVehicleLightState ( vehicle, 2, 0 ) setVehicleLightState ( vehicle, 3, 0 ) BlinkS[vehicle] = false end else killTimer(BlinkT[vehicle]) BlinkT[vehicle] = nil end end end addEventHandler ( "onVehicleEnter", getRootElement(), function(thePlayer) bindKey ( thePlayer, leftkey, "down", Blinker, thePlayer, leftkey) bindKey ( thePlayer, rightkey, "down", Blinker, thePlayer, rightkey) bindKey ( thePlayer, bothkey, "down", Blinker, thePlayer, bothkey) end) addEventHandler ( "onVehicleExit", getRootElement(), function(thePlayer) unbindKey ( thePlayer, leftkey, "down", Blinker) unbindKey ( thePlayer, rightkey, "down", Blinker) unbindKey ( thePlayer, bothkey, "down", Blinker) 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