Jump to content

|استفسار|


Mr.king

Recommended Posts

شباب اكيد الكل يعرف كود مود اسمة حق الجنوط F7

بس انا ابي اخيليه مايفتح باف 7

انا ابيه يفتح لو كنت في سيارة ولمست ماركر

بس لوكنت في السيارة

يعني ابي احد يمسح الكود الي يفتح النافذة باف 7 ويحط لو لمست الماركر وانت بالسيارة

server-side

function resourceStart () 
    outputChatBox ("#999900===[ #ff3300Panel Wheels V.1 By ===|OSAMA|=== #000000| #ff3300To Open It Pess #ffff00[#ff0000F7#ffff00] #999900]===",getRootElement(),255,255,255, true)
end
addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart )
 
function join ()
    outputChatBox ("#999900===[ #ff3300Panel Wheels V.1 By ===|OSAMA|=== #000000| #ff3300To Open It Pess #ffff00[#ff0000F7#ffff00] #999900]===",source,255,255,255, true)
end
addEventHandler ( "onPlayerJoin", root, join )
 
--determine whether color change can be made with a command
cmd = true
--the command to use
thecmd = "neon"
function neon(plr,cmd,r,g,b,a)
if not r then openGui(plr) return true end
if tonumber(tostring(r)) == nil then r,g,b,a = getColorFromString(r)
end
if not a then a = 200 end
veh = getPedOccupiedVehicle(plr)
if veh and r and g and b then
model = getElementModel(veh)
if canHaveNeon(veh) then
if haveNeon(veh) then
setNeonColor(veh,tonumber(r),tonumber(g),tonumber(b))
end
end
end
end
 
if cmd then
addCommandHandler(thecmd,neon)
end
 
function setNeonColor(vehicle,r,g,b)
setElementData(vehicle,"neonlight",tostring(r)..","..tostring(g)..","..tostring(b)..","..tostring(a))
for i,mark in ipairs(getElementsByType("marker")) do
local type = getMarkerType(mark)
if type == "corona" then
local data1 = getElementData(vehicle,"neonMarker1")
local data2 = getElementData(vehicle,"neonMarker2")
if data1 == mark or data2 == mark then
setMarkerColor(mark,r,g,b,80)
end
end
end
return true
end
 
 
 
function haveNeon(vehicle)
local data = getElementData(vehicle,"haveneon")
if data then
return true
else
return false
end
end
 
function addNeon(vehicle,state)
if getElementType(vehicle) == "vehicle" then
if state then
setElementData(vehicle,"haveneon",true)
x,y,z = getElementPosition(vehicle)
--
local exist = nil
for i,mark in ipairs(getElementsByType("marker")) do
data = getElementData(vehicle,"neonMarker1")
if data == mark then
local exist = mark
end
end
if not exist then
local marker1 = createMarker(x,y,z,"corona",2,0,0,0,0)
attachElements(marker1,vehicle,0,-1,-1.2)
setElementData(vehicle,"neonMarker1",marker1)
local marker2 = createMarker(x,y,z,"corona",2,0,0,0,0)
attachElements(marker2,vehicle,0,1,-1.2)
setElementData(vehicle,"neonMarker2",marker2)
end
--
return true
else
setElementData(vehicle,"haveneon",false)
setElementData(veh,"neonlight","off!!!")
--
for i,mark in ipairs(getElementsByType("marker")) do
local type = getMarkerType(mark)
if type == "corona" then
local data1 = getElementData(vehicle,"neonMarker1")
local data2 = getElementData(vehicle,"neonMarker2")
if data1 == mark or data2 == mark then
setMarkerColor(mark,0,0,0,0)
end
end
end
--
return true
end
else
return false
end
end
function canHaveNeon(veh)
model = getElementModel(veh)
    if veh and getElementType(veh) == "vehicle" then
    x = mayHaveNeon(model)
    return x
    else
    return false
    end
