new-plates

Positioning New Plates

Positioning new plates is really easy, even if you don't have the dev tool. Firstly, you need the Easy Entity Inspector

Template

You're gonna need the template, which you can grab from here.

PLATE:RegisterPlate("VEHICLE", {
    pos = Vector(0, 0, 0),
    ang = angForward,
    scale = 1,
}, {
    pos = Vector(0, 0, 0),
    ang = angBackward,
    scale = 1,
})

Getting the Vehicle Name

Hop over to the Q menu, and grab down the vehicle you want to setup. Right click on the vehicle, click "copy to clipboard". Replace "VEHICLE" which whatever you copied.

Load into conf_vehicles.lua

At the end of the conf_vehicles file, put your replaced template.

PLATE:RegisterPlate("chev_cucv_lw", {
    pos = Vector(0, 0, 0),
    ang = angForward,
    scale = 1
}, {
    pos = Vector(0, 0, 0),
    ang = angBackward,
    scale = 1
})

Save / Upload / Reload

If you're on a server, you probably need to reload the map. In single-player, you can just save.

Get the Plate Position.

Grab out your Easy Entity Inspector, click on the vehicle where you want your license plate. Find the second vector (HitPos), copy that to your clipboard and shove it in your first pos. Save / Upload again.

Adjust Angles

If the angles are wrong, it's normally best to add another angle to it, and adjust that.

ang = angForward + Angle(0, 0, 5)

Other Plates

Then, repeat this for each plate you want, or remove plates you don't want.

Complete Example

PLATE:RegisterPlate("chev_cucv_lw", {
    pos = Vector(0, 106.3, 37.2),
    ang = angForward + Angle(0, 0, 15),
    scale = 1
}, {
    pos = Vector( 0, -139.5, 31.5),
    ang = angBackward,
    scale = 1
})