Vunili Posted May 20, 2016 Share Posted May 20, 2016 السلام عليكم ياخوان ابي الكود ذا بدون لوحة يعني لما اكتب في اف 8 اللون يتغير ولما اكتب rest يرجع للونه الطبيعي اتمنى فهمو علي local sx, sy = guiGetScreenSize() localPlayer = getLocalPlayer() local visible = false local key = "F6" local neonname = { [1] = "Red Neon", [2] = "Blue Neon", [3] = "Green Neon", [4] = "Yellow Neon", [5] = "Pink Neon", [6] = "White Neon", [7] = "Reset" } local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } function openGui() local xBtn = 75 local yBtn = 30 local wBtn = 150 local hBtn = 21 local space = 28 window = guiCreateWindow(sx/2-150,sy/2-115,300,260,"Neon panel",false) Btn1 = guiCreateButton(xBtn,yBtn,wBtn,hBtn,neonname[1],false, window) Btn2 = guiCreateButton(xBtn,yBtn+space,wBtn,hBtn,neonname[2],false, window) Btn3 = guiCreateButton(xBtn,yBtn+2*space,wBtn,hBtn,neonname[3],false, window) Btn4 = guiCreateButton(xBtn,yBtn+3*space,wBtn,hBtn,neonname[4],false, window) Btn5 = guiCreateButton(xBtn,yBtn+4*space,wBtn,hBtn,neonname[5],false, window) Btn6 = guiCreateButton(xBtn,yBtn+5*space,wBtn,hBtn,neonname[6],false, window) Btn7 = guiCreateButton(xBtn,yBtn+6*space,wBtn,hBtn,neonname[7],false, window) info = guiCreateLabel(200, 230, 300, 30,"By [sV]Kostya", false, window) guiLabelSetColor (info, 0,0,255) guiSetVisible(window, visible) end addCommandHandler ( "Color1", idModel[1] ) function start_cl_resource() openGui() if ( guiGetVisible(window) == true ) then showCursor(true) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),start_cl_resource) function hideGui() if (guiGetVisible(window) == false) then guiSetVisible(window, true) showCursor(true) else guiSetVisible(window, false) showCursor(false) end end bindKey(key, "down", hideGui) function onGuiClickPanel (button, state, absoluteX, absoluteY) if (source == Btn1) then setElementData( localPlayer, "neon", idModel[1] ) outputChatBox("#00ff00Now your neon color is #ff0000Red", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn2) then setElementData( localPlayer, "neon", idModel[2] ) outputChatBox("#00ff00Now your neon color is #0000ffBlue", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn3) then setElementData( localPlayer, "neon", idModel[3] ) outputChatBox("#00ff00Now your neon color is Green", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn4) then setElementData( localPlayer, "neon", idModel[4] ) outputChatBox("#00ff00Now your neon color is #ffcc00Yellow", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn5) then setElementData( localPlayer, "neon", idModel[5] ) outputChatBox("#00ff00Now your neon color is #f754e1Pink", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn6) then setElementData( localPlayer, "neon", idModel[6] ) outputChatBox("#00ff00Now your neon color is #ffffffWhite", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn7) then setElementData( localPlayer, "neon", 0 ) outputChatBox("#00ff00Your neon successfully reseted", 255,255,255, true) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClickPanel) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) Link to comment
</Mr.Tn6eL> Posted May 20, 2016 Share Posted May 20, 2016 local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) Link to comment
Vunili Posted May 20, 2016 Author Share Posted May 20, 2016 local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) اشكرك (: rest بس شلون اسوي رست ؟ Link to comment
</Mr.Tn6eL> Posted May 20, 2016 Share Posted May 20, 2016 local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) اشكرك (: rest بس شلون اسوي رست ؟ اكتب neon reset او neon 0 في اف 8 عشان ترجع لك Link to comment
Vunili Posted May 20, 2016 Author Share Posted May 20, 2016 local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) اشكرك (: rest بس شلون اسوي رست ؟ اكتب neon reset او neon 0 في اف 8 عشان ترجع لك يطلع لي كذا بالشات لما اكتب neon reset او neon 0 ( Please enter a valid color [red, blue, green, yellow, pink, white] ) Link to comment
</Mr.Tn6eL> Posted May 20, 2016 Share Posted May 20, 2016 جرب هذا local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id or isReset then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) Link to comment
Vunili Posted May 20, 2016 Author Share Posted May 20, 2016 جرب هذا local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } local colorModel = { ["red"] = 14399, ["blue"] = 14400, ["green"] = 14401, ["yellow"] = 14402, ["pink"] = 14403, ["white"] = 14404 } addCommandHandler("neon", function(cmd, color) local color = color:lower( ) local isReset = color == "reset" or color == "0" local id = colorModel[color] or idModel[color] local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if id or isReset then setElementData(localPlayer, "neon", isReset and 0 or id) outputChatBox("#00ff00Your neon successfully "..(isReset and "reseted" or "set"), 255,255,255, true) triggerServerEvent("detachNeon", localPlayer, vehicle) if not isReset then triggerServerEvent("attachNeon", localPlayer, vehicle) end else outputChatBox("Please enter a valid color [red, blue, green, yellow, pink, white]", 255, 0, 0) end else outputChatBox("You dont have vehicle", 255, 0, 0) end end) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) مشكور يعطيك العافية (: 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