الحين اظيفك
Client
GUIEditor = {
button = {},
window = {}
}
GUIEditor.window[1] = guiCreateWindow(540, 229, 167, 199, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1], true)
showCursor ( true )
GUIEditor.button[1] = guiCreateButton(23, 47, 118, 44, "car 1 d", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(23, 109, 118, 47, "x", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function ()
downloadFile ( "c1.dff" )
downloadFile ( "c1.txd" )
txd = engineLoadTXD("c1.txd")
engineImportTXD(txd, 429)
dff = engineLoadDFF("c1.dff", 0)
engineReplaceModel(dff, 429)
end)
addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function ()
guiSetVisible(GUIEditor.window[1], false)
showCursor ( false )
end)
+
meta
"c1.txd" download="false" />
"c1.dff" download="false" />
+
c1.txd - dff
حط
txd = engineLoadTXD("c1.txd")
engineImportTXD(txd, 429)
dff = engineLoadDFF("c1.dff", 0)
engineReplaceModel(dff, 429)
اذا اكتمل التحميل