Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/25/21 in all areas

  1. Hey there, I had quite a headache trying to figure this out so I figured I'd make a tutorial to help other people. Tools required OpenIV — http://openiv.com/ ArchiveFix —http://gtaforums.com/topic/871168-affix-fix-your-rpf-archives-and-work-without-openiv/ Initialising ArchiveFix Firstly you'll want to fetch the keys for ArchiveFix (afix) to do so download and unpack the ArchiveFix package. Open Command Prompt and type (replace with where you unpacked ArchiveFix) cd E:\ArchiveFix then open GTA 5 and let it sit on the loading screens, return to your command prompt and enter archivefix.exe fetch this may take some time to fetch the encryption keys, as it depends on your CPU power. Just be patient and let it do its job. After you've successfully acquired all the encryption keys, we can move on. Afixing and using Add-on vehicles We'll start by finding a modification from here: https://www.gta5-mods.com/vehicles/tags/add-on Once you have found your modification of choice (I'll be using this: https://www.gta5-mods.com/vehicles/mazda-rx7-c-west) Inside the archive (/Add-on/) there is a file called readme.txt — inside it references the modification as <item>dlcpacks:\rx7cwest\</item> So we won't append dlc_* to our folder name. Navigate to your ArchiveFix root directory and create a new folder with the name of the modification (rx7cwest) and inside create the following folders: "oldrpf", "newrpf" and "unpack" Move the dlc.rpf from the downloaded mods archive to the newly created "oldrpf" folder. Using OpenIV navigate to the /rx7cwest/ folder inside our ArchiveFix root, making sure you're in EDIT MODE right click the dlc.rpf and 'Save Contents/Export' select the /unpack/ folder we just created. Navigate inside /unpack/ copy all the unpacked folders into /newrpf/. Drag and drop any subsequent *.rpf files inside /newrpf/ onto ArchiveFix.exe Using OpenIV create a new dlc.rpf file inside /newrpf/ and drag all the afixed files from inside /newrpf/ (make sure you don't copy the new dlc.rpf file) into the dlc.rpf inside OpenIV Drag the new dlc.rpf file onto ArchiveFix.exe to encrypt it Create a new folder inside RageMP's /server-files/client_packages/dlcpacks/ called /rx7cwest/ (remember the actual add-on's name dictates the name of this folder) and drag the new dlc.rpf inside. Making use of the new mod Start your server, and connect to it you will download the new /dlcpacks/ files, and then once it reconnects automatically close the game. Reconnect to the server and spawn the new vehicle by typing the hashname (if you're not sure, you can check the setup2.xml file inside dlc.rpf) in this case it is "rx7cwest" Credits nobodyltu Lokote1998 Splak George
    1 point
  2. В index.js пишите примерно так: require('./путь/к/папке');
    1 point
  3. такое чувство что вы с программированием встретились зайдя на сайт rage.mp впервые объясняю: для написания нужно знать: • Один из языков программирования: Node js, C#, C++, Java для написания серверной стороны • Про работу с базами данных даже говорить не буду, какую бд хотите такую и юзайте, главное чтобы язык имел модули/драйвера для работы с ней • Алгоритмы тоже самое, сами придумываете, сами юзаете • Для клиенсткой стороны можно использовать JS, или любой транспилируемый в JS язык: Typescript к примеру • Для интерфейса все что угодно вебу юзать можно То есть самый донный стандарт html + css + js, но через какое то время вы поймете что лучше юзать какой нибудь фреймворк и многое другое о чем тоже можно написать книгу по толще войны и мира. Ваши вопросы больше похожи на это "Ребята, я не шарю в программировании, объясните как писать код" Все просто идешь читать книги/туториалы/документации и надолго залипаешь в IDE чтобы тестировать свои новые познания, и запомни, программирование это 20% теории и 80% практики, крови, пота, нервов и недосыпания
    1 point
  4. [Command("todo", GreedyArg = true)] public void CMD_TODOACTION(Client player, string action) { var actions = action.Split('*'); if (actions.Length > 1) { ChatHandler.SendChatMessage(Settings.RADIUS / 2, player, $"- {actions[0]}. {Properties.COLOR_PURPLE}- said {player.Name}{actions[1]}."); } }
    1 point
  5. Можно, на клиенте, а вот как синхронизировать с сервером или другими игроками вот это вопрос
    1 point
  6. Так самп не сразу стал популярным. Так что всему свое время.
    1 point
  7. Только не пиши, что начал изучать программирование из-за того, что захотел разрабатывать базы данных для каких-то организаций)
    1 point
  8. Куда это все вставлять? Когда-нибудь где-нибудь будет описание где что вставлять и на каком яз писать
    1 point
×
×
  • Create New...