Module PLATE.Config

License Plate Misc Configs

Module Overview

Derma Settings

PLATE.Config.DermaFrameCol The frame colour for the derma panel.
PLATE.Config.DermaTextCol The text colour for the derma panel.
PLATE.Config.DermaBrandCol The brand / feature colour for the derma panel.
PLATE.Config.DermaLightFrameCol The offset frame colour, for things like text inputs.
PLATE.Config.DermaTextBGCol The text background color.
PLATE.Config.DermaTextBGColFocused The text background color.

General Settings

PLATE.Config.DefaultFormat The default format for the license plate.
PLATE.Config.CurrencySymbol The symbol to use for currency.
PLATE.Config.AllowChanges If custom plates are allowed.
PLATE.Config.AllowEmergencyChanges If custom plates for emergency vehicles are allowed.
PLATE.Config.DisallowArrestChanges If a player has an arrest warrant, disallow them to change their plate.
PLATE.Config.NPCHeadText If the plate seller NPC should have text above them.
PLATE.Config.Delay Time in seconds between changes.
PLATE.Config.FadeDist Distance in source units for which the license plates fade out.
PLATE.Config.MaxDist Distance in source units for which you can change your plate.
PLATE.Config.Cost Cost to change the license plate for a vehicle.
PLATE.Config.BindF3 Bind F3 to open the menu if pressed whilst looking at a vehicle.
PLATE.Config.BindF3To Which bind the F3 menu should be on.
PLATE.Config.MaxLength Maximum length of a license plate.
PLATE.Config.DoDebugPrints Whether the system will do debug prints.
PLATE.Config.LimitPlateChangesToGroup Set to true if only certain groups are allowed to change their license plates.
PLATE.Config.PlateChangeGroups The list of groups which are allowed to change their plates.

Material Configs

PLATE.Config.Path Path to the plate textures.
PLATE.Config.Version Version of the plates to use.
PLATE.Config.DefaultPlate The default license plate, if none other is selected.

Plate Configs

PLATE.Config.WidthScale Width of plate at scale 1.
PLATE.Config.HeightScale Height of plate at scale 1.
PLATE.Config.DefaultColour The default colour for plate text, if no other colour is defined.
PLATE.Config.PlateDarken Decimal to darken the plate by.
PLATE.Config.HeaderText The header text to display over the plate.
PLATE.Config.BlockedHide If plates should be hidden if behind a prop.

Exempt Plate Settings

PLATE.Config.ParseVCEmergency If we should parse VCMod Data to check emergency vehicles.
PLATE.Emergency Vehicle Categories / vehicle IDs which are deemed "emergency" vehicles, and get exempt plates.
PLATE.EmergOverride Vehicle Names which are in "emergency" categories, but shouldn't get plates.

Colours and Dates

PLATE.Colours List of plate paths and their colours.
PLATE.Months List of Plates by Month / Day

Storage

PLATE.Config.Flush Should the storage provider be flushed (recreated) when files are autorefreshed.
PLATE.Config.Storage.provider Which storage provider should we use.
PLATE.Config.Storage.host Hostname of our external database server.
PLATE.Config.Storage.user Username of our external database server.
PLATE.Config.Storage.password Password of our external database server.

Derma Settings

PLATE.Config.DermaFrameCol
The frame colour for the derma panel.
PLATE.Config.DermaTextCol
The text colour for the derma panel.
PLATE.Config.DermaBrandCol
The brand / feature colour for the derma panel.
PLATE.Config.DermaLightFrameCol
The offset frame colour, for things like text inputs.
PLATE.Config.DermaTextBGCol
The text background color.
PLATE.Config.DermaTextBGColFocused
The text background color.

General Settings

PLATE.Config.DefaultFormat
The default format for the license plate.
PLATE.Config.CurrencySymbol
The symbol to use for currency.
PLATE.Config.AllowChanges
If custom plates are allowed.
PLATE.Config.AllowEmergencyChanges
If custom plates for emergency vehicles are allowed.
PLATE.Config.DisallowArrestChanges
If a player has an arrest warrant, disallow them to change their plate.
PLATE.Config.NPCHeadText
If the plate seller NPC should have text above them.
PLATE.Config.Delay
Time in seconds between changes.
PLATE.Config.FadeDist
Distance in source units for which the license plates fade out.
PLATE.Config.MaxDist
Distance in source units for which you can change your plate.
PLATE.Config.Cost
Cost to change the license plate for a vehicle.
PLATE.Config.BindF3
Bind F3 to open the menu if pressed whilst looking at a vehicle.
PLATE.Config.BindF3To
Which bind the F3 menu should be on. One of ShowHelp, ShowTeam, ShowSpare1, ShowSpare2
PLATE.Config.MaxLength
Maximum length of a license plate. Up to 8 is supported by default.
PLATE.Config.DoDebugPrints
Whether the system will do debug prints.
  • DoDebugPrints boolean
PLATE.Config.LimitPlateChangesToGroup
Set to true if only certain groups are allowed to change their license plates.
  • LimitPlateChangesToGroup boolean
PLATE.Config.PlateChangeGroups
The list of groups which are allowed to change their plates.

Fields:

  • PlateChangeGroups table

Material Configs

PLATE.Config.Path
Path to the plate textures.
PLATE.Config.Version
Version of the plates to use.
PLATE.Config.DefaultPlate
The default license plate, if none other is selected.

Plate Configs

PLATE.Config.WidthScale
Width of plate at scale 1.
PLATE.Config.HeightScale
Height of plate at scale 1.
PLATE.Config.DefaultColour
The default colour for plate text, if no other colour is defined.
PLATE.Config.PlateDarken
Decimal to darken the plate by. (0 <=> 1)
PLATE.Config.HeaderText
The header text to display over the plate.
PLATE.Config.BlockedHide
If plates should be hidden if behind a prop.

Exempt Plate Settings

PLATE.Config.ParseVCEmergency
If we should parse VCMod Data to check emergency vehicles.
PLATE.Emergency
Vehicle Categories / vehicle IDs which are deemed "emergency" vehicles, and get exempt plates.
PLATE.EmergOverride
Vehicle Names which are in "emergency" categories, but shouldn't get plates.

Colours and Dates

PLATE.Colours
List of plate paths and their colours.
PLATE.Months
List of Plates by Month / Day

Storage

PLATE.Config.Flush
Should the storage provider be flushed (recreated) when files are autorefreshed. This should be disabled in almost all cases.
PLATE.Config.Storage.provider
Which storage provider should we use. This can be one of mysqloo or sqlite. sqlite is the default option, does not require any external dependencies, using your server's built in database. mysqloo requires the installation of mysqloo, and access to an external database server.
PLATE.Config.Storage.host
Hostname of our external database server.
PLATE.Config.Storage.user
Username of our external database server.
PLATE.Config.Storage.password
Password of our external database server.