-
Posts
15 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Everything posted by Rishat7c
-
I mapped objects in CodeWalker and decided to implement server side loading RAGE.MP. But there is a problem that when creating an object via mp.objects.new (), for some reason, rotation does not work .. In XML, rotation consists of 4 values (Quaternion), but RAGE.MP accepts Vector3 Tell me how you can convert values? Found in npm packages three.js library But when I convert from quaternion, the object in the game does not rotate like in CodeWalker .. Gentlemen, developers, tell me how you can rotate the object correctly. Here's a sample code how I convert: var three = require("three"); var object = { "model":"Prop_Container_01d", "position": ["2382.63900000","-2260.29900000","134.54850000"], "rotation": ["0.00000000","0.00000000","0.00000000","1.00000000"], "dimension": 0 }; var quaternion = new three.Quaternion(parseFloat(object.rotation[0]), parseFloat(object.rotation[1]), parseFloat(object.rotation[2]), parseFloat(object.rotation[3])); var convertedRotation = new three.Euler().setFromQuaternion( quaternion ); mp.objects.new(mp.joaat(object.model), new mp.Vector3(parseFloat(object.position[0]), parseFloat(object.position[1]), parseFloat(object.position[2])), { rotation: new mp.Vector3(parseFloat(convertedRotation.x), parseFloat(convertedRotation.y), parseFloat(convertedRotation.z)), dimension: object.dimension });
-
- quaternion
- vector3
-
(and 3 more)
Tagged with:
-
I am adding a video proof of a bug with player ID 0 who does not receive damage from a punch of a fist in other dimensions. Does anyone have any ideas on how to get around or solve this? video proof
-
Hello everyone! noticed an interesting bug (mb is not a bug, but a feature). Two players. The first player has ID 0, the second player has ID 1. In the main world (with dimension = 0), both players take damage when hitting with a fist. If these players are moved to dimension = 5, then the player with ID 0 does not take damage from a punch. Moreover, if you shoot at him with a weapon, then everything is ok. P.s. incomingDamage is an empty event (there is nothing in it and nothing is canceled in it). How can this thing be cured? Are there any workarounds? Server & client side in JS
-
Good day, comrades We use hardware for a server (2 cores, 2 GB RAM, 32 GB nvme), ubuntu OS 20.04, server version 1.1. If there are more than 5 people online, other players cannot connect to the server. Their connection stops at the finishing handshake screen and then the game closes.. Are there any options to dig in which direction? Tell me please
-
Have a good evening everyone. Please tell me why when my create a glare when you zoom in on a map, the glare starts to float. I create a flare on the server side. An example of my highlight: let blip = mp.blips.new(9, new mp.Vector3(x,y,z), { radius: 180, dimension: 1, color: 35, alpha: 175, rotation: 0 }); Maybe some additional argument is missing? P.S. 0.3.7
-
Maybe someone faced a similar problem after moving to 1.1. After the version change, we started restarts, in the VPS logs we noticed the following: So far we decided to temporarily return to 0.3.7 and the rest stops. No one came across? Upd: Here are a couple of messages from the log:
-
I want to make the player look in a certain direction, but I can not do this with the 'gameplay' camera, and I do not need to create a new 'default'. How to be this will only work with the new 'default' camera, if you use the 'gameplay' camera, you can’t set the position for viewing. Help pls mp.events.add("setPlayerCameraInPos", (x, y, z) => { let newCamera = mp.cameras.new("gameplay"); // get the forwarding vector of the direction you aim with the gameplay camera as Vector3 // newCamera.setRot(x, y, z, 2); // Does not work newCamera.pointAtCoord(x, y, z); // Does not work newCamera.setActive(true); mp.game.cam.renderScriptCams(true, false, 0, true, false); });
-
- camera
- client-side
-
(and 1 more)
Tagged with:
-
Up!
-
devblog RAGE Multiplayer 0.3.7 Public Testing
Rishat7c replied to ragempdev's topic in Announcements
Beast! -
How can I deploy the Rage MP update development environment on a Macbook? I rarely go home, I cannot sit at my home computer, and the MacBook is always with me
-
Есть ли здесь среди форумчан такие извращенцы которые запускали сервер на маке? Если да, то как Вы смогли развернуть среду разработки Rage MP update ? Дома бываю редко, нет возможности сидеть за ПК, но Мак всегда собой
-
devblog RAGE Multiplayer 0.3.6 Stable Release
Rishat7c replied to ragempdev's topic in Announcements
Nice work
