Jump to content

مطلوب مساعدة باكمال كود


Recommended Posts

انا عملت لوحة GUI

باقيلي ابرمجها ص2 طلب صعب بس ما عرفت اعمله كامل كود الوحة

  
GUIEditor = { 
    checkbox = {}, 
    label = {}, 
    window = {}, 
    tabpanel = {}, 
    radiobutton = {}, 
    button = {}, 
    tab = {}, 
    scrollbar = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(544, 191, 285, 368, "GHOST.vechicle", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.94) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0802FC") 
  
        GUIEditor.button[1] = guiCreateButton(10, 306, 122, 52, "cancel", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        GUIEditor.button[2] = guiCreateButton(142, 306, 127, 52, "select", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "sa-header") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 17, 97, 30, false, GUIEditor.window[1]) 
  
        GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) 
  
        GUIEditor.tabpanel[2] = guiCreateTabPanel(52, 24, 64, 33, false, GUIEditor.window[1]) 
  
        GUIEditor.tab[2] = guiCreateTab("Tab", GUIEditor.tabpanel[2]) 
  
        GUIEditor.checkbox[1] = guiCreateCheckBox(9, 26, 266, 275, "", true, false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(56, 44, 167, 188, "", false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[1] = guiCreateScrollBar(263, 30, 12, 276, true, false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[2] = guiCreateScrollBar(273, 23, 2, 283, true, false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[3] = guiCreateScrollBar(9, 24, 15, 272, false, false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[4] = guiCreateScrollBar(268, 27, 7, 15, false, false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[5] = guiCreateScrollBar(280, 23, 0, 15, false, false, GUIEditor.window[1]) 
        GUIEditor.scrollbar[6] = guiCreateScrollBar(259, 29, 16, 268, false, false, GUIEditor.window[1]) 
        GUIEditor.radiobutton[1] = guiCreateRadioButton(9, 21, 242, 280, "", false, GUIEditor.window[1]) 
        guiRadioButtonSetSelected(GUIEditor.radiobutton[1], true) 
        GUIEditor.memo[1] = guiCreateMemo(9, 21, 250, 38, "welcome in ghost car gui keep calm :D", false, GUIEditor.window[1]) 
        guiSetAlpha(GUIEditor.memo[1], 0.66) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.label[2] = guiCreateLabel(7, 55, 748, 248, "", false, GUIEditor.window[1])     
    end 
) 
  

يلي يقدر يساعدني ما يقصر يتركلي مكان

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

Link to comment
انت كل اللي سويته انك صممت اللوحة !

و القسم غلط !

:oops::o

شفت كود بس ما اعرف اذا شغال وشفته مركب

client

GUIEditor_Window = {} 
GUIEditor_Marker = {} 
GUIEditor_Button = {} 
GUIEditor_Grid = {} 
vehicleId = {562,411,565,503,431,522,571,487,469} 
GUIEditor_Marker[1] = createMarker( 2062.3999023438, -2870.3999023438, 11, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[2] = createMarker( 1692.1005859375, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[3] = createMarker( 1697.5015869141, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
local groupName = 'GHOST' 
local x,y = guiGetScreenSize() 
local x = x - 208 
local y = y - 321 
GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) 
column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
for i,id in ipairs ( vehicleId ) do 
guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) 
end 
  
  
addEventHandler ("onClientMarkerHit", root,  
function( player ) 
    if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == groupName then 
        for i,v in ipairs( GUIEditor_Marker ) do 
            if ( source == v ) then 
                x999,y999,z999 = getElementPosition( localPlayer )  
                if z999 < 80 and z999 > 74 then  
                setPedFrozen ( localPlayer, true ) 
                guiSetVisible(GUIEditor_Window[1],true) 
                showCursor( true ) 
                end 
            end 
        end 
    end  
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function() 
    if ( source == GUIEditor_Button[1] ) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor( false ) 
        setPedFrozen ( localPlayer, false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
        local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) 
        triggerServerEvent('gvoa', getLocalPlayer(), name) 
        guiSetVisible(GUIEditor_Window[1],false) 
        setPedFrozen ( localPlayer, false ) 
        showCursor( false ) 
    end 
end 
) 
  

server

AircraftIdSpawn = { 
{ 1632.2233886719, 1072.5324707031, 78.613006591797 }, 
{ 1659.8581542969, 1072.5324707031, 78.612922668457 }, 
{ 1683.9832763672, 1072.5324707031, 78.611885070801 }, 
{ 1704.2257080078, 1072.5324707031, 78.611885070801 } 
} 
  
abady1 = createMarker( 1710.7998,986,76.5, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady2 = createMarker( 1774.09998,974.09998,6.7, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady3 = createMarker( 1654.6380615234, 947.18682861328, 79.218444824219, 'arrow', 1.5, 255, 0, 0, 255 ) 
abady4 = createMarker( 2196.8364257813, -1204.4274902344, 1050.0234375, 'arrow', 1.5, 255, 0, 0, 255 ) 
setElementInterior ( abady4, 6 ) 
setElementDimension ( abady4, 1219  ) 
abady5 = createMarker( 1665.0239257813, 948.65478515625, 77.218444824219, 'cylinder', 1.3, 255, 0, 0, 255 ) 
abady6 = createObject( 980, 1618.5, 1017, 79.099998474121, 0, 0, 90 ) 
abady6_1 = createMarker( 1618.5, 1017, 79.099998474121, 'cylinder', 5, 0, 0, 0, 0 ) 
createBlip( 1665.8670654297, 1004.8731689453, 80.699996948242, 23 ) 
local groupName = 'GHOST' 
  
output = function( text, element, r, g, b, vaule ) 
exports["guimessages"]:outputServer(element, text, r, g, b) 
end 
  
  
function start() 
  ob = createObject(7981, 1662, 1005, 74.699996948242, 0, 0, 0) 
  mm() 
end 
addEventHandler('onResourceStart', resourceRoot, start) 
  
function mm() 
    moveObject(ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
    setTimer(moveObject, 5000, 0, ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
end 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1779.6077880859, 974.29040527344, 7.1151790618896 ) return end 
            setElementPosition( hPlayer, 1779.6077880859, 974.29040527344, 7.1151790618896 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1705.3963623047, 985.94622802734, 77.365867614746 ) return end 
            setElementPosition( hPlayer, 1705.3963623047, 985.94622802734, 77.365867614746 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1219  ) 
            output( getPlayerName( hPlayer ) .. ' Welcome at the home of ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 1654.9460449219, 951.95379638672, 78.218444824219 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' See You', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) return end 
            setElementHealth( hPlayer, 100 ) 
            setPedArmor ( hPlayer, 100 ) 
        end 
    elseif ( source == abady6_1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1026, 79.099998474121 ) 
        end 
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1017, 79.099998474121 ) 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 2192.7319335938, -1216.6350097656, 1049.0234375 ) 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1219  ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onAbadyWasted ) 
  
TableCars = {} 
  
addEvent('gvoa', true) 
addEventHandler('gvoa', root, 
function( nameCar ) 
if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end 
local id = getVehicleIDFromName( nameCar ) 
if id == 487 or id == 469 then  
local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) 
TableCars[source] = createVehicle( id, x, y, z )  
if not TableCars[source] then  
return end  
warpPedIntoVehicle ( source, TableCars[source] )  
return end 
local x,y,z = getElementPosition( source ) 
TableCars[source] = createVehicle( id, x, y, z ) 
if not TableCars[source] then return end 
warpPedIntoVehicle ( source, TableCars[source] )    
addVehicleUpgrade(TableCars[source], 1147) 
addVehicleUpgrade(TableCars[source], 1041) 
addVehicleUpgrade(TableCars[source], 1035) 
addVehicleUpgrade(TableCars[source], 1010) 
addVehicleUpgrade(TableCars[source], 1087) 
addVehicleUpgrade(TableCars[source], 1171) 
addVehicleUpgrade(TableCars[source], 1149) 
setVehiclePaintjob(TableCars[source], 1) 
end 
) 
  
addEventHandler('onPlayerQuit', root, 
function() 
    if isElement( TableCars[source] ) then 
        destroyElement( TableCars[source] ) 
    end 
end 
) 

القسم النسب وش هو؟

انا الصراحة دفعت مليونين بسيرفر حتى يبرمجلوي مقري وقررت افك البرمجة واعمل لوحة تانية :@ وجربت وبرمجت بيت + ماركر دم ودرع + ماركر نقل

احسن ما ادفع :@ مليونين كل مرة

Link to comment
انت كل اللي سويته انك صممت اللوحة !

و القسم غلط !

:oops::o

شفت كود بس ما اعرف اذا شغال وشفته مركب

client

GUIEditor_Window = {} 
GUIEditor_Marker = {} 
GUIEditor_Button = {} 
GUIEditor_Grid = {} 
vehicleId = {562,411,565,503,431,522,571,487,469} 
GUIEditor_Marker[1] = createMarker( 2062.3999023438, -2870.3999023438, 11, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[2] = createMarker( 1692.1005859375, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[3] = createMarker( 1697.5015869141, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
local groupName = 'GHOST' 
local x,y = guiGetScreenSize() 
local x = x - 208 
local y = y - 321 
GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) 
column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
for i,id in ipairs ( vehicleId ) do 
guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) 
end 
  
  
addEventHandler ("onClientMarkerHit", root,  
function( player ) 
    if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == groupName then 
        for i,v in ipairs( GUIEditor_Marker ) do 
            if ( source == v ) then 
                x999,y999,z999 = getElementPosition( localPlayer )  
                if z999 < 80 and z999 > 74 then  
                setPedFrozen ( localPlayer, true ) 
                guiSetVisible(GUIEditor_Window[1],true) 
                showCursor( true ) 
                end 
            end 
        end 
    end  
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function() 
    if ( source == GUIEditor_Button[1] ) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor( false ) 
        setPedFrozen ( localPlayer, false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
        local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) 
        triggerServerEvent('gvoa', getLocalPlayer(), name) 
        guiSetVisible(GUIEditor_Window[1],false) 
        setPedFrozen ( localPlayer, false ) 
        showCursor( false ) 
    end 
end 
) 
  

server

AircraftIdSpawn = { 
{ 1632.2233886719, 1072.5324707031, 78.613006591797 }, 
{ 1659.8581542969, 1072.5324707031, 78.612922668457 }, 
{ 1683.9832763672, 1072.5324707031, 78.611885070801 }, 
{ 1704.2257080078, 1072.5324707031, 78.611885070801 } 
} 
  
abady1 = createMarker( 1710.7998,986,76.5, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady2 = createMarker( 1774.09998,974.09998,6.7, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady3 = createMarker( 1654.6380615234, 947.18682861328, 79.218444824219, 'arrow', 1.5, 255, 0, 0, 255 ) 
abady4 = createMarker( 2196.8364257813, -1204.4274902344, 1050.0234375, 'arrow', 1.5, 255, 0, 0, 255 ) 
setElementInterior ( abady4, 6 ) 
setElementDimension ( abady4, 1219  ) 
abady5 = createMarker( 1665.0239257813, 948.65478515625, 77.218444824219, 'cylinder', 1.3, 255, 0, 0, 255 ) 
abady6 = createObject( 980, 1618.5, 1017, 79.099998474121, 0, 0, 90 ) 
abady6_1 = createMarker( 1618.5, 1017, 79.099998474121, 'cylinder', 5, 0, 0, 0, 0 ) 
createBlip( 1665.8670654297, 1004.8731689453, 80.699996948242, 23 ) 
local groupName = 'GHOST' 
  
output = function( text, element, r, g, b, vaule ) 
exports["guimessages"]:outputServer(element, text, r, g, b) 
end 
  
  
function start() 
  ob = createObject(7981, 1662, 1005, 74.699996948242, 0, 0, 0) 
  mm() 
end 
addEventHandler('onResourceStart', resourceRoot, start) 
  
function mm() 
    moveObject(ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
    setTimer(moveObject, 5000, 0, ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
end 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1779.6077880859, 974.29040527344, 7.1151790618896 ) return end 
            setElementPosition( hPlayer, 1779.6077880859, 974.29040527344, 7.1151790618896 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1705.3963623047, 985.94622802734, 77.365867614746 ) return end 
            setElementPosition( hPlayer, 1705.3963623047, 985.94622802734, 77.365867614746 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1219  ) 
            output( getPlayerName( hPlayer ) .. ' Welcome at the home of ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 1654.9460449219, 951.95379638672, 78.218444824219 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' See You', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) return end 
            setElementHealth( hPlayer, 100 ) 
            setPedArmor ( hPlayer, 100 ) 
        end 
    elseif ( source == abady6_1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1026, 79.099998474121 ) 
        end 
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1017, 79.099998474121 ) 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 2192.7319335938, -1216.6350097656, 1049.0234375 ) 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1219  ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onAbadyWasted ) 
  
TableCars = {} 
  
addEvent('gvoa', true) 
addEventHandler('gvoa', root, 
function( nameCar ) 
if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end 
local id = getVehicleIDFromName( nameCar ) 
if id == 487 or id == 469 then  
local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) 
TableCars[source] = createVehicle( id, x, y, z )  
if not TableCars[source] then  
return end  
warpPedIntoVehicle ( source, TableCars[source] )  
return end 
local x,y,z = getElementPosition( source ) 
TableCars[source] = createVehicle( id, x, y, z ) 
if not TableCars[source] then return end 
warpPedIntoVehicle ( source, TableCars[source] )    
addVehicleUpgrade(TableCars[source], 1147) 
addVehicleUpgrade(TableCars[source], 1041) 
addVehicleUpgrade(TableCars[source], 1035) 
addVehicleUpgrade(TableCars[source], 1010) 
addVehicleUpgrade(TableCars[source], 1087) 
addVehicleUpgrade(TableCars[source], 1171) 
addVehicleUpgrade(TableCars[source], 1149) 
setVehiclePaintjob(TableCars[source], 1) 
end 
) 
  
addEventHandler('onPlayerQuit', root, 
function() 
    if isElement( TableCars[source] ) then 
        destroyElement( TableCars[source] ) 
    end 
end 
) 

القسم النسب وش هو؟

انا الصراحة دفعت مليونين بسيرفر حتى يبرمجلوي مقري وقررت افك البرمجة واعمل لوحة تانية :@ وجربت وبرمجت بيت + ماركر دم ودرع + ماركر نقل

احسن ما ادفع :@ مليونين كل مرة

برمجت مقرر ؟؟! المقر يستوي بالماب اديرتور :lol:

وبرمجت بيت؟ هادا يمكن مسوي بيت بمود البيوت قلت برجمته :lol:

Link to comment

Client !

addEvent("open", true) 
  
local GHOST = { 
    ["Sultan"] = 560, 
    ["NRG-500"] = 522, 
    ["PCJ-600"] = 461, 
    ["Jester"] = 559, 
    ["Infernus"] = 411, 
    ["Huntely"] = 579, 
    ["HotKnife"] = 434, 
    ["Euros"] = 587, 
    ["Elgy"] = 562, 
    ["Elegant"] = 507, 
    ["Cheetah"] = 415, 
    ["Bullet"] = 541, 
} 
  
Wind = guiCreateWindow(478, 201, 296, 372, "GHOST Vehicles", false) 
guiWindowSetSizable(Wind, false) 
guiSetVisible(Wind, false) 
  
GRID = guiCreateGridList(9, 21, 278, 243, false, Wind) 
guiGridListAddColumn(GRID, "Vehicle :", 0.9) 
for i = 1, 15 do 
    guiGridListAddRow(GRID) 
end 
guiGridListSetItemText(GRID, 1, 1, "Sultan", false, false) 
guiGridListSetItemText(GRID, 2, 1, "NRG-500", false, false) 
guiGridListSetItemText(GRID, 3, 1, "PCJ-600", false, false) 
guiGridListSetItemText(GRID, 4, 1, "Jester", false, false) 
guiGridListSetItemText(GRID, 5, 1, "Infernus", false, false) 
guiGridListSetItemText(GRID, 6, 1, "Huntely", false, false) 
guiGridListSetItemText(GRID, 7, 1, "HotKnife", false, false) 
guiGridListSetItemText(GRID, 8, 1, "Euros", false, false) 
guiGridListSetItemText(GRID, 9, 1, "Elgy", false, false) 
guiGridListSetItemText(GRID, 10, 1, "Elegant", false, false) 
guiGridListSetItemText(GRID, 11, 1, "Cheetah", false, false) 
guiGridListSetItemText(GRID, 12, 1, "Bullet", false, false) 
Select = guiCreateButton(9, 270, 278, 38, "Select", false, Wind) 
guiSetProperty(Select, "NormalTextColour", "FFAAAAAA") 
Close = guiCreateButton(10, 318, 277, 38, "Close", false, Wind) 
guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") 
  
addEventHandler("onClientGUIClick", root, 
function() 
if(source == Select)then 
local row, col = guiGridListGetSelectedItem(GRID) 
local Veh = guiGridListGetItemText(GRID, row, col) 
if(Veh and GHOST[Veh])then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
if(Veh == "Sultan")then 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "Cars") 
end 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "[GHOST]") 
end 
elseif(source == Close)then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
end 
end 
) 
  
addEventHandler("open", root, 
    function(state) 
        if(state == "true")then 
            guiSetVisible(Wind, true) 
            guiSetInputEnabled(true) 
        elseif(state == "false")then 
            guiSetVisible(Wind, false) 
            guiSetInputEnabled(false) 
        end 
    end 
) 

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

ملاحظه ,, السيارات جاهزه

Link to comment
انت كل اللي سويته انك صممت اللوحة !

و القسم غلط !

:oops::o

شفت كود بس ما اعرف اذا شغال وشفته مركب

client

GUIEditor_Window = {} 
GUIEditor_Marker = {} 
GUIEditor_Button = {} 
GUIEditor_Grid = {} 
vehicleId = {562,411,565,503,431,522,571,487,469} 
GUIEditor_Marker[1] = createMarker( 2062.3999023438, -2870.3999023438, 11, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[2] = createMarker( 1692.1005859375, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[3] = createMarker( 1697.5015869141, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
local groupName = 'GHOST' 
local x,y = guiGetScreenSize() 
local x = x - 208 
local y = y - 321 
GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) 
column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
for i,id in ipairs ( vehicleId ) do 
guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) 
end 
  
  
addEventHandler ("onClientMarkerHit", root,  
function( player ) 
    if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == groupName then 
        for i,v in ipairs( GUIEditor_Marker ) do 
            if ( source == v ) then 
                x999,y999,z999 = getElementPosition( localPlayer )  
                if z999 < 80 and z999 > 74 then  
                setPedFrozen ( localPlayer, true ) 
                guiSetVisible(GUIEditor_Window[1],true) 
                showCursor( true ) 
                end 
            end 
        end 
    end  
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function() 
    if ( source == GUIEditor_Button[1] ) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor( false ) 
        setPedFrozen ( localPlayer, false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
        local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) 
        triggerServerEvent('gvoa', getLocalPlayer(), name) 
        guiSetVisible(GUIEditor_Window[1],false) 
        setPedFrozen ( localPlayer, false ) 
        showCursor( false ) 
    end 
end 
) 
  

server

AircraftIdSpawn = { 
{ 1632.2233886719, 1072.5324707031, 78.613006591797 }, 
{ 1659.8581542969, 1072.5324707031, 78.612922668457 }, 
{ 1683.9832763672, 1072.5324707031, 78.611885070801 }, 
{ 1704.2257080078, 1072.5324707031, 78.611885070801 } 
} 
  
abady1 = createMarker( 1710.7998,986,76.5, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady2 = createMarker( 1774.09998,974.09998,6.7, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady3 = createMarker( 1654.6380615234, 947.18682861328, 79.218444824219, 'arrow', 1.5, 255, 0, 0, 255 ) 
abady4 = createMarker( 2196.8364257813, -1204.4274902344, 1050.0234375, 'arrow', 1.5, 255, 0, 0, 255 ) 
setElementInterior ( abady4, 6 ) 
setElementDimension ( abady4, 1219  ) 
abady5 = createMarker( 1665.0239257813, 948.65478515625, 77.218444824219, 'cylinder', 1.3, 255, 0, 0, 255 ) 
abady6 = createObject( 980, 1618.5, 1017, 79.099998474121, 0, 0, 90 ) 
abady6_1 = createMarker( 1618.5, 1017, 79.099998474121, 'cylinder', 5, 0, 0, 0, 0 ) 
createBlip( 1665.8670654297, 1004.8731689453, 80.699996948242, 23 ) 
local groupName = 'GHOST' 
  
output = function( text, element, r, g, b, vaule ) 
exports["guimessages"]:outputServer(element, text, r, g, b) 
end 
  
  
function start() 
  ob = createObject(7981, 1662, 1005, 74.699996948242, 0, 0, 0) 
  mm() 
end 
addEventHandler('onResourceStart', resourceRoot, start) 
  
function mm() 
    moveObject(ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
    setTimer(moveObject, 5000, 0, ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
end 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1779.6077880859, 974.29040527344, 7.1151790618896 ) return end 
            setElementPosition( hPlayer, 1779.6077880859, 974.29040527344, 7.1151790618896 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1705.3963623047, 985.94622802734, 77.365867614746 ) return end 
            setElementPosition( hPlayer, 1705.3963623047, 985.94622802734, 77.365867614746 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1219  ) 
            output( getPlayerName( hPlayer ) .. ' Welcome at the home of ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 1654.9460449219, 951.95379638672, 78.218444824219 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' See You', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) return end 
            setElementHealth( hPlayer, 100 ) 
            setPedArmor ( hPlayer, 100 ) 
        end 
    elseif ( source == abady6_1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1026, 79.099998474121 ) 
        end 
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1017, 79.099998474121 ) 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 2192.7319335938, -1216.6350097656, 1049.0234375 ) 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1219  ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onAbadyWasted ) 
  
TableCars = {} 
  
addEvent('gvoa', true) 
addEventHandler('gvoa', root, 
function( nameCar ) 
if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end 
local id = getVehicleIDFromName( nameCar ) 
if id == 487 or id == 469 then  
local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) 
TableCars[source] = createVehicle( id, x, y, z )  
if not TableCars[source] then  
return end  
warpPedIntoVehicle ( source, TableCars[source] )  
return end 
local x,y,z = getElementPosition( source ) 
TableCars[source] = createVehicle( id, x, y, z ) 
if not TableCars[source] then return end 
warpPedIntoVehicle ( source, TableCars[source] )    
addVehicleUpgrade(TableCars[source], 1147) 
addVehicleUpgrade(TableCars[source], 1041) 
addVehicleUpgrade(TableCars[source], 1035) 
addVehicleUpgrade(TableCars[source], 1010) 
addVehicleUpgrade(TableCars[source], 1087) 
addVehicleUpgrade(TableCars[source], 1171) 
addVehicleUpgrade(TableCars[source], 1149) 
setVehiclePaintjob(TableCars[source], 1) 
end 
) 
  
addEventHandler('onPlayerQuit', root, 
function() 
    if isElement( TableCars[source] ) then 
        destroyElement( TableCars[source] ) 
    end 
end 
) 

القسم النسب وش هو؟

انا الصراحة دفعت مليونين بسيرفر حتى يبرمجلوي مقري وقررت افك البرمجة واعمل لوحة تانية :@ وجربت وبرمجت بيت + ماركر دم ودرع + ماركر نقل

احسن ما ادفع :@ مليونين كل مرة

برمجت مقرر ؟؟! المقر يستوي بالماب اديرتور :lol:

وبرمجت بيت؟ هادا يمكن مسوي بيت بمود البيوت قلت برجمته :lol:

شايفني غبي :@

local Manstermarker = createMarker(2779,1262.4000244141,12.6, "arrow", 2, 251, 96, 3, 153)--  
addEventHandler("onMarkerHit", Manstermarker, 
    function (player) 
       if getElementType(player) == "player" then 
       if ( isPedInVehicle(player) ) then return end 
       if ( getElementData(player, "Group") ~= "GHOST" ) then 
       outputChatBox("#FF0000* This House Only For GHOST ", player, 255, 255, 0, true) 
       else 
      outputChatBox("#00ff00* #ff0000welcome home \"{SMILIES_PATH}/icon_biggrin.gif\" alt=\"\" title=\"Very Happy\" /> #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) 
      setElementInterior(player, -- s8) -->
      setElementPosition(player, -46.25793838501,1409.3812255859,1085) 
           end 
      end 
end) 
  
local Manstermarker2 = createMarker(-42.521884918213,1406.6950683594,1085, "arrow", 2, 251, 96, 3, 153) 
setElementInterior(Manstermarker2, -- s8) -->
addEventHandler("onMarkerHit", Manstermarker2, 
    function (MarkerHit) 
           if getElementType(MarkerHit) == "player" then 
           if ( getElementData(MarkerHit, "Group") ~= "GHOST" ) then 
           outputChatBox("#FF0000* This House Only For GHOST ", MarkerHit, 255, 255, 0, true) 
          else 
          setElementInterior(MarkerHit, 0) 
          setElementPosition(MarkerHit, 2781.6999511719,1253.1999511719,11.60000038147) 
         outputChatBox("#FF0000*Good By#fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) 
        end 
     end   
end) 
  

Link to comment
Client !
addEvent("open", true) 
  
local GHOST = { 
    ["Sultan"] = 560, 
    ["NRG-500"] = 522, 
    ["PCJ-600"] = 461, 
    ["Jester"] = 559, 
    ["Infernus"] = 411, 
    ["Huntely"] = 579, 
    ["HotKnife"] = 434, 
    ["Euros"] = 587, 
    ["Elgy"] = 562, 
    ["Elegant"] = 507, 
    ["Cheetah"] = 415, 
    ["Bullet"] = 541, 
} 
  
Wind = guiCreateWindow(478, 201, 296, 372, "GHOST Vehicles", false) 
guiWindowSetSizable(Wind, false) 
guiSetVisible(Wind, false) 
  
GRID = guiCreateGridList(9, 21, 278, 243, false, Wind) 
guiGridListAddColumn(GRID, "Vehicle :", 0.9) 
for i = 1, 15 do 
    guiGridListAddRow(GRID) 
end 
guiGridListSetItemText(GRID, 1, 1, "Sultan", false, false) 
guiGridListSetItemText(GRID, 2, 1, "NRG-500", false, false) 
guiGridListSetItemText(GRID, 3, 1, "PCJ-600", false, false) 
guiGridListSetItemText(GRID, 4, 1, "Jester", false, false) 
guiGridListSetItemText(GRID, 5, 1, "Infernus", false, false) 
guiGridListSetItemText(GRID, 6, 1, "Huntely", false, false) 
guiGridListSetItemText(GRID, 7, 1, "HotKnife", false, false) 
guiGridListSetItemText(GRID, 8, 1, "Euros", false, false) 
guiGridListSetItemText(GRID, 9, 1, "Elgy", false, false) 
guiGridListSetItemText(GRID, 10, 1, "Elegant", false, false) 
guiGridListSetItemText(GRID, 11, 1, "Cheetah", false, false) 
guiGridListSetItemText(GRID, 12, 1, "Bullet", false, false) 
Select = guiCreateButton(9, 270, 278, 38, "Select", false, Wind) 
guiSetProperty(Select, "NormalTextColour", "FFAAAAAA") 
Close = guiCreateButton(10, 318, 277, 38, "Close", false, Wind) 
guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") 
  
addEventHandler("onClientGUIClick", root, 
function() 
if(source == Select)then 
local row, col = guiGridListGetSelectedItem(GRID) 
local Veh = guiGridListGetItemText(GRID, row, col) 
if(Veh and GHOST[Veh])then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
if(Veh == "Sultan")then 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "Cars") 
end 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "[GHOST]") 
end 
elseif(source == Close)then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
end 
end 
) 
  
addEventHandler("open", root, 
    function(state) 
        if(state == "true")then 
            guiSetVisible(Wind, true) 
            guiSetInputEnabled(true) 
        elseif(state == "false")then 
            guiSetVisible(Wind, false) 
            guiSetInputEnabled(false) 
        end 
    end 
) 

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

ملاحظه ,, السيارات جاهزه

تعبتك معي :]

Link to comment
Client !
addEvent("open", true) 
  
local GHOST = { 
    ["Sultan"] = 560, 
    ["NRG-500"] = 522, 
    ["PCJ-600"] = 461, 
    ["Jester"] = 559, 
    ["Infernus"] = 411, 
    ["Huntely"] = 579, 
    ["HotKnife"] = 434, 
    ["Euros"] = 587, 
    ["Elgy"] = 562, 
    ["Elegant"] = 507, 
    ["Cheetah"] = 415, 
    ["Bullet"] = 541, 
} 
  
Wind = guiCreateWindow(478, 201, 296, 372, "GHOST Vehicles", false) 
guiWindowSetSizable(Wind, false) 
guiSetVisible(Wind, false) 
  
GRID = guiCreateGridList(9, 21, 278, 243, false, Wind) 
guiGridListAddColumn(GRID, "Vehicle :", 0.9) 
for i = 1, 15 do 
    guiGridListAddRow(GRID) 
end 
guiGridListSetItemText(GRID, 1, 1, "Sultan", false, false) 
guiGridListSetItemText(GRID, 2, 1, "NRG-500", false, false) 
guiGridListSetItemText(GRID, 3, 1, "PCJ-600", false, false) 
guiGridListSetItemText(GRID, 4, 1, "Jester", false, false) 
guiGridListSetItemText(GRID, 5, 1, "Infernus", false, false) 
guiGridListSetItemText(GRID, 6, 1, "Huntely", false, false) 
guiGridListSetItemText(GRID, 7, 1, "HotKnife", false, false) 
guiGridListSetItemText(GRID, 8, 1, "Euros", false, false) 
guiGridListSetItemText(GRID, 9, 1, "Elgy", false, false) 
guiGridListSetItemText(GRID, 10, 1, "Elegant", false, false) 
guiGridListSetItemText(GRID, 11, 1, "Cheetah", false, false) 
guiGridListSetItemText(GRID, 12, 1, "Bullet", false, false) 
Select = guiCreateButton(9, 270, 278, 38, "Select", false, Wind) 
guiSetProperty(Select, "NormalTextColour", "FFAAAAAA") 
Close = guiCreateButton(10, 318, 277, 38, "Close", false, Wind) 
guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") 
  
addEventHandler("onClientGUIClick", root, 
function() 
if(source == Select)then 
local row, col = guiGridListGetSelectedItem(GRID) 
local Veh = guiGridListGetItemText(GRID, row, col) 
if(Veh and GHOST[Veh])then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
if(Veh == "Sultan")then 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "Cars") 
end 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "[GHOST]") 
end 
elseif(source == Close)then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
end 
end 
) 
  
addEventHandler("open", root, 
    function(state) 
        if(state == "true")then 
            guiSetVisible(Wind, true) 
            guiSetInputEnabled(true) 
        elseif(state == "false")then 
            guiSetVisible(Wind, false) 
            guiSetInputEnabled(false) 
        end 
    end 
) 

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

ملاحظه ,, السيارات جاهزه

تعبتك معي :]

تعبك راحه !!

ملاحظه ,, عدلت في الكود شي كان خربان المهم هذا التصحيح !!

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 255, 0, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

Link to comment
انت كل اللي سويته انك صممت اللوحة !

و القسم غلط !

:oops::o

شفت كود بس ما اعرف اذا شغال وشفته مركب

client

GUIEditor_Window = {} 
GUIEditor_Marker = {} 
GUIEditor_Button = {} 
GUIEditor_Grid = {} 
vehicleId = {562,411,565,503,431,522,571,487,469} 
GUIEditor_Marker[1] = createMarker( 2062.3999023438, -2870.3999023438, 11, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[2] = createMarker( 1692.1005859375, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
GUIEditor_Marker[3] = createMarker( 1697.5015869141, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) 
local groupName = 'GHOST' 
local x,y = guiGetScreenSize() 
local x = x - 208 
local y = y - 321 
GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) 
column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) 
guiSetVisible(GUIEditor_Window[1],false) 
  
for i,id in ipairs ( vehicleId ) do 
guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) 
end 
  
  
addEventHandler ("onClientMarkerHit", root,  
function( player ) 
    if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == groupName then 
        for i,v in ipairs( GUIEditor_Marker ) do 
            if ( source == v ) then 
                x999,y999,z999 = getElementPosition( localPlayer )  
                if z999 < 80 and z999 > 74 then  
                setPedFrozen ( localPlayer, true ) 
                guiSetVisible(GUIEditor_Window[1],true) 
                showCursor( true ) 
                end 
            end 
        end 
    end  
end 
) 
  
addEventHandler('onClientGUIClick', root, 
function() 
    if ( source == GUIEditor_Button[1] ) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor( false ) 
        setPedFrozen ( localPlayer, false ) 
    elseif ( source == GUIEditor_Button[2] ) then 
        local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) 
        triggerServerEvent('gvoa', getLocalPlayer(), name) 
        guiSetVisible(GUIEditor_Window[1],false) 
        setPedFrozen ( localPlayer, false ) 
        showCursor( false ) 
    end 
end 
) 
  

