بويكا Posted February 14, 2015 Share Posted February 14, 2015 (edited) ابي اللوحة هاذي اللي سواهأ برستيج تفتح بماركر وللسيارات اسامي هل صح اللي سويته ؟ وشكرآ .-. كلينت 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 February 14, 2015 by Guest Link to comment
xAbO-d7mY Posted February 14, 2015 Share Posted February 14, 2015 ججرب -- 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
#MostafaSaadi Posted February 14, 2015 Share Posted February 14, 2015 عرف سورس مع اف 6 Link to comment
xAbO-d7mY Posted February 14, 2015 Share Posted February 14, 2015 ججرب ذذ طيب -- 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
#MostafaSaadi Posted February 14, 2015 Share Posted February 14, 2015 جرب -- 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
بويكا Posted February 14, 2015 Author Share Posted February 14, 2015 -- 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
بويكا Posted February 14, 2015 Author Share Posted February 14, 2015 -- 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
xAbO-d7mY Posted February 14, 2015 Share Posted February 14, 2015 وش يظهر لك في الديبوق ؟ Link to comment
xAbO-d7mY Posted February 14, 2015 Share Posted February 14, 2015 +1 وكيف تحط الـ Vehicle في الكولمن 1 و الكولمن 1 حق الارقام 1- 2- 3- الخخ .. Link to comment
بويكا Posted February 14, 2015 Author Share Posted February 14, 2015 وش دخلني كود برستيج انا عدلت سويت اسامي للمواتر والمارركر جيت هنآ Link to comment
بويكا Posted February 15, 2015 Author Share Posted February 15, 2015 وشش صآر ؟ م حد هـ نآ Link to comment
بويكا Posted February 15, 2015 Author Share Posted February 15, 2015 ابي الموضوع يغلق !! افدت نفسي بنفسي وشكرا على تعبتهم مـعي Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now