Configuration
Every option in config.lua, with its default and limits.
Studio pages
This is the out of the box config.lua. Angles are in degrees, sizes in pixels.
Backgrounds, light, texts, pictures and the photo shape are changed in the /evstudio menu and saved as styles. config.lua only holds the server settings and the starting values for a new studio.
Full config
return {
Ace = 'evolent.studio',
Command = 'evstudio',
Accent = '#C3FF00',
StudioSpot = vector3(-3500.0, -3500.0, 300.0),
PreviewModel = 'sultanrs',
Studio = {
Rotation = 35,
Height = 8,
Fov = 40,
Lights = false,
RoofDown = false,
Plate = 'EVOLENT',
Width = 800,
},
MaxLayerKB = 800,
Garages = {
{ id = 'garage2', name = '2 car garage', x = 173.2, y = -1004.9, z = -99.0, h = 0.0 },
{ id = 'garage6', name = '6 car garage', x = 198.2, y = -1000.8, z = -99.0, h = 0.0 },
{ id = 'garage10', name = '10 car garage', x = 228.6, y = -992.5, z = -99.0, h = 180.0 },
},
Images = {},
}Options
General
| Option | Default | Description |
|---|---|---|
Ace | 'evolent.studio' | ACE permission needed to open the studio. |
Command | 'evstudio' | Chat command that opens the studio. |
Accent | '#C3FF00' | Colour of the menu. |
StudioSpot | vector3(-3500.0, -3500.0, 300.0) | Where the empty studio is built. Keep it far from the map, so nothing else shows up in the photos. |
PreviewModel | 'sultanrs' | Vehicle shown when the menu opens without a model. |
MaxLayerKB | 800 | Largest size of one photo layer. A photo over the limit is not saved, and the test shot tells you to pick a smaller width. |
Studio
The starting values for a new studio. Once an admin changes them in the menu, the saved values win.
| Option | Default | Description |
|---|---|---|
Rotation | 35 | Camera angle around the car, from -180 to 180. |
Height | 8 | Camera angle above the ground, from -10 to 45. |
Fov | 40 | Field of view, from 20 to 80. A low value looks flatter, like a long lens. |
Lights | false | Headlights on. |
RoofDown | false | Convertibles with the roof down. |
Plate | 'EVOLENT' | Plate text on every photographed car. |
Width | 800 | Photo width: 512, 640, 800, 1024, 1280, 1600 or 1920. |
The photo can't have more detail than your screen. At 1080p a side-on car gets about 1700 pixels of width, so 1920 is the most worth picking. Play at 1440p or 4K for sharper photos. Bigger photos also mean bigger downloads for every player who sees them.
Garages
Interiors listed under Real place > Garage in the studio background. Each entry needs an id, a name and the spot for the car (x, y, z and heading h).
Garages = {
{ id = 'mygarage', name = 'My garage', x = 0.0, y = 0.0, z = 0.0, h = 0.0 },
},Images
Pictures, such as your server logo, that admins can place on a photo. Put the file in the images folder of the resource and add its name, or add an https:// link.
Images = { 'logo.png', 'https://example.com/badge.png' },