ConfigurationAdvanced

Bench Models

Learn how to add new bench models to the resource.

Adding Bench Models

To add a new bench model, follow these steps:

  1. Open src/resource/shared/const.lua in the resource folder.
  2. Find the BenchModels table (typically at line 30).
  3. Add a new entry to the table with the following format:
BenchModels = {
    ...
    -- new entry
    ["custom_bench_model"] = {
        title = 'Custom Bench Model',
        model = `custom_bench_model`,
        centerOffset = vec4(0, 0, 0, 0),
        scale = 1
    },
}
  1. Replace custom_bench_model with the name of your model. Has to be unique.
  2. Replace Custom Bench Model with the title of your model.
  3. Replace custom_bench_model with the model name.
  4. Replace vec4(0, 0, 0, 0) with the center offset of your model. This is the position where the UI will be placed.
  5. If you need to scale the UI, change the scale value. Default is 1.
  6. Save the file and restart the resource for changes to take effect.

On this page