Jump to content

NoviceWithManyProblems

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by NoviceWithManyProblems

  1. Now nothing appears, no errors in DB3, enlargement of the marker did nothing.
  2. it looks like this - https://i.imgur.com/rNkuuvG.mp4 .I tried to do it with createColCuboid but it happens the same as before, the @ Bilal135 way does not work.
  3. Thanks, it works. But I have next question - when I enter the marker the text appears twice, and when I go on foot it is ok, how can I deal with it?
  4. local drivethru = { {2376.21, -1908.87, 13.11}, {2409.42, -1488.03, 23.56}, {789.30, -1619.01, 13.11} } for k,v in ipairs(drivethru) do m_dthru = createMarker(v[1], v[2], v[3]-1, "cylinder", 2.0, 255, 255, 0, 200) createBlipAttachedTo(m_dthru, 17, 1, r, g, b, a, 0, 300) addEventHandler("onMarkerLeave", m_dthru, usunGui, false) addEventHandler("onMarkerHit", m_dthru, triggerujKupno, false) end function usunGui() outputChatBox("test2") end function triggerujKupno() outputChatBox("test") end That's error: Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] Please help to me!
  5. Spróbuj tego: function onChat(player,command,...) local px,py,pz=getElementPosition(player) local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then local text=table.concat({...}, " ") outputChatBox("#00FFFF[Twitter]"..nick..": #ffffff"..text,v,r,g,b,true) end end end addCommandHandler("Twitter",onChat) addCommandHandler("twt", onChat) Jak coś to resztę zostaw, tylko poprawiłem tą funkcję i zobacz czy działa. U mnie na lokalnym serwerze działa nie ma nic w db3, ale nie mam drugiej osoby żeby to sprawdzić.
  6. I have a Issue that I can't solve. Here's code: CLIENT g = 0 addCommandHandler("auto", function(plr, cmd) if g == 0 then g = 1 local screenW, screenH = guiGetScreenSize() okno = guiCreateWindow((screenW - 580) / 2, (screenH - 550) / 2, 580, 550, "Stwórz pojazd", false) guiWindowSetSizable(okno, false) guiSetAlpha(okno, 0.81) stworz = guiCreateButton(103, 401, 374, 109, "Stwórz", false, okno) guiSetProperty(stworz, "NormalTextColour", "FFAAAAAA") id = guiCreateEdit((580 - 378) / 2, (550 - 84) / 2, 378, 84, "ID POJAZDU", false, okno) showCursor(true) x, y, z = getElementPosition(localPlayer) addEventHandler("onClientGUIClick", stworz, triggeruj, false) else g = 0 guiSetVisible(okno, false) guiSetVisible(stworz, false) guiSetVisible(id, false) showCursor(false) end end) function triggeruj(button) if button == "left" then local auto = guiGetText(id) auto = tonumber(auto) triggerServerEvent("triggerujZrespienie", root, x, y, z) end end SERVER function zrespFurke(auto, x, y, z) createVehicle(auto, x, y, z) end addEvent("triggerujZrespienie", true) addEventHandler("triggerujZrespienie", resourceRoot, zrespFurke) Please help to me!
×
×
  • Create New...