Jump to content

Booo <~ تمت الافاده من قبل


iA7bk#

Recommended Posts

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

شباب ابيكم تشوفون الخطأ الي بالمود حق تطوير

الحين لما يجي واحد يدخل الماركر بتفتح لوحه اختيار الموتر بس لما يدخلها واحد بتضهر اللوحه لكل الي بالسيرفر ليه

كلنت

GUIEditor = { 
    gridlist = {}, 
    button = {}, 
    window = {}, 
} 
GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetAlpha(GUIEditor.window[1], 1.00) 
guiSetVisible(GUIEditor.window[1], false) 
  
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) 
guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) 
for i = 1, 2 do 
    guiGridListAddRow(GUIEditor.gridlist[1]) 
end 
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) 
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) 
GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[1], "default-bold-small") 
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") 
GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[2], "default-bold-small") 
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") 
  
  
function Spawn() 
    outputChatBox ("* Welcome To Garage ",0,150,250,true) 
    setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) 
    local veh = getPlayerOccupiedVehicle(localPlayer) 
    car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) 
    ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) 
    op = createObject(14783, 1888.80005, -2624.3999, 16.6) 
    triggerServerEvent("a",localPlayer) 
    setObjectScale ( op, 2) 
    setObjectScale ( ob, 2) 
    guiSetVisible(GUIEditor.window[1], true) 
    showChat(false) 
    showCursor(true) 
setTimer(function() 
    setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
end, 500,0) 
end 
  
  
marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) 
  
addEventHandler("onClientMarkerHit", root,  
function() 
    if source == marker then 
    Spawn() 
  end 
end) 
  
addEventHandler("onClientRender",getRootElement(), 
function() 
local x,y,z = getElementRotation ( ob ) 
setElementRotation(ob,x,y,z +1) 
local x2,y2,z2 = getElementRotation ( car ) 
setElementRotation(car,x2,y2,z2 +1) 
    local x, y, z = getElementPosition(car) 
         fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) 
end) 
      
      
addEventHandler("onClientGUIClick",guiRoot, 
function() 
    if source == GUIEditor.button[2] then 
    showChat(true) 
    showCursor(false) 
    triggerServerEvent("s",localPlayer) 
    guiSetVisible(GUIEditor.window[1], false) 
    destroyElement(car) 
     
    elseif source == GUIEditor.button[1] then 
    guiSetVisible(GUIEditor.window[1], false) 
    showChat(true) 
    showCursor(false) 
    triggerServerEvent("1",localPlayer,getElementModel(car)) 
    destroyElement(car) 
end 
end) 
  
addEventHandler("onClientGUIClick",guiRoot,function()             
if source == GUIEditor.gridlist[1] then                  
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )                     
local get =  guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 )                    
if row and col and row ~= -1 and col ~= -1 then                                                            
if get == "بي ام" then                       
setElementModel(car, 405)      
  
elseif get == "كمارو" then     
setElementModel(car, 411)    
end 
end 
end 
end) 

سيرفر

addEvent("s",true) 
addEventHandler("s",getRootElement(),function() 
    setCameraTarget(source) 
    fadeCamera(source,false,1) 
    fadeCamera(source,true,3) 
end) 
  
addEvent("1",true) 
addEventHandler("1",getRootElement(),function(id) 
setCameraTarget(source) 
fadeCamera(source,false,1) 
fadeCamera(source,true,3) 
ve = createVehicle(id, 1865.8835449219,-2620.5539550781,13.546875) 
warpPedIntoVehicle(source, ve) 
if getPlayerMoney(source) >= 500000 then 
takePlayerMoney(source, 500000) 
outputChatBox("* ~| Buy [ Car ] |~",0,150,250,true) 
else 
outputChatBox("* Don't Have Money",250,0,0,true) 
end 
setVehicleDamageProof(ve, true) 
setTimer(function() 
    setVehicleColor(ve, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
end, 500,0) 
end) 

Edited by Guest
Link to comment

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

شف جرب الكود هذا

كلنت

  
  
GUIEditor = { 
  
    gridlist = {}, 
  
    button = {}, 
  
    window = {}, 
  
} 
  
GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) 
  
guiWindowSetSizable(GUIEditor.window[1], false) 
  
guiSetAlpha(GUIEditor.window[1], 1.00) 
  
guiSetVisible(GUIEditor.window[1], false) 
  
  
  
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) 
  
guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) 
  
for i = 1, 2 do 
  
    guiGridListAddRow(GUIEditor.gridlist[1]) 
  
end 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) 
  
GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") 
  
GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") 
  
  
  
  
  
