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. Hello everyone. The third day I'm trying to get peds to perform tasks sequentially. uint newSequence = 1512412; RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.OpenSequenceTask, new object[] { newSequence }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskVehicleDriveToCoord, new object[] { ped.Handle, veh.Handle, padPosition.X, padPosition.Y, padPosition.Z, 30, 0, veh.Model, (int)AI.DrivingMode.Rushed, 30, 0}); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskVehicleDriveToCoord, new object[] { ped.Handle, veh.Handle, padPosition.X, padPosition.Y, padPosition.Z, 1, 0, veh.Model, (int)AI.DrivingMode.Rushed, 1, 0 }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.CloseSequenceTask, new object[] { newSequence }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskPerformSequence, new object[] { ped.Handle, newSequence }); If you call them sequentially without using TaskSequence, then only the last task is executed. If you use TaskSequence (the example above), then Ped refuses to do anything at all. Please tell me how to make the tasks run sequentially. P.S References to ped and vehicle are correct, checked P.S.S Sorry for my bad english)
  2. Version 1.0.0

    287 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. What could be the problem? I can’t enter the game, describe the problem for a long time, I attached a video below. The main problem is that after initializing EAC and launching the launcher, nothing happens. I reinstalled everything twice, the second time I did a complete demolition of everything related to GTA. I did a system restore via DISM, after I checked it via sfc scannow, there is no problem. DX 11 - everything is normal. C ++ reinstalled all the necessary libraries, everything is there, EAC works, in other games too. The loner works, the prologue is completed. I also played GTA online, went through a couple of missions to be sure. Basically, I don't know what the problem is. Video Tell me what could be the problem
  4. Run as administrator is set for Epic, GTA, Rockstar launcher and RageMP. When I click on a server for RageMP the client says launching the game and the game launches. But it is launching the normal version of GTA. When I switch back to the client it is still stuck on launching game even though the game is technically up. Eventually the client times out. -I have restarted my computer, no change. -I made exceptions for RageMP for defender and firewall, no change. -Completely disabled firewall and antivirus and restarted, no change. -With firewall and antivirus completely disabled I uninstalled and reinstalled RageMP, no change. Not sure what to do next, need assistance.
  5. Hello, I have a problem when launching GTA 5 through Rage MP, the Rockstar Launcher opens with error 7002.1 and without access to the store and file verification, but when I close it and open it normally everything works and there are no errors on the Internet about it.
  6. Hello everyone. I have the following kind of problem. When I log into the server I'm developing, I should have a browser with authorization, but it doesn't find the index.html file. Some time ago, it worked. After checking the alert() in the script, it is revealed that the file actually exists and is being executed. Also, the user interface appears for a moment. What can be wrong? I'm use Vue framework for UI.
  7. Colshape.position return undefined. Is there any ways to get position of colshape clientside. Colshape.getCoords(true/false) also return undefined
  8. Guest

    RageMp Resources C#

    .
  9. 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
  10. Я пишу свой проект на 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)
  11. 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
  12. 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
  13. 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))
  14. 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
  15. 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)
  16. 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! 🤗
  17. 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.
  18. 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.
  19. 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.
  20. 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
  21. Hello, how can i get amount of player playing on my server and send this data to CEF.
  22. somebody know how to send variable from server events to client?
  23. 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
  24. При подключении к своему серверу вылетают ошибки: JS Startup Error #10, Data Storage Error #4 и т.д. Подобные ошибки вылетают и при подключении к другим серверам. С чем может быть связано? В клиентской части своего сервера оставил одну строчку, вывода сообщения в чат Hello, world.
  25. 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')
×
×
  • Create New...