Search the Community

Showing results for tags 'client'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 54 results

  1. I am done. I've made a function to display text on elements, on server-side, and I wanted to trigger client event, but what? Doesn't triggering. Look: allElems = 0 function dxDrawTextOnElem(element, text, height, distance, r, g, b, alpha, size, font) allElems = allElems + 1 triggerClientEvent("dxDraw", resourceRoot, element, text, height or 0, distance or 20, r or 255, g or 0, b or 0, alpha or 255, size or 1, font or "arial", allElems) end Boom, client-side script: --Ofcourse, I've created all tables + in "onClientRender" I put outputChatBox(), outputs "{}" (because tables are empty) addEvent("dxDraw", true) addEventHandler("dxDraw", resourceRoot, function(element, text, height, distance, r, g, b, alpha, size, font, k) local i = table.find(elements, element) --table.find(pattern, s) if i then elements[i] = element texts[i] = text heights[i] = height distances[i] = distance rs[i] = r gs[i] = g bs[i] = b alphas[i] = alpha sizes[i] = size fonts[i] = font else elements[k] = element texts[k] = text heights[k] = height distances[k] = distance rs[k] = r gs[k] = g bs[k] = b alphas[k] = alpha sizes[k] = size fonts[k] = font end end) addEventHandler("onClientRender", root, function() for i, text in ipairs(texts) do dxDrawTextOnElement(elements[i], text, heights[i], distances[i], rs[i], gs[i], bs[i], alphas[i], sizes[i], fonts[i]) end end) Jesus, I'm done with it. Sorry for asking a similar thing, but it's really difficult for me. For real, I'm like doing it second time, still fails.
  2. Olá comunidade tudo bem?. Estou com um problema pois estou usando um script client que usar o object_preview, eu desejo que ao criar o ped adicione a roupa que eu estou usando no meu CJ a função que faz o ped é essa: function creatPedProjection() if panelState then if (getElementData(localPlayer, "Tab") == false) then x1, y1, z1 = getCameraMatrix() myElement = createPed (getElementModel(localPlayer), x1, y1, z1) myObject = exports.object_preview:createObjectPreview(myElement, 5, 5, 0, x*250, y*150, x*330, y*410, false, true, true) exports.object_preview:setRotation(myObject,-0, 0, 160) setElementData(localPlayer, "Tab", true) end end end function resetPedProjection () exports.object_preview:destroyObjectPreview(myObject) myElement = nil myObject = nil end ja tentei várias formas mais n muda a roupa dele.
  3. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Warning: Old function name like dgsDxGUI*/dgsDx* are no longer supported after 3.4, please change your functions and events name 'dgsDxGUI*'/'dgsDx*' have been changed to 'dgs*' Final Version: 3.99 Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Ellipse Detect Area (EDA) Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Media Browser Browser 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "cmd" ( For more help, please input "help" in the CMD ) 8. Memo rewritten. 9. OOP Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS assembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote. To Contact Me , Get into the discord server. I have abandoned skype. My server is based on DGS , if you want to see the exact effect of dgs ( not best, my design is bad ). Please have a look. IP: lfd.thisdp.com If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
  4. No errors / warnings in debugscript 3... then what wrong in this script? Client: requestBrowserDomains({"www.convertmp3.io"}) local browser = createBrowser( 1, 1, false ) local currentSound = {} addEvent( 'Play' , true ) addEventHandler( 'Play' , root , function( link ) local vehicle = getPedOccupiedVehicle ( source ) local x, y, z = getElementPosition(vehicle) currentSound[source] = playSound3D( link, x, y, z ) attachElements(currentSound[source],vehicle) setSoundMaxDistance(currentSound[source],30) setSoundVolume(currentSound[source],50) end ) function fetch(_,url) if url and url ~= "" then fetchRemote("http://www.convertmp3.io/fetch/?format=JSON&video="..url, callback) end end addCommandHandler("p",fetch) function callback(data, error) if (error ~= 0) then return outputChatBox(error) end if (data == "ERROR") then return outputChatBox("data error") end local data = fromJSON("["..data.."]") if (data) then outputChatBox("Title: "..data.title) outputChatBox("Length: "..data.length) outputChatBox("Link: "..data.link) loadBrowserURL( browser, data.link ) end end addEventHandler( "onClientBrowserNavigate", browser, function( link ) if not link:find("www.convertmp3.io") then triggerServerEvent( 'play' , localPlayer , link ) -- trigger the event when the script actially gets the playable link! end end ) server: addEvent( 'play' , true ) addEventHandler( 'play' , root , function( link ) triggerClientEvent( root , 'Play' , client , link ) end )
  5. Olá Pessoal, como fazer para clicar em um veículo e receber no chat uma localização da roda dele? Já tenho a ideia de como usar o getVehicleComponentPosition (algo do lado do cliente), mas como identificar ou veicular o que estou tentando ver no OnElementClicked é do lado Server? function rodadireita (source) local vehicle = --Queria por aqui o veiculo que estou clicando x, y, z = getVehicleComponentPosition ( vehicle , "wheel_rf_dummy", "world") outputChatBox ( "Cordenadas:"..x..", "..y..", "..z, 255, 255, 255, true ) end
  6. Tem como usar o setVehicleComponentScale para aumentar peças do veiculo para todos os players?Tem que usar triggerClientEvent?Tentei usar mas n consegui,n sei usar essa função
  7. Estou querendo fazer um script que quando clico no carro,me mostre as coordenadas da roda,mas a função getVehicleComponentPosition é somente do lado client e não sei jogar elas pro lado serve
  8. Preciso que quando o player pegue determinada arma na mão o dx fica visible e quando ele coloca outra arma diferente daquela em sua mão o dx fica invisível, como posso fazer isso ? Se puderem me informar como consigo colocar apenas 2 linhas de escrito no canto direito da tela em qualquer resolução me ajudaria demais, desde já agradeço! PS: Nunca fiz um DX.
  9. Alguém tem ideia de como consigo fazer uma border line, como essa da imagem abaixo: https://bit.ly/2kvxg6I Desde já agradeço!
  10. Here you go that's the error code. It appears everytime when I try to join any server whatever it is.
  11. Eu estou tentando entrar no servidor Groove Street e não consigo, pois o MTA pede para atualizar a versão, eu clico para atualizar e me aparece que não há atualizações disponíveis, o que eu faço?????????
  12. Hi. Has anyone tried to create a virtual client? For example: a spectator from a server. My task is to call the client function from the server when there are no players on it. I could only think of a bot, but for this you need to be constantly connected to the server. How can I create such a virtual client with MTA tools?
  13. Hi. I am now writing a launcher with authorization, etc., there was a question about the launch of Mta, whether there are keys ( parameters ) launch MTA? Let's say nick change or automatic connection when launching the game? Thanks for the reply, sorry for my English, used translator😀 function doUser_bottom_lClickLeft(UXMouseEvent $e = null) { execute('D:\Games\mt\Multi Theft Auto.exe', false); } P.S -> Another question, where can I get the source code of mta? And what programs will be required for compilation?
  14. Guys when i open the game from steam, everything works fine but when I open it from mta client it says that cannot find my audio card. Plz help me fix this i have already installed the latest drivers and I don't know what to do. "Grand Theft Auto SA cannot find Audio card installed" My MTA Diag results: https://pastebin.mtasa.com/796172962
  15. Hello MTA, sorry if my English is bad I'm looking for a way to load a website in the game, for example a website that I have forums.javaliferoleplay.web.id I have a code like this function register_panel( ) local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 1280, 720 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 local window = guiCreateWindow( left, top, windowWidth, windowHeight , "Register", false ) local browser = guiCreateBrowser( 0, 28, windowWidth, windowHeight -60, false, false, false, window ) local theBrowser = guiGetBrowser( browser ) guiWindowSetSizable(window, false) requestBrowserDomains({ "forums.javaliferoleplay.web.id" }) addEventHandler( "onClientBrowserCreated", theBrowser, function( ) loadBrowserURL( source, "http://forums.javaliferoleplay.web.id/" ) end ) local close = guiCreateButton(0, 700, 1280, 50, "CLOSE", false, window) addEventHandler ( "onClientGUIClick", close, function() guiSetVisible(window, false) end ) end In the code above, the website I intended to load does not appear, but there is a dialog box asking for permission to open the link. But when opening youtube for example, the website opens normally. Can someone help me? Thanks before
  16. Every time I start the MTA it opens normal, but when I play for about 15 minutes it crashes and gives the error. 0x00000005 Can anyone help with this error? I already downloaded MTADiag and checked it gave this link. (https://pastebin.mtasa.com/652111881)
  17. Hi! My problem is that on the client side the object is seen by only one person who has tried it out and I want everyone to see the object on the server. Client Side: local rx,ry,rz = getElementPosition(getElementData(localPlayer,"cage")) local cx,cy,cz = getVehicleComponentPosition(getElementData(localPlayer,"cage"),"static_p01") local x,y,z = rx + cx, ry + cy+3, 0.8 local a,b = getScreenFromWorldPosition(x,y,z) local magnet = createObject(1301, rx-0.6, ry-5, rz+4, 0, 0, 0) setObjectScale(magnet, 0.3) setElementCollisionsEnabled(magnet, false) moveObject(magnet, 1000*60*1, rx-0.6, ry-5, rz-50) setTimer(function() destroyElement(magnet) local magnet2 = createObject(1301, rx-0.6, ry-5, rz-50, 0, 0, 0) setObjectScale(magnet2, 0.3) setElementCollisionsEnabled(magnet2, false) moveObject(magnet2, 1000*60*1, rx-0.6, ry-5, rz+4) local crate = createObject(1224, rx-0.6, ry-5, rz-50.3, 0, 0, 0) moveObject(crate, 1000*60*1, rx-0.6, ry-5, rz+3.3) setElementCollisionsEnabled(crate, false) setTimer(function() usedMagnet = false end, 1000*60*1, 1) end, 1000*60*1, 1) In principle I should only use this server site: setElementVisibleTo
  18. Clipper_

    Effect fix

    I got a problem with created effects. In normal dimension I created an effect that is attached to the player's vehicle. The problem is that players from other dimensions can see it too moving around. Any idea how I can restrict the effects only for dimension 0? local attachedEffects = {} function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix ( element ) -- Get the matrix local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] -- Apply transform local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z -- Return the transformed point end function attachEffect(effect, element, pos) attachedEffects[effect] = { effect = effect, element = element, pos = pos } addEventHandler("onClientElementDestroy", effect, function() attachedEffects[effect] = nil end) addEventHandler("onClientElementDestroy", element, function() attachedEffects[effect] = nil end) return true end addEventHandler("onClientPreRender", root, function() for fx, info in pairs(attachedEffects) do local x, y, z = getPositionFromElementOffset(info.element, info.pos.x, info.pos.y, info.pos.z) setElementPosition(fx, x, y, z) end end ) local fire = {} function createCustomEffect(player, vehicle, value) if value then local x, y, z = getElementPosition(vehicle) if not fire[player] then fire[player] = createEffect("fire_bike", x, y, z, 0, 0, 0, 0, true) attachEffect(fire[player], vehicle, Vector3(0, 0, 0)) setElementDimension(fire[player], 0) end else if fire[player] then attachedEffects[fire[player]] = nil destroyElement(fire[player]) fire[player] = nil end end end addEvent("triggerCustomEffect", true) addEventHandler("triggerCustomEffect", root, createCustomEffect) The event is triggered in server when a player enters a vehicle, motorcycle in this case. Attaching functions are taken from 'MTA Wiki > Suggested functions function onPlayerVehicleEnter(vehicle, seat, jacked) if getElementModel(vehicle) == 463 then if seat == 0 then triggerClientEvent("triggerCustomEffect", source, source, vehicle, false) end end end addEventHandler("onPlayerVehicleExit", root, onPlayerVehicleEnter)
  19. Ukrainian - Доброго дня. Я маю глобальну модифікацію для гри GTA San Andreas. Я хочу дати змогу гравцям, грати в неї одночасно, з усього світу, і для цього я вибрав клієнт МТА, тому що він найпродвинутіший, і має відкритий код. Я хотів би зробити один сервер для цієї модифікації, але, щоб на нього могли підключитися лише ті люди, які встановлять спеціальний клієнт. Я хотів запитати: 1. В якій папці, та в якому файлі, я можу змінити доступ клієнту? Та як саме? 2.В якій папці, та в якому файлі, я можу змінити список IDE та IPL файлів, які буде загружати клієнт при запуску? Тобто, я не можу встановити звичайний МТА клієнт на свою модифікацію, тому що вона повністю замінює стандарту карту, а як я зрозумів, то клієнт по стандарту загружає IDE та IPL файли від стандартної карти, і при спробі встановити клієнт на мою модифікацію, він мені повідомляє про помилку. 3.В якій папці, та в якому файлі, я можу змінити GUI меню клієнта, ESC екран завантаження, і так далі. Я хотів би зробити, щоб при старті мультиплеєру, гравця відправляло на меню з вибором одного з декількох серверів, а не в стандарте меню МТА. Хотілось би отримати повну інструкцію, що і де, потрібно заміняти, за раніше, дуже велике дякую! P.S Я не буду завантажувати всі файли карти через додавання посторонніх моделей на стандартний сервер МТА, тому що їх більше 50-и тисяч. Якщо ви трохи не зрозуміли, що я хочу зробити, то прикладом цього є такі проекти, як: RP BOX, та MTA Province! Russian - Добрый день. Я имею глобальную модификацию для игры GTA San Andreas. Я хочу дать возможность игрокам, играть в неё одновременно со всех точек мира, и для этого я выбрал клиент МТА, по скольку он самый продвинутый, и имеет открытый исходный код. Я хотел бы сделать один сервер для этой модификации, но, что бы на него смогли подключаться только те люди, которые установят специальный клиент. Я хотел спросить: 1.В какой папке, в каком файле, я могу изменить доступ к клиенту? И как именно? 2. В какой папке, в каком файле, я могу изменить список IDE, и IPL файлов, которые будут загружены клиентом при запуске? То есть, я не могу установить обычный клиент МТА на свою модификацию, потому что она полностью изменяет стандартную карту, а как я понял, то клиент по стандарту загружает IDE и IPL файлы, от стандартной карты, и при попытке установить клиент на мою модификацию, он мне сообщает об ошибке. 3. В какой папке, в каком файле, я могу изменить GUI меню клиента, ESC экран, экран загрузки, и так дальше? Я хотел бы сделать, что бы при старте мультиплеера, игрока отправляло в меню с выбором, одного из некоторых серверов(В планах их несколько) а не в стандартное меню МТА. Хотелось бы получить полную инструкцию, что и где нужно заменять, заранее большое спасибо! P.S Я не буду загружать все файлы карты, через добавление посторонних моделей, на стандартный сервер МТА, потому, что их более 50-и тысяч! Если вы еще не совсем поняли, что я хочу сделать, то примером этого будут такие проекты, как: RP Box, и MTA Province! English - (Translate from Russian Language) Good afternoon. I have a global modification for the GTA San Andreas game. I want to give players the opportunity to play it simultaneously from all points of the world, and for this I chose the MTA client, because it is the most advanced, and has open source code. I would like to make one server for this modification, but that only those people who install a special client can connect to it. I wanted to ask: 1.In what folder, in which file, can I change access to the client? And how exactly? 2. In which folder, in which file, can I change the list of IDEs, and the IPL files that will be loaded by the client at startup? That is, I can not install the usual MTA client for my modification, because it completely changes the standard card, and as I understand it, the standard client downloads IDE and IPL files from the standard card, and when trying to install the client on my modification, he tells me about the error. 3. In which folder, in which file, can I change the GUI of the client menu, the ESC screen, the boot screen, and so on? I would like to do that, at the start of the multiplayer, the player would send to the menu with a choice, one of some servers (there are several of them in the plans) and not the standard menu of the MTA. I would like to receive a full instruction on what and where to replace, thank you in advance! P.S I will not upload all the map files, through the addition of extraneous models, to the standard AIT server, because there are more than 50,000 of them! If you still do not quite understand what I want to do, then an example of this will be such projects as: RP Box, and MTA Province!
  20. Hello. I have a global mod, really global. It has close to 65.000 models, so I have to use limitadjuster fastman92. I need to adapt an AIT client so that players can play my modification online. By type MTA Province (Google) I disabled the .asi file check https://imgur.com/a/EafjFOO изменив .asi на .ass(:D) изменил еще этот файл, заменив false на true https://imgur.com/a/aTp5S9s. I compiled the MTA, it worked, the MTA turns on, and does not pay attention to the .asi files in the game folder. The MTA starts up and works, I started the local server, and I'll try to connect, but my game is minimized, and after 10 seconds it flies. It starts proxy_sa, I started it not with the help of MTA, but just from the game folder, I got an error, there was a shortage of .dll files, I threw them from the AIT folder to the GTA folder, it worked. Proxy_sa was turned on. But still when connecting to the server through the client, the game is minimized, and after 10 seconds it turns off, in dispatching tasks, it is written that proxy_sa does not respond. Also on the server, I allowed players to use the modified gta3.img, and also removed the / maps and the rest from the verification of the data. But with all this, it does not work properly. Help me, please.
  21. Hi guys! Help me make the save. player walking style? ---------------Определить языкАзербайджанскийАлбанскийАмхарскийАнглийскийАрабскийАрмянскийАфрикаансБаскскийБелорусскийБенгальскийБирманскийБолгарскийБоснийскийВаллийскийВенгерскийВьетнамскийГавайскийГаитянскийГалисийскийГреческийГрузинскийГуджаратиГэльскийДатскийЗападнофризскийЗулуИвритИгбоИдишИндонезийскийИрландскийИсландскийИспанскийИтальянскийЙорубаКазахскийКаннадаКаталанскийКиргизскийКитайский (традиционный)Китайский (упрощенный)КорейскийКорсиканскийКосаКурдскийКхмерскийЛаосскийЛатинскийЛатышскийЛитовскийЛюксембургскийМакедонскийМалагасийскийМалайскийМалаяламМальтийскийМаориМаратхиМонгольскийНемецкийНепальскийНидерландскийНорвежскийНьянджаПанджабиПерсидскийПольскийПортугальскийПуштуРумынскийРусскийСамоанскийСебуанскийСербскийСингальскийСиндхиСловацкийСловенскийСомалиСуахилиСунданскийТаджикскийТайскийТамильскийТелугуТурецкийУзбекскийУкраинскийУрдуФилиппинскийФинскийФранцузскийХаусаХиндиХмонгХорватскийЧешскийШведскийШонаЭсперантоЭстонскийЮжный сотоЯванскийЯпонский Hi guys! How do I save a player's fighting style? Save and Load player's fighting style on (onPlayerLogin, onPlayerQuit, onPlayerLogout, onPlayerWasted). Please help me! I will be grateful to YOU! :)
  22. How to disable all components of the CEF browser ? Give me a separate MTA client with a fully deactivated CEF please.
  23. Guest

    Client و Server

    السلام عليكم اعرف انو Client هو على جهاز اللاعب Server ينطبق على السيرفر بس انا الحين ملخبط لنو كل مود اسويه مش عارف ايش احطه في الميتا سيرفر ولا كلينت و مش عارف كمان متى اعمل ملفين للمود client + server على سبيل المثال المود هذا local vipVehicles = { [520] = true; } addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "cv" then local p = {getElementPosition(source)} for _,vehicle in ipairs(getElementsByType("vehicle")) do if vipVehicles[getElementModel(vehicle)] then local v = {getElementPosition(vehicle)} if getDistanceBetweenPoints3D(p[1], p[2], p[3], v[1], v[2], v[3]) < 10 then if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then destroyElement(vehicle) outputChatBox("● You must be VIP to spawn this vehicle", source, 255, 0, 0) end end end end end end ) هو مود ما يخلي اللاعب ينزل طائرة و هو مو فيب طب مش المفروض بيكون كلينت؟ لما غيرته في الميتا الى سيرفر صار شغال؟ احد يشرحلي
  24. Hello there. Me and my friend tried to make a script that makes a spoiler on a vehicle moving. If the vehicle is going above 100km/h the spoiler will change its position. We are using setVehicleComponentPosition. The problem is that only the player who's driving the car can see it moving. Is there any way that it will be visible for everybody on the server?
  25. Guest

    Client + server.lua

    Hello there I wanted to ask you guys when i must do client.lua and server.lua because theres resources with them both and theres resources with server.lua only