end
 
function mayHaveNeon(model)
if model ~= 592 and model ~= 511 and model ~= 584 and model ~= 512 and model ~= 593 and model ~= 417 and
model ~= 487 and model ~= 553 and model ~= 488 and model ~= 563 and model ~= 476 and model ~= 519 and
model ~= 460 and model ~= 469 and model ~= 513 and model ~= 472 and model ~= 473 and model ~= 493 and
model ~= 595 and model ~= 484 and model ~= 430 and model ~= 453 and model ~= 452 and model ~= 446 and
model ~= 454 and model ~= 403 and model ~= 514 and model ~= 443 and model ~= 515 and model ~= 455 and
model ~= 406 and model ~= 486 and model ~= 578 and model ~= 532 and model ~= 524 and model ~= 498 and
model ~= 609 and model ~= 568 and model ~= 457 and model ~= 508 and model ~= 571 and model ~= 539 and
model ~= 606 and model ~= 607 and model ~= 485 and model and model ~= 581 and model ~= 509 and
model ~= 481 and model ~= 462 and model ~= 521 and model ~= 463 and model ~= 510 and model ~= 522 and
model ~= 461 and model ~= 448 and model ~= 468 and model ~= 586 and model ~= 485 and model ~= 552 and
model ~= 431 and model ~= 438 and model ~= 437 and model ~= 574 and model ~= 525 and model ~= 408 and
model ~= 416 and model ~= 433 and model ~= 427 and model ~= 490 and model ~= 528 and model ~= 407 and
model ~= 544 and model ~= 523 and model ~= 470 and model ~= 596 and model ~= 597 and model ~= 598 and
model ~= 599 and model ~= 432 and model ~= 601 and model ~= 428 and model ~= 499 and model ~= 449 and
model ~= 537 and model ~= 538 and model ~= 570 and model ~= 569 and model ~= 590 and model ~= 441 and
model ~= 464 and model ~= 501 and model ~= 465 and model ~= 564 and model ~= 594 then
return true
else
return false
end
end
 
 
function deactivateNeon(vehicle)
if getElementType(vehicle) == "vehicle" then
setElementData(vehicle,"neonlight","off!!!")
for i,mark in ipairs(getElementsByType("marker")) do
local type = getMarkerType(mark)
if type == "corona" then
local data1 = getElementData(vehicle,"neonMarker1")
local data2 = getElementData(vehicle,"neonMarker2")
if data1 == mark or data2 == mark then
setMarkerColor(mark,0,0,0,0)
end
end
end
return true
else
return false
end
end
 
function openGui(plr)
local veh = getPedOccupiedVehicle(plr)
if haveNeon(veh) then
triggerClientEvent(plr,"openNeonGui",root)
end
end
 
addEventHandler("onPlayerJoin",root,function()
for i,veh in ipairs(getElementsByType("vehicle")) do
data = getElementData(veh,"neonlight")
setElementData(veh,"neonlight",data)
end
end)
 
for i,veh in ipairs(getElementsByType("vehicle")) do
deactivateNeon(veh)
end
 
addEvent("closeNeonGui",true)
addEventHandler("closeNeonGui",root,function(r,g,b)
local veh = getPedOccupiedVehicle(source)
setNeonColor(veh,r,g,b)
end)
 
addEvent("n1", true)
addEventHandler("n1", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1008)
      outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 145, 255, 170, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("n2", true)
addEventHandler("n2", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1009)
      outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 145, 255, 170, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("n3", true)
addEventHandler("n3", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1010)
      outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 255, 150, 0, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("h", true)
addEventHandler("h", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1087)
      outputChatBox("H تمت اضافة الهيدروليك اضغط ", source, 0, 137, 255, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("1", true)
addEventHandler("1", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1078)
      outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("2", true)
addEventHandler("2", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1084)
      outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("3", true)
addEventHandler("3", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1073)
      outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("4", true)
addEventHandler("4", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1079)
      outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true)  else
    outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true)  end
