Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Today
  3. Pessoal, estou com problemas nesse meu código eu não consigo de maneira alguma resolver o erro do blip vcs podem me ajudar corrigindo meu código para eu saber oq há de errado? Se puderem me dar uma atenção pois ainda sou iniciante em scripts e não sei se editei o script corretamente. Poderiam revisar? agradeço a atenção muito obg de coração pela humildade se puder ajudar a cada uns 5 min da esses erros ai e quando eu mato o jogador desmaiado ou curo ele costuma dar alguns erros q vo udescrever logo abaixo: Erros: Line 86: Bad argument @ 'setElementVisibleTo' [Expected element at argument 1] Line 87: Bad argument @ 'setElementVisibleTo' [Expected element at argument 1] Line 126: Bad argument @ 'setElementVisibleTo' [Expected element at argument 1] Line 127: Bad argument @ 'setElementVisibleTo' [Expected element at argument 1] Line 147: Bad Argument @ 'destroyElement' [Expected element at argument 1,got table] Tempo_Reanimar = {} blip = {} function Remove_Colete (hitElement, Danos) setPedArmor(hitElement, getPedArmor(hitElement) -Danos) end addEvent("DNL:setPedAmor(Danos)", true) addEventHandler("DNL:setPedAmor(Danos)", root, Remove_Colete) --=============================-- -------- VERIFICAR HT PED ------- --=============================-- function getHealthPlayer () for i, player in pairs (getElementsByType("player")) do if getElementHealth(player) > 0 and getElementHealth(player) < 50 then if getElementData(player, "DNL:Derrubado") == false then setElementFrozen(player, true) toggleAllControls(player, false, true, false) setElementData(player, "DNL:Derrubado", true) removePedFromVehicle(player) setPedAnimation(player, "SWEET", "Sweet_injuredloop", -1, false, false, false, true) triggerClientEvent(player, "DNL:HP_30", root) outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffLigue para o resgate #ffffffVocê está muito ferido", player, 255,255,255,true) Tempo_Reanimar = setTimer(function(player) if getElementData(player, "DNL:Derrubado") == true then setElementFrozen(player, false) toggleAllControls(player, true) killPlayer(player) setElementData(player, "DNL:Derrubado", false) outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê não foi reanimado e morreu", player, 255,255,255,true) end end, 300000, 1, player) end end if getElementHealth(player) > 50 and getElementData(player, "DNL:Derrubado") == true then setElementData(player, "DNL:Derrubado", false) setPedAnimation(player, false) toggleAllControls(player, true) setElementFrozen(player, false) triggerClientEvent(player, "DNL:Fechar_HP_30", root) takePlayerMoney(player, 3000) outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê foi reanimado e pagou $3000", player, 255,255,255,true) end end end setTimer(getHealthPlayer, 50, 0) function Verificar_Anim () for i, player in pairs (getElementsByType("player")) do if getElementHealth(player) > 0 and getElementHealth(player) < 30 then if getElementData(player, "DNL:Derrubado") == true then setPedAnimation(player, "SWEET", "Sweet_injuredloop", -1, false, false, false, true) end end end end setTimer(Verificar_Anim, 1400, 0) --=============================-- ----------- CURAR PED ----------- --=============================-- function Curar_Cidadao (source, _, id, thePlayer, command, amount) if(id) then local playerID = tonumber(id) if(playerID) then local Player_2 = getPlayerID(playerID) if isElement(Player_2) then if isObjectInACLGroup ("user."..getAccountName (getPlayerAccount(source)), aclGetGroup ( "Samu") ) then if Player_2 == source then outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê não pode se curar", source, 255,255,255,true) return end local medico_X, medico_Y, medico_Z = getElementPosition ( source ) local vitima_X, vitima_Y, vitima_Z = getElementPosition ( Player_2 ) local dist = getDistanceBetweenPoints3D ( medico_X, medico_Y, medico_Z, vitima_X, vitima_Y, vitima_Z ) if ( dist < 5 ) then if getElementData(source, "DNL:Curando") == false then if getElementData(Player_2, "DNL:Derrubado") == true then setPedAnimation( source, "MEDIC", "CPR", 4500, true, false, false, false) setElementData(source, "DNL:Curando", true) setTimer ( function() setElementHealth(Player_2, 100) setElementData(source, "DNL:Curando", false) outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê Foi Curado Pelo Cidadao #00ff00"..getPlayerName(source).."", Player_2, 255,255,255,true) givePlayerMoney(source, 3000) outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê Curou o Cidadão #00ff00 e recebeu um extra de $ 3000 #00ff00 "..getPlayerName(Player_2).."", source, 255,255,255,true) setElementVisibleTo(blip, root, false) setElementVisibleTo(blip, source, false) end, 4500, 1 ) else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffEsse Cidadao não precisa ser curado", source, 255,255,255,true) end else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê já está curando algum Cidadao", source, 255,255,255,true) end else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffVocê precisa chegar mais perto do Cidadao", source, 255,255,255,true) end else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffApenas membros do resgate pode curar Cidadaoes", source, 255,255,255,true) end else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffO Cidadao(a) Não Foi Encontrado", source, 255,255,255,true) end else outputChatBox ( "#00ff00✘#ffffffINFO#00ff00✘➺ #ffffffUse /curar [#00ff00Nick#ffffff]", source, 255,255,255,true) end end end addCommandHandler("curar", Curar_Cidadao) function helpCommand(source) for i, player in pairs (getElementsByType("player")) do if getElementData(source, "DNL:Derrubado") then local accName = getAccountName ( getPlayerAccount ( player ) ) outputChatBox("Você ligou para o número de emergência! Aguarde.", source) if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "Samu" ) )) then outputChatBox("#00ff00[SAMU] #FFFFFFO jogador "..getPlayerName(source).." #FFFFFFestá pedindo socorro! Procurem o blip de coração.", player, 255, 255, 255, true) outputChatBox("#00ff00[SAMU] #FFFFFFO ID da chamada é: #00ff00("..getElementData(source, "ID")..")", player, 255, 255, 255, true) local x, y, z = getElementPosition(source) blip = createBlip(x, y, z, 21) setElementVisibleTo(blip, root, false) setElementVisibleTo(blip, player, true) timerMorrer = setTimer(function(player) setElementVisibleTo(blip, root, false) setElementVisibleTo(blip, player, false) end, 300000, 1, player) end else outputChatBox("Você não precisa de atendimento.", source) end end end addCommandHandler("samu", helpCommand) --=============================-- ----------- ANTI BUG ------------ --=============================-- function Morrer () if getElementData(source, "DNL:Derrubado") == true then setElementData(source, "DNL:Derrubado", false) setPedAnimation(source, false) setElementFrozen(source, false ) toggleAllControls(source, true) --setElementVisibleTo(blip, source, player, false) destroyElement(blip) triggerClientEvent(source, "DNL:Fechar_HP_30", source) end end addEventHandler("onPlayerWasted", root, Morrer) function Quit() if getElementData(source, "DNL:Derrubado") == true then setElementData(source, "DNL:Derrubado", false) destroyElement(blip) end end addEventHandler('onPlayerQuit', root, Quit) ------------- IGNORA ------------ function getPlayerID(id) v = false for i, player in ipairs (getElementsByType("player")) do if getElementData(player, "ID") == id then v = player break end end return v end
  4. Не могу войти в игру из за ошибки CD 46 постоянно кикает, обратился на форум самой провинции мне сказали обратиться сюда, дело в том что у нас с 1 игроком одинаковые серийные номера и когда банят его или что то делают ему то это автоматически делается и мне так же и наоборот, просто я не заходил долго в игру, захожу и не могу, хотя не чего не делал https://forum.gtaprovince.ru/topic/514009-obzhalovanie-nakazaniya-ot-administratora-nikneym-otsutstvuet/?do=findComment&comment=3537173- это ссылка док-во того что я не вру
  5. Surely it is because of your version of VPS, in my case I did not have any problem, the update works very well for me. I am using ubuntu 18.04
  6. Yesterday
  7. executeSQLCreateTable ("huntertimes","map TEXT,name TEXT,serial TEXT,country TEXT,country2 TEXT,date TEXT,time INT") local HunterTable = {} local function getTopPos(time,map) local rank = executeSQLQuery("SELECT count(*)+1 as rank FROM huntertimes WHERE time < "..time.." and map='"..map.."' LIMIT 1") return rank[1].rank end local function msToTimeStr(ms) local centiseconds = tostring(math.floor(math.fmod(ms,1000)/10)) if #centiseconds == 1 then centiseconds = '0' .. centiseconds end local s = math.floor(ms/1000) local seconds = tostring(math.fmod(s,60)) if #seconds == 1 then seconds = '0'..seconds end return tostring(math.floor(s/60))..':'.. seconds ..':'..centiseconds end local function getDate() local time = getRealTime() local m = time.month+1 local d = time.monthday if tonumber(d) < 8 then d = "0"..d end if tonumber(m) < 8 then m = "0"..m end return d.."."..m.."."..tostring(tonumber(time.year)+1900) end function HexToRGB(hex) local hex = hex:gsub("#","") return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)) end local function rDarkColor(str) local hexpos = string.find(str,"#%x%x%x%x%x%x") if hexpos then local hex = string.sub(str,hexpos,hexpos+6) local r,g,b = HexToRGB(hex) if 60 > r and 60 > g and 60 > b then str = string.gsub(str,hex,"") end hexpos2 = string.find(str,"#%x%x%x%x%x%x",4) if hexpos2 then local hex2 = string.sub(str,hexpos2,hexpos2+6) local r2,g2,b2 = HexToRGB(hex2) if 60 > r2 and 60 > g2 and 60 > b2 then str = string.gsub(str,hex2,"") end end end return str end local function createLocalTopTable(player,map) local table = {false} local accountname = getPlayerSerial(player) local t = executeSQLQuery("SELECT time,name,date,country2 FROM huntertimes WHERE serial='"..accountname.."' AND map='"..map.."' LIMIT 1") if t[1] then table = {msToTimeStr(t[1].time),rDarkColor(t[1].name),t[1].date,t[1].country2,getTopPos(t[1].time,map)} end return table end local function createTopTable(map) local table = {} local amount = 0 local te = {"--Empty--","","",""} local t = executeSQLQuery("SELECT time,name,date,country2 FROM huntertimes WHERE map='"..map.."' ORDER BY time ASC LIMIT 8") local hm = executeSQLQuery("SELECT count(*) as count FROM huntertimes WHERE map='"..map.."' LIMIT 1") amount = hm[1].count local i = 0 while i ~= 8 do i = i + 1 if t[i] then table[i] = {msToTimeStr(t[i].time),rDarkColor(t[i].name),t[i].date,t[i].country2} else table[i] = te end end table[12] = {type,string.sub(map.."("..amount.." tops)",1,44)} return table end addEvent("onClientWantRanking",true) addEventHandler("onClientWantRanking",root, function(player) local map = string.gsub(getElementData(player,"Map"),"[(')]+","") local ranking = createTopTable(map) ranking[11] = createLocalTopTable(player,map) triggerClientEvent(player,"onServerSendRanking",player,ranking) end) addEvent("onRaceStateChanging",true) addEventHandler("onRaceStateChanging", root, function(new,old) if new == "LoadingMap" then setTimer(function() HunterTable = {} end,1000,1) setTimer(function() local map = string.gsub(getMapName(),"[(')]+","") local ranking = createTopTable(map) for k,v in ipairs(getElementsByType("player")) do if getElementData(v,"state") and getElementData(v,"state") == "alive" then local t = ranking t[11] = createLocalTopTable(v,map) triggerClientEvent(v,"onServerSendRanking",v,t) end end end,8000,1) end end) local block = {}; function removeBlock(player) block[player] = nil; end function addTT(time,source) if not block[source] then block[source] = true; setTimer(removeBlock,20000,1,source); local map = string.gsub(getElementData(source,"Map"),"[(')]+","") local pos = getTopPos(time,map) if not string.find(map,"Hunter") then outputChatBox("#BF4343*[Map] #ffffff "..map,root,255,255,255,true) if pos == 1 then outputChatBox("#BF4343*[Hunter]#ffffff "..getPlayerName(source).."#ffffff has made the #00ff00WORLD RECORD #ffffffwith time "..msToTimeStr(time),root,255,255,255,true) else outputChatBox("#BF4343*[Hunter]#ffffff "..getPlayerName(source).."#ffffff has got the hunter #BF4343["..msToTimeStr(time).."]#ffffff and pos. #BF4343["..pos.."]",root,255,255,255,true) end end local accountname = getPlayerSerial(source) local result = executeSQLQuery("SELECT time FROM huntertimes WHERE serial='"..accountname.."' AND map='"..map.."' LIMIT 1") if not result[1] then executeSQLInsert ("huntertimes", "'"..map.."','"..string.gsub(getPlayerName(source),"[(')]+","").."','"..accountname.."','"..tostring(getElementData(source,"country") or "Europe").."','"..tostring(getElementData(source,"Country") or "EU").."','"..getDate().."',"..time.."") else if result[1].time > time then executeSQLUpdate("huntertimes","time = "..time..",name = '"..string.gsub(getPlayerName(source),"[(')]+","").."'","serial='"..accountname.."' AND map='"..map.."'") end end local ranking = createTopTable(map) ranking[11] = createLocalTopTable(source,map) triggerClientEvent(source,"onServerSendRanking",source,ranking) triggerClientEvent(source,"onServerSendRanking2",source,ranking) end end Error on line 94 = local map = string.gsub(getElementData(player,"Map"),"[(')]+","") error
  8. Hello, I ran into this problem, I'm playing on the MTA Province project. There are several servers there. The first 7 server are made for RP where different rules apply. And there is a stress test where there are no rules, and the use of cheats is allowed. The server is created for the entertainment of players. And it turned out that I was deprived of my driver's license on the main server. And I went to play on a stress test server with cheats. And today I get my driver's license back on a regular server. But when I log on to this server, cd46 kicks me. But I can still log on to that stress test server. Is it possible to remove the lock? serial ADC9A144ED1F0B18B267CA8F65037DA3
  9. It is updateState(value, total, radius), like updateState(50, 100, 250) should give half a circle. It could be edited to remove radius param in our case. This is the way I update the svg : local function setProgress(value) local svgXML = svgGetDocumentXML(mySvg) -- get xml local path = xmlNodeGetChildren(svgXML, 1) -- get path node (second node, following first example I gave) xmlNodeSetAttribute(path, "d", updateState(value, 100, 250)) -- editing the attribute svgSetDocumentXML(mySvg, svgXML) -- saving end You could imagine a command to test it like : local function startDemo() local value = 0 setTimer(function() value = value + 1 setProgress(value) end, 10, 100) end addCommandHandler("demo", startDemo) A little animation 0 to 100 % of the circle progress.
  10. ethernet kablosun'dan kaynaklana bilir, isterseniz forum'da konu aratma bölümünden CD16 ile ilgili hataları arayabilir ve daha fazla sonuçlar görebilirsiniz, ama benim çözümüm ethernet kablosunu değiştirmek oldu.
  11. I tried to use this function, but unfortunately I didn't quite understand how to use it :((( local rawSvgData = [[ <svg viewBox="0 0 600 600" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="gradient"> <stop offset="5%" stop-color="#FF0000" /> <stop offset="95%" stop-color="#00FF00" /> </linearGradient> </defs> <path id="progress" fill="none" stroke="url(#gradient)" d="M300,50 A250,250,0,1,1,299.99,50" stroke-width="20" /> </svg> ]] local svgs = {} local function render(svg) if (not isElement(svg)) or (getElementType(svg) ~= "svg") then removeEventHandler("onClientRender", root, svgs[svg].handler) svgs[svg] = nil end local width, height = svgGetSize(svg) dxDrawImage(500, 500, 430, 430, svg, 0, 0, 0, tocolor(255, 255, 255), false) end local function onUpdate(svg) print("fe") if (not svgs[svg]) then svgs[svg] = { state = true, handler = function() render(svg) end } addEventHandler("onClientRender", root, svgs[svg].handler) end iprint("SVG texture updated", svg, getTickCount()) end addEventHandler("onClientResourceStart", root, function() mySvg = svgCreate(430, 430, rawSvgData, onUpdate) end) bindKey("l", "down", function() local newPath = updateState(100, 100, 300); addSVGRectNode(mySvg, path) end) function addSVGRectNode(svg, path) local svgXML = svgGetDocumentXML(svg) local rect = xmlCreateChild(svgXML, "rect") xmlNodeSetAttribute(rect, "d", path) local status = svgSetDocumentXML(svg, svgXML) print(status) end function updateState(value, total, R) local center local alpha = 360 / total * value local a = (90 - alpha) * math.pi / 180 local x = 300 + R * math.cos(a) local y = 300 - R * math.sin(a) local path if (total == value) then path = "M300,"..(300 - R).." A"..R..","..R..",0,1,1,299.99,"..(300 - R) else if (alpha > 180) then center = 1 else center = 0 end path = "M300,"..(300 - R).." A"..R..","..R..",0,"..center..",1,"..x..","..y end return path end The problem is that for some reason I can't change the source data of the svg file already (I tried to do as you said, well, for some reason it doesn't work) - besides, I didn't quite understand working with the arguments of this function, let's say I tried to manually call the function and replace the arguments the same as from the debug, but this it didn't work quite correctly, maybe I didn't quite understand the principle of these arguments of this function, what is responsible for what. Please help me
  12. Hello, I have a small error with an operation that I still don't understand, when I try to use the /subrange command, it gives me an error, the ID returns a boolean and I have no idea, I tried to use tonumber(ID) or 0, it works but no It increases the ranks, it only keeps the 0. My intention with this is to add ID + 1, and add 1 + 1 until reaching the maximum of the table. local _Rangos = { ["Policia"]={ 'Cadete' ,'Oficial I' ,'Oficial II' ,'Oficial III' ,'Oficial III+' ,'Detective I' ,'Detective II' ,'Sargento' ,'Teniente' ,'Capitan' }, ["Medico"]={ 'Aspirante' ,'Paramedico' ,'Medico' ,'Rescatista' ,'Sargento' ,'Director' }, ["Mecanico"]={ 'Aprendiz' ,'Junior' ,'Mecanico' ,'Mecanico Experto' ,"Sub Empresario" }, } function table.find(t, value) for k,v in ipairs(t) do if v == value then return k,v end end return false end function _Cmd_Rangos(jug, cmd, name) if not notIsGuest( jug ) then if jug:getData("Roleplay:faccion") ~= "" then if jug:getData("Roleplay:faccion_rango") == "Capitan" or jug:getData("Roleplay:faccion_rango") == "Comandante" or jug:getData("Roleplay:faccion_rango") == "Director" or jug:getData("Roleplay:faccion_rango") == "Sub Director" or jug:getData("Roleplay:faccion_rango") == "Empresario" or jug:getData("Roleplay:faccion_rango") == "Sub Empresario" or jug:getData("Roleplay:faccion_rango") == "Jefe de Bomberos" then local who = exports["Gamemode"]:getFromName( jug, name ) if who then local old_rank = who:getData("Roleplay:faccion_rango") or false if old_rank then local ID = table.find(_Rangos[jug:getData("Roleplay:faccion")], old_rank) if ID then if cmd == 'subirrango' then ID = ID + 1 elseif cmd == 'bajarrango' then ID = ID - 1 end if _Rangos[jug:getData("Roleplay:faccion")][ID] then if who then update("UPDATE Facciones SET Rango = ? WHERE Nombre = ?", _Rangos[who:getData("Roleplay:faccion")][ID], AccountName(who)) who:setData("Roleplay:faccion_rango", _Rangos[jug:getData("Roleplay:faccion")][ID]) who_sms = (cmd == 'subirrango' and jug.name..' te ascendió a '.._Rangos[jug:getData("Roleplay:faccion")][ID]) or (cmd == 'bajarrango' and jug.name..' te a bajado de puesto a '.._Rangos[jug:getData("Roleplay:faccion")][ID]) who:outputChat(who_sms,(cmd == 'subirrango' and 0 or 255),(cmd == 'subirrango' and 255 or 0),0) jug_sms = (cmd == 'subirrango' and "Ascendiste a "..who:getName().." al rango ".._Rangos[jug:getData("Roleplay:faccion")][ID]) or (cmd == 'bajarrango' and who:getName().." Bajo al rango ".._Rangos[jug:getData("Roleplay:faccion")][ID]) jug:outputChat(jug_sms,(cmd == 'subirrango' and 0 or 255),(cmd == 'subirrango' and 255 or 0),0) end end end end else jug:outputChat("Syntax: /subirrango [ID]", 255, 255, 255) jug:outputChat("Syntax: /bajarrango [ID]", 255, 255, 255) end end end end end addCommandHandler('subirrango',_Cmd_Rangos) addCommandHandler('bajarrango',_Cmd_Rangos) The error is the following: attempt to perform arithmetic on local "ID" (a boolean value) What I can do?
  13. fiz um codigo aqui de aluguel de bike, porém fiz ele cheio de gambiarra além de feio não ta funcionando codigo abaixo: marker1 = createMarker ( 953.13171386719,-1107.5072021484,22.849414825439, "cylinder", 1.5, 255,0,0, 50) marker2 = createMarker ( 1191.6909179688,-1312.0385742188,12.316610336304, "cylinder", 1.5, 225,0,0, 50) marker3 = createMarker ( 1494.1613769531,-1742.8996582031,12.546875, "cylinder", 1.5, 255,0,0, 50) marker4 = createMarker ( 2206.1918945312,-1981.7033691406,12.546875, "cylinder", 1.5, 255,0,0, 50) marker5 = createMarker ( 2805.5466308594,-1073.5206298828,29.373998641968, "cylinder", 1.5, 255,0,0, 50) marker6 = createMarker ( 2243.0690917969,-51.113868713379,25.490577697754, "cylinder", 1.5, 255,0,0, 50) veh = {} function pegarbike ( source ) if isElementWithinMarker (source, marker1 ) then if veh[source] and isElement( veh[source] ) then destroyElement(veh[source] ) veh[source] = nil end veh[source] = createVehicle(510 ,956.30297851562, -1113.2463378906, 23.740942001343) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh[source]) elseif isElementWithinMarker(source, marker2) then veh2[source] = createVehicle(510, 1191.015625, -1303.7839355469, 13.512410354614) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh2[source]) elseif isElementWithinMarker(source, marker3) then veh3[source] = createVehicle(510, 1493.6680908203, -1738.150390625, 13.746875) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh3[source]) elseif isElementWithinMarker(source, marker4) then veh4[source] = createVehicle(510, 2211.1340332031, -1982.1483154297, 13.525491905212) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh4[source]) elseif isElementWithinMarker(source, marker5) then veh5[source] = createVehicle(510, 2814.9523925781, -1071.6147460938, 30.480630111694) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh5[source]) elseif isElementWithinMarker(source, marker6) then veh6[source] = createVehicle(510, 2237.8811035156, -49.01481628418, 26.68589515686) if getPlayerMoney(source) > 50 then takePlayerMoney(source,50) exports.InfoDx:addBox(source,'[BKR] Foi cobrado R$50 pelo aluguel da bike.', "info") exports.InfoDx:addBox(source,'[BKR] Se você sair da bike a seguradora pegará devolta.', "info") warpPedIntoVehicle (source,veh6[source]) if not isElementWithinMarker(source, marker1) and isElementWithinMarker(source, marker2) and isElementWithinMarker(source, marker3) and isElementWithinMarker(source, marker4) and isElementWithinMarker(source, marker5) and isElementWithinMarker(source, marker6) then exports.InfoDx:addBox(source,'[BKR] Para Pegar Uma Bike Fique Dentro De Um Marker!', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end else exports.InfoDx:addBox(source,'[BKR] Dinheiro Insuficiente', "error") end end end addCommandHandler ( "alugarbike", pegarbike ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker1, msg ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker2, msg ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker3, msg ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker4, msg ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker5, msg ) function msg (source) exports.InfoDx:addBox(source,'[BKR] Digite /alugarbike para alugar uma bicicleta será cobrado R$50 .', "info") end addEventHandler( "onMarkerHit", marker6, msg ) function sair (source) if (veh[source]) and isElement(veh[source]) then destroyElement (veh[source]) exports.InfoDx:addBox(source,'[BKR] Você abandonou a bike e a seguradora pegou', "error") end end addEventHandler ("onVehicleExit", root, sair) desculpa a poluição no codigo.
  14. internetimde hata bulunmamakta bazende bağlantı koptu hatasını alıyorum oyunu ve mta yı kaç kez silip yükledim hocam başka birşeyden kaynaklanıyor olamazmı ?
  15. Like a percentage progress ? Yes it's possible. You have to update the SVG using svgGetDocumentXML and svgSetDocumentXML (check example on the wiki). I found a way to draw the circle regarding percentage progress with this function : local function updateState(value, total, R) local center local alpha = 360 / total * value local a = (90 - alpha) * math.pi / 180 local x = 300 + R * math.cos(a) local y = 300 - R * math.sin(a) local path if (total == value) then path = "M300,"..(300 - R).." A"..R..","..R..",0,1,1,299.99,"..(300 - R) else if (alpha > 180) then center = 1 else center = 0 end path = "M300,"..(300 - R).." A"..R..","..R..",0,"..center..",1,"..x..","..y end return path end source : https://stackoverflow.com/questions/5230148/create-svg-progress-circle
  16. UPDATE 27.05.2022. Bump, post edited with current information. Server revived and online. Please contact me on discord or write here if you stumble upon any issues. Hope to see you in-game!
  17. [250₺ PARA ÖDÜLLÜ] TDD EN FAZLA ŞAMPİYON OLAN TAKIM Detaylar için: https://tr-servers.com Tanıtım Konusu: https://tr-servers.com/index.php?/topic/36-250₺-para-ödüllü-tdd-en-fazla-şampi̇yon-olan-takim/
  18. merhaba, internetinizi kontrol etmenizi ve ethernet kablonuzu düzeltmenizi tavsiye ederim. iyi günler.
  19. Merhabalar Mta da Bir Sunucuya Girdiğim zaman bikaç saniye sonra Bağlantı Kesildi (AC #4 DriverRadarPro Tarafından Atıldınız) Hatasını Alıyorum Bu Hatayı Nasıl düzeltebilirim
  20. Platin

    Happy birthday!

    1. Tut

      Tut

      Thanks 🥰

  21. hello, I really liked your idea with the work of svg, is it possible to find out how to make the progress of reducing the strip in the svg code?
  22. hello what happened can someone answer me? I send the topic again and I wanted an answer for the ban. i use vpn for living in poland. I tried to use vpn on a local server in Brazil where my brother lives, to play with him and when I tried to log in this message appeared. disconnected from server by eject cd47 id : 94E61A7DDA90AC6EE618E20CD72885E3
  23. Здравствуйте,зашёл в игру некст рп спустя неделю,когда зашёл в игру увидел это - AC#4 TRAINER кикнул вас Как сказано что это читы,но сам читом на мта в жизни не имел,только ExLoader - но,он собственно для кс го Не знаю что делать,хотел бы разбана,потому что бан был выдан ошибочно,ну или хотя бы сокращения его,потому что хочется играть, а бан дали просто так ( ( * Ваш серийный номер: 9A021A29953F540B3316865B2FF21A12 ) https://ibb.co/VW8szMH ( ссылка на фото,как это выглядит ) такой бан выдавался не только мне,но и знакомым по игре.
  24. This problem persists in any case, regardless of when to hide the wheel. A little earlier it was different. https://github.com/multitheftauto/mtasa-blue/issues/2624
  25. Problem fixed! Used: change onClientRender > onClientPreRender and refused OOP
  26. Hi! I use setComponentVisible for custom wheels, but the inexplicable is happening. https://imgur.com/a/9yNN9hB It worked perfect, but after a server update, some of my script broke for vehicle, wheels pairs(replacWheels) do for namewheels in pairs(wheels) do vehicle:setComponentVisible(namewheels , false) end end last update (https://forum.multitheftauto.com/topic/135875-important-security-notification-for-server-owners-and-hosters/ )
  1. Load more activity
×
×
  • Create New...