Jump to content

bug and server shut down


BrutalStrike

Recommended Posts

//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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 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...