function Spawn() 
  
    outputChatBox ("* Welcome To Garage ",0,150,250,true) 
  
    setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) 
  
    local veh = getPlayerOccupiedVehicle(localPlayer) 
  
    car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) 
  
    ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) 
  
    op = createObject(14783, 1888.80005, -2624.3999, 16.6) 
  
    triggerServerEvent("a",localPlayer) 
  
    setObjectScale ( op, 2) 
  
    setObjectScale ( ob, 2) 
  
    guiSetVisible(GUIEditor.window[1], true) 
  
    showChat(false) 
  
    showCursor(true) 
  
setTimer(function() 
  
    setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end 
  
  
  
  
  
marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) 
  
  
  
addEventHandler("onClientMarkerHit", root,  
function() 
    if isElementWithinMarker(getLocalPlayer(),marker) then 
    Spawn() 
  end 
end 
  
  
  
addEventHandler("onClientRender",getRootElement(), 
  
function() 
  
local x,y,z = getElementRotation ( ob ) 
  
setElementRotation(ob,x,y,z +1) 
  
local x2,y2,z2 = getElementRotation ( car ) 
  
setElementRotation(car,x2,y2,z2 +1) 
  
    local x, y, z = getElementPosition(car) 
  
         fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) 
  
end) 
  
      
  
      
  
addEventHandler("onClientGUIClick",guiRoot, 
  
function() 
  
    if source == GUIEditor.button[2] then 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("s",localPlayer) 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    destroyElement(car) 
  
     
  
    elseif source == GUIEditor.button[1] then 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("1",localPlayer,getElementModel(car)) 
  
    destroyElement(car) 
  
end 
  
end) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot,function()             
  
if source == GUIEditor.gridlist[1] then                  
  
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )                     
  
local get =  guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 )                    
  
if row and col and row ~= -1 and col ~= -1 then                                                            
  
if get == "بي ام" then                       
  
setElementModel(car, 405)      
  
  
  
elseif get == "كمارو" then     
  
setElementModel(car, 411)    
  
end 
  
end 
  
end 
  
end) 

Link to comment
وعليكم السلام ورحمة الله وبركاته

شف جرب الكود هذا

كلنت

  
  
GUIEditor = { 
  
    gridlist = {}, 
  
    button = {}, 
  
    window = {}, 
  
} 
  
GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) 
  
guiWindowSetSizable(GUIEditor.window[1], false) 
  
guiSetAlpha(GUIEditor.window[1], 1.00) 
  
guiSetVisible(GUIEditor.window[1], false) 
  
  
  
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) 
  
guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) 
  
for i = 1, 2 do 
  
    guiGridListAddRow(GUIEditor.gridlist[1]) 
  
end 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) 
  
GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") 
  
GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") 
  
  
  
  
  
function Spawn() 
  
    outputChatBox ("* Welcome To Garage ",0,150,250,true) 
  
    setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) 
  
    local veh = getPlayerOccupiedVehicle(localPlayer) 
  
    car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) 
  
    ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) 
  
    op = createObject(14783, 1888.80005, -2624.3999, 16.6) 
  
    triggerServerEvent("a",localPlayer) 
  
    setObjectScale ( op, 2) 
  
    setObjectScale ( ob, 2) 
  
    guiSetVisible(GUIEditor.window[1], true) 
  
    showChat(false) 
  
    showCursor(true) 
  
setTimer(function() 
  
    setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end 
  
  
  
  
  
marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) 
  
  
  
addEventHandler("onClientMarkerHit", root,  
function() 
    if isElementWithinMarker(getLocalPlayer(),marker) then 
    Spawn() 
  end 
end 
  
  
  
addEventHandler("onClientRender",getRootElement(), 
  
function() 
  
local x,y,z = getElementRotation ( ob ) 
  
setElementRotation(ob,x,y,z +1) 
  
local x2,y2,z2 = getElementRotation ( car ) 
  
setElementRotation(car,x2,y2,z2 +1) 
  
    local x, y, z = getElementPosition(car) 
  
         fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) 
  
end) 
  
      
  
      
  
addEventHandler("onClientGUIClick",guiRoot, 
  
function() 
  
    if source == GUIEditor.button[2] then 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("s",localPlayer) 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    destroyElement(car) 
  
     
  
    elseif source == GUIEditor.button[1] then 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("1",localPlayer,getElementModel(car)) 
  
    destroyElement(car) 
  
end 
  
end) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot,function()             
  
if source == GUIEditor.gridlist[1] then                  
  
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )                     
  
local get =  guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 )                    
  
if row and col and row ~= -1 and col ~= -1 then                                                            
  
if get == "بي ام" then                       
  
setElementModel(car, 405)      
  
  
  
elseif get == "كمارو" then     
  
setElementModel(car, 411)    
  
end 
  
end 
  
end 
  
end) 

ما ضبط والماركر ما تظهر

Link to comment

addEventHandler("onClientMarkerHit", root,  
function() 
    if source == marker then 
    Spawn() 
  end 
end) 

عدلها بـالكود هذا

addEventHandler("onClientMarkerHit", marker,  
function(pla) 
    if pla == getLocalPlayer() then 
    Spawn() 
  end 
end) 
Link to comment
تقصد استبدلها بدال هذا ؟

او حدد لي وين التغير بإي سطر

  
GUIEditor = { 
  
    gridlist = {}, 
  
    button = {}, 
  
    window = {}, 
  
} 
  
GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) 
  
guiWindowSetSizable(GUIEditor.window[1], false) 
  
guiSetAlpha(GUIEditor.window[1], 1.00) 
  
guiSetVisible(GUIEditor.window[1], false) 
  
  
  
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) 
  
guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) 
  
for i = 1, 2 do 
  
    guiGridListAddRow(GUIEditor.gridlist[1]) 
  
end 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) 
  
GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") 
  
GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") 
  
  
  
  
  
function Spawn() 
  
    outputChatBox ("* Welcome To Garage ",0,150,250,true) 
  
    setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) 
  
    local veh = getPlayerOccupiedVehicle(localPlayer) 
  
    car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) 
  
    ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) 
  
    op = createObject(14783, 1888.80005, -2624.3999, 16.6) 
  
    triggerServerEvent("a",localPlayer) 
  
    setObjectScale ( op, 2) 
  
    setObjectScale ( ob, 2) 
  
    guiSetVisible(GUIEditor.window[1], true) 
  
    showChat(false) 
  
    showCursor(true) 
  
setTimer(function() 
  
    setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end 
  
  
  
  
  
marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) 
  
  
  
  
addEventHandler("onClientMarkerHit", marker,  
  
function(pla) 
  
    if pla == getLocalPlayer() then 
  
    Spawn() 
  
  end 
  
end) 
  
  
  
addEventHandler("onClientRender",getRootElement(), 
  
function() 
  
local x,y,z = getElementRotation ( ob ) 
  
setElementRotation(ob,x,y,z +1) 
  
local x2,y2,z2 = getElementRotation ( car ) 
  
setElementRotation(car,x2,y2,z2 +1) 
  
    local x, y, z = getElementPosition(car) 
  
         fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) 
  
end) 
  
      
  
      
  
addEventHandler("onClientGUIClick",guiRoot, 
  
function() 
  
    if source == GUIEditor.button[2] then 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("s",localPlayer) 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    destroyElement(car) 
  
     
  
    elseif source == GUIEditor.button[1] then 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("1",localPlayer,getElementModel(car)) 
  
    destroyElement(car) 
  
end 
  
end) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot,function()             
  
if source == GUIEditor.gridlist[1] then                  
  
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )                     
  
local get =  guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 )                    
  
if row and col and row ~= -1 and col ~= -1 then                                                            
  
if get == "بي ام" then                       
  
setElementModel(car, 405)      
  
  
  
elseif get == "كمارو" then     
  
setElementModel(car, 411)    
  
end 
  
end 
  
end 
  
end) 

Link to comment
تقصد استبدلها بدال هذا ؟

او حدد لي وين التغير بإي سطر

  
GUIEditor = { 
  
    gridlist = {}, 
  
    button = {}, 
  
    window = {}, 
  
} 
  
GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) 
  
guiWindowSetSizable(GUIEditor.window[1], false) 
  
guiSetAlpha(GUIEditor.window[1], 1.00) 
  
guiSetVisible(GUIEditor.window[1], false) 
  
  
  
GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) 
  
guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) 
  
for i = 1, 2 do 
  
    guiGridListAddRow(GUIEditor.gridlist[1]) 
  
end 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) 
  
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) 
  
GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") 
  
GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) 
  
guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
  
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") 
  
  
  
  
  
function Spawn() 
  
    outputChatBox ("* Welcome To Garage ",0,150,250,true) 
  
    setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) 
  
    local veh = getPlayerOccupiedVehicle(localPlayer) 
  
    car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) 
  
    ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) 
  
    op = createObject(14783, 1888.80005, -2624.3999, 16.6) 
  
    triggerServerEvent("a",localPlayer) 
  
    setObjectScale ( op, 2) 
  
    setObjectScale ( ob, 2) 
  
    guiSetVisible(GUIEditor.window[1], true) 
  
    showChat(false) 
  
    showCursor(true) 
  
setTimer(function() 
  
    setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end 
  
  
  
  
  
marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) 
  
  
  
  
addEventHandler("onClientMarkerHit", marker,  
  
function(pla) 
  
    if pla == getLocalPlayer() then 
  
    Spawn() 
  
  end 
  
end) 
  
  
  
addEventHandler("onClientRender",getRootElement(), 
  
function() 
  
local x,y,z = getElementRotation ( ob ) 
  
setElementRotation(ob,x,y,z +1) 
  
local x2,y2,z2 = getElementRotation ( car ) 
  
setElementRotation(car,x2,y2,z2 +1) 
  
    local x, y, z = getElementPosition(car) 
  
         fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) 
  
end) 
  
      
  
      
  
addEventHandler("onClientGUIClick",guiRoot, 
  
function() 
  
    if source == GUIEditor.button[2] then 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("s",localPlayer) 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    destroyElement(car) 
  
     
  
    elseif source == GUIEditor.button[1] then 
  
    guiSetVisible(GUIEditor.window[1], false) 
  
    showChat(true) 
  
    showCursor(false) 
  
    triggerServerEvent("1",localPlayer,getElementModel(car)) 
  
    destroyElement(car) 
  
end 
  
end) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot,function()             
  
if source == GUIEditor.gridlist[1] then                  
  
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )                     
  
local get =  guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 )                    
  
if row and col and row ~= -1 and col ~= -1 then                                                            
  
if get == "بي ام" then                       
  
setElementModel(car, 405)      
  
  
  
elseif get == "كمارو" then     
  
setElementModel(car, 411)    
  
end 
  
end 
  
end 
  
end) 

كفووو والله ضبط يعطيك العافيه

بس عندي طلب ثاني الله لا يهينك

الحين لو اخذ موتر ورجع مره ثانيه للماركر واخذ موتر ثاني الموتر الاول ما يختفي يبقى موجود انا ابيه يختفي ويكون معه بس الموتر الثاني وكذا

اتمنى انك فهمتني واسف اذا تعبتك معي

Link to comment

كفووو والله ضبط يعطيك العافيه

بس عندي طلب ثاني الله لا يهينك

الحين لو اخذ موتر ورجع مره ثانيه للماركر واخذ موتر ثاني الموتر الاول ما يختفي يبقى موجود انا ابيه يختفي ويكون معه بس الموتر الثاني وكذا

اتمنى انك فهمتني واسف اذا تعبتك معي

كفوك الطيب الله يعآفيك

هذا طلبك الثاني

ملف سيرفر

  
addEvent("s",true) 
  
addEventHandler("s",getRootElement(),function() 
  
    setCameraTarget(source) 
  
    fadeCamera(source,false,1) 
  
    fadeCamera(source,true,3) 
  
end) 
  
  
  
addEvent("1",true) 
  
addEventHandler("1",getRootElement(),function(id) 
if getElementData(source,"vehB") and isElement(getElementData(source,"vehB")) then destroyElement(getElementData(source,"vehB")) end 
  
setCameraTarget(source) 
  
fadeCamera(source,false,1) 
  
fadeCamera(source,true,3) 
  
ve = createVehicle(id, 1865.8835449219,-2620.5539550781,13.546875) 
setElementData(source,"vehB",ve) 
warpPedIntoVehicle(source, ve) 
  
if getPlayerMoney(source) >= 500000 then 
  
takePlayerMoney(source, 500000) 
  
outputChatBox("* ~| Buy [ Car ] |~",0,150,250,true) 
  
else 
  
outputChatBox("* Don't Have Money",250,0,0,true) 
  
end 
  
setVehicleDamageProof(ve, true) 
  
setTimer(function() 
  
    setVehicleColor(ve, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end) 

Link to comment

كفوك الطيب الله يعآفيك

هذا طلبك الثاني

ملف سيرفر

  
addEvent("s",true) 
  
addEventHandler("s",getRootElement(),function() 
  
    setCameraTarget(source) 
  
    fadeCamera(source,false,1) 
  
    fadeCamera(source,true,3) 
  
end) 
  
  
  
addEvent("1",true) 
  
addEventHandler("1",getRootElement(),function(id) 
if getElementData(source,"vehB") and isElement(getElementData(source,"vehB")) then destroyElement(getElementData(source,"vehB")) end 
  
setCameraTarget(source) 
  
fadeCamera(source,false,1) 
  
fadeCamera(source,true,3) 
  
ve = createVehicle(id, 1865.8835449219,-2620.5539550781,13.546875) 
setElementData(source,"vehB",ve) 
warpPedIntoVehicle(source, ve) 
  
if getPlayerMoney(source) >= 500000 then 
  
takePlayerMoney(source, 500000) 
  
outputChatBox("* ~| Buy [ Car ] |~",0,150,250,true) 
  
else 
  
outputChatBox("* Don't Have Money",250,0,0,true) 
  
end 
  
setVehicleDamageProof(ve, true) 
  
setTimer(function() 
  
    setVehicleColor(ve, math.random(0, 255),math.random(0, 255),math.random(0, 255)) 
  
end, 500,0) 
  
end) 

اشكرك على تعاونك اخوي وما قصرت والله يجزاك الف خير على مساعدتك

تمت الافاده

مشكور #

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