اول شي ملف الكلينت
addCommandHandler('skinee',function()
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
)
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(425, 211, 618, 443, "تعديل", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1], false )
GUIEditor.button[1] = guiCreateButton(42, 274, 254, 84, "start alpha", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(404, 281, 204, 77, "exit", false, GUIEditor.window[1])
end
)
addEventHandler('onClientGUIClick',root, onclick )
function onclick ()
if source == GUIEditor.button[1] then
triggerServerEvent ( "replaceTXDDFF.c", localPlayer )
end
end
addEventHandler( "replaceTXDDFF.s", true )
addEventHandler( "replaceTXDDFF.s", root, replaceTXDDFF )
function replaceTXDDFF ()
InfiTexture = engineLoadTXD ( "inf/infernus.txd" )
engineImportTXD ( InfiTexture, 411 )
InfiModel = engineLoadDFF ( "inf/infernus.dff", 411 )
engineReplaceModel ( InfiModel, 411 )
end
ملف السيرفر
addEventHandler( "replaceTXDDFF.c", true )
addEventHandler( "replaceTXDDFF.c", root, replaceTXDDFF )
function replaceTXDDFF ()
triggerClientEvent ( root, "replaceTXDDFF.s", root )
end
شو الاخطاء المود مايشتغلل ؟؟؟ ليش