Plates - TOP-Scripts/STORE-SCRIPTS GitHub Wiki

- This script is used to take and install Vehicle Plates.
- You keep the Plates even after a server restart, install and take them back as many times you want.

- Installation
Add the item to your Server Database if you are using ESX, or add a line like:
`[“licenseplate”] = {
[“name”] = “licenseplate”,
[“label”] = “Plate”,
[“weight”] = 1000,
[“type”] = “item”,
[“image”] = “licenseplate.png”,
[“unique”] = true,
[“useable”] = true,
[“shouldClose”] = true,
[“combinable”] = nil,
[“description”] = “Vehicle Plate”},
`
to your QBus Server config file.
— In your inventory, app.js rearch for something like…
} else if (itemData.name == "stickynote") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p>" + itemData.info.label + "</p>");
} else if (itemData.name == "moneybag") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Amount of cash: </strong><span>$" +
itemData.info.cash +
"</span></p>"
);
}
— add
else if (itemData.name == "licenseplate") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p>" + itemData.info.plate + "</p>");
}
— change to look like
} else if (itemData.name == "stickynote") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p>" + itemData.info.label + "</p>");
} else if (itemData.name == "licenseplate") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html("<p>" + itemData.info.plate + "</p>");
} else if (itemData.name == "moneybag") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Amount of cash: </strong><span>$" +
itemData.info.cash +
"</span></p>"
);
}
— This will enable you to see what Plate it is with mouse-over in your inventory