Jump to content

مساعدهـ


Recommended Posts

ابي اللوحة هاذي اللي سواهأ برستيج

تفتح بماركر

وللسيارات اسامي هل صح اللي سويته ؟

وشكرآ .-.

كلينت

local Key = "F6" 
  
-- Client Side # 
  
cars = { 
    {'سوناتا', 598}, 
    {'name', 597}, 
    {'name', 596}, 
    {'name', 523}, 
    {'name', 599}, 
    {'name', 427}, 
  --{'carName', carID}, 
} 
  
Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
guiSetVisible(Wnd,false) 
centerWindow(Wnd) 
guiWindowSetMovable(Wnd, false) 
guiWindowSetSizable(Wnd, false) 
guiSetAlpha(Wnd, 1.00) 
guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFFBE600") 
label = guiCreateLabel(8, 290, 153, 21, "", false, Wnd) 
guiSetFont(label, "default-bold-small") 
guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
  
for i,v in ipairs (cars) do 
    local row = guiGridListAddRow ( gridlist) 
    guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
    guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
    guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
    guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
    guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
    guiSetFont(gridlist,"default-bold-small") 
end 
  
  
addEventHandler("onClientGUIClick",button,  
function ()  
local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh)  
playSoundFrontEnd(33) 
guiSetVisible(Wnd,false) 
showCursor(false) 
end,false) 
  
bindKey(Key,"down", 
function () 
    guiSetVisible(Wnd,not guiGetVisible(Wnd)) 
    showCursor(guiGetVisible(Wnd)) 
     if ( guiGetVisible(Wnd) == true ) then 
             guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
               end 
end 
) 

Edited by Guest
Link to comment

ججرب --

local Key = "F6" 
  
-- Client Side # 
  
cars = { 
    {'سوناتا', 598}, 
    {'name', 597}, 
    {'name', 596}, 
    {'name', 523}, 
    {'name', 599}, 
    {'name', 427}, 
  --{'carName', carID}, 
} 
  
Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
guiSetVisible(Wnd,false) 
centerWindow(Wnd) 
guiWindowSetMovable(Wnd, false) 
guiWindowSetSizable(Wnd, false) 
guiSetAlpha(Wnd, 1.00) 
guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFFBE600") 
label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) 
guiSetFont(label, "default-bold-small") 
guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
  
for i,v in ipairs (cars) do 
    local row = guiGridListAddRow ( gridlist) 
    guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
    guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
    guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
    guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
    guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
    guiSetFont(gridlist,"default-bold-small") 
end 
  
  
addEventHandler("onClientGUIClick",button,  
function ()  
local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh)  
playSoundFrontEnd(33) 
guiSetVisible(Wnd,false) 
showCursor(false) 
end,false) 
  
bindKey(Key,"down", 
function () 
    guiSetVisible(Wnd,not guiGetVisible(Wnd)) 
    showCursor(guiGetVisible(Wnd)) 
     if ( guiGetVisible(Wnd) == true ) then 
             guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
               end 
end 
) 
  
local marker = createMarker (x,y,z, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته 
  
addEventHandler("onClientMarkerHit", root, function(hit) 
    if source == marker then -- الماركر 
        if hit == localPlayer then -- يفتح للاعب نفسة 
 guiSetVisible(Wnd,true) -- يفتح النافذة 
 showCursor(true) -- يشغل الماوس (المؤشر) 
        end 
    end 
end) 
  

ب النسبة لـ أسامي السيارات أتوقع ممتازة كذآ

Link to comment

ججرب ذذ طيب

  
-- Client Side # 
  
cars = { 
    {'سوناتا', 598}, 
    {'name', 597}, 
    {'name', 596}, 
    {'name', 523}, 
    {'name', 599}, 
    {'name', 427}, 
  --{'carName', carID}, 
} 
  
Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
guiSetVisible(Wnd,false) 
centerWindow(Wnd) 
guiWindowSetMovable(Wnd, false) 
guiWindowSetSizable(Wnd, false) 
guiSetAlpha(Wnd, 1.00) 
guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFFBE600") 
label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) 
guiSetFont(label, "default-bold-small") 
guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
  
for i,v in ipairs (cars) do 
    local row = guiGridListAddRow ( gridlist) 
    guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
    guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
    guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
    guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
    guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
    guiSetFont(gridlist,"default-bold-small") 
end 
  
  
addEventHandler("onClientGUIClick",button,  
function ()  
local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh)  
playSoundFrontEnd(33) 
guiSetVisible(Wnd,false) 
showCursor(false) 
end,false) 
  
