Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/04/19 in all areas

  1. السلام عليكم مبدأيا الي عندو افكار للمشروع يقولها ? -------------------------- في الفترة الاخيرة عرفت ان ممكن استخدم html, css, javascript داخل mta sa ----------------------------- جاتلي فكرة اني اصنع اطار عمل لتسهيل استخدام لغات تصميم الويب علي مطورين اللعبة html from تبع input هو ان مثلا لو يبي تنسيق لل يقدر يستخدم كلاس انا عمله يحطه في الانبوت ويسوي احلي تنسيق وبكل سهولة ولو يبي تصميم لرسالة هو مجرد تاج بسيط في كود الاتش تي ام ال واسم كلاس ويسوي له تنسيق الرسالة بكل سهولة والموضوع مش بيقف عند التنسيقات فقط بل استخدام ديناميكية الجافا سكربت وقوتها في اطار العمل و...الخ في اكيد منكم يعرفني ويعرف شغلي وللتأكد https://ahmedessam.info/ ----------------------------- تعامل مسبقا مع لغات الويب في اللعبة lua المهم انا احتاج مطور ويعرف الغير مناسب او بمعني اصح الغير مدعوم من خصائص لغات تصميم الويب او ممكن نجرب مع بعض website docs + github طبعا المشروع راح يترفع علي ونستفيد انا وهو ان في شئ مميز في اعمالنا
    3 points
  2. As @Overkillz said, you can wrap Lua(tables in tables) and in JSON (objects/arrays in objects/arrays). Or, you can use XML to manage the JSON/tables as I said before.
    2 points
  3. So when I try to enter in a specific server it says that it requires driver signing to be enabled. It appears that error code is SD #15 SIGN. I don't know what does that means but I have already reinstalled Gta San Andreas and MTA and did update my drivers. Help me please.
    1 point
  4. It's official, MTASA has been bought and we are becoming SAMP. Future MTASA builds will be closed source and half the features removed. Have a nice day!
    1 point
  5. Só com isso já serve. for _, v in ipairs ( { "pro", "std", "poor" } ) do setWeaponProperty (ID, v, "damage", 0) -- No lugar de ID, coloque o ID da arma que vc quer mudar o dano. No lugar do 0, informe quanto dano cada tiro da arma deverá dar. end
    1 point
  6. Oh i didn't noticed that, changed sizes to less and everything works Thank you.
    1 point
  7. Enable driver signing check. if not clear, then I can help you in Discord. Tutorial: https://www.technipages.com/enable-disable-device-driver-signing
    1 point
  8. 1. Try to attach the checkboxes later than the scrollbar. 1. + 2. The scroll bar is on top of the checkboxes. And the checkboxes might be on top of the scrollbar. Which focusing on an element, the order might change. This is incorrect: (main issue) guiPanel[1] = guiCreateCheckBox(0.65, 0.1, 10, 10, "Show HUD", true, true, userPanel) guiPanel[2] = guiCreateCheckBox(0.65, 0.3, 100, 100, "Show GPS", true, true, userPanel) guiPanel[2] = guiCreateCheckBox(0.65, 0.5, 100, 100, "Show Debug", true, true, userPanel) guiPanel[3] = guiCreateCheckBox(0.65, 0.7, 100, 100, "Low blood effect", true, true, userPanel) guiPanel[4] = guiCreateScrollBar(0.02, 0.3, 0.60, 0.070, true, true, userPanel) guiPanel[5] = guiCreateScrollBar(0.02, 0.5, 0.60, 0.070, true, true, userPanel) guiPanel[6] = guiCreateScrollBar(0.02, 0.7, 0.60, 0.070, true, true, userPanel) guiPanelTexts[1] = guiCreateLabel(0.14, 0.23, 30, 30, "Weapon sounds", true, userPanel) guiPanelTexts[2] = guiCreateLabel(0.54, 0.23, 30, 30, "100%", true, userPanel) guiPanelTexts[3] = guiCreateLabel(0.14, 0.43, 30, 30, "Actions sounds", true, userPanel) guiPanelTexts[4] = guiCreateLabel(0.54, 0.43, 30, 30, "100%", true, userPanel) guiPanelTexts[5] = guiCreateLabel(0.14, 0.63, 30, 30, "Radio sounds", true, userPanel) guiPanelTexts[6] = guiCreateLabel(0.54, 0.63, 30, 30, "100%", true, userPanel) 30 = 3000% 100 = 10000% @majqq = 100000000%
    1 point
  9. You talk about Moderator rights? Should be no problem after next update.
    1 point
  10. Omg, i just can be idiot haha I already done my script, but instead of call the exact data, i was calling the tables ! Thanks a lot
    1 point
  11. Saving??????? This is about loading! Maybe you use it like this: local trabalhotr = playerTraficante[source] I have 0% knowledge about your system. You should know that better than me.
    1 point
  12. -- CLIENT SIDE function OpenWin() if getElementData(localPlayer, "Group") == "HellsAngels" then -- elementdata is a shared variable, so you can get it on client side if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end end addCommandHandler('grouppanel', OpenWin) -- SERVER SIDE NOT NEED
    1 point
  13. I didn't read the previous replies, but you can follow this way. local myTableName = {} table.insert(myTableName, {itemName = "IDK-SomeName", dataValue = "12345", anotherData = "12345" } )
    1 point
  14. Eu uso isso para definir um certo limite de dano em minhas armas. Ele funciona em serve-side Nesse código ele fornece 100 dano para sniper ID. 34 addEvent "onPlayerHeadshot" addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then killPed(source, attacker, weapon, bodypart) end end end ) local weapons = {34} function onClientPedDamage(_, weapon) if(getElementType(source) == "player") then if(weapons[weapon]) then return killPed(source) end end end addEventHandler("onClientPedDamage", getRootElement(), onClientPedDamage) for _, v in ipairs ( { "pro", "std", "poor" } ) do setWeaponProperty ( "sniper", v, "damage", 100 ) end
    1 point
  15. Congratulations, btw didn't believe either of you. ?
    1 point
  16. I have seen someone created a new VK group, is that you? HAWK abandoned the old one due to time issues. I welcome any effort.
    1 point
  17. Okay nevermind. I got this to work somehow. Rewrited functions again. And now file content is correct. If something will change, or i will need help in something else, i'll let you know, thank you once again.
    1 point
  18. داري بكل دا اقول ما يصير تسوي كدا 0.." killerx" في ام تي ايه بيجيك خطا ودا عن تجربة موفقين #Edit : وكمان في اللوا نفس الخطا بيجيك عن تجربة واللي هوا --》 malformed number near 0..
    1 point
  19. playerTraficante = {} Is a table, tables can't be called. playerTraficante ( ) Only functions can be called. The reason why it is table instead of a function is unknown to me. Please ask the one that created the script for the reason why. Or if it is created by yourself, then ask yourself the same question. Also it might be handy to inspect the table first. iprint(playerTraficante) It might give you information about how to use it.
    1 point
  20. yes, every time you are going to write.
    1 point
  21. Unfortunately, I've to confirm that this is true. We originally wanted to create a post with all details and background information within the next few days, but since there seems to be so much irritation, I'll anticipate a part of the whole background. Expect another post in a few days though. The problem is that contribution to MTA by open source contributors got stuck lately and the rest of the team isn't able to handle the remaining work alone. Also, we've recently run into financial troubles. Therefore, we - together with the SA:MP team - came to the conclusion that merging both mods makes more sense. Unfortunate for us, MTA is - measured against the player stats - the smaller mod so the merge has to be in favour of the SA:MP community. In addition, the SA:MP team kindly decided to help us out with some money to fix our financial problems (for legal reasons, we have to say they bought us). Hence, the new mod will start with SA:MP's feature set, but we're hoping to integrate most of MTA's features within the next 2 years. However the good news is that MTA's master servers will definitely not be switched off before July this year.
    1 point
  22. @majqq Oke let me explain you the difference between Lua tables and objects / arrays in JavaScript. (JSON = JavaScript Object Notation) Here we have a table with array structure in Lua: local thisArray = {1, 2, 3, 4} Here we have a table with object structure in Lua: local thisObject = {a = 1, b = 2, c = 3, d = 4} Here we have a table with an mixed structure in Lua: local thisMix = {a = 1, b = 2, 3, 4} As you can see those are tables. There is no such thing as arrays or objects in Lua. But if we were to transform them to JavaScript: Array const thisArray = [1, 2, 3, 4]; Object const thisObject = {a: 1, b: 2, c: 3, d: 4}; There is NO mixed in JavaScript! If you insert a mixed Lua table in JSON (JavaScript Object Notation), the structure will be an OBJECT ? Afaik this is what is happening to you, except it doesn't look like you are doing the same thing... local thisMix = {a = 1, b = 2, 3, 4} To JSON .................... From JSON local thisMix = {a = 1, b = 2, ["1"] = 3, ["2"] = 4} -- or local thisMix = {["a"] = 1, ["b"] = 2, ["1"] = 3, ["2"] = 4} So how about try it without defining any keys. Because I really have no other idea why else it would change it to an object. playerData = {playerItems = {false, false, false, false, false, false, false, false, false, false}}
    1 point
  23. As I mentioned before, do not mix arrays and objects in same table in Lua. For some unknown reason that has happend here. The json I am looking at contains an object instead of an array. Object: { } Array: [ ] Try to not assign the items to specific indexes, but keep it untouched. In your current code the items can be accessed using a string "1", "2" etc. Use: iprint to figure out more info.
    1 point
  24. https://wiki.multitheftauto.com/wiki/GetVehicleWheelStates local frontLeft, rearLeft, frontRight, rearRight = getVehicleWheelStates( vehicleElement )
    1 point
  25. It is less efficient because: - Tables are a very different format than XML. That means that you have to write and convert the data with a lot more extra code. - It isn't compact, the filesize will be a lot bigger incompare to JSON.
    1 point
  26. XML has most of the cons. It is also much older, so it is to be expected. There are a few XML haters on the community, so I will keep it short. So a few pro's: - Readability is very high, especially in case of inheritance. In JSON that can also be good, but you will need a proper reader for that. - Maintenance. In case of breaking it, it is very easy to fix it. (That being said, it breaks easier if you do not know the rules.) - Saving JSON inside the notes and keeping a secondary XML layer of properties that do not have to be saved in your main data. There are not many user cases where you want that on clientside. Unless you have a shared settings file for all resources. In that case you only have to parse JSON of a specific resource node. - (not related to player settings) Can be use for multiple files that are already integrated in mta. XML, map, (acl*) So JSON? Yes, if you keep your lua table it's structure: arrays and object separated.
    1 point
  27. UPDATE: -Added Carro Armato P26/40 -Added Type 97 Shinhōtō Chi-Ha -Added A15 Crusader Mk. III -Decreased the hilarious amount of damage that tanks received when hit by HE ammo -Disabled collisions of fixed MGs that are placed on some maps -Peds stream distance has been reduced from 500 to 90 because some trolls abused the bad MTA streamer to shoot others through objects by setting everything to low -Implemented a new method of rendering water -Re-added bubble effects for ships, sonar decoys and torpedoes -Players can now select the melee weapon -Added 3 new melee weapons: Hatchet, Bat, Crowbar -Reduced price of anti-tank rifle ammo -Armor does no longer show a "1" below its gadget icon and reduced armor price + amount in shop -Switching a weapon by picking another one up does now add the current clip ammo to the new weapon if ammo is compatible -Picking up flamethrower ammo does now put the ammo directly into the clip -Changing the weapon pickup key does now actually change the tooltip display ingame (was always displayed as "K") -Flamethrower does no longer need to reload, changed clip ammo from 300 to 500 (500 also is maximum ammo now), reduced ammo price -Fixed a bug with exploding tank turrets sinking into the tank -Fixed the correct ID of the LCM landing craft from 545 to 493 -Its no longer possible to pick up a weapon pickup while being in a menu or chat -Ladder climb animation is now properly played everytime -It is no longer possible to start climbing a ladder while flying in air (jumping...) -Grenade throw force no longer resets to 0 randomly when walking on slopes -Flares no longer glitch through the ground (At least 99%) -Flares do now enable even when they hit water -Updated pedwall shader to latest version (Thanks to Ren712 for his awesome work) -[WAR] Diablo has been reworked by JN -Updated [TDM] Italy, [WAR] KDB and [TDM] Forest to latest version bugfixed by JN -Players can no longer desync their animation when faking death while flying off a car roof etc. -Fixed an incompatibility between SSAO shader and some other shaders
    1 point
×
×
  • Create New...