end)
 
addEvent("5", true)
addEventHandler("5", getRootElement(), function()
  if isPedInVehicle(source) then
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1085)
      outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true)  else
   
Link to comment

وابيكم يا شباب تحددون لي الاحداثيات حقت الماركر وشكرا وابيكم تضيفون لما حد يتري شيء بففلوس كل شيء ب350

وكمان لو سمحتم ابي الجنوط نفسها عشانها مهي مركبة عندي

Link to comment
وابيكم يا شباب تحددون لي الاحداثيات حقت الماركر وشكرا وابيكم تضيفون لما حد يتري شيء بففلوس كل شيء ب350

وكمان لو سمحتم ابي الجنوط نفسها عشانها مهي مركبة عندي

:lol: ماتبي نسوي لك شاهي بعد ؟

Link to comment

marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
  
addEventHandler("onClientMarkerHit",marker, 
  function (player) 
    if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then 
    guiSetVisible(النافذهـ,true) 
    showCursor(true) 
         end 
    end 
) 
  

الكود بيكون كذا عليك تضيفة للمود وتكمل الباقي ذذ

Link to comment

هذى مثال عن الودك ياه عدل عليه

كلنت

  
marker = createMarker( -1353.4000244141, -483.5, 14.199999809265, "cylinder", 3, 0, 0, 0, 0 ) 
outputChatBox('#FFFF00الورشه في المطار',255, 255, 0, true ) 
local screX, screY = guiGetScreenSize() 
function Show_wheel_one(player) 
        if player ~= localPlayer then return end 
        if (guiGetVisible(Window_Wheel) == true) then 
            guiSetVisible(Window_Wheel, false) 
            showCursor(false) 
        else 
            guiSetVisible(Window_Wheel, true) 
            showCursor(true) 
            local sound = playSound("x1x.wma") 
            setSoundVolume(sound, 1) 
        end 
end 
addEventHandler("onClientMarkerHit", marker, Show_wheel_one) 
  
Window_Wheel = guiCreateWindow(screX/2 - 150, screY/2 - 150,347,295,"Wheels Window",false) 
guiSetVisible(Window_Wheel, false) 
Grid_Wheel = guiCreateGridList(14,23,186,261,false,Window_Wheel) 
guiGridListSetSelectionMode(Grid_Wheel,2) 
Close = guiCreateButton(304, 262, 28, 24, "X", false, Window_Wheel) 
  
Image_Wheel = guiCreateStaticImage(217,36,117,96,"img/i.png",false,Window_Wheel) 
Butto_Wheel_on = guiCreateButton(220,158,104,39,"Change it",false,Window_Wheel) 
  
Checkbox_txd_for_wheel_on = guiCreateCheckBox(262,261,16,16,"",false,false,Window_Wheel) 
lbl_wheel__ = guiCreateLabel(213,238,119,17,"By yazan !~! يزن",false,Window_Wheel) 
lbl_wheel_ = guiCreateLabel(213,213,119,17,"New Wheels : OFF",false,Window_Wheel) 
guiLabelSetColor(lbl_wheel_,255,0,0) 
  
Servers = guiGridListAddColumn(Grid_Wheel,"Wheels List",0.5) 
Wheels = {1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097} 
for _, k in ipairs(Wheels) do 
guiGridListSetItemText(Grid_Wheel, guiGridListAddRow(Grid_Wheel), Servers, tostring(k), false, false) 
end 
  
  
function guiClick (button, state, absoluteX, absoluteY) 
    local scheck = guiGridListGetItemText ( Grid_Wheel, guiGridListGetSelectedItem ( Grid_Wheel ), 1 ) 
    if (source == Butto_Wheel_on) then 
        if ( guiCheckBoxGetSelected(Checkbox_txd_for_wheel_on) ) then 
        triggerServerEvent ( "addWheel", getLocalPlayer(), scheck) 
        else 
        outputChatBox ( "Sorry , You must select the check box to turn it on" , 0, 217,176, false ) 
        end 
        elseif (source == Grid_Wheel) then 
        local scheck = guiGridListGetItemText ( Grid_Wheel, guiGridListGetSelectedItem ( Grid_Wheel ), 1 ) or 1 
        guiStaticImageLoadImage(Image_Wheel,"img/i"..scheck..".png") 
   elseif (source == Close) then 
          guiSetVisible(Window_Wheel,false) 
      showCursor(false) 
    end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), guiClick) 
  
  
  
