Jump to content

Recommended Posts

Posted (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 by BrutalStrike
Posted (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 by BrutalStrike
Posted (edited)

Solved: Edit: I reorganized all the server-side JavaScript code and the problem completely disappeared.


Now everything is working! =D

Edited by BrutalStrike
  • Xabi locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...