Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/30/22 in all areas

  1. Version 0.1

    5535 downloads

    Simple noclip cam 🎥 🎮 Controls: F2 - Enable/Disable W/A/S/D/E/Q - Move cam Shift - Boost LCtr - Slowdown 🚀 Installation: Download .zip Move noclip folder to client_packages Add require('./noclip'); in root index.js
    1 point
  2. Hi everyone! 🖐️ Today I was a reading the "Getting started running a server" guide when I thought about putting the stuff in Docker, to be minimal as possible. Then, I came here to show you how to do it. You will need to create a folder with the name of your project, and inside it, we'll put only three files. You need to have Docker Desktop installed already. Step 1 - Dockerfile Create a file with the name Dockerfile, and without an extension. Inside it, paste the code below: FROM ubuntu:latest WORKDIR /opt/app COPY ./app /opt/app RUN chmod +x ragemp-server CMD ["./ragemp-server"] This will be our base system, based on Ubuntu 20.04 LTS (Linux dist). We are going to create an app folder inside opt (default by the system) and give permission to a file that we are going to add later. At the end, the Dockerfile starts the server with the command provided in the CMD directive. Step 2 - docker-compose.yml Create a file with the name docker-compose.yml, this will be our orchestrator: the file that manage all the services that the server needs in order to run properly. Paste the code below: version: "3.9" services: ragemp_server: build: . hostname: "ragemp_server" container_name: "ragemp_server" ports: - "22005:22005/udp" - "22006:22006" tty: true networks: default: external: name: ragemp_network This will add only one service called ragemp_server, and it'll contain the server files. The file will map the ports between the container and your PC. You will need to create the network with the following command: docker network create ragemp_network Step 3 - app folder Finally, you need to download the linux server files and extract them into the app folder. Once you got the files inside the app folder (you need to have the bin and dotnet folders, and the ragemp-server executable) you can run the following command in the root of the project: docker-compose up. This will create the container and run the server. Then, you can go to RageMP > Direct Connect > 127.0.0.1 : 22005 In my case, I'm running the server on a Macbook Pro and testing it on a Windows machine, so in that case you will need to run the ifconfig or ipconfig command to know your IP address, and then connect to it (i.e: 192.168.0.102:22005). Your machines need to be in the same network. Step 4 - (Optional) Get into the container If you need to get into the Ubuntu machine to run some commands, you can do it with the following cmd: docker exec -it container_name bash Replace container_name by the name of your container. Once inside, you can run whatever you want because you'll be the root user. If you have questions, please leave a comment and I'll be answering ASAP. I'm new at RageMP so I don't have a great knowledge about it, but I'm a programmer anyway 🤷‍♂️ Goodbye! 🖐️
    1 point
  3. Interiors and Locations Credits to CodeWalker (dexyfex and contributors) and GTA V Script Decompiler (zorg93) for providing the tools to get this information. Also big thanks to HeySlickThatsMe for letting me know of islandhopper.meta Cayo Perico Island Unlike other places Rockstar added, this location is loaded via its own native. (0x9A9D1BA639675CF1) Said native hides the original map so only use it when players are going to the island. You can check this example script: let g_bIslandLoaded = false; mp.keys.bind(0x72 /* F3 */, false, () => { g_bIslandLoaded = !g_bIslandLoaded; mp.game.invoke("0x9A9D1BA639675CF1", "HeistIsland", g_bIslandLoaded); mp.game.invoke("0x5E1460624D194A38", g_bIslandLoaded); // for island map in pause menu and minimap mp.gui.chat.push(`Island ${g_bIslandLoaded ? "loaded" : "unloaded"}`); }); (you might want to use 1 and 0 instead of true and false in clientside C#) Position: new mp.Vector3(4840.571, -5174.425, 2.0); IPLs (optional): Most of the time, you won't need to use these as they seem to be for making different heist scenarios. (some aren't even for heists but for the island itself) You can totally skip this section. https://gist.github.com/root-cause/068b4060d3a75151da2f33db0d06695e Submarine Position: new mp.Vector3(1561.562, 410.45, -48.0); Entity Sets/Interior Props: entity_set_acetylene entity_set_brig entity_set_demolition entity_set_fingerprint entity_set_guide entity_set_hatch_lights_off entity_set_hatch_lights_on entity_set_jammer entity_set_plasma entity_set_suppressors entity_set_weapons Casino Nightclub Position: new mp.Vector3(1550.0, 250.0, -48.0); Entity Sets/Interior Props: EntitySet_DJ_Lighting dj_01_lights_01 dj_01_lights_02 dj_01_lights_03 dj_01_lights_04 dj_02_lights_01 dj_02_lights_02 dj_02_lights_03 dj_02_lights_04 dj_03_lights_01 dj_03_lights_02 dj_03_lights_03 dj_03_lights_04 dj_04_lights_01 dj_04_lights_02 dj_04_lights_03 dj_04_lights_04 int01_ba_bar_content int01_ba_booze_01 int01_ba_booze_02 int01_ba_booze_03 int01_ba_dj01 int01_ba_dj02 int01_ba_dj03 int01_ba_dj04 int01_ba_dj_keinemusik int01_ba_dj_moodyman int01_ba_dj_palms_trax int01_ba_dry_ice int01_ba_equipment_setup int01_ba_equipment_upgrade int01_ba_lightgrid_01 int01_ba_lights_screen int01_ba_screen int01_ba_security_upgrade int01_ba_style02_podium light_rigs_off Island Vault This one isn't really special but it has entity sets so I've decided to include it, the island office is also right above this place. Position: new mp.Vector3(5012.0, -5747.5, 15.0); Entity Sets/Interior Props: bonds_set files_set panther_set pearl_necklace_set pink_diamond_set tequila_set
    1 point
  4. Is there a way to access window.ui.connect() in rui/js/rui.js via own clientside scripts? I mean come on its probably like no work to add this.. so what are you guys afraid of hesitating to offer a connect() for client scripts?
    1 point
×
×
  • Create New...