Search the Community
Showing results for tags 'development'.
Found 5 results
-
Здравствуйте, пытаюсь сделать прототип системы voice чата, для этого использую методы enableVoiceTo disableVoiceTo внутри объекта игрока, а в клиенте просто сделал бинд клавиши который вызывает событие на сервер, но почему то такой способ не работает, может быть я что то упускаю, и надо внутри клиента что то дополнительно указывать? Клиентский код(использую rpc) => mp.keys.bind(88, true, () => { this.rpc.callServer('voice-enable'); }); mp.keys.bind(88, false, () => { this.rpc.callServer('voice-disable'); }); Серверная часть кода => global.rpc.register('voice-enable', (players, info) => { console.log(`Включил voice ${info.player.name} ${info.player.id}`); if(info.player.id == 0) { let player = mp.players.at(0); mp.players.forEach((_player) => { if(player == _player) return false; player.enableVoiceTo(_player); }); } else if(info.player.id == 1) { let player = mp.players.at(1); mp.players.forEach((_player) => { if(player == _player) return false; player.enableVoiceTo(_player); }); } }); global.rpc.register('voice-disable', (players, info) => { console.log(`Выключил voice ${info.player.name} ${info.player.id}`); if(info.player.id == 0) { let player = mp.players.at(0); mp.players.forEach((_player) => { if(player == _player) return false; player.disableVoiceTo(_player); }); } else if(info.player.id == 1) { let player = mp.players.at(1); mp.players.forEach((_player) => { if(player == _player) return false; player.disableVoiceTo(_player); }); } }); P.S пока делаю это только для 2 игроков на сервере, что бы убедиться что это вообще работает, как в качестве прототипа. P.S.S все условия отрабатывают, вроде все отрабатывает, но как будто вот именно методы rage не работают...
-
Our dev team is looking for a nice and friendly developer for our new project. If somebody has time and desire then join the discord and contact the head of devemopment. We have a big community with 700 persons. Actually we have 3 devs we speak German and English. If you are interested dm the head of development. And if you want we will pay you when you help us. Discord: https://discord.gg/9yMke4f
-
- Developer
- development
-
(and 3 more)
Tagged with:
-
Hello Someone asks me, how to create a car at right side next to player. So i just wrote this little tutorial about. I hope you enjoy this little thing, which was did in two hours, and explained with a horrible english ;D Spend time: 2 hours testing the spawn of vehicles and coding + doc 3 hours making this tutorial with translation 0.5 hours thinking about, why i am doing this ... (i didn't found an answer -.-) First we have to know some things: How is the World working How is the Position working How is the Rotation working How can i spawn a car (Code snippet) How is the World working? => It is a north axis oriented map. If you open the full map ingame, top is north, bottom is south. It is every time a constant and will not change How is the Position working? => It is a Vector based information. It has three types. X => left - | + right Y => top - | + bottom Z => down - | + up The "+" and "-" are the operators here in our coordination system, which we have to use later. How is the Rotation working? => It is a Vector based information. Same here we have three types, but the number is always positive. So we can just use the Z variable. X => back | front (Not tested) Y => left | right (Not tested) Z => ground Then we will get four options: N => 0° E => 270° S => 180° W => 90° We have to use the radius to know how the player is rotated away from north. Just think about your shool days. back then you had geometry and raius was a topic of it. Ok, we got our information. Let us code that stuff Small version Doc version
- 2 replies
-
- 5
-
-
- CSharp
- Development
-
(and 7 more)
Tagged with:
-
Guten Morgen Community, wir sind gerade an der Konzeption eines Projektes und wegen zur Zeit ab in welcher Sprache wir es entwickeln sollen. C# oder NodeJS? Würde mich über eure Antworten freuen und Gründe warum Ihr die gewählte Sprache nehmen würdet oder warum man sie nehmen sollte. Vielen Dank!
-
Hey. I am making a freeroam gamemode and noticed that i can't use the titular property to make the player invincible. player.Invincible = true; WARNING: "SetEntityInvincible" function is not implemented yet. Am I doing something wrong or is this still in development. If so what are the workarounds you guys use?
