Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/18/19 in all areas

  1. 1 point
  2. Hey there guys! I recently created some docker images for the RageMP server for a project where I am involved at. In the project, we currently use those Docker images to deploy test-servers in our infrastructure. The main advantage of the Docker image is that the RageMP server can be run on any operation system - regardless of whether it is Windows, some Linux distribution or MacOS. You simply can deploy your Docker container with Docker everywhere. Furthermore, you can build upon the given Docker images by copying your binaries or source files into the base Docker container. That is the how we@51st-State deploy our testing server. See the Docker reference for more information on Docker itself (https://docs.docker.com). Of course, our Docker images are available at DockerHub (nevermind that DockerHub is a bit slow compared to quay.io), too: I've created two seperate Docker images: The first image, which is basically just the plain RageMP server without any bridge or whatsoever (see the Links below). The second image, which is the RageMP server plus the C# bridge (see the Links below). Side note: Both Docker images use the base Docker image "debian:stretch" and so the RageMP server is run on Debian Stretch in both images. If you want to know, how we use Docker images in production, visit the GitHub repository of our project (see the server repository in the Links below). Our server files are OpenSource. This means, also you can use our files if you publish your changes under the same license in public. If want to get in touch with our projects concepts and ideas, see the readme files of our repositories. Our project currently only focuses on German speaking players. If you want to contribute to our project, then go right ahead. Otherwise, have a great day with our Docker images. Sincerely ~Vincent Docker image for the default RageMP server: https://hub.docker.com/r/eisengrind/ragemp-server Docker image for the bridged RageMP server: https://hub.docker.com/r/eisengrind/ragemp-server-with-bridge Our project on GitHub: https://github.com/51st-state Our server repository on GitHub: https://github.com/51st-state/server P.S.: if there is any problem with uploading the RageMP server files to a public mirror like DockerHub, please message me so that I can take those images offline.
    1 point
  3. Never mind found the solution. Hope this helps if anyone else runs into this issue. mp.events.add('render', () => { const controls = mp.game.controls controls.enableControlAction(0, 23, true) controls.disableControlAction(0, 58, true) if (controls.isDisabledControlJustPressed(0, 58)) { let position = mp.players.local.position let vehHandle = mp.game.vehicle.getClosestVehicle(position.x, position.y, position.z, 5, 0, 70) let vehicle = mp.vehicles.atHandle(vehHandle) if (vehicle && vehicle.isAnySeatEmpty() && vehicle.getSpeed() < 5) { mp.players.local.taskEnterVehicle(vehicle.handle, 5000, 0, 2, 1, 0) } } })
    1 point
  4. Version 1.0.0

    526 downloads

    This resource adds a way to make the local player hold a mugshot board with custom text on it, the custom text and animation won't be synced to others. You can also use this resource to understand how rendertarget system works which lets you display scaleform on certain game objects. Installing: Put policetext into your server's client_packages directory, then add require('policetext/index.js'); to index.js. Available functions/events: mp.players.local.mugshotboard.show -> mp.events.call("ShowMugshotBoard") -> Params: title, topText, midText, bottomText, rank = -1 mp.players.local.mugshotboard.hide -> mp.events.call("HideMugshotBoard") -> Params: - And you can access if the local player has a mugshot board or not by using the hasMugshotBoard global variable. Clientside example (pressing F10 will give your character a mugshot board, pressing it again will remove it): mp.keys.bind(0x79, false, () => { if (!hasMugshotBoard) { mp.players.local.mugshotboard.show(mp.players.local.name, "Top Text", "Mid Text", "Bottom Text", 15); } else { mp.players.local.mugshotboard.hide(); } });
    1 point
×
×
  • Create New...