server

AircraftIdSpawn = { 
{ 1632.2233886719, 1072.5324707031, 78.613006591797 }, 
{ 1659.8581542969, 1072.5324707031, 78.612922668457 }, 
{ 1683.9832763672, 1072.5324707031, 78.611885070801 }, 
{ 1704.2257080078, 1072.5324707031, 78.611885070801 } 
} 
  
abady1 = createMarker( 1710.7998,986,76.5, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady2 = createMarker( 1774.09998,974.09998,6.7, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) 
abady3 = createMarker( 1654.6380615234, 947.18682861328, 79.218444824219, 'arrow', 1.5, 255, 0, 0, 255 ) 
abady4 = createMarker( 2196.8364257813, -1204.4274902344, 1050.0234375, 'arrow', 1.5, 255, 0, 0, 255 ) 
setElementInterior ( abady4, 6 ) 
setElementDimension ( abady4, 1219  ) 
abady5 = createMarker( 1665.0239257813, 948.65478515625, 77.218444824219, 'cylinder', 1.3, 255, 0, 0, 255 ) 
abady6 = createObject( 980, 1618.5, 1017, 79.099998474121, 0, 0, 90 ) 
abady6_1 = createMarker( 1618.5, 1017, 79.099998474121, 'cylinder', 5, 0, 0, 0, 0 ) 
createBlip( 1665.8670654297, 1004.8731689453, 80.699996948242, 23 ) 
local groupName = 'GHOST' 
  
output = function( text, element, r, g, b, vaule ) 
exports["guimessages"]:outputServer(element, text, r, g, b) 
end 
  
  
function start() 
  ob = createObject(7981, 1662, 1005, 74.699996948242, 0, 0, 0) 
  mm() 
end 
addEventHandler('onResourceStart', resourceRoot, start) 
  
function mm() 
    moveObject(ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
    setTimer(moveObject, 5000, 0, ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) 
end 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1779.6077880859, 974.29040527344, 7.1151790618896 ) return end 
            setElementPosition( hPlayer, 1779.6077880859, 974.29040527344, 7.1151790618896 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1705.3963623047, 985.94622802734, 77.365867614746 ) return end 
            setElementPosition( hPlayer, 1705.3963623047, 985.94622802734, 77.365867614746 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1219  ) 
            output( getPlayerName( hPlayer ) .. ' Welcome at the home of ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            setElementPosition( hPlayer, 1654.9460449219, 951.95379638672, 78.218444824219 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' See You', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
            if isPedInVehicle( hPlayer ) then setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) return end 
            setElementHealth( hPlayer, 100 ) 
            setPedArmor ( hPlayer, 100 ) 
        end 
    elseif ( source == abady6_1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1026, 79.099998474121 ) 
        end 
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then 
        moveObject( abady6, 4000, 1618.5, 1017, 79.099998474121 ) 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 2192.7319335938, -1216.6350097656, 1049.0234375 ) 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1219  ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onAbadyWasted ) 
  
