L3yr Posted January 25, 2018 Share Posted January 25, 2018 السلام عليكم شباب وجهتنى مشكله بسيطه انا عامل ماركر تفتح لوحه انا عاوز اول ما تفتح اللوحه واضغط على رقم 1 فى الكيبورد تختفى اللوحه وياخد منى فلوس --الخطاء انى لما اضغط رقم 1او2 فى الكيبورد بياخد من الفلوس من غير ما المس الماركر وشكرا -----client local L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0) local L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0) ----DX function open(gg)--وظيفة if isPedInVehicle ( gg ) then addEventHandler("onClientRender", root,dx) end--نهاية قوس الحدث end addEventHandler("onClientMarkerHit",L3yr1,open) addEventHandler("onClientMarkerHit",L3yr2,open) -------------------------------------------------- function ee(aa ) if aa == "1" then triggerServerEvent ( "open", localPlayer ) removeEventHandler("onClientRender", root,dx) end end addEventHandler( "onClientKey", root,ee) ------------- function eee(aaa ) if aaa =="2" then triggerServerEvent ( "open2", localPlayer ) removeEventHandler("onClientRender", root,dx) end end addEventHandler( "onClientKey", root,eee) Link to comment
+Source|> Posted January 25, 2018 Share Posted January 25, 2018 (edited) 22 minutes ago, L3yr said: السلام عليكم شباب وجهتنى مشكله بسيطه انا عامل ماركر تفتح لوحه انا عاوز اول ما تفتح اللوحه واضغط على رقم 1 فى الكيبورد تختفى اللوحه وياخد منى فلوس --الخطاء انى لما اضغط رقم 1او2 فى الكيبورد بياخد من الفلوس من غير ما المس الماركر وشكرا -----client local L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0) local L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0) ----DX function open(gg)--وظيفة if isPedInVehicle ( gg ) then addEventHandler("onClientRender", root,dx) end--نهاية قوس الحدث end addEventHandler("onClientMarkerHit",L3yr1,open) addEventHandler("onClientMarkerHit",L3yr2,open) -------------------------------------------------- function ee(aa ) if aa == "1" then triggerServerEvent ( "open", localPlayer ) removeEventHandler("onClientRender", root,dx) end end addEventHandler( "onClientKey", root,ee) ------------- function eee(aaa ) if aaa =="2" then triggerServerEvent ( "open2", localPlayer ) removeEventHandler("onClientRender", root,dx) end end addEventHandler( "onClientKey", root,eee) جرب -----client L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0) L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0) ----DX function open(gg)--وظيفة if isPedInVehicle ( gg ) then addEventHandler("onClientRender", root,dx) end--نهاية قوس الحدث end addEventHandler("onClientMarkerHit",L3yr1,open) addEventHandler("onClientMarkerHit",L3yr2,open) -------------------------------------------------- function ee(aa ) if aa == "1" then if source == L3yr1 then triggerServerEvent ( "open", localPlayer ) removeEventHandler("onClientRender", root,dx) end end end addEventHandler( "onClientKey", root,ee) ------------- function eee(aaa ) if aaa =="2" then if source == L3yr2 then triggerServerEvent ( "open2", localPlayer ) removeEventHandler("onClientRender", root,dx) end end end addEventHandler( "onClientKey", root,eee) Edited January 25, 2018 by Source|> 1 Link to comment
L3yr Posted January 25, 2018 Author Share Posted January 25, 2018 جى التجربه 49 minutes ago, Source|> said: جرب -----client L3yr1 =createMarker ( 1782.4000244141, 808.5, 10, "cylinder",5 ,255 ,255,0,0) L3yr2 =createMarker ( 1792.06067, 808.45959, 10, "cylinder",5 ,255 ,255,0,0) ----DX function open(gg)--وظيفة if isPedInVehicle ( gg ) then addEventHandler("onClientRender", root,dx) end--نهاية قوس الحدث end addEventHandler("onClientMarkerHit",L3yr1,open) addEventHandler("onClientMarkerHit",L3yr2,open) -------------------------------------------------- function ee(aa ) if aa == "1" then if source == L3yr1 then triggerServerEvent ( "open", localPlayer ) removeEventHandler("onClientRender", root,dx) end end end addEventHandler( "onClientKey", root,ee) ------------- function eee(aaa ) if aaa =="2" then if source == L3yr2 then triggerServerEvent ( "open2", localPlayer ) removeEventHandler("onClientRender", root,dx) end end end addEventHandler( "onClientKey", root,eee) ما ظبط اخى 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