function Replacetxd() 
        if ( guiCheckBoxGetSelected(source) ) then 
            playSoundFrontEnd(1) 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097) 
        guiLabelSetColor(lbl_wheel_,0,255,0) 
        guiSetText ( lbl_wheel_, "New Wheels : ON" ) 
        else 
            playSoundFrontEnd(2) 
            engineRestoreModel(1074) 
            engineRestoreModel(1075) 
            engineRestoreModel(1076) 
            engineRestoreModel(1077) 
            engineRestoreModel(1078) 
            engineRestoreModel(1079) 
            engineRestoreModel(1080) 
            engineRestoreModel(1081) 
            engineRestoreModel(1082) 
            engineRestoreModel(1083) 
            engineRestoreModel(1084) 
            engineRestoreModel(1085) 
            engineRestoreModel(1096) 
            engineRestoreModel(1097) 
            guiLabelSetColor(lbl_wheel_,255,0,0) 
            guiSetText ( lbl_wheel_, "New Wheels : OFF" )       
        end 
end 
addCommandHandler("00", Checkbox_txd_for_wheel_on, Replacetxd, false) 
  

سيرفر

root = getRootElement() 
  
  
function Change_ (scheck) 
if ( isPedInVehicle ( source ) ) then 
            local theVehicle = getPedOccupiedVehicle ( source ) 
            local success = addVehicleUpgrade ( theVehicle, scheck ) 
            if ( success ) then 
                outputChatBox( getVehicleUpgradeSlotName ( scheck ) .. " Wheel #FF0000Added", source, 255, 255, 0, true ) 
            else 
  
                outputChatBox( "Failed to Add The Wheel.", source, 255, 255, 0, true ) 
            end 
        else 
            outputChatBox( "You Must Be in a Vehicle!", source, 255, 255, 0, true ) 
        end 
  
end 
addEvent("addWheel",true) 
addEventHandler("addWheel",root,Change_) 

غير و عدل هذى مثال

Link to comment
هذى مثال عن الودك ياه عدل عليه

كلنت

  
marker = createMarker( -1353.4000244141, -483.5, 14.199999809265, "cylinder", 3, 0, 0, 0, 0 ) 
outputChatBox('#FFFF00الورشه في المطار',255, 255, 0, true ) 
local screX, screY = guiGetScreenSize() 
function Show_wheel_one(player) 
        if player ~= localPlayer then return end 
        if (guiGetVisible(Window_Wheel) == true) then 
            guiSetVisible(Window_Wheel, false) 
            showCursor(false) 
        else 
            guiSetVisible(Window_Wheel, true) 
            showCursor(true) 
            local sound = playSound("x1x.wma") 
            setSoundVolume(sound, 1) 
        end 
end 
addEventHandler("onClientMarkerHit", marker, Show_wheel_one) 
  
Window_Wheel = guiCreateWindow(screX/2 - 150, screY/2 - 150,347,295,"Wheels Window",false) 
guiSetVisible(Window_Wheel, false) 
Grid_Wheel = guiCreateGridList(14,23,186,261,false,Window_Wheel) 
guiGridListSetSelectionMode(Grid_Wheel,2) 
Close = guiCreateButton(304, 262, 28, 24, "X", false, Window_Wheel) 
  
