Files
GTA4RP/scripts/server/crime.js
2022-07-08 14:03:55 -05:00

23 lines
769 B
JavaScript

// ===========================================================================
// Asshat Gaming Roleplay
// https://github.com/VortrexFTW/agrp_main
// (c) 2022 Asshat Gaming
// ===========================================================================
// 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;
}
};