~Sr.Victor

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ~Sr.Victor

  • Rank
    Civilian

Recent Profile Visitors

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

  1. ~Sr.Victor

    Command

    I put it, but when I activate the mod the players are already redirected.
  2. ~Sr.Victor

    Command

    Is it possible to put a command for players to be redirected?
  3. ~Sr.Victor

    Command

    I wanted to place a command to do the redirection, and not as soon as it activates. Because I have a separate event server, and I need players to return to the official with a given command. local IP = "" local Porta = addEvent( "redirecionar", true ) addEventHandler( "redirecionar", root, function (player) for index, player in ipairs ( getElementsByType ( "player" ) ) do redirectPlayer ( player, IP, Porta ) end end )
  4. I don't know how to do it, I wanted to put a time of 10 seconds to type the command again and also the command can only be given with the ACL function progressodeagle(thePlayer) if isElementWithinMarker(thePlayer, deagle2) then local currentMoney = getPlayerMoney(thePlayer) if currentMoney >= 2500 then takePlayerMoney(thePlayer, 2500) giveWeapon(thePlayer, 24, 2) setPedFrozen(thePlayer, true) setPedAnimation(thePlayer, "ped", "bomber", 16000, true, false, false, false) setTimer(setPedFrozen, 16000, 1, thePlayer, false) setTimer(giveWeapon,16000, 1, thePlayer, 24, 450) else exports.hy_info:showBoxS(thePlayer, "#00FFFFVocê não possui dinheiro para fabricar esta arma!", "error") end end end addCommandHandler("fabricar", progressodeagle)
  5. It worked, thank you very much! Can you put a delay to give the command?
  6. Hello, I have a script for making weapons. However, if the person has no money, he can manufacture it anyway. I want that if the person has no money a warning appears in the chat function progressodeagle(thePlayer) if isElementWithinMarker (thePlayer, deagle2) then takePlayerMoney(thePlayer, 2500) giveWeapon(thePlayer, 24, 2) setPedFrozen(thePlayer, true) setPedAnimation(thePlayer, "ped", "bomber", 16000, true, false, false, false) setTimer(setPedFrozen, 16000, 1, thePlayer, false) setTimer(giveWeapon,16000, 1, thePlayer, 24, 450) end end addCommandHandler("fabricar", progressodeagle)
  7. No debug não aparece nada, porém não abre mais. Quer pegar meu discord para um melhor contato?
  8. Olá, tentei colocar um sistema de fabricar armas por acl porém não consegui. Podem me ajudar? function abrir1 (thePlayer) if (thePlayer) and (getElementType (thePlayer) == "player") then triggerClientEvent (thePlayer, "tec9gui", thePlayer) end end addEventHandler ("onMarkerHit", tec9, abrir1) function abrir1 () if (painel) then removeEventHandler("onClientRender", root, Tec9gui) painel = false else addEventHandler("onClientRender", root, Tec9gui) painel = true end end addEvent ("tec9gui", true) addEventHandler("tec9gui", root, abrir1)
  9. Bom dia, tenho um script de quando a pessoa é punida aparece a mensagem em um canal do discord. Porém só aparece o tempo, alguém poderia me ajudar? function Prender (Jogador_Selecionado, getMotivo, getTempo) local Criminoso = getPlayerID(Jogador_Selecionado) --local Estrelas = getPlayerWantedLevel(Criminoso) local QuantidadePreso = getElementData(Criminoso, "PrisaoStaff:QuantidadePreso") or 0 local Tempo = tonumber(getTempo) local Motivo = getMotivo local jX, jY, jZ = getElementPosition (Criminoso) local pX, pY, pZ = getElementPosition (source) local IDPolicial = getElementData(source, "ID") or 0 if Tempo == 0 then --outputChatBox ( "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffDigite o tempo!", source, 255, 0, 0, true ) return end setElementData(Criminoso, "PrisaoStaff:NaViatura", nil) setElementData(Criminoso, "PrisaoStaff:Comunicação", nil) setPedAnimation(Criminoso, nil) --setElementData(Criminoso, "PrisaoStaff:Algemado", true) setElementData(Criminoso, "STAFF:TempoPrisao", Tempo) setElementData(Criminoso, "STAFF:Mtv_Prisao", Motivo) setElementData(Criminoso, "STAFF:ID2", IDPolicial) setElementPosition(Criminoso, -483.92803955078,-522.12237548828,25.517845153809) setElementInterior(Criminoso, 0) local time = getRealTime() local Horas = time.hour local Minutos = time.minute local Dia = time.monthday local Mes = time.month +1 local Ano = time.year + 1900 setElementData(Criminoso, "PrisaoStaff:MotivoPrisao", Motivo) setElementData(Criminoso, "PrisaoStaff:QuantidadePreso", QuantidadePreso+1) setElementData(Criminoso, "PrisaoStaff:HoraPrisao", Horas..":"..Minutos) setElementData(Criminoso, "PrisaoStaff:DataPrisao", Dia.."/"..Mes.."/"..Ano) --outputChatBox ( "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê puniu o jogador "..getPlayerName(Criminoso).."#ffffff por "..Tempo.." minutos pelo motivo de "..Motivo.." !", source, 255, 0, 0, true ) outputChatBox ( "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffO STAFF "..getPlayerName(source).." puniu o jogador "..getPlayerName(Criminoso).."#ffffff por "..Tempo.." minutos pelo motivo de "..Motivo.." !", root, 255, 0, 0, true ) outputChatBox ( "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê foi preso !", Criminoso, 255, 0, 0, true ) triggerClientEvent(Criminoso, "PrisaoStaff:SendoPreso", Criminoso) --takeAllWeapons(Criminoso) --setPlayerWantedLevel(Criminoso, 0) --toggleAllControls (Criminoso, false ) TempoPrender[Criminoso] = setTimer(function() setElementData(Criminoso, "STAFF:TempoPrisao", nil) setElementData(Criminoso, "STAFF:Mtv_Prisao", nil) setElementData(Criminoso, "STAFF:ID2", nil) setElementData(Criminoso, "STAFF:TempoPrisao2", nil) setElementInterior(Criminoso, 0) setElementPosition(Criminoso, -490.7184753418,-548.61706542969,25.5234375) triggerClientEvent(Criminoso, "PrisaoStaff:Liberado", Criminoso) outputChatBox ( "#0037FF✘#ffffffINFO#0037FF✘➺ #ffffffVocê foi solto !", Criminoso, 255, 0, 0, true ) --takeAllWeapons(Criminoso) --setPlayerWantedLevel(Criminoso, 0) --setPedAnimation(Criminoso, nil) --toggleAllControls (Criminoso, true ) --setElementData(Criminoso, "PrisaoStaff:Algemado", true) --setElementFrozen(Criminoso, true) end, Tempo*60000, 1) end addEvent ("PrisaoStaff:FazerPrisao", true) addEventHandler ("PrisaoStaff:FazerPrisao", root, Prender) function sendDiscordMessage ( message ) sendOptions = { queueName = " dcq " , connectionAttempts = 3 , connectTimeout = 5000 , formFields = { content = "``` " .. message .. " ```" } } fetchRemote ( discordWebhookURL, sendOptions, callback) end function callback () outputDebugString ( " Mensagem enviada! " ) end https://prnt.sc/tqk2av
  10. bindKey("tab", "both", function() if isEventHandlerAdded("onClientRender", root, scoreboardMenu) then removeEventHandler("onClientRender", root, scoreboardMenu) destroyPed() else addEventHandler("onClientRender", root, scoreboardMenu) createModelPed() end end )
  11. Olá! queria colocar delay de 3 segundos em uma dashboard que tenho, devido um bug que ela tem quando fica apertando o TAB várias vezes.
  12. Queria um script de quando morrer perder as armas, porém se deslogar ele continua com elas. Alguém pode me ajudar ?
  13. I need a scripter please, add my discord [Coord]~Sr.Victor [5]#4395
  14. What is this? triggered serverside event requestLODsClient, but event is not added serverside