Image_Wheel = guiCreateStaticImage(217,36,117,96,"img/i.png",false,Window_Wheel) 
Butto_Wheel_on = guiCreateButton(220,158,104,39,"Change it",false,Window_Wheel) 
  
Checkbox_txd_for_wheel_on = guiCreateCheckBox(262,261,16,16,"",false,false,Window_Wheel) 
lbl_wheel__ = guiCreateLabel(213,238,119,17,"By yazan !~! يزن",false,Window_Wheel) 
lbl_wheel_ = guiCreateLabel(213,213,119,17,"New Wheels : OFF",false,Window_Wheel) 
guiLabelSetColor(lbl_wheel_,255,0,0) 
  
Servers = guiGridListAddColumn(Grid_Wheel,"Wheels List",0.5) 
Wheels = {1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097} 
for _, k in ipairs(Wheels) do 
guiGridListSetItemText(Grid_Wheel, guiGridListAddRow(Grid_Wheel), Servers, tostring(k), false, false) 
end 
  
  
function guiClick (button, state, absoluteX, absoluteY) 
    local scheck = guiGridListGetItemText ( Grid_Wheel, guiGridListGetSelectedItem ( Grid_Wheel ), 1 ) 
    if (source == Butto_Wheel_on) then 
        if ( guiCheckBoxGetSelected(Checkbox_txd_for_wheel_on) ) then 
        triggerServerEvent ( "addWheel", getLocalPlayer(), scheck) 
        else 
        outputChatBox ( "Sorry , You must select the check box to turn it on" , 0, 217,176, false ) 
        end 
        elseif (source == Grid_Wheel) then 
        local scheck = guiGridListGetItemText ( Grid_Wheel, guiGridListGetSelectedItem ( Grid_Wheel ), 1 ) or 1 
        guiStaticImageLoadImage(Image_Wheel,"img/i"..scheck..".png") 
   elseif (source == Close) then 
          guiSetVisible(Window_Wheel,false) 
      showCursor(false) 
    end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), guiClick) 
  
  
  
function Replacetxd() 
        if ( guiCheckBoxGetSelected(source) ) then 
            playSoundFrontEnd(1) 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097) 
        guiLabelSetColor(lbl_wheel_,0,255,0) 
        guiSetText ( lbl_wheel_, "New Wheels : ON" ) 
        else 
            playSoundFrontEnd(2) 
            engineRestoreModel(1074) 
            engineRestoreModel(1075) 
            engineRestoreModel(1076) 
            engineRestoreModel(1077) 
            engineRestoreModel(1078) 
            engineRestoreModel(1079) 
            engineRestoreModel(1080) 
            engineRestoreModel(1081) 
            engineRestoreModel(1082) 
            engineRestoreModel(1083) 
            engineRestoreModel(1084) 
            engineRestoreModel(1085) 
            engineRestoreModel(1096) 
            engineRestoreModel(1097) 
            guiLabelSetColor(lbl_wheel_,255,0,0) 
            guiSetText ( lbl_wheel_, "New Wheels : OFF" )       
        end 
end 
addCommandHandler("00", Checkbox_txd_for_wheel_on, Replacetxd, false) 
  

سيرفر

root = getRootElement() 
  
  
function Change_ (scheck) 
if ( isPedInVehicle ( source ) ) then 
            local theVehicle = getPedOccupiedVehicle ( source ) 
            local success = addVehicleUpgrade ( theVehicle, scheck ) 
            if ( success ) then 
                outputChatBox( getVehicleUpgradeSlotName ( scheck ) .. " Wheel #FF0000Added", source, 255, 255, 0, true ) 
            else 
  
                outputChatBox( "Failed to Add The Wheel.", source, 255, 255, 0, true ) 
            end 
        else 
            outputChatBox( "You Must Be in a Vehicle!", source, 255, 255, 0, true ) 
        end 
  
