Skip to main content

Advanced Configuration

Debug Mode

To temporarily toggle debug mode use chat command /lvcdebug this resets on resource restart. For persistent debug mode use convar below.

Resource Convars (fxmanifest.lua)

  • debug_mode increases console logging for client, prints <gameName> of vehicle if no profile was found.
info

Changing covars require the refresh command to be ran first, then restart the resource for changes to take effect.

Custom HUD

Custom Graphics

The in game siren controller display or heads-up-display UI can be modified to your liking, you will need an understanding of HTML, Javascript, and NUI.
You can also change the menu banner image within the stream folder and the spark.ytd.
Support is minimally provided for both of these.

Move Default HUD location

All HUD related functions/code is located in the UI folder. The default position of the HUD is set in UI/html/style.css.
Keep in mind users can change the position and scale in-game via the menu, so these are just the default values

Default UI
#sirenbox {
display: none;
position: absolute;
overflow: hidden;
width: 602px;
height: 161px;
left: 0%;
top: 68%;
transform-origin: left top;
transform: scale(0.6);
background-image: url('../controllers/default/background.png');
}
Custom Controller
#whelen-gw {
display: none;
position: absolute;
overflow: hidden;
width: 848px;
height: 448px;
right: 1.5%;
top: 68%;
transform-origin: right top;
transform: scale(0.5);
background-image: url('../controllers/whelen-gw/main_ui.png');
}

The relevant attributes are: left, right, top, and transform-origin.

  • left determines how far in percentage of the screen resolution should the HUD be placed from the left edge. Default UI looks best on the left.
  • right determines how far in percentage of the screen resolution should the HUD be placed from the right edge. Custom Controllers look better on the right.
  • top determines how far down from the top the HUD should be placed.
  • transform-origin attribute determines which way the HUD should expand on size adjustment. For a bottom right aligned HUD you would want the transform-origin to be right bottom. This ensures that the HUD does not expand outside of the screen space.

Custom Audio Schemes

Custom front end sound effects can be added. Create a new folder in /UI/sounds with the desired name of your scheme.

warning

Sound scheme names cannot have any spaces in them.

Add scheme name to button_sfx_scheme_choices in SETTINGS.lua.