Jump to content

engineRestoreModel


Recommended Posts

Posted
السلامم عليكم

ابي مثال ع الوظيفةة ذي

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

انا جربت الوظيفةة ع زر بس ابد ابد مو راضيةة تضبط

عشان كذا طلبت عليها مثال

addEventHandler ( "onClientGUIClick", GUIEditor.button[2], 
function ( ) 
    engineRestoreModel ( 492 )  
 end, false 
) 

شوف سويتهه كذا بس ما يضبط

Posted
ووش يطلع لك؟

لأن ما اشوف غلط بالكود ذذ

ما يطلع شي بس السيارة ما ترجع للاصل

Posted
ووش يطلع لك؟

لأن ما اشوف غلط بالكود ذذ

طيب تقدر تسوي لي مثال ع القريد لست .؟

Posted

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 = اي دي السياره ذذ

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...