TableCars = {} 
  
addEvent('gvoa', true) 
addEventHandler('gvoa', root, 
function( nameCar ) 
if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end 
local id = getVehicleIDFromName( nameCar ) 
if id == 487 or id == 469 then  
local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) 
TableCars[source] = createVehicle( id, x, y, z )  
if not TableCars[source] then  
return end  
warpPedIntoVehicle ( source, TableCars[source] )  
return end 
local x,y,z = getElementPosition( source ) 
TableCars[source] = createVehicle( id, x, y, z ) 
if not TableCars[source] then return end 
warpPedIntoVehicle ( source, TableCars[source] )    
addVehicleUpgrade(TableCars[source], 1147) 
addVehicleUpgrade(TableCars[source], 1041) 
addVehicleUpgrade(TableCars[source], 1035) 
addVehicleUpgrade(TableCars[source], 1010) 
addVehicleUpgrade(TableCars[source], 1087) 
addVehicleUpgrade(TableCars[source], 1171) 
addVehicleUpgrade(TableCars[source], 1149) 
setVehiclePaintjob(TableCars[source], 1) 
end 
) 
  
addEventHandler('onPlayerQuit', root, 
function() 
    if isElement( TableCars[source] ) then 
        destroyElement( TableCars[source] ) 
    end 
end 
) 

