السلام عليكم ورحمة الله وبركاته ,
اسعد الله صباحكم بكل خير ,
ي شباب 3 ساعات في القريد ليست والله ولا ضبطت
ابعرف وين الخطأ
Client side :
------------------------
--Handl
------------------------
Wzn = {
{"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"},
{"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"},
{"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"},
{"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"},
{"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"},
{"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"},
{"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"},
{"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"},
{"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"},
{"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"},
{"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"},
{"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"},
{"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"},
{"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"},
}
------------------------
--Window
------------------------
GUIEditor = {
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false)
guiWindowSetSizable(wnd, false)
guiSetAlpha(wnd, 1.00)
guiSetVisible( wnd, false )
guiSetProperty(wnd, "CaptionColour", "FFF2E407")
btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd)
guiSetProperty(btn, "NormalTextColour", "FF0AF473")
grd = guiCreateGridList(9, 26, 215, 251, false, wnd)
col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9)
GUIEditor.label[1] = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd)
guiLabelSetColor(GUIEditor.label[1], 245, 114, 8 )
GUIEditor.label[2] = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd)
guiLabelSetColor(GUIEditor.label[2], 241, 157, 11)
GUIEditor.label[3] = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd)
guiSetFont(GUIEditor.label[3], "sa-header")
guiLabelSetColor(GUIEditor.label[3], 32, 241, 10)
end
)
-----------------
--
-----------------
--------- الديبوق يقول هنا لكن والله ماعرفت كيف اصلحه
for k,g in ipairs ( Wzn ) do
row = guiGridListAddRow(grd)
guiGridListSetItemText(grd,row,1,g[1],false,false)
guiGridListSetItemColor(grd,row,1,0,255,255)
end
addEventHandler("onClientGUIClick",root,
function ()
local select = guiGridListGetSelectedItem(grd)
if source == btn then
if select ~= -1 then
if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end
setTimer(function()
guiSetVisible (wnd, false)
end,1000,1,true)
outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0)
else
outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0)
end
end
end
)