Jump to content
RAGE Multiplayer Community

Search the Community

Showing results for tags 'client'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

  1. hi guys i try to join my server. rage version is 0.3.7 and when i try to join i see server version mismatch error message. my gta is and rage mp update. can you help me
  2. Version 1.0.0

    165 downloads

    I recently needed a polygons library like this for my gamemode to define some companies, houses, gangzones and other kind of establishments boundaries, so I decided to create this resource previously based on abmn's zone manager, but the code was terrible and I decided to rewrite my own from scratch and improving the functionality. Basically you'll be able to create any kind of colshape you want, without worring about combining colshapes to fit your needs, you can just define the points and the height of the shape and it'll be created easily! You can set boundaries for houses to move furnitures, for companies to accomplish the job, for mountains in hunting animals scripts and anything else your creativity takes you, just use it! Demos https://streamable.com/w7l4h6 https://youtu.be/OxSPcVQrWrY Advantages The main advantages of using this resource instead of abmn's are: These polygons are dynamic, you can modify, move, rotate, basically do anything to the polygon vertices array in real time and it'll work instantaneously, updating the collisions with players. This script is way more optimized and lightweight than the other version. You can choose the color for the lines of the polygon and set them visible or not by just modifying the polygon `visible` property. This script supports different kind of heights for detecting collision (eg.: slopes), it's accurate (may not work as you think it should depending on the slope degree and the polygon height), and supports even colshapes for mountains. You can add more vertex at any time you want to existing polygons, by just pushing a new vector3 position to `polygon.vertices` array. API Functions /* Creates a new polygon and return it's instance */ mp.polygons.add(vertices: Vector3Mp[], height: number, options = { visible: false, lineColorRGBA: [255,255,255,255], dimension: 0 }): Polygon /* Removes a polygon */ mp.polygons.remove(polygon: Polygon): void /* Check if a polygon exists */ mp.polygons.exists(polygon: Polygon): boolean /* Check if a position is contained within a given polygon */ mp.polygons.isPositionWithinPolygon(position: Vector3Mp, polygon: Polygon): boolean /* Examples */ // Creating a new polygon const polygon = mp.polygons.add([new mp.Vector3(10, 10, 5), new mp.Vector3(15, 15, 5), new mp.vector3(5, 5, 5)], 10, { visible: false, lineColorRGBA: [255,255,255,255], dimension: 0 }); // Set the polygon lines visible polygon.visible = true; // Modifying a polygon height polygon.height = 100; // Modifying a polygon color (RGBA) polygon.lineColorRGBA = [255, 155, 0, 255]; // Modifying a polygon dimension polygon.dimension = 30; /* Events*/ // Event called when player enter a polygon (clientside) mp.events.add('playerEnterPolygon', (polygon) => mp.gui.chat.push(`You entered the polygon ${polygon.id}!`)); // Event called when the local player leaves a polygon (clientside) mp.events.add('playerLeavePolygon', (polygon) => mp.gui.chat.push(`You left the polygon ${polygon.id}.`)); How to install Download the zip folder Extract it on your clientside folder Require the index file from the polygons folder. Enjoy it! See you on the next release! - n0minal
  3. Я пишу свой проект на TS и использую для интерфейсов VueCLI, что мне позволяет делать очень функциональные и реактивные UI. Я настроил там VueRouter для маршрутизации своих страниц. Например что бы показать планшет LSPD, я указываю следующий адрес package://cef/index.html#/faction/lspd/tablet. Если хочу показать страницу авторизации, то - package://cef/index.html#/auth/login. Как вы могли заметить, я работаю только с одним интерфейсом и одним экземпляром браузера, в котором много разных интерфейсов, для различных игровых процессов. Если я хочу показывать какие то интерфейсы, которые будут доступны из любой страницы, например чат и спидометр, то я такие компоненты размещаю в корневом компоненте Vue (App.vue). Что я видел в на форумах и в слитых игровых проектах с исходным кодом... Там обычно все пишется всё на классическом JS без каких либо препроцессоров или фреймворков, в интерфейсах встречает библиотека JQuery, кто-то конечно использовал React, что не может, не радовать. Везде каждый интерфейс в свой папке и нет никакой маршрутизации, поскольку она там не нужна. Если по какой то логике нужно показать другой интерфейс, то в существующем браузере меняю адрес, либо же, например для чата создают отдельный экземпляр и там уже отображают чат. В последних версиях RageMp вовсе сделали для браузера функцию makeAsChat, которая позволяет подменить чат сервера на ваш. Собственно со зависимые вопросы: 1. Правильное решение использовать несколько экземпляров BrowserMp для отображения различных интересов, в своём браузере? 2. Или может быть в действительности достаточно одного браузера, который откроет полноценный сайт с маршрутизацией по страницам и будет показывать нам чат, спидометр, меню игрок и другие вещи? English (interpreter)
  4. Hey there, folks! I recently asked myself, how I can retrieve the current FPS of a client, because there is no inbuild function at all. Here's a small snippet for retrieving the current FPS in TypeScript (if you want to use it in JS just compile it with a TS transcompiler or adapt it 😐). /* Copyright 2019 Vincent Heins/TheMysteriousVincent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ class FPSCalculator { private fps = 0; constructor() { let lastFrameCount = this.getFrameCount(); setInterval(() => { this.fps = this.getFrameCount() - lastFrameCount; lastFrameCount = this.getFrameCount(); }, 1000); } public get(): number { return this.fps; } private getFrameCount(): number { return mp.game.invoke('0xFC8202EFC642E6F2') as number; // '0xFC8202EFC642E6F2' is a method of GTA5 which returns the frame count since the game was started (see http://www.dev-c.com/nativedb/func/info/fc8202efc642e6f2 for ref.) } } export const FPS = new FPSCalculator(); Or, if you prefer a Gist: https://gist.github.com/TheMysteriousVincent/42a4b00b4c34b6dd27423e48bd5c6c52 Or additionally, if you prefer the download section of RageMP: Sincerely, ~Vincent
  5. Hi, I have a question is it possible to to change this folder. When I start my Server and I download the server assets it creates this server folder and not one with a IP name. How can I change it? Folder Folder inside Thanks Cybora
  6. After last Rage MP update, I can't connect to a few servers, probably because they haven't updated the server to latest verison. This is extremly annoying because the one developer of my favorite server is lazy as fuck. Is there a way I can revert back to rage 0.3.5? If I download from announcements then it just downloads the updater and updates automatically. (Or can someone provide the 0.3.5 files directly/and some way to disable auto update.) I also tried a bunch of crap to fix this, idk man. (And I have the legit GTA V btw. (v1.44))
  7. Nothing happens, the value changes but does not apply. When you exit and then enter the stream of the vehicle, the handling value that I set before is reset to default. public void SetVehicleHandling(object[] args) { string key = args[0].ToString(); float val = Convert.ToSingle(args[1]); Chat.Output($"OLD: {RAGE.Elements.Player.LocalPlayer.Vehicle.GetHandlingFloat(key)}; NEW: {val}; ({key})"); RAGE.Elements.Player.LocalPlayer.Vehicle.SetHandling(key, val); } If someone maked it work i will be appriciate for answer. Thanks
  8. CXXY

    remote event error

    Client side: class KeyManager { constructor() { mp.keys.bind(0x11, true, function() { if(mp.players.local.vehicle && mp.players.local.vehicle.getPedInSeat(-1) === mp.players.local.handle) { mp.events.callRemote('BANG_onVehicleShotPrimary', mp.players.local.vehicle.getForwardVector()); } }); } } export default new KeyManager(); Server side: [RemoteEvent ("BANG_onVehicleShotPrimary")] public void BANG_onVehicleShotPrimary (Client player, object[] arguments) { player.SendChatMessage("HALLILUAH"); } Console: at object RuntimeMethodHandle.InvokeMethod(object target, object[] arguments, Signature sig, bool constructor) at object System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(object obj, object[] parameters, object[] arguments) at void GTANetworkInternals.RemoteEventParser.Parse(Client sender, ulong eventNameHash, object[] args) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\ResourceInfo.cs:line 62 at void GTANetworkInternals.RemoteEventHandler.Parse(Client sender, ulong eventNameHash, object[] arguments) in C:\Users\Adam\Documents\Git\comp-layer2\BootstrapperNC\Handlers\ResourceInfo.cs:line 67 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —-> System.NullReferenceException: Object reference not set to an instance of an object. at void GC_FunGame.Main.BANG_onVehicleShotPrimary(Client player, object[] arguments)
  9. I've got a small problem with my client as it crashes on this specific location (In-game coordinates show as 0, 0, 0): I'm not sure if the server or client is causing it to crash, but I'm wondering if there is some way of getting error log on crash or something so I can see why it crashed. Thank you for your time! 🤗
  10. Hey, While trying to join any server, the client of rage mp just shuts down, with no error or anything like that while "downloading server assets". # If someone has a good solution to that problem, i would be very pleased, if he could tell me.
  11. Is it possible to integrate the server password system from SAMP that's very much needed, especially for private servers. This system can help prevent unauthorized users from downloading server files by instantly rejecting connection if the login was incorrect. It'll function pretty much the same way, login username and password can be defined in the server configuration file. The option to input the username and password would be alongside the server address in Direct Connect. Alternatively, have a Favorites tab where players can save the address of their preferred servers.
  12. Hey, i have an issue with the RageMP Launcher. I can't launch GTA with it. I have the Steam Version of GTA and if i start GTA by Steam, all works fine. But if i start GTA with the RageMP Launcher, it won't start. When the Rockstar Games Launcher starts it loads very long and disappears after a minute and nothing happens. GTA is in my Task Manager but don't appear onscreen. I tried serveral fixes but the problem is still there. I hope somebody can help me.
  13. Hallo Leute, ich möchte gerne für einen bestimmten Spieler ein blip erstellen, um genauer zu sagen für einen der in einem Job ist. Damit er dann auch nur die Job Map-Icons (Blips) sehen kann und die anderen, die diesen job nicht haben, dies nicht sehen bzw haben. Freundliche Grüße und Dank im voraus, Concil
  14. Hello, how can i get amount of player playing on my server and send this data to CEF.
  15. somebody know how to send variable from server events to client?
  16. Hello Guys, is there any way to create player only blips? like players who have a job and for them create the blips... Greetz, Concil
  17. При подключении к своему серверу вылетают ошибки: JS Startup Error #10, Data Storage Error #4 и т.д. Подобные ошибки вылетают и при подключении к другим серверам. С чем может быть связано? В клиентской части своего сервера оставил одну строчку, вывода сообщения в чат Hello, world.
  18. When working with the client side, I encountered errors and do not know how to fix this. When connecting to my server, the following errors occur: JS # 10 startup error, data storage error # 4. Left only one line on the client: mp.gui.chat.push('Hello World')
  19. Hey developers, I've created a small node-module, to make it easier to create key-binds (also multiple keys). For example, you are able to do this: keyBinder.bind('ctrl+n', () => { mp.gui.chat.push("Ctrl+N"); }); The last key in the chain (a+b+c+d) can be any key and all the other keys have to be 'modifiers'. By default ctrl, alt, and shift are modifiers. So you can create combinations like: 'shift+ctrl+k'. For more information please take a look into the repositorie's readme: https://github.com/araynimax/ragemp-better-binding As mentioned I've published this module to npm so you can easily import it into your projects with `npm install ragemp-better-bindings` or `yarn add ragemp-better-bindings`. If you don't use npm right now, just download it from the download section: If you find bugs or if you have improvement suggestions feel free to message me, or just comment in this post.
  20. Hi, guys! I have one question. I would like to enable a language Typescript for my client-side. How I can do it? Wiki page don't help me: https://wiki.rage.mp/index.php?title=Using_Typescript (because there is an instruction for setting up vscode, but I want to use this language in my developed) Thanks for the answer!
  21. Hi guys! Please tell me how to know. Can I start server-side development in C#? And in parallel to develop the client-side in JavaScript language? I want to use 2 languages simultaneously for development. Each side has its own. How can I implement this?
  22. Всем привет! Пожалуйста, подскажите кто знает. Могу ли я начать разработку на стороне сервера на языке C#? И параллельно разрабатывать клиент на языке JavaScript? Я хочу использовать одновременно 2 языка для разработки. На каждой стороне свой. Как я могу это реализовать?
  23. Hey guys! Originally wrote the code on the client in C#. Unfortunately it does not support some of the features that I need. Therefore, I decided to transfer the client's side to the language of JS. But the problem arose at the very beginning of the journey. I opened the tutorial (https://wiki.rage.mp/index.php?title=Getting_Started_with_Client-side) and did everything as written there. Then I started the server and joined it and I realized that nothing works. Based on the lesson materials, I have to get a chat message. But nothing works. I would like to appeal to the multiplayer community. Can you help me solve this problem?
  24. Hey all, Wondering if someone can help me solve this the moment the client files download and it starts up into the server I get the following Error: I have uninstalled and reinstalled rage, I have done the same with the game not sure what else I can do? Any idea are help I'll be so grateful!
  25. Hello. Does anyone know why my client scripts will not be executed? I created the "enable-clientside-cs.txt" in the RAGEMP root folder. My Script in "client_packages/cs_packages/Main/Main.cs": using RAGE; namespace UFFRClientScripts { public class Main : Events.Script { public Main() { Chat.Output ("Loaded Client Scripts!"); } } }
×
×
  • Create New...