Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/21/18 in Posts

  1. 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
    1 point
  2. I mean: really? Read one post above yours.... what the...
    1 point
  3. Thank You i got it... My fault was that i tried this code on Serverside JS not on Clientside JS. Wrong Folder
    1 point
  4. "outputChatBox" is a Node server-side function you cannot, use it on client side. For sending a text message to a player on client side you can use : mp.gui.chat.push("text");
    1 point
  5. You should create an event on clientside which triggers your function when you call it. Also, you can call it using "TriggerEvent" on the serverside. JS Client Side: mp.events.add("TEST_EVENT", (test, color) => test(test, color)); [Command("command")] public void command(Client player, String test, String color) { player.TriggerEvent("TEST_EVENT", test, color); //You can use it as an OOP method } If you need more information about these functions, you can check links below: https://wiki.gtanet.work/index.php?title=TriggerClientEvent https://wiki.rage.mp/index.php?title=Events::add
    1 point
  6. Its map builder xml converted into json
    1 point
  7. Nice danke fürs kopieren^^ Wird erstmal gemeldet, wenn ihr schon ein Projekt macht dann erstellt euch bitte auch eine eigene Anfrage den sowas ist sehr unprofessionell. @Decus danke fürs Makieren.
    1 point
  8. Props geht an euch 👏 Einfach Text Kopieren von dem Beitrag von @UnderDog und nur paar Sachen ändern
    1 point
  9. Try to block the GTAVLauncher at your Firewall, Download the File from the Solution Link and put it into your GTA V Folder it worked for me, give it a try!
    1 point
×
×
  • Create New...