local Items = {
{'المشي على الماء'},
{'الطيران بالسيارة'},
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
wnd = guiCreateWindow(476, 266, 334, 402, "لوحـة التحكم", false)
gridlist = guiCreateGridList(9, 24, 315, 304, false, wnd)
guiGridListAddColumn(gridlist, "الأسم", 0.9)
for _,v in ipairs ( Items ) do
local aRow = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , aRow , 1 , v[1] , false , false )
end
okay = guiCreateButton(28, 337, 112, 48, "تنفيـذ", false, wnd)
close = guiCreateButton(193, 338, 112, 48, "أغلاق", false, wnd)
end
)
addEventHandler('onClientGUIClick',resourceRoot, function ( )
if ( source == okay ) then
if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then
local Item = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ) , 1 )
if ( Item == 'المشي على الماء' ) then
setWorldSpecialPropertyEnabled ('hovercars',true)
elseif ( Item == 'الطيران بالسيارة' ) then
setWorldSpecialPropertyEnabled('aircars',true)
end
end
end
end)