Backup current script state

This commit is contained in:
Vortrex
2022-07-26 02:18:13 -05:00
parent 1022ca4944
commit 49d212b9fd
6 changed files with 1882 additions and 0 deletions

22
scripts/server/crime.js Normal file
View File

@@ -0,0 +1,22 @@
// ===========================================================================
// Vortrex's Roleplay Resource
// https://github.com/VortrexFTW/gtac_roleplay
// ===========================================================================
// FILE: crime.js
// DESC: Provides crime data structures, functions, and operations
// TYPE: Server (JavaScript)
// ===========================================================================
/**
* @class Representing a crime's data. Loaded and saved in the database
*/
class CrimeData {
constructor(suspectId, crimeType, reporterId = 0) {
this.crimeType = crimeType;
this.suspectId = suspectId;
this.reporterId = reporterId;
this.whenCommitted = 0;
this.whenReported = 0;
this.databaseId = 0;
}
};