ميدوح Posted November 9, 2017 Share Posted November 9, 2017 السلام عليكم ورحمة الله وبركاته كيفكم؟ انا سويتها بس مو راضيه تطلع معايا انه شات باسم نوع العربية [امتلكها بحيث العبها و اسوقها] --Client:only vehicleArabic = { [604]="كامري 2015", [585]="سوناتا 2015" } cars = (vehicleArabic[1].getPedOccupiedVehicle(getLocalPlayer())) addEventHandler("onClientVehicleEnter", getRootElement(), function() if cars then outputChatBox (cars[2]) end end ) Link to comment
iMr.WiFi..! Posted November 9, 2017 Share Posted November 9, 2017 8 hours ago, medo7 said: السلام عليكم ورحمة الله وبركاته كيفكم؟ انا سويتها بس مو راضيه تطلع معايا انه شات باسم نوع العربية [امتلكها بحيث العبها و اسوقها] --Client:only vehicleArabic = { [604]="كامري 2015", [585]="سوناتا 2015" } cars = (vehicleArabic[1].getPedOccupiedVehicle(getLocalPlayer())) addEventHandler("onClientVehicleEnter", getRootElement(), function() if cars then outputChatBox (cars[2]) end end ) مافهمت طلبك بضبط , بس كودك خاطئ اساساً : ) 1 Link to comment
Rockyz Posted November 9, 2017 Share Posted November 9, 2017 جرب : vehicleArabic = { [ 604 ] = 'كامري 2015', [ 585 ] = 'سوناتا 2015' }; addEventHandler ( 'onClientVehicleEnter', root, function ( ) local carNum = cars [ getElementModel ( source ) ] if ( carNum ) then outputChatBox ( carNum ) end end ) 2 Link to comment
ميدوح Posted November 9, 2017 Author Share Posted November 9, 2017 تشكر اخي الكود ظبطت معي ..@#,+( _xiRoc[K]; > carMapArabic = { {"الدائري",1777.6489257813, 858.43225097656, 3.2231502532959}, {"الشرقي",2698.7241210938, 1086.1610107422, 4.4072132110596}, {"النخيل",2116.9462890625, 1862.8112792969, 9.3178720474243}, {"الغروبي",1199.2459716797, 1042.6872558594, 4.894775390625} }; addEventHandler("onClientResourceStart", root, function() for i, v in ipairs( carMapArabic ) do outputChatBox( v[1] ) --Outputs. createMarker (v[2],v[3],v[4] ,"checkpoint",2) end end ) الحين الكود دا لما بدخل لـ carMapArabic بيطلع معي كل الدائري الشرقي النخيل الغروب *[يطلعلي واحد منهم carMapArabicانا بس ابي لما ادخل لـ ] فـليش بيطلعلي الكل@iMr.WiFi..!@Talis Link to comment
1337.Ibrahim Posted November 9, 2017 Share Posted November 9, 2017 لأنك حاط كل قيم الجدول في سطر 11 Link to comment
!#NssoR_) Posted November 9, 2017 Share Posted November 9, 2017 ماتحتاج لوب carMapArabic = { {"الدائري",1777.6489257813, 858.43225097656, 3.2231502532959}, {"الشرقي",2698.7241210938, 1086.1610107422, 4.4072132110596}, {"النخيل",2116.9462890625, 1862.8112792969, 9.3178720474243}, {"الغروبي",1199.2459716797, 1042.6872558594, 4.894775390625} }; addEventHandler("onClientResourceStart", root, function() local RandomPlace = math.random(1,#carMapArabic) outputChatBox( carMapArabic[RandomPlace][1] ) --Outputs. createMarker (carMapArabic[RandomPlace][2],carMapArabic[RandomPlace][3],carMapArabic[RandomPlace][4] ,"checkpoint",2) end ) 2 Link to comment
ميدوح Posted November 9, 2017 Author Share Posted November 9, 2017 59 minutes ago, !#NssoR_) said: ماتحتاج لوب carMapArabic = { {"الدائري",1777.6489257813, 858.43225097656, 3.2231502532959}, {"الشرقي",2698.7241210938, 1086.1610107422, 4.4072132110596}, {"النخيل",2116.9462890625, 1862.8112792969, 9.3178720474243}, {"الغروبي",1199.2459716797, 1042.6872558594, 4.894775390625} }; addEventHandler("onClientResourceStart", root, function() local RandomPlace = math.random(1,#carMapArabic) outputChatBox( carMapArabic[RandomPlace][1] ) --Outputs. createMarker (carMapArabic[RandomPlace][2],carMapArabic[RandomPlace][3],carMapArabic[RandomPlace][4] ,"checkpoint",2) end ) دحين انا ليش لما افتح الدائري واجي افتح النخيل الاقيهم كلهم دائري ايش السبب وابي حل Link to comment
</Mr.Tn6eL> Posted November 10, 2017 Share Posted November 10, 2017 carMapArabic = { {"الدائري",1777.6489257813, 858.43225097656, 3.2231502532959}, {"الشرقي",2698.7241210938, 1086.1610107422, 4.4072132110596}, {"النخيل",2116.9462890625, 1862.8112792969, 9.3178720474243}, {"الغروبي",1199.2459716797, 1042.6872558594, 4.894775390625} }; markers = {} addEventHandler("onClientResourceStart", root, function() for i, v in ipairs( carMapArabic ) do markers[createMarker (v[2],v[3],v[4] ,"checkpoint",2)] = i end end ) addEventHandler("onClientMarkerHit", resourceRoot, function(hit) if markers[source] and hit == localPlayer then outputChatBox( carMapArabic[markers[source]][1] ) --Outputs. end end) 2 Link to comment
MR.SAMSUNG Posted November 10, 2017 Share Posted November 10, 2017 (edited) اظن ان يروح لك الدائري عشانك حاطيه اول واحد في قائمة الآكواد هههههههههه @medo7 بس جرب حط مثل ما قال !#NssoR_) local RandomPlace = math.random(1,#carMapArabic) Edited November 10, 2017 by MR.SAMSUNG 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