GE Lua Documentation

Press F to search!

onVehicleAddedToInventory

Definition


-- @/lua/ge/extensions/career/career.lua:530

local function onVehicleAddedToInventory(data)
  -- if data.vehicleInfo is present, then the vehicle was bought
  if not boughtStarterVehicle and data.vehicleInfo then
    boughtStarterVehicle = true
    career_modules_vehicleShopping.updateVehicleList(true)
  end
end

Callers

@/lua/ge/extensions/flowgraph/nodes/career/onVehicleShoppingEvent.lua

function C:onVehicleAddedToInventory(data)
  self.flags.vehicleBought = true
@/lua/ge/extensions/career/modules/insurance/insurance.lua
-- apply the minimum applicable insurance to the vehicle, and save it to the json file
local function onVehicleAddedToInventory(data)
  local conditionData = {