القسم النسب وش هو؟

انا الصراحة دفعت مليونين بسيرفر حتى يبرمجلوي مقري وقررت افك البرمجة واعمل لوحة تانية :@ وجربت وبرمجت بيت + ماركر دم ودرع + ماركر نقل

احسن ما ادفع :@ مليونين كل مرة

من وين جايبه ><

Link to comment
Client !
addEvent("open", true) 
  
local GHOST = { 
    ["Sultan"] = 560, 
    ["NRG-500"] = 522, 
    ["PCJ-600"] = 461, 
    ["Jester"] = 559, 
    ["Infernus"] = 411, 
    ["Huntely"] = 579, 
    ["HotKnife"] = 434, 
    ["Euros"] = 587, 
    ["Elgy"] = 562, 
    ["Elegant"] = 507, 
    ["Cheetah"] = 415, 
    ["Bullet"] = 541, 
} 
  
Wind = guiCreateWindow(478, 201, 296, 372, "GHOST Vehicles", false) 
guiWindowSetSizable(Wind, false) 
guiSetVisible(Wind, false) 
  
GRID = guiCreateGridList(9, 21, 278, 243, false, Wind) 
guiGridListAddColumn(GRID, "Vehicle :", 0.9) 
for i = 1, 15 do 
    guiGridListAddRow(GRID) 
end 
guiGridListSetItemText(GRID, 1, 1, "Sultan", false, false) 
guiGridListSetItemText(GRID, 2, 1, "NRG-500", false, false) 
guiGridListSetItemText(GRID, 3, 1, "PCJ-600", false, false) 
guiGridListSetItemText(GRID, 4, 1, "Jester", false, false) 
guiGridListSetItemText(GRID, 5, 1, "Infernus", false, false) 
guiGridListSetItemText(GRID, 6, 1, "Huntely", false, false) 
guiGridListSetItemText(GRID, 7, 1, "HotKnife", false, false) 
guiGridListSetItemText(GRID, 8, 1, "Euros", false, false) 
guiGridListSetItemText(GRID, 9, 1, "Elgy", false, false) 
guiGridListSetItemText(GRID, 10, 1, "Elegant", false, false) 
guiGridListSetItemText(GRID, 11, 1, "Cheetah", false, false) 
guiGridListSetItemText(GRID, 12, 1, "Bullet", false, false) 
Select = guiCreateButton(9, 270, 278, 38, "Select", false, Wind) 
guiSetProperty(Select, "NormalTextColour", "FFAAAAAA") 
Close = guiCreateButton(10, 318, 277, 38, "Close", false, Wind) 
guiSetProperty(Close, "NormalTextColour", "FFAAAAAA") 
  
addEventHandler("onClientGUIClick", root, 
function() 
if(source == Select)then 
local row, col = guiGridListGetSelectedItem(GRID) 
local Veh = guiGridListGetItemText(GRID, row, col) 
if(Veh and GHOST[Veh])then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
if(Veh == "Sultan")then 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "Cars") 
end 
triggerServerEvent("Vehiclee", localPlayer, GHOST[Veh], "[GHOST]") 
end 
elseif(source == Close)then 
guiSetVisible(Wind, false) 
guiSetInputEnabled(false) 
end 
end 
) 
  
addEventHandler("open", root, 
    function(state) 
        if(state == "true")then 
            guiSetVisible(Wind, true) 
            guiSetInputEnabled(true) 
        elseif(state == "false")then 
            guiSetVisible(Wind, false) 
            guiSetInputEnabled(false) 
        end 
    end 
) 

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

ملاحظه ,, السيارات جاهزه

تعبتك معي :]

تعبك راحه !!

ملاحظه ,, عدلت في الكود شي كان خربان المهم هذا التصحيح !!

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 255, 0, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

الكود شغال للعصابة ولغير العصابة

في مشكلة تانية بس السيارة تطلع للسباون تكون متجهة اتجاه غلط نقدر نلفها 90 درجة؟

Link to comment
ما شاء الله

مبرمج و ما يعرف يلف السياره

هو مين قالك اني مبرمج!!!انا جاي اتعلم ض1 بس لسا بكير اتعلم باخد شي جاهز بخلص شغلي وبعدين اتعلم :oops:

!!

اوكي استخدم الكود هذا وبيلف لك السياره !!

Server !

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { x,y,z }, -- احداثيات الماركر 
    [2] = { x,y,z }, -- احداثيات الماركر 
    [3] = { x,y,z }, -- احداثيات الماركر 
    [4] = { x,y,z }, -- احداثيات الماركر 
    [5] = { x,y,z }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'Group Name' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleRotation ( vehicles[ client ], 0, 0, 90 ) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 0) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

Link to comment
--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleColor( vehicles[ client ], 255, 0, 0 ) 
                        setVehiclePaintjob(vehicles[ client ], 0) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
                        setVehicleRotation ( vehicles[ client ], 0, 0, 90 ) 
                        setVehicleColor( vehicles[ client ], 14, 127, 0 ) --  ! هنا لو تبي تغير لون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب يعني الشكل ! 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 
) 

صح ولا في اخطاءء الماركر ما يفتح لجوست يفتح للكل عدا جوست :@ السبب!؟

Edited by Guest
Link to comment
--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

صح ولا في اخطاءء الماركر ما يفتح لجوست يفتح للكل عدا جوست :@ السبب!؟

جرب

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) ~= 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

Link to comment
--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

صح ولا في اخطاءء الماركر ما يفتح لجوست يفتح للكل عدا جوست :@ السبب!؟

جرب

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) ~= 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

تم + شكرا المقر تبرمج كله بفضلك :]

Link to comment
--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) == 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

صح ولا في اخطاءء الماركر ما يفتح لجوست يفتح للكل عدا جوست :@ السبب!؟

جرب

--**************** 
-- By Manster .. 
--**************** 
  
addEvent("Vehiclee", true) 
  
Markers = { 
    [1] = { 2852.69921875,1281,10.9 }, -- احداثيات الماركر 
    [2] = { 2853,1275.69921875,10.9 }, -- احداثيات الماركر 
    [3] = { 2852.5,1269.69921875,10.9 }, -- احداثيات الماركر 
    [4] = { 2852,1263,10.9 }, -- احداثيات الماركر 
    [5] = { 2851.599609375,1257.5,10.9 }, -- احداثيات الماركر 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 255, 255, 255, 250 ) 
        end 
    end 
) 
  
addEventHandler("onMarkerHit", resourceRoot, 
    function(hitElem) 
        if(getElementType(hitElem) == "player")then 
                   if getElementData ( hitElem,'Group' ) ~= 'GHOST' then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", hitElem, 255, 255, 0, true) 
            else 
            if not(isPedInVehicle(hitElem))then 
                triggerClientEvent(hitElem, "open", hitElem, "true") 
            end 
        end 
    end 
 end 
) 
  
local vehicles = {} 
  
addEventHandler("Vehiclee", root, 
    function(model, state) 
        if(state == "Cars")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            end 
            warpPedIntoVehicle(client, vehicles[ client ]) 
        elseif(state == "[GHOST]")then 
            if(isElement(vehicles[ client ]))then 
                destroyElement(vehicles[ client ]) 
                vehicles[ client ] = nil 
            end 
            vehicles[ client ] = createVehicle(model, getElementPosition(client)) 
            warpPedIntoVehicle(client, vehicles[ client ]) 
                        setVehicleColor(vehicles[ client ], 14, 127, 0 ) -- هنا تلون السياره 
                        setVehiclePaintjob(vehicles[ client ], 2) -- هنا الباينت جوب الشكل ! 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if(vehicles[ source ])then 
            destroyElement(vehicles[ source ]) 
            vehicles[ source ] = nil 
        end 
    end 
) 

تم + شكرا المقر تبرمج كله بفضلك :]

العفو , في الخدمه !! :)

Link to comment
يمكن تشوفني يوم او يومين بطلب كود ينقل سيارة من مكان لمكان ذذ اذا عندك واحد جاهز هاته بلا عزاب اذا ما عندك ببحث عنه :)

كيف يعني ينقل سيارة !!

يعني بالتحديد كيف تبيه ينقلها :/

Link to comment
يمكن تشوفني يوم او يومين بطلب كود ينقل سيارة من مكان لمكان ذذ اذا عندك واحد جاهز هاته بلا عزاب اذا ما عندك ببحث عنه :)

كيف يعني ينقل سيارة !!

يعني بالتحديد كيف تبيه ينقلها :/

ماركر مثل هذا بس يكون للسيارة مو للشخص

الكود

   local mr11 = createMarker(  2776.3999023438,1235.5,10.800000190735,"corona",2, 255, 0, 0 ) -- مكان الماركر 
      
    addEventHandler ("onMarkerHit",mr11, 
    function ( player ) 
            if ( getElementType ( player ) ==  ( "player" ) ) then 
            if ( getElementData(player, "Group" ) ~= "GHOST" ) then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", player, 255, 255, 0, true) 
            else 
            outputChatBox("#FF0000* #00ff00leaders.parking .", player, 255, 255, 0, true) 
            setElementPosition ( player , 2814.3000488281,1344.5,40 )  -- مكان الانتقال  
        end 
    end 
end 
) 

Link to comment
   local mr11 = createMarker(  2776.3999023438,1235.5,10.800000190735,"corona",2, 255, 0, 0 ) -- مكان الماركر 
    addEventHandler ("onMarkerHit",mr11, 
    function ( vehcile ) 
            if ( getElementType ( vehcile ) ==  ( "vehcile" ) ) then 
            if ( getElementData(getVehicleOccupant(vehicle), "Group" ) ~= "GHOST" ) then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", getVehicleOccupant(vehicle), 255, 255, 0, true) 
            else 
            outputChatBox("#FF0000* #00ff00leaders.parking .", getVehicleOccupant(vehicle), 255, 255, 0, true) 
            setElementPosition ( vehicle, 2814.3000488281,1344.5,40 )  -- مكان الانتقال  
        end 
    end 
end 
) 

Link to comment
   local mr11 = createMarker(  2776.3999023438,1235.5,10.800000190735,"corona",2, 255, 0, 0 ) -- مكان الماركر 
    addEventHandler ("onMarkerHit",mr11, 
    function ( vehcile ) 
            if ( getElementType ( vehcile ) ==  ( "vehcile" ) ) then 
            if ( getElementData(getVehicleOccupant(vehicle), "Group" ) ~= "GHOST" ) then 
            outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", getVehicleOccupant(vehicle), 255, 255, 0, true) 
            else 
            outputChatBox("#FF0000* #00ff00leaders.parking .", getVehicleOccupant(vehicle), 255, 255, 0, true) 
            setElementPosition ( vehicle, 2814.3000488281,1344.5,40 )  -- مكان الانتقال  
        end 
    end 
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...