Society and vehicles

Society bank accounts, plates, owned vehicles and keys.

Server functions for society bank accounts and owned vehicles.

Society accounts

Works with Renewed-Banking, okokBanking, qb-banking, qb-management and esx_society.

ObsiLib.society.provider()                 -- 'Renewed-Banking' | ... | 'none'
ObsiLib.society.balance('mechanic')
ObsiLib.society.deposit('mechanic', 500)
ObsiLib.society.withdraw('mechanic', 200)  -- false when the balance is too low
ObsiLib.society.sync('mechanic', 12000)    -- force a balance (creates the account if the bank supports it)

Vehicles

local plate = ObsiLib.vehicle.generatePlate()          -- unique against the owned vehicles table
ObsiLib.vehicle.plateTaken('OBSI1234')
ObsiLib.vehicle.saveOwned({ src = source, model = 'sultan', plate = plate, props = props, price = 25000 })
ObsiLib.vehicle.giveKeys(source, plate, NetworkGetNetworkIdFromEntity(vehicle))
ObsiLib.vehicle.keysProvider()

The plate format comes from ObsiConfig.Plates and the tables from ObsiConfig.VehicleTables; see Configuration.