Jump to content

Search the Community

Showing results for tags 'meta.xml'.

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 7 results

  1. I want to replace LSPD HQ with RPD interior from Resident Evil 2 but i Don t know how i need some help what meta and replace i need for txd, col, dff to replace The interior?
  2. I've successfully created a marker that triggers 'givePlayerMoney' and 'outputChatBox' when 'onClientMarkerHit' in a client.Lua. Does the server see the amount of money the player now has? Do I have to sync the money to the server with some kind of 'getPlayerMoney' in a server.Lua? I'm planning on making a weapons GUI that works with the player's money.
  3. I'm having trouble translating the scripts into colloquial language (to build the concepts in my head and understand what happens and what triggers the events). My ultimate objective is to add a help window that shows the functions of my server. This is what I researched so far: *I know some things may be obvious to the experienced developer. My intension is to "think out loud" so, if I'm mistaken, the reader(s) will point out my errors. With a stock MTA, pressing 'F9' (resource: helpmanager) opens a help window that shows two tabs: 'votemanager' and 'freeroam'. Respectively, each are run by their own resource that go by the same names. This means that if I stop one, the tab will be gone; If I stop both, there will be no tabs visible. Therefore, it is safe to say that both tabs are being added by a script (the window elements creation, the text, the size, etc), into the 'helpmanager' help window. While I can edit either tab to show the desired info, if I plan on stopping both resources (votemanager and freeroam) from starting in the near future, they will not be visible. Thus, the only path left I have is to add a script of my own that will only show the desired info in a new tab on the 'F9' help window. My questions are: - How can I create a text inside new tab inside the window of another script? *I know how to create a window. My issue is creating an uneditable text inside the window of a different resource. - How can I stop 'votemanager' and 'freeroam' from starting when the server.exe is ran. *I've tried looking for the resource in mtaserver.conf, but I can't find any trace of a resource that's related to freeroam. I do want to keep 'play', for the moment.
  4. Me ajudem PFV !!! alguem sabe algum script pra ligar e desligar o farol do carro? em dx Se Tiver Algum e puder me ajudar obg !!
  5. This is the dumbest question I've ever asked on this forum, but I have problem even not only with this. So, how can I add scripts from different folders in my meta.xml? And in these scripts, how can I load xml files from different folders, too? Any idea? If yes, please, show me example I know, that I would use xml = xmlLoadFile("filename.xml") But how to load xml in different folders? Same <script src="script.Lua" type="server"/> But how to tell MTA to load script from different folder?
  6. تم انشاء الشرح نظراً لوجود بعض الاشخاص الذين يطلبون المساعدة وعند التجربة يكون الناتج خاطئ نظراً لوجود اخطاء في ملف الميتا ما هو ملف الميتا وما هي اهميته في السكربت ؟ ملف الميتا هو اهم جزء من السكربت حيث انه هو المسؤول عن تشغيل باقي الملفات الاخرى بمعنى انه اذا كان هناك سكربت بدون ملف ميتا فإنه بغير فائدة . بعض الملاحظات xml : صيغة ملف الميتا تكون هكذا meta : اسم ملف الميتا يكون هكذا meta.xml : الصيغة الكاملة للملف تكون هكذا . الآن سأشرح ابسط شئ في ملف الميتا وهو تعفيل الملفات الاخرى فيه . ولكن اولاً ما هو التكون الرئيسي لملف الميتا ؟ انظر المثال الثاني وستعرف <meta> <!-- الكلام في هذا السطر لا يشكل اي شئ في ملف الميتا --> </meta> . والآن كيفية تفعيل ملفات السكربت .. انظر المثال التالي لتعرف كيف تقوم بتفعيل الملفات داخل ملف الميتا . في البداية يوجد بعض الاساسيات مثل <script /> يتم وضع اكواد تعفعيل الملفات الاخرى فيه وما يتعلق بها .. للملفات التيم يمكنك الكتابة فيها فقط src اسم الملف الذي تريد تفعيله مع الصيغة الخاصة بهذا الملف type نوع الملف اللذي تريد تفعيله ومن امثلته "client" او "server" او "shared". cache وهذه تستعمل لإخفاء الملفات التي تم تحميلها <meta> <script src="الملف و الصيغة" type="نوع الملف" /> </meta> <!-- ex 1 --> <meta> <script src="file.lua" type="shared" /> </meta> <!-- ex 2 --> <meta> <script src="file.lua" type="shared" /> <script src="server.lua" type="server" /> <script src="client.lua" type="client" cache="false" /> </meta> . ملاحظة مهمة جداً يجب ان يكون الملف موجود داخل السكرب لكي تستطيع تشغيل السكربت . والآن كيف تضع ملف " صور / صوت / خط / الخ " داخل ملف الميتا ؟ . في البداية يوجد بعض الاساسيات مثل <file /> يتم وضع اكواد تعفعيل الملفات الاخرى فيه وما يتعلق بها .. مثل الصور و الصوت / الخ src اسم الملف الذي تريد تفعيله مع الصيغة الخاصة بهذا الملف . مثال لتفعيل ملف في ملف الميتا <meta> <file src="الملف و الصيغة"/> </meta> <!-- ex 3 --> <meta> <file src="image.png" /> </meta> <!-- ex 4 --> <meta> <file src="image.png" /> <file src="sound.mp3" /> </meta> . تعلمت كيف تقوم بتفعيل الملفات الآن كيف تقوم بوضع الحقوق الخاصة بك ؟ . في البداية يوجد بعض الاساسيات مثل <info /> يتم بداخلها وضع اكواد الـ حقوق مثل author وهو الشخص الذي انشأ السكربت version وهو اصدار السكربت name اسم الـ سكربت description وصف مختصر لـ السكربت type وهو نوع الـسكربت ومن امثلته "gamemode" او "script" او "map" او "misc". . مثال لوضع الحقوق على السكربت <meta> <info author = "من صنع السكربت" name = "اسم السكربت" version = "اصدار السكربت" description = "وصف مختصر" type = "نوع السكربت"/> </meta> <!-- ex 5 --> <meta> <info author = "killerProject" name = "test" version = "1.0.0" description = "test test test" type = "script" /> </meta> <!-- ex 6 --> <meta> <info author = "you" name = "killer job" version = "1.5.0" description = "kill people" type = "script" /> </meta من الشروحات الاخرى لمن يريد التوسع في معرفة ملف الميتا . وضع ملفات الماب داخل ملف الميتا .. مثل وضع الملفات التي يمكن الكتابة فيها الا انه ينقص بعد الاكواد مثل نوع الملف ويوجد شئ جديد وهو موقع التصميم في العالم الوهمي . في البداية يوجد بعض الاساسيات مثل <map /> يتم وضع اكواد تفعيل ملف التصميم داخلها src اسم ونوع ملف التصميم dimension مكان التصميم بالنسبة للعالم الوهمي . مثال لكيفية وضع اكواد تفعيل ملفات التصميم <meta> <map src="اسم وصيغة ملف التصميم" dimension="رقم العالم الوهمي"></map> </meta> <!-- ex 7 --> <meta> <map src = "killerProject.map" dimension = "4112"></map> </meta> <!-- ex 8 --> <meta> <map src = "MyMap.map" dimension = "0"></map> </meta> . الآن وقت الشرح من نوع آخر وهو الاعدادات الخاصة بالسيرفر مثل الوقت / عدد ذخيرة الاسلحة الخ <settings> <setting name="" value=""/> </settings> يوجد صفحة خاصة بالإعدادات التي يمكنك التعديل عليها https://wiki.multitheftauto.com/wiki/Settings_system من الاساسيات الاخرى friendlyname اسم الشئ الذي تريد تغيير اعداداته accept القيمة التي تريد تغيير اعدادات الملف اليها examples بعض الامثال على القيمة التي وضعتها desc وصف الاعدادات التي وضعتها . مثال من الويكي على تغيير الاعدادات من ملف الميتا <meta> <settings> <setting name="roundlimit" value="[6]" /> <setting name="teamdamage" value="[1]" /> <setting name="teambalance" value="[1]" /> <setting name="spazammo" value="[25]" /> <setting name="m4ammo" value="[100]" /> <setting name="shotgunammo" value="[25]" /> <setting name="sniperammo" value="[20]" /> <setting name="ak47ammo" value="[120]" /> <setting name="rifleammo" value="[40]" /> <setting name="deserteagleammo" value="[45]" /> <setting name="pistolammo" value="[132]" /> <setting name="uziammo" value="[150]" /> <setting name="tec9ammo" value="[150]" /> <setting name="silencedammo" value="[65]" /> <setting name="grenadeammo" value="[4]" /> <setting name="satchelammo" value="[4]" /> <setting name="teargasammo" value="[4]" /> <setting name="molatovammo" value="[4]" /> <setting name="isAllowedToShoot" value="true" /> </settings> </meta> يوجد شروحات اخرى عن ملف الميتا سيتم شرحها في اقرب وقت بإذن الله مثل <include /> Include resources that this resource will use resource: Resource name that you want to start with this resource minversion: Minimum version that resource needs to be (optional) maxversion: Maximum version that resource needs to be (optional) <config /> Config file (.xml) can be accessed by resource, possible parameters are: src: The file name of the config file type: The type of the config file: "client" or "server" <export /> This exports functions from this resource, so other resources can use them with call function: The function name type Whether function is exported server-side or client-side (valid values are: "client", "server" and "shared") http: Can the function be called via HTTP (true/false) <html /> src: The filename for the HTTP file (can be a path) default: The html file is one that is shown by default when visiting /resourceName/ on the server. Only one html can be default, the rest are ignored. (true/false) raw: The html file is not parsed by the Lua interpreter and is treated as binary data. Must be used for binary files (images mainly) (true/false) <settings> <setting name="" value=""/> </settings>: Most gamemodes use settings system to let server admins to configure it how they like. For instance you could set round time and then use get and set to get the value or change it, respectively. <min_mta_version /> Minimum version requirements for this resource to run correctly. When authoring resources, the minimum version should usually be set to the current released version of MTA:SA (which at the moment is "1.5.4"). See example for example. client: The minimum client version server: The minimum server version <aclrequest /> A list of ACL rights this resource will need. <sync_map_element_data /> Controls whether map element data such as "PosX" and "DoubleSided" are transferred to the client. This data is usually not required by most gamemodes or resources. (Map Editor and Interiors require this to be not set to false to work). When set in a gamemode meta.xml, the setting will apply to all maps loaded by that resource. false: Disable transfer of map element data for all resources. This can reduce map download times considerably. true: Enable transfer of map element data for all resources. (If false and true are set in different resources, true will have priority and all resources will transfer map element data) <oop/> OOP - Please refer to OOP for documentation. false: Disable OOP. true: Enable OOP. <download_priority_group/> If not set, the download priority group for a resource defaults to 0. If this is set higher than 0, then the resource will be downloaded and started on the client earlier than other resources. If set to less than 0, the resource will be downloaded and started on the client later than other resources. هدف هذا الشرح هو تعليم الاشخاص المبتدئين اما بالنسبة للشرح في آخر هذا الموضوع فهو لـمن يريد ان يعرف اكثر عن ملف الميتا والسلام خير ختام
  7. Hi, I got a problem with the "settings" on my script. I set in the meta the following: <settings> <setting name="*skinsPrice" value="2500" group="Price" desc="Set the price of the skins." /> </settings> But when I try to edit the value I got this error: Basically, if I edit one, another setting is created with the value I set, and the old setting is not changed. If I use get() function like this: function saveSkinPrice (skinsResource) if skinsResource ~= getThisResource() then return end local currentSkinPrice = get("skinsPrice") --I use the setElementData to retrieve the value on client side setElementData(resourceRoot, "skins.price", currentSkinPrice ) end addEventHandler("onResourceStart", getRootElement(), saveSkinPrice) function updateSkinPrice(pricesetting, oldprice, newprice) --outputs for testing outputChatBox(pricesetting) outputChatBox(oldprice) outputChatBox(newprice) local currentSkinPrice = get("skinsPrice") setElementData(resourceRoot, "skins.price", currentSkinPrice ) end addEventHandler("onSettingChange", getRootElement(), updateSkinPrice) It retrieve the value from "iG_infernus-skins.skinsPrice" setting, making the setting "skinsPrice" useless. I can only use it to edit the "iG_infernus-skins.skinsPrice" setting, and that doesn't have any sense.
×
×
  • Create New...