Mechanical Engineer

A resource to facilitate custom engine building for our Vehicle Tuning resource.

Info

Mechanical Engineering facilitates custom engine building with full component fabrication to further enhance our Vehicle Tuning resource. Premade items along with job inventories are also an option for those who are less mechanically-minded.

  • Ability to craft custom engines and components.

  • Each component has its own subset of stats that effect engine behaviour and characteristics.

  • Material stats (e.g: weight and strength) effect engine durability.

  • Forced induction systems (single or twin turbo, roots or centrifugal superchargers).

  • Restrict sizes of engines in vehicles by class.

  • Engine and component storage points with configurable job, gang or character access restrictions.

Setup

Config

All of the config vars found below are stored within the config.lua file.

config = {
    -- Material item configuration.
    materials = {
        aluminium = {
            label = "Aluminium",
            weight = 0.5,
            description = "A billet processed aluminium",
            image = "aluminium.png",
        }
        -- ...
    },

    -- Engine dimension restrictions by class.
    classRestrictions = {
    	[0] = {
    		w = 0.5,
    		d = 0.5,
    		h = 0.5
    	},
        -- ...
    }
}

Delivery Points

All delivery points are stored within the data/deliverypoints.lua file.

Delivery points are locations for players to retrieve items that they have produced via production machines. They're also functional storage locations for components or engines removed from stands.

For more information, read the documentation.

Engine Lifts

All engine lifts are stored within the data/enginelifts.lua file.

Engine lifts are used to transfer an engine from an engine stand into a vehicle, or from a vehicle onto an engine stand.

For more information, read the documentation.

Engine Stands

All engine stands are stored within the data/enginestands.lua file.

Engine stands are used to add and remove components from an engine. You can also build an engine from scratch using nothing but an engine block to start.

For more information, read the documentation.

Engine Swap Points

All engine swap points are stored within the data/engineswappoints.lua file.

Engine swap points are where you will need to position a vehicle before allowing its engine to be swapped. Interacting with the UI at these points will set the current vehicle as the engine swap target.

For more information, read the documentation.

Job Inventories

All job inventories are stored within the data/jobinventories.lua file.

Job inventories give your players a location to access pre-made items (from the Premade Items table).

For more information, read the documentation.

Premade Items

All premade items are stored within the data/premadeitems.lua file.

Premade items are a set of pre-defined items that can be accessed from any Job Inventory that you desire.

For more information, read the documentation.

Production Machines

All production machines are stored within the data/productionmachines.lua file.

Production machines give your players a location in which to fabricate pre-defined Machining Recipes, with custom set variables during creation.

For more information, read the documentation.

Machining Recipes

All machining recipes are stored within the data/machiningrecipes.lua file.

Machining recipes are a set of pre-defined recipes that can be accessed from any Production Machine that you wish.

For more information, read the documentation.

Trash Points

All trash points are stored within the data/trashpoints.lua file.

Trash points allow your players to discard any engine or component they are currently carrying on a cart or lift.

For more information, read the documentation.

Labels

All labels and translations can be found within the labels.lua file.

en = {
    vehicle_swap_attach = "Vehicle attached to engine swap-point.",
    vehicle_swap_detach = "Vehicle detached from engine swap-point.",
    ...
}

Usage

Conflicting Resources

  • None known.

Dependencies

Last updated