end 
addEvent("addWheel",true) 
addEventHandler("addWheel",root,Change_) 

غير و عدل هذى مثال

lbl_wheel__ = guiCreateLabel(213,238,119,17,"By yazan !~! يزن",false,Window_Wheel)

viewtopic.php?f=161&t=54017

:lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol::lol:

Link to comment

الكود لـ فتح نافذهـ وانت في سيارهـ كذا بس ولا يجونك ناس يعطونك خرابيص -_-"!:

marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
  
addEventHandler("onClientMarkerHit",marker, 
  function (player) 
    if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then 
    guiSetVisible(النافذهـ,true) 
    showCursor(true) 
         end 
    end 
) 
  
Link to comment
انتا سخيف و كثر قصم بالله كود معدل عليها انا و مخليه مارك و انت قلت لك لا تقط نفسكك

اسمها "قسم" مو "قصم" اول شي

ثاني شي الرجال تعبان فـ المود كامل وانت عشانكـ اظفت كود خليته بـ حقوقكـ

ليتكـ كاتب

edited by yazan حتى

الاصل

lbl_wheel__ = guiCreateLabel(213,238,119,17,"By HoLsTeN",false,Window_Wheel)

وانت كاتب

lbl_wheel__ = guiCreateLabel(213,238,119,17,"By yazan !~! يزن",false,Window_Wheel)

خليت المود كامل لكـ؟ :lol::lol:

Link to comment

  
function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) 
    local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "logo.png", relative2 ) 
    local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) 
    guiSetFont ( mainBackgroundLabel, newFont ) 
    guiSetEnabled ( mainBackgroundLabel, false ) 
    return mainBackground 
end 
  
GUIEditor_Window = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(275,110,800,600,"",false) 
guiSetVisible(GUIEditor_Window[1],false) 
guiCreateStaticImage( 115,480,90,90, "images/00.png", false,GUIEditor_Window[1] ) 
n3 = guiCreateButton(121,570,72,24,"تـركـيـب",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 585,480,90,90, "images/0.png", false,GUIEditor_Window[1] ) 
h = guiCreateButton(594,570,72,24,"تـركـيـب",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 13,55,100,100, "images/1.png", false,GUIEditor_Window[1] ) 
b2 = guiCreateButton(25,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 176,55,100,100, "images/2.png", false,GUIEditor_Window[1] ) 
b3 = guiCreateButton(190,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 342,55,100,100, "images/3.png", false,GUIEditor_Window[1] ) 
b4 = guiCreateButton(355,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 512,55,100,100, "images/4.png", false,GUIEditor_Window[1] ) 
b5 = guiCreateButton(525,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 686,55,100,100, "images/5.png", false,GUIEditor_Window[1] ) 
b6 = guiCreateButton(700,160,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 13,190,100,100, "images/6.png", false,GUIEditor_Window[1] ) 
b7 = guiCreateButton(25,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 176,190,100,100, "images/7.png", false,GUIEditor_Window[1] ) 
b8 = guiCreateButton(190,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 342,190,100,100, "images/8.png", false,GUIEditor_Window[1] ) 
b9 = guiCreateButton(355,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 512,190,100,100, "images/9.png", false,GUIEditor_Window[1] ) 
b10 = guiCreateButton(525,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 686,190,100,100, "images/10.png", false,GUIEditor_Window[1] ) 
b11 = guiCreateButton(700,295,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 13,325,100,100, "images/11.png", false,GUIEditor_Window[1] ) 
b12 = guiCreateButton(25,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 176,325,100,100, "images/12.png", false,GUIEditor_Window[1] ) 
b13 = guiCreateButton(190,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 342,325,100,100, "images/13.png", false,GUIEditor_Window[1] ) 
b29 = guiCreateButton(355,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 512,325,100,100, "images/14.png", false,GUIEditor_Window[1] ) 
b28 = guiCreateButton(525,430,72,23,"اخـتـيـار",false,GUIEditor_Window[1]) 
guiCreateStaticImage( 686,325,100,100, "images/15.png", false,GUIEditor_Window[1] ) 
b17 = guiCreateButton(700,430,72,24,"اخـتـيـار",false,GUIEditor_Window[1]) 
  
  
marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) 
  
