Leaderboard
Popular Content
Showing content with the highest reputation on 07/07/20 in all areas
-
3 points
-
Thug Life Roleplay v1.0 Trailer Thug Life Roleplay Conexão [[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』 [IP THUG LIFE] mtasa://104.156.245.223:22003--]] Informações O Servidor Thug Life Roleplay, fundado em 2010 por André Felipe no SA-MP, retornou. Porém agora, para o MTA! O servidor foi desenvolvido por Nick Scripter, durante o período de um ano. Várias funções foram adicionadas durante esse período, tudo foi gravado e divulgado através do Discord do Thug Life e o meu canal do Youtube. As prints e vídeos a seguir, são da versão Beta, feita durante esse processo de 1 ano e não podem representar as mesmas funções na versão final. Espero que vocês curtam o servidor, que está acessível para todos, devido a função Anti-Lag implementada. Ao criar sua conta, você é perguntado se quer ativar a função Anti-lag! Te garante 10 FPS no minimo... Funções do servidor: Sistema de cadastro by Nick Scripter Ao entrar no servidor e se registrar pela primeira vez, você será submetido a um questionário para saber se está apto ou não de acordo com as regras do servidor Thug Life Roleplay. Após passar a prova, você irá criar o seu personagem e personalizar da forma com que você preferir. Existe a funcionalidade Anti-lag para otimizar o seu MTA e rodar com a maior quantidade possivel de FPS que o seu MTA alcança. O servidor possui um sistema de Americanos que são NPCs que andam pela cidade, motos, carros, pedestres, avioes, helicopteros e barcos. Todos otimizados e não dao qualquer interferência na performance do jogo. A cidade sempre fica movimentada e cheia de vida. Servidor foi pensado nos minimos detalhes para trazer uma experiência inédita e gloriosa na história do MTA Brasil!!! Aguardamos vocês na nossa cidade. Fique com as prints do servidor Thug Life =D Sistema de Drogas avançado e Vídeo Bonus by Nick Scripter Painel Policial iPad Pro by Nick Scripter Sistema de inventário by Nick Scripter Sistema de Skins by Nick Scripter Loja de Roubos by Nick Scripter Sistema de Level by Nick Scripter Sistema de SAMU Avançado by Nick Scripter Sistema de Morte by Nick Scripter Sistema de Pixação by Desconhecido e editado por Nick Scripter Vídeos Bonus Thug Life 0.9 DEMO introdução Informações do servidor [[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』 [IP THUG LIFE] mtasa://104.156.245.223:22003--]] Se você gostou da publicação, deixe um coração para mostrar seu reconhecimento para com que eu faça mais conteúdos sobre o MTA. Dá muito trabalho para fazer, mas faço porque gosto!! Espero que tenham curtido =D Facebook Thug Life Roleplay Facebook Nick Scripter2 points
-
yeah that will solve the problem but not gonna fix the function this function need to be fixed2 points
-
Hmm interesting, I knew that there were objects with strange behaviours but I didn't expect it to be with trees. There is of course the wind animation used by some trees, which might be related to the bug. In that case he can try to freeze the object. setElementFrozen(Trees, true) Or if that doesn't work, attach the tree to an element 1 that isn't a tree. https://wiki.multitheftauto.com/wiki/AttachElements2 points
-
You should try something like that, for example: -- CLIENT SIDE addEvent("trigger", true) addEventHandler("trigger", resourceRoot, function(tabletest) outputChatBox(inspect(tabletest)) end) addEventHandler("onClientResourceStart", resourceRoot, function() -- client-side loads up, request data from server triggerServerEvent("request", resourceRoot) end) -- SERVER SIDE test = { {0, 0, 5}, {1234, 1234, 1234} } addEvent("request", true) addEventHandler("request", resourceRoot, function() -- send data back to "client" (note: "client" is a hidden-variable, when you use triggerServerEvent, its the "localPlayer", who triggered the server-sided event) if client then triggerClientEvent(client, "trigger", resourceRoot, test) end end)1 point
-
First argument of triggerClientEvent is sendTo. The player who receive the data. Now you try to send this to a resource, instead of a player. You should use root (or player's element) at first argument. (resourceRoot at 3rd place is okay) And when you change it, probably you get a "server triggered client-side event, but event is not added at client-side" error, because you try to send data before client-side loads. (because server-side always loads before client-side)1 point
-
1 point
-
1 point
-
It must have been an unlucky tree, nature can be ruthless sometimes. ?1 point
-
oh I replaced the {ID} of the tree to {656} and it worked normally instead of {687}1 point
-
All serverside elements are already available on clientside. The only problem is: "how to get the right one?" There are multi ways to get those, including triggerClientEvent as @Patrick said. Server local receiver receiver = getRandomPlayer() -- a random player receiver = root -- all players triggerClientEvent(receiver, "eventName_SEND_THING_OVER", resourceRoot, element) Client addEvent("eventName_SEND_THING_OVER", true) -- enable the event: string eventName, boolean true = able to receive events from serverside addEventHandler("eventName_SEND_THING_OVER", resourceRoot, -- add a handler, that will call the function when the event is triggered function (element) end, false) -- disable propagation There is also a method which I like to use to keep a dynamic list of my elements: Server local collectionElement = createElement("collection", "myVehicles") for i=1, 10 do local vehicle = createVehicle(432, i * 10, 0, 50) setElementParent(vehicle, collectionElement) -- (Note: setElementParent, doesn't work across resources) end Client function getMyVehicles (theType) local collectionElement = getElementByID("myVehicles") if collectionElement then return getElementChildren(collectionElement, theType) -- theType is optional, could be "vehicle" end return false end1 point
-
Can I send it using trigger client event? e.g. the variable responsible for the vehicle? and if so how can I do it so that I can understand how it works ...1 point
-
1 point
-
function getPositionBackOfElement(element, meters) if (not element or not isElement(element)) then return false end local meters = (type(meters) == "number" and meters) or 3 local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX + math.sin(math.rad(rotation)) * meters posY = posY - math.cos(math.rad(rotation)) * meters rot = rotation - math.cos(math.rad(rotation)) return posX, posY, posZ , rot end function getPositionFrontOfElement(element, meters) if (not element or not isElement(element)) then return false end local meters = (type(meters) == "number" and meters) or 3 local posX, posY, posZ = getElementPosition(element) local _, _, rotation = getElementRotation(element) posX = posX - math.sin(math.rad(rotation)) * meters posY = posY + math.cos(math.rad(rotation)) * meters rot = rotation + math.cos(math.rad(rotation)) return posX, posY, posZ , rot end function isPlayerBehindPlayer( source,player ) local x,y,z = getElementPosition( source ) local x1,y1,z1 = getElementPosition( player ) local cx,cy,cz=getPositionBackOfElement(source, 500) local dist = getDistanceBetweenPoints3D( x,y,z,cx,cy,cz ) local dist1 = getDistanceBetweenPoints3D( x1,y1,z1,cx,cy,cz ) if dist1<dist then return true end return false end function isPlayerInFrontPlayer( source,player ) local x,y,z = getElementPosition( source ) local x1,y1,z1 = getElementPosition( player ) local cx,cy,cz=getPositionFrontOfElement(source, 500) local dist = getDistanceBetweenPoints3D( x,y,z,cx,cy,cz ) local dist1 = getDistanceBetweenPoints3D( x1,y1,z1,cx,cy,cz ) if dist1<dist then return true end return false end يتحقق اذا كان اللاعب اللي تبي قدام او ورا اللاعب اللي تبي1 point
-
Substitua a função gpsVehicle do Client.lua por essa: function gpsVehicle(commandName, vehicleId) if not vehicleId then outputChatBox("#9ACD32[BOT] #ffffffVocê não pode guardar um veículo com placa fria.",0,0,0,true) return end if vehicleId then for index, value in ipairs (getElementsByType("vehicle")) do if getElementData(value, "ID") == tonumber(vehicleId) then if not getElementData(value, "ownercar") == getElementData(localPlayer, "ID") then outputChatBox("#9ACD32[BOT] #ffffffVocê não é o dono do veículo!",0,0,0,true) return end local counter = 0 for seat, player in pairs(getVehicleOccupants(value)) do counter = counter + 1 end if counter > 0 then outputChatBox("#9ACD32[BOT] #ffffffNão pode guardar com um ocupante.",0,0,0,true) return end if (getElementDimension(value) == 0) then local x, y, z = getElementPosition(localPlayer) local ex, ey, ez = getElementPosition(value) if getDistanceBetweenPoints3D(x, y, z, ex, ey, ez) <= 10 then setElementData(value,"veiculo.garagem", true) triggerServerEvent("guardar", localPlayer, vehicleId) else outputChatBox("#9ACD32[BOT] #ffffffVeiculo distante da garagem",0,0,0,true) end return end if (getElementData(value, "detranAP")) then outputChatBox("#9ACD32[BOT] #ffffffSeu veiculo está no detran!",0,0,0,true) triggerServerEvent("updateINTDIM22", localPlayer, vehicleId) else triggerServerEvent("updateINTDIM2", localPlayer, vehicleId) outputChatBox("#9ACD32[BOT] #ffffffVeiculo retirado.",0,0,0,true) setElementData(value,"veiculo.garagem", false) end end end end end Não testei mas creio que funcione, apenas adicionei: getDistanceBetweenPoints3D1 point
-
1 point
-
السلام عليكم ورحمة الله تعالى وبركته لوحة تسجيل لدخول للرولي بلاي تصميم جديد و ميجيب لاق رابط التحميل في الفيديو BY MR POP1 point
-
1 point
-
Well, you spammed us in multiple ways for this ban, but so far haven't made an appeal on the forums, so I will answer this for good. You will not be unbanned. The reason is that your DDoS practises are really serious, not only did you attack servers often, you also made a YouTube channel to brag about it. People that make channels dedicated to show off criminal activities targetting MTA users and servers, do clearly not belong on MTA, and we need to protect the rest of our users against them. Who wouldn't agree with me? Even though you removed it all, we can now still know what you did. Appeal denied. Please don't make any appeals in the future, and don't contact us. For the record, it applies to both of your serials: AB90CFB2812771462FE7528D41615452 and 3DFEE027D1253511266FC3A70E88AAB2 (i will edit this post with more if you decide to evade, so you can't return to appeal them with a different name).1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
لا حرام بالله , غيرته يوم كتبت انت لازم بدون guiGetText , وشلتهم , بس تذكرت ان ماعندي اختصار لهم , ورجعتهم على طول وانت تعرفني هات بوسه1 point
-
السطرين ذول triggerServerEvent("Regis",localPlayer,guiGetText(user1), guiGetText(pass1)) triggerServerEvent("submit",localPlayer ,guiGetText(username), guiGetText(password)) عدلهم لازم كذا triggerServerEvent("Regis",localPlayer,user1, pass1) triggerServerEvent("submit",localPlayer ,username, password)1 point
-
0 points
