Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/02/21 in all areas

  1. İ tested and its worked, but i dont know its true usage or not of multiple args for this reason i wanna a example code from you. Thanks @IIYAMA
    1 point
  2. thx! Sorry for my late reply, I didn't notice the notification. The syntax for that function: bool callServer (callFunctionName string [, argument1, argument2, ... ] [, callbackFunction function [, argument1 (internal), argument2 (internal), ...]] ) https://gitlab.com/IIYAMA12/mta-communication-enchantment/tree/master/documentation/syntax#syntax-1 Multiple values can be send over by just adding them between the functionName and the callBackFunction. functionName: 'isAccountRegistered' callBackFunction: function(state) end callServer('isAccountRegistered', username, function(state) end) -- 1 callServer('isAccountRegistered', username, password, function(state) end) -- 2 callServer('isAccountRegistered', username, password, caseVariable, function(state) end) -- 3 It goes through all arguments and detects if there is a function, then that one will be the callBack function. See here where that happens in the source code: https://gitlab.com/IIYAMA12/mta-communication-enchantment/-/blob/master/sync/sync_c.lua#L77 https://gitlab.com/IIYAMA12/mta-communication-enchantment/-/blob/master/sync/sync_shared.lua#L250 So you want to do that, what you already can do and doing it already? ?
    1 point
  3. I cant help you without seeing the code.... not vident. But try to search somenting with brightness inside the script..
    1 point
  4. If its not private shader. paste here or donwload to see.
    1 point
  5. Yes that could work in terms of ped management. But that does not solve the hard coded error, that will occur when the client has not added the <event> yet, while receiving <that event> from serverside. It can even lead to desync when serverside is not sure if the client has received it's message. Sure you can repeatedly send the same data, but that will be an unnecessary data transfers (in my opinion). You want to start the dialogue between clientside and serverside when you know that both sides are ready, so that your resource can be optimized for data reduction.
    1 point
  6. No, when for example a control state has changed, you keep that information on the server. With this information you can inform new/not loaded clients about the current states of the peds. pedDataCollection = {} -- set-up pedDataCollection[ped] = { running = false } local pedData = pedDataCollection[ped] pedData.running = true It can also reduce data tranfers between the client and the server. So if you know that you set the ped to run, you do not have to tell all clients later again that the ped is running. It is, but it gives error when a client has not loaded their resources. Which is in my opinion not very clean. You want to reduce errors to the minimal to prevent lag.
    1 point
  7. İts amazingly usefull! I use this on my script but i have one question about multiple argument sending to server-side. Can you give a example for this? callServer('isAccountRegistered', username, function(state) if state then guiSetText(usernameEdt, '') return notifications:error(string.format('%s zaten kullanımda. Lütfen farklı bir ad seç.', username)) end end ) -- i wanna use multiple args when sending, for example. callServer('isAccountRegistered', username, password, caseVariable, function(state) -- TO DO end )
    1 point
  8. السلام عليكم ورحمة الله وبركاته.. شخباركم؟ عساكم بخير يارب اليوم جايب لكم لبس دوريات الأمن مسويه من سنتين تقريبا ولا احتاجه صورة لـ اللبس Download - التحميل
    1 point
  9. سلام عليكم اتمني ان يكون الجميع بخير وصحة وعافية hud الموضوع عن مود ولكن داخل الدبابة فقط C لما تكون داخل الدبابة اضغط علي حرف وبيتغير المنظور الي المنظور الاول ☀☀☀☀-------------------------------------------------------------------------------------------------------------------------------------------------------☀☀☀☀ ☀☀☀☀-------------------------------------------------------------------------------------------------------------------------------------------------------☀☀☀☀ صور للمود C قبل الضغط علي حرف C بعد الضغط علي حرف ☀☀☀☀-------------------------------------------------------------------------------------------------------------------------------------------------------☀☀☀☀ اترككم مع تحميل المود اذكر الله بالتوفيق
    1 point
  10. السلام عليكم ورحمة الله وبركاته اتهامات سرقة السكربتات بدون دليل ممنوعة, لاحظت في الفترة الأخيرة اتهامات بين أعضاء المنتدى بخصوص نشر سكربتات مسروقة وما شابه ولذلك اذا توفر لديك الدليل الكافي بأن السكربتات مسروقة وليست يملكاً للشخص الذي قام بنشرها قم بالتواصل مع المشرفين على الخاص وسيتم التعامل مع الموضوع. * ملاحظة: ليست لدينا أي صلاحيات تجاه السيرفرات التي تستعمل سكربتات مسروقة, فقط السكربتات التي تم نشرها على هذا المنتدى. تحياتي لكم
    1 point
  11. If you do not understand me then please ask again. 1] More IDs for vehicles. I have a question. Is it possible to add(adapt) a free ID for the car. For example, I have a free ID 612 and I want to add a new car to it(since the developers of UGMP made them more than 500 cars from GTA Vice city and not only ) As far as I understand, it is possible. Because the developers of "UGMP" implemented it ..... I did some digging into the MTA wiki and found that they have "Vehicles IDs"(vehicleIds = {400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611 }) And in the source code of the MTA, I found the ability to change the number of seats in the car and the ability to change the color (something like carcolors) 2]More IDs for objects. I am wondering if it is possible to increase the number of free IDS?(For example, 20,000 to 50,000) As far as I know in the source code there is a file that contains a list of valid IDS . Can it be expanded? (https://github.com/multitheftauto/mtasa-blue/blob/1.0/MTA10/utils/gentable/gentable_objmodels.cpp) I would very much like you to understand me.
    1 point
×
×
  • Create New...