Jump to content

RosGard

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

RosGard's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Запустил сервер, а его не видно в локалке
  2. вот код : local marker = createMarker(1934.1379394531, -1759.0357666016, 12.546875, "cylinder", 1.0, 38, 122, 216) addEventHandler("onClientMarkerHit", resourceRoot, function(player) Windo = guiCreateWindow(30, 375, 300, 500, "Автосалон", false) Close = guiCreateButton(200, 455, 800, 500, "Закрыть", false, Windo) CreatedBy = guiCreateLabel(80, 25, 200, 15, "Выберите авто из списка:", false, Windo) loli = guiCreateGridList(0, 0.10, 0.95, 0.70, true, Windo) column = guiGridListAddColumn(loli, "Выберите:", 0.55) colum = guiGridListAddColumn(loli, "Цена:", 0.35) lolu = guiGridListAddRow(loli, "lol", "385$") guiGridListAddRow(loli, "lolsdsd", "1000$") roo = getCameraTarget(thePlayer) setCameraMatrix(1935.3367919922, -1751.9916992188, 15.3828125, 1942.6214599609, -1752.1103515625, 13.3828125) showCursor(true) end) function onGuiClick (button) if guiGridListGetSelectedItem(loli, 1) then veh = createVehicle(500, 1942.6214599609, -1752.1103515625, 13.3828125) timer = setTimer(function() local x, y, z = getElementRotation(veh) setElementRotation(veh, x, y, z+3) end, 50, 0) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function onGuiClick (button) if (source == Close) then Enabled = false guiSetVisible (Windo, false ) showCursor(false) setCameraTarget(roo) destroyElement(veh) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) Выбора машины вообще нет, она появляется если нажать в любом месте gui. Но есть же функция guiGridListGetSelectedItem?? И еще, после закрытия не убирается машина, она остается там же на координатах, как исправить.
×
×
  • Create New...