CRoW,,# Posted July 24, 2013 Posted July 24, 2013 السلامم عليكم ابي مثال ع الوظيفةة ذي engineRestoreModel ابيها ع سيارة
King12 Posted July 24, 2013 Posted July 24, 2013 السلامم عليكم ابي مثال ع الوظيفةة ذي engineRestoreModel ابيها ع سيارة This function restores the visual DFF and TXD model of the given model ID. This restores the result of engineReplaceModel. المثال موجود بالويكي وينفع للسياره لو قريت بالمثال حق الكلينت بتفهم engineRestoreModel ( 587 ) -- Object / Vehicle to restore to default GTA one. بدل رقم الاوبجكت برقم السياره مثل infernus = 411 اول ماتحط رقمها اي شخص مركب سياره بيرجع له الاصليه
فاّرس Posted July 24, 2013 Posted July 24, 2013 مثال , addCommandHandler('restore', function() engineRestoreModel(ID) end ) ID = الاي دي , وراح ترجع مثل ما كانت اول ذذ
CRoW,,# Posted July 24, 2013 Author Posted July 24, 2013 انا جربت الوظيفةة ع زر بس ابد ابد مو راضيةة تضبط عشان كذا طلبت عليها مثال addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function ( ) engineRestoreModel ( 492 ) end, false ) شوف سويتهه كذا بس ما يضبط
CRoW,,# Posted July 24, 2013 Author Posted July 24, 2013 ووش يطلع لك؟لأن ما اشوف غلط بالكود ذذ ما يطلع شي بس السيارة ما ترجع للاصل
CRoW,,# Posted July 24, 2013 Author Posted July 24, 2013 ووش يطلع لك؟لأن ما اشوف غلط بالكود ذذ طيب تقدر تسوي لي مثال ع القريد لست .؟
فاّرس Posted July 25, 2013 Posted July 25, 2013 Cars = { { 'Car',ID }, { 'Car',ID }, { 'Car',ID } } Window = guiCreateWindow(...) Button = guiCreateButton(...) Grid = guiCreateGridList(...) local Col = guiGridListAddColumn(...) for Key,Value in ipairs( Cars ) do local Row = guiGridListAddRow() guiGridListSetItemText( Grid,Row,Col, Value [ 1 ], false, false ) guiGridListSetItemData( Grid,Row,Col, Value [ 2 ]) end addEventHandler('onClientGUIClick',Button, function() local G,I = guiGridListGetSelectedItem(Grid) if G and I and G ~= '' and I ~= '' then local Restory = tonumber(guiGridListGetItemData(Grid,G,I)) engineRestoreModel(Restory)) end end,false ) Car = اسم السياره ذذ ID = اي دي السياره ذذ
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