Commit 20af021 1 parent a10fda7 commit 20af021 Copy full SHA for 20af021
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
export const SV_LAN = GetConvarInt ( 'sv_lan' , 0 ) === 1 ;
2
2
export const CHARACTER_SLOTS = GetConvarInt ( 'ox:characterSlots' , 1 ) ;
3
3
export const PLATE_PATTERN = GetConvar ( 'ox:plateFormat' , '........' ) . toUpperCase ( ) ;
4
+ export const DEFAULT_VEHICLE_STORE = GetConvar ( 'ox:defaultVehicleStore' , 'impound' ) ;
4
5
5
6
export const DEBUG = ( ( ) => {
6
7
DEV: return true ;
Original file line number Diff line number Diff line change 1
1
import { db } from '../db' ;
2
2
import { VehicleProperties } from '@overextended/ox_lib' ;
3
+ import { DEFAULT_VEHICLE_STORE } from 'config' ;
3
4
4
5
export type VehicleRow = {
5
6
id : number ;
@@ -11,7 +12,8 @@ export type VehicleRow = {
11
12
data : { properties : VehicleProperties ; [ key : string ] : any } ;
12
13
} ;
13
14
14
- setImmediate ( ( ) => db . query ( 'UPDATE vehicles SET `stored` = ? WHERE `stored` IS NULL' , [ 'impound' ] ) ) ;
15
+ if ( DEFAULT_VEHICLE_STORE )
16
+ setImmediate ( ( ) => db . query ( 'UPDATE vehicles SET `stored` = ? WHERE `stored` IS NULL' , [ DEFAULT_VEHICLE_STORE ] ) ) ;
15
17
16
18
export async function IsPlateAvailable ( plate : string ) {
17
19
return ! ( await db . exists ( 'SELECT 1 FROM vehicles WHERE plate = ?' , [ plate ] ) ) ;
You can’t perform that action at this time.
0 commit comments