addEventHandler("onClientMarkerHit",marker, 
  function (player) 
    if (getElementType (player) == "player" and (player == localPlayer)) and ((isPedInVehicle(player))) then 
    guiSetVisible(GUIEditor_Window[1],true) 
    showCursor(true) 
         end 
    end 
) 
  
  
function onGuiClick (button, state, absoluteX, absoluteY) 
  if (source == n1) then 
    triggerServerEvent ("n1", getLocalPlayer()) 
  elseif (source == n2) then 
    triggerServerEvent ("n2", getLocalPlayer()) 
  elseif (source == n3) then 
    triggerServerEvent ("n3", getLocalPlayer())  
  elseif (source == h) then 
    triggerServerEvent ("h", getLocalPlayer()) 
  elseif (source == b2) then 
    triggerServerEvent ("1", getLocalPlayer()) 
  elseif (source == b3) then 
    triggerServerEvent ("2", getLocalPlayer())   
  elseif (source == b4) then 
    triggerServerEvent ("3", getLocalPlayer())   
  elseif (source == b5) then 
    triggerServerEvent ("4", getLocalPlayer())   
  elseif (source == b6) then 
    triggerServerEvent ("5", getLocalPlayer())   
  elseif (source == b7) then 
    triggerServerEvent ("6", getLocalPlayer())   
  elseif (source == b8) then 
    triggerServerEvent ("7", getLocalPlayer())   
  elseif (source == b9) then 
    triggerServerEvent ("8", getLocalPlayer())   
  elseif (source == b10) then 
    triggerServerEvent ("9", getLocalPlayer())   
  elseif (source == b11) then 
    triggerServerEvent ("10", getLocalPlayer())  
  elseif (source == b12) then 
    triggerServerEvent ("11", getLocalPlayer())  
  elseif (source == b13) then 
    triggerServerEvent ("12", getLocalPlayer())  
  elseif (source == b29) then 
    triggerServerEvent ("13", getLocalPlayer())  
  elseif (source == b28) then 
    triggerServerEvent ("14", getLocalPlayer())  
  elseif (source == b17) then 
    triggerServerEvent ("15", getLocalPlayer())  
  elseif (source == b14) then 
    triggerServerEvent ("16", getLocalPlayer())  
  elseif (source == b15) then 
    triggerServerEvent ("17", getLocalPlayer())      
  end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 

عليك احداثيات الماركر بس ذذ سطر : 51

Link to comment
وابيكم يا شباب تحددون لي الاحداثيات حقت الماركر وشكرا وابيكم تضيفون لما حد يتري شيء بففلوس كل شيء ب350

وكمان لو سمحتم ابي الجنوط نفسها عشانها مهي مركبة عندي

:lol: ماتبي نسوي لك شاهي بعد ؟

:P:P:P:P:P

Link to comment

يا شاب ان حاولت اسوي الجنوط بس ما تبي تطلع ليش؟؟

meta.xml

   
    

wheel.lua side-client

function Replacetxd() 
        if ( guiCheckBoxGetSelected(source) ) then 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097)   
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        end 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), Replacetxd ) 

طبعا انا حاط المجلد data

والجنوط لقيتها وركبتها بس ماتبي تطلع

Link to comment
function Replacetxd() 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097)   
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), Replacetxd ) 

Link to comment
يا شاب ان حاولت اسوي الجنوط بس ما تبي تطلع ليش؟؟

meta.xml

   
    

wheel.lua side-client

function Replacetxd() 
        if ( guiCheckBoxGetSelected(source) ) then 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097)   
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        end 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), Replacetxd ) 