local marker = createMarker (x,y,z, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته 
  
addEventHandler("onClientMarkerHit", root, function(hit) 
    if source == marker then -- الماركر 
        if hit == localPlayer then -- يفتح للاعب نفسة 
 guiSetVisible(Wnd,true) -- يفتح النافذة 
 showCursor(true) -- يشغل الماوس (المؤشر) 
        end 
    end 
end) 
  

ششوف الحين كيف ؟

Link to comment

جرب

      
    -- Client Side # 
      
    cars = { 
        {'سوناتا', 598}, 
        {'name', 597}, 
        {'name', 596}, 
        {'name', 523}, 
        {'name', 599}, 
        {'name', 427}, 
      --{'carName', carID}, 
    } 
      
    Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
    guiSetVisible(Wnd,false) 
    centerWindow(Wnd) 
    guiWindowSetMovable(Wnd, false) 
    guiWindowSetSizable(Wnd, false) 
    guiSetAlpha(Wnd, 1.00) 
    guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
    gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
    guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
    button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
    guiSetFont(button, "default-bold-small") 
    guiSetProperty(button, "NormalTextColour", "FFFBE600") 
    label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) 
    guiSetFont(label, "default-bold-small") 
    guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
      
    for i,v in ipairs (cars) do 
        local row = guiGridListAddRow ( gridlist) 
        guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
        guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
        guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
        guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
        guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
        guiSetFont(gridlist,"default-bold-small") 
    end 
      
      
    addEventHandler("onClientGUIClick",button, 
    function () 
    local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
     if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
    triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) 
    playSoundFrontEnd(33) 
    guiSetVisible(wnd,false) 
    showCursor(false) 
    end,false) 
      
    local marker = createMarker (x,y,z, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته 
      
    addEventHandler("onClientMarkerHit", root, function(hit) 
        if source == marker then -- الماركر 
            if hit == localPlayer then -- يفتح للاعب نفسة 
     guiSetVisible(wnd,true) -- يفتح النافذة 
     showCursor(true) -- يشغل الماوس (المؤشر) 
            end 
        end 
    end) 
      

Link to comment
-- Client Side # 
  
cars = { 
    {'سوناتا', 598}, 
    {'name', 597}, 
    {'name', 596}, 
    {'name', 523}, 
    {'name', 599}, 
    {'name', 427}, 
  --{'carName', carID}, 
} 
  
Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
guiSetVisible(Wnd,false) 
centerWindow(Wnd) 
guiWindowSetMovable(Wnd, false) 
guiWindowSetSizable(Wnd, false) 
guiSetAlpha(Wnd, 1.00) 
guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFFBE600") 
label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) 
guiSetFont(label, "default-bold-small") 
guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
  
for i,v in ipairs (cars) do 
    local row = guiGridListAddRow ( gridlist) 
    guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
    guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
    guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
    guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
    guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
    guiSetFont(gridlist,"default-bold-small") 
end 
  
  
addEventHandler("onClientGUIClick",button, 
function () 
local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) 
playSoundFrontEnd(33) 
guiSetVisible(Wnd,false) 
showCursor(false) 
end,false) 
  
  
 local marker = createMarker ( 1103, 1286, 10, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته 
  
addEventHandler("onClientMarkerHit", root, function(hit) 
    if source == marker then -- الماركر 
        if hit == localPlayer then -- يفتح للاعب نفسة 
 guiSetVisible(Wnd,true) -- يفتح النافذة 
 showCursor(true) -- يشغل الماوس (المؤشر) 
        end 
    end 
end) 

ما اششتغل

Link to comment
-- Client Side # 
  
cars = { 
    {'سوناتا', 598}, 
    {'name', 597}, 
    {'name', 596}, 
    {'name', 523}, 
    {'name', 599}, 
    {'name', 427}, 
  --{'carName', carID}, 
} 
  
Wnd = guiCreateWindow(525, 157, 267, 315, "( Server Vehicle | مركبات الروم )", false) 
guiSetVisible(Wnd,false) 
centerWindow(Wnd) 
guiWindowSetMovable(Wnd, false) 
guiWindowSetSizable(Wnd, false) 
guiSetAlpha(Wnd, 1.00) 
guiSetProperty(Wnd, "CaptionColour", "FF0388F8") 
gridlist = guiCreateGridList(10, 22, 245, 229, false, Wnd) 
guiGridListAddColumn(gridlist, "Vehicles | المركبات", 0.9) 
button = guiCreateButton(35, 261, 195, 27, "Create it! | اخذ المركبة #", false, Wnd) 
guiSetFont(button, "default-bold-small") 
guiSetProperty(button, "NormalTextColour", "FFFBE600") 
label = guiCreateLabel(8, 290, 153, 21, "Created By Mr.Pres[T]ege ", false, Wnd) 
guiSetFont(label, "default-bold-small") 
guiLabelSetColor(label,math.random(0, 255), math.random(0, 255), math.random(0, 255)) 
  
for i,v in ipairs (cars) do 
    local row = guiGridListAddRow ( gridlist) 
    guiGridListSetItemText ( gridlist, row, 1, i.."-", false, true) 
    guiGridListSetItemText ( gridlist, row, 2, v[1], false, true) 
    guiGridListSetItemData ( gridlist, row, 2, v[2] ) 
    guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) 
    guiGridListSetItemColor ( gridlist, row,1, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
    guiSetFont(gridlist,"default-bold-small") 
end 
  
  
addEventHandler("onClientGUIClick",button, 
function () 
local Veh = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) 
 if Veh == "" then return outputChatBox("Please Chose Vehicle!",math.random(0, 255), math.random(0, 255), math.random(0, 255),true) end 
triggerServerEvent("When_asked_to_create_a_vehicle",localPlayer,Veh) 
playSoundFrontEnd(33) 
guiSetVisible(Wnd,false) 
showCursor(false) 
end,false) 
  
  
 local marker = createMarker ( 1103, 1286, 10, "cylinder", 1.7, 0, 255, 0, 100 ) -- الماركر واحداثياته 
  
addEventHandler("onClientMarkerHit", root, function(hit) 
    if source == marker then -- الماركر 
        if hit == localPlayer then -- يفتح للاعب نفسة 
 guiSetVisible(Wnd,true) -- يفتح النافذة 
 showCursor(true) -- يشغل الماوس (المؤشر) 
        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...