Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/11/21 in Posts

  1. Hello MTA community, in support requests I am facing some difficulty understanding why the relationship between supporter and the to-be-supported is difficult. I am sensing that we are living in a world ruled by smartphones and that many users browse using devices which do not come with a comfortable keyboard. Understandably, I would not want to type long replies - including thoughtful elaborations and direct explicative answers to supporter questions - on a touchscreen keyboard. As a way to mend wounds by increased understanding I suggest detection of smartphone or PC presence on the forums. Since I am a developer I know that this is possible by voluntary browser meta-data provided by forum clients. Please give my suggestion an educated thought!
    1 point
  2. Olá. Não é possível pelo MTA. O máximo que vc consegue é descobrir as posições dos objetos usando esse site. Selecione no mapa uma posição próxima do objeto que você quer obter. Depois selecione o objeto na lista de objetos que aparecerem e clique em details. Na página do objeto, vá até o final e lá em baixo clique em Fullscreen/position export, ele vai abrir uma tabela com todas as posições em que esse objeto está. Copie a tabela e cole no seu script. Obs: As rotações não aparecem.
    1 point
  3. Hello _Marco_, since we are not a SQL support forums you can search on other domains if you want a solution based on SQL only. What you are asking though can be achieved inside of Lua. I am going to assume that you habe full access to the resource and want to modify it to provide a /listcommands feature. I am also going to assume that every command that you are interested in is registered during resource start-up. In that case you can make use of meta.xml load order to hook the addCommandHandler function before it is executed and fetch all of these commands into an internal list. For example... meta.xml: <meta> <script src="hook.lua" type="client" /> <script src="client1.lua" type="client" /> ... <script src="clientn.lua" type="client" /> </meta> hook.lua: local _addCommandHandler = addCommandHandler; local cmdlist = {}; function addCommandHandler(cmdname, ...) cmdlist[cmdname] = true; return _addCommandHandler(cmdname, ...); end -- SERVERSIDE. _addCommandHandler("listcommands", function(player) outputChatBox("--- cmdlist ---", player); for m,n in pairs(cmdlist) do outputChatBox("* " .. m); end end ); Can you follow me this far? Now you have a cmdlist variable which contains a table that contains unique command names as table keys that can be retrieved using pairs for-loop. The next step would be to push all the data to a SQL database at resource stop. Good luck! ?
    1 point
  4. Use the string.sub function with parameters 1 and 2 to get the first two letters of a string. Then you can compare the result with your own specified two letters.
    1 point
  5. Why would you think so? The wiki page says the following: Do you read anywhere in the above text that the function does not work for you?
    1 point
  6. You are passing too many parameters into the respawnVehicle function. What you are describing sounds like you want to use the fixVehicle function. It repairs the vehicle without changing the position of it.
    1 point
  7. Could you show me your code? It is hard to judge if you give me nothing.
    1 point
  8. You could also try making a web request from the server to any website that provides you with your public IP address
    1 point
  9. If you link a script to a fixed IP you imply that the script is meant to be run on the specified IP only. I think this is an interesting idea. You can use this IP check in serverside scripts if you have defined the IP inside the mtaserver.conf file. Please note that I have no experience with the practicability of such a check! Look at the getServerConfigSetting function wiki entry for further details. Add the following statement to the top do-end block of your script: local run_server_ip = ""; -- put server IP here (example: 127.0.0.1) if not (getServerConfigSetting("serverip") == run_server_ip) then error("FATAL ERROR: script not licensed to run on this server!"); end
    1 point
  10. You're welcome! I like helping people that really need my experience and insight. ?
    1 point
  11. السلام عليكم, حي الله الجميع كيف الحال؟ جمعة مباركة أما بعد جايب لكم نظام جديد الصراحة , وشفته فـ طارهـ لكن مختلف عن فكرة النظام هذا الفكرة تقريباً معروفة في الألعاب والشركات لما تعطيك رقم تسلسلي تحطه وتجيك لعبة مجانية ، لكن هذا فكرته غير فكرته الكونسل يسوي لك رمز ويجي رمز عشوائي وطبعاً الرمز إذا حطيته فـ لوحة أف 2 راح يتفعل مباشرةً ويعطيك الجائزة والجائزة هي : 5 ساعات + 5 مليون فلوس . وبإذن الله مع الوقت بيكون فيه تطوير له من حيث الجوائز وتقدر تضيف جوائز أو نقاط إذا عندك في سيرفر --- كل شيء محفوظ بـ قاعدة البيانات -- ما شفرت ملف السيرفر عشان الي يبغى يتعلم قاعدة البيانات ياخذ راحته : ) . - نشوف الصور أحسن : إنشاء الرمز : - اللوحة الرئيسية الي تفعل منها الرمز : لـ فتح اللوحة لـ تفعيل الرمز: F2 لـ فتح اللوحة لـ إنشاء رمز( للكونسل فقط ) xRedeemPanel ==================================== -UPDATE: Fix Bugs. Download.
    1 point
  12. 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.
    0 points
×
×
  • Create New...