Skip to content

VehicleConfig

DekoKiyo edited this page May 12, 2024 · 1 revision

Vehicle settings

Note

  • If the vehicle has no livery, the "livery" setting will be disabled and enabled the color settings.
  • You can use the RGB to set the vehicle color.
  • It will be enabled when all of the three (R, G, and B) values are 0 to 255. You can generate rgb value here
  • If the vehicle has some livery, color settings will be disabled.
  • "livery" and all color settings are omitted, the vehicle will be spawned with initialized.
Settings Name Descriptions Init Value
chance The rate of using this preset. 100
livery Set the livery of vehicle -1
color_r Set RGB's R [0-255] -1
color_g Set RGB's G [0-255] -1
color_b Set RGB's B [0-255] -1
Vehicle Model Enter the vehicle model in the element of XML Empty String

XML Example

Example 1

<Vehicle chance="50">POLICE</Vehicle>

Example 2

<Vehicle chance="100" livery="2">POLICE</Vehicle>

Example 3

<Vehicle chance="10" color_r="10" color_g="250" color_b="110">POLICE</Vehicle>
Clone this wiki locally