get

-- ARGUMENTS
-- matchData: table { 
--   owner:         string   (optional)
--   plate:         string   (optional)
--   props:         table    (optional)
--   state:         int      (optional)
--   garage:        string   (optional)
--   paymentamount: int      (optional)
--   paymentsleft:  int      (optional)
--   financetime:   int      (optional)
--   financeshop:   string   (optional)
-- } (optional)

-- RETURNS
-- table [{
--   owner:         string 
--   plate:         string 
--   props:         table  
--   state:         int    
--   garage:        string  
--   paymentamount: int   
--   paymentsleft:  int 
--   financetime:   int   
--   financeshop:   string 
-- },...]

local allVehicles = ti.db.vehicles.get()

local someVehicle = ti.db.vehicles.get({
  plate = "ABC 123"
})[1]

Last updated