NoviceWithManyProblems

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

2 Neutral

About NoviceWithManyProblems

  • Rank
    Square

Recent Profile Visitors

67 profile views
  1. Hi! Where is this text in code? this is the default mta scoreboard, I was looking for the text "hold rmb" but nothing like that in any file. Scoreboard: https://gofile.io/?c=3jvKVx
  2. yes, music start play correctly but only person who start this can hear music. All works good, no problems in DB3 - music play correctly but I one person who can hear this music I want everyone to hear her
  3. @IIYAMA do you need more informations? please help to me.
  4. I did it 1: 1 as you specified, checked from another computer, the same does not work, someone play something - I can't hear, I play something - he can't hear
  5. Code: CLIENT: triggerServerEvent("musics", root) SERVER: addEvent("musics", true) addEventHandler("musics", root, function() triggerClientEvent("music", root) end) CLIENT: (...) addEvent("music", true) addEventHandler("music", root, function() local url = guiGetText(edit) sound = playSound3D(tostring(url), x, y, z, true) setSoundMaxDistance(sound, 100) exports.bone_attach:attachElementToBone(sound, player, 11, 0, 0, 0.4, 180) (...) after calling this code, play3DSound can be heard only by the person who called it. Please help to me.
  6. does not work, the object does not create at all, no errors in db3
  7. I wanted to do something like this: and i have db3 error: (nice cut) code: addCommandHandler("test", function(plr, cmd) local x, y, z = getElementPosition(plr) obj = createObject(1234, x, y, z) addEvent("trigger", true) addEventHandler("trigger", root, function() destroyElement(obj) end) end)
  8. how is difference between cancelEvent() and return?
  9. I maked something like this: addEventHandler("onColShapeHit", bank_col, function(he, md) if he == player then outputChatBox("good") else cancelEvent() end end) but this doesn't work. I solved it myself Working code: addEventHandler("onColShapeHit", bank_col, function(he, md) if getElementType(he) == "ped" then cancelEvent() else outputChatBox("good") end end)
  10. It doesn't cause any problem, I just did something like that. createBlip(v[1], v[2], v[3], 17, 1, r, g, b, a, 0, 320) Script is on server (before client) side, and still doesn't work. Blip it is being created right. Current code: local drivethru = { {2376.21, -1908.87, 13.11}, {2409.42, -1488.03, 23.56}, {789.30, -1619.01, 13.11} } function usunGui() outputChatBox("test2") end function triggerujKupno() outputChatBox("test") end local index = 1; local m_dthru = {}; for k,v in ipairs(drivethru) do m_dthru[index] = createMarker(v[1], v[2], v[3]-1, "cylinder", 4.0, 255, 255, 0, 200) createBlip(v[1], v[2], v[3], 17, 1, r, g, b, a, 0, 320) index = index + 1; end addEventHandler("onMarkerHit", root, function(hitElement, matchingDimension) if (source == m_dthru) then if ((getElementType(hitElement) == "vehicle") and matchingDimension) then triggerujKupno() end end end ) addEventHandler("onMarkerLeave", root, function(leaveElement, matchingDimension) if (source == m_dthru) then if ((getElementType(leaveElement) == "vehicle") and matchingDimension) then usunGui() end end end ) Result in game: https://i.imgur.com/SDJVerr.mp4
  11. Now nothing appears, no errors in DB3, enlargement of the marker did nothing.
  12. 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.
  13. 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?
  14. 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!
  15. 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ć.