BrutalStrike Posted May 31, 2023 Posted May 31, 2023 (edited) //Put this on the server side, and when it passes through the colshape position, the server will shut down. (Does this only happen to me?) // Change the x, y, and z position to a position that you know where it is! let pos = new mp.Vector3(-387.3154, 1198.266, 325.3804); mp.colshapes.newSphere(pos.x, pos.y, pos.z, 1.0, 0); Edited May 31, 2023 by BrutalStrike
Brophy Posted May 31, 2023 Posted May 31, 2023 Need to share the rest of the code for us to diagnose any issues.
BrutalStrike Posted May 31, 2023 Author Posted May 31, 2023 (edited) In the server configuration file, enable "csharp": "enabled", and then use the JavaScript code below to create a ColShape: //Put this on the server side // Change the x, y, and z position to a position that you know where it is! let pos = new mp.Vector3(-387.3154, 1198.266, 325.3804); mp.colshapes.newSphere(pos.x, pos.y, pos.z, 1.0, 0); After that, pass through the ColShape area and the server will shut down automatically. This is the complete code! Edited May 31, 2023 by BrutalStrike
BrutalStrike Posted May 31, 2023 Author Posted May 31, 2023 (edited) Solved: Edit: I reorganized all the server-side JavaScript code and the problem completely disappeared. Now everything is working! =D Edited June 1, 2023 by BrutalStrike
Recommended Posts