Incidents
Here, you'll find key exports for managing incidents. These exports allow you to create, update, and delete incidents as needed.
Type
type Incident = {
id: number,
name: string,
description: string, // stringified JSON
vehicles: string[],
evidences: number[],
players: {
identifier: string,
name: string
}[],
victims: {
identifier: string,
name: string
}[],
cops: {
identifier: string,
name: string
}[],
charges: {
list: { id: number, name: string }[],
reduction: {
fine: 50,
jail: 70
},
amount: {
fine: 15000,
jail: 60
}
},
createdAt: string
}Exports
Search for an incident
Create an incident
Update an incident
Delete an incident
Last updated
Was this helpful?