طبعا انا حاط المجلد data

والجنوط لقيتها وركبتها بس ماتبي تطلع

function Replacetxd() 
            txd = engineLoadTXD("data/wheel_gn1.txd", 1074 ) 
            engineImportTXD(txd, 1074) 
            dff = engineLoadDFF("data/wheel_gn1.dff", 1074) 
            engineReplaceModel(dff, 1074) 
  
            txd = engineLoadTXD("data/wheel_gn2.txd", 1075 ) 
            engineImportTXD(txd, 1075) 
            dff = engineLoadDFF("data/wheel_gn2.dff", 1075) 
            engineReplaceModel(dff, 1075) 
    
            txd = engineLoadTXD("data/wheel_gn3.txd", 1076 ) 
            engineImportTXD(txd, 1076) 
            dff = engineLoadDFF("data/wheel_gn3.dff", 1076) 
            engineReplaceModel(dff, 1076) 
  
            txd = engineLoadTXD("data/wheel_gn4.txd", 1077 ) 
            engineImportTXD(txd, 1077) 
            dff = engineLoadDFF("data/wheel_gn4.dff", 1077) 
            engineReplaceModel(dff, 1077) 
  
            txd = engineLoadTXD("data/wheel_gn5.txd", 1078 ) 
            engineImportTXD(txd, 1078) 
            dff = engineLoadDFF("data/wheel_gn5.dff", 1078) 
            engineReplaceModel(dff, 1078) 
  
            txd = engineLoadTXD("data/wheel_lr1.txd", 1079 ) 
            engineImportTXD(txd, 1079) 
            dff = engineLoadDFF("data/wheel_lr1.dff", 1079) 
            engineReplaceModel(dff, 1079) 
  
            txd = engineLoadTXD("data/wheel_lr2.txd", 1080 ) 
        engineImportTXD(txd, 1080) 
        dff = engineLoadDFF("data/wheel_lr2.dff", 1080) 
        engineReplaceModel(dff, 1080) 
  
         txd = engineLoadTXD("data/wheel_lr3.txd", 1081 ) 
         engineImportTXD(txd, 1081) 
          dff = engineLoadDFF("data/wheel_lr3.dff", 1081) 
         engineReplaceModel(dff, 1081) 
  
         txd = engineLoadTXD("data/wheel_lr4.txd", 1082 ) 
          engineImportTXD(txd, 1082) 
         dff = engineLoadDFF("data/wheel_lr4.dff", 1082) 
         engineReplaceModel(dff, 1082) 
  
          txd = engineLoadTXD("data/wheel_lr5.txd", 1083) 
         engineImportTXD(txd, 1083) 
         dff = engineLoadDFF("data/wheel_lr5.dff", 1083) 
          engineReplaceModel(dff, 1083) 
  
          txd = engineLoadTXD("data/wheel_sr1.txd", 1084 ) 
         engineImportTXD(txd, 1084) 
         dff = engineLoadDFF("data/wheel_sr1.dff", 1084) 
        engineReplaceModel(dff, 1084) 
  
          txd = engineLoadTXD("data/wheel_sr2.txd", 1085 ) 
          engineImportTXD(txd, 1085) 
         dff = engineLoadDFF("data/wheel_sr2.dff", 1085) 
          engineReplaceModel(dff, 1085) 
  
          txd = engineLoadTXD("data/wheel_sr3.txd", 1096 ) 
        engineImportTXD(txd, 1096) 
         dff = engineLoadDFF("data/wheel_sr3.dff", 1096) 
         engineReplaceModel(dff, 1096) 
  
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
        engineImportTXD(txd, 1097) 
        dff = engineLoadDFF("data/wheel_sr4.dff", 1097) 
        engineReplaceModel(dff, 1097)   
        txd = engineLoadTXD("data/wheel_sr4.txd", 1097 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( ), Replacetxd ) 

Link to comment

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...