This repository was archived by the owner on Apr 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11export const SV_LAN = GetConvarInt ( 'sv_lan' , 0 ) === 1 ;
22export const CHARACTER_SLOTS = GetConvarInt ( 'ox:characterSlots' , 1 ) ;
33export const PLATE_PATTERN = GetConvar ( 'ox:plateFormat' , '........' ) . toUpperCase ( ) ;
4+ export const DEFAULT_VEHICLE_STORE = GetConvar ( 'ox:defaultVehicleStore' , 'impound' ) ;
45
56export const DEBUG = ( ( ) => {
67 DEV: return true ;
Original file line number Diff line number Diff line change 11import { db } from '../db' ;
22import { VehicleProperties } from '@overextended/ox_lib' ;
3+ import { DEFAULT_VEHICLE_STORE } from 'config' ;
34
45export type VehicleRow = {
56 id : number ;
@@ -11,7 +12,8 @@ export type VehicleRow = {
1112 data : { properties : VehicleProperties ; [ key : string ] : any } ;
1213} ;
1314
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 ] ) ) ;
1517
1618export async function IsPlateAvailable ( plate : string ) {
1719 return ! ( await db . exists ( 'SELECT 1 FROM vehicles WHERE plate = ?' , [ plate ] ) ) ;
You can’t perform that action at this time.
0 commit comments