🛠️Installation
Items Installation
["car_insurance"] = {
label = "Car Insurance",
weight = 25,
stack = false,
close = true,
description = "Document that proves you have insurance for your vehicle",
client = {
image = "car_insurance.png",
}
},
["car_registration"] = {
label = "Car Registration",
weight = 25,
stack = false,
close = true,
description = "Document that proves you are the owner of the vehicle",
client = {
image = "car_registration.png",
}
},
["health_insurance"] = {
label = "Health Insurance",
weight = 25,
stack = false,
close = true,
description = "Document that proves you have health insurance",
client = {
image = "health_insurance.png",
}
},
["home_insurance"] = {
label = "Home Insurance",
weight = 25,
stack = false,
close = true,
description = "Document that proves you have home insurance",
client = {
image = "home_insurance.png",
}
},
["car_camera"] = {
label = "Car Camera",
weight = 25,
stack = false,
close = true,
description = "Camera for your vehicle",
client = {
image = "car_camera.png",
}
}Metadata Installation
} else if (itemData.name == "car_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p><p><strong>Vehicle Model: </strong><span>" +
itemData.info.model +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "car_registration") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p><p><strong>Vehicle Model: </strong><span>" +
itemData.info.model +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "health_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "home_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "car_camera") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p>"
);} else if (itemData.name == "car_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p><p><strong>Vehicle Model: </strong><span>" +
itemData.info.model +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "car_registration") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p><p><strong>Vehicle Model: </strong><span>" +
itemData.info.model +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "health_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "home_insurance") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"<p><strong>Name: </strong><span>" +
itemData.info.name +
"</span></p><p><strong>Expires: </strong><span>" +
itemData.info.expire +
"</span></p>"
);
} else if (itemData.name == "car_camera") {
$(".item-info-title").html("<p>" + itemData.label + "</p>");
$(".item-info-description").html(
"</span></p><p><strong>Plate: </strong><span>" +
itemData.info.plate +
"</span></p>"
);} else if (item.name.match("car_insurance")) {
let infoData = [
{ label: "Name", value: iteminfo.name || "Unknown" },
{ label: "Plate", value: iteminfo.plate || "Unknown" },
{ label: "Vehicle Model", value: iteminfo.model || "Unknown" },
{ label: "Expires", value: iteminfo.expire || "Unknown" }
];
returnString = infoData;
} else if (item.name.match("car_registration")) {
let infoData = [
{ label: "Name", value: iteminfo.name || "Unknown" },
{ label: "Plate", value: iteminfo.plate || "Unknown" },
{ label: "Vehicle Model", value: iteminfo.model || "Unknown" },
{ label: "Expires", value: iteminfo.expire || "Unknown" }
];
returnString = infoData;
} else if (item.name.match("health_insurance")) {
let infoData = [
{ label: "Name", value: iteminfo.name || "Unknown" },
{ label: "Expires", value: iteminfo.expire || "Unknown" }
];
returnString = infoData;
} else if (item.name.match("home_insurance")) {
let infoData = [
{ label: "Name", value: iteminfo.name || "Unknown" },
{ label: "Expires", value: iteminfo.expire || "Unknown" }
];
returnString = infoData;
} else if (item.name.match("car_camera")) {
let infoData = [
{ label: "Plate", value: iteminfo.plate || "Unknown" }
];
returnString = infoData;} else if (
itemData.name == "car_insurance" ||
itemData.name == "car_registration"
) {
html = `
<div class="item_info_container">
<div class="item_info_row">
<div class="item_info_row_left">Name:</div>
<div class="item_info_row_right"> ${itemData.info.name}</div>
</div>
<div class="item_info_row">
<div class="item_info_row_left">Plate: </div>
<div class="item_info_row_right"> ${itemData.info.plate}</div>
</div>
<div class="item_info_row">
<div class="item_info_row_left">Vehicle Model: </div>
<div class="item_info_row_right"> ${itemData.info.model}</div>
</div>
<div class="item_info_row">
<div class="item_info_row_left">Expires: </div>
<div class="item_info_row_right"> ${itemData.info.expire}</div>
</div>
</div>
`;
} else if (
itemData.name == "health_insurance" ||
itemData.name == "home_insurance"
) {
html = `
<div class="item_info_container">
<div class="item_info_row">
<div class="item_info_row_left">Name:</div>
<div class="item_info_row_right"> ${itemData.info.name}</div>
</div>
<div class="item_info_row">
<div class="item_info_row_left">Expires: </div>
<div class="item_info_row_right"> ${itemData.info.expire}</div>
</div>
</div>
`;
} else if (itemData.name == "car_camera") {
html = `
<div class="item_info_container">
<div class="item_info_row">
<div class="item_info_row_left">Plate:</div>
<div class="item_info_row_right"> ${itemData.info.plate}</div>
</div>
</div>
`;Emotes Menu Installation
-- Path: rpemotes/Client/AnimationList.lua
-- This code below is inside the RP.Emotes = {
["health_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_health",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["car_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_vehicle",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["car_registration"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_registration",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["home_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_house",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},-- Path: dpemotes/Client/AnimationList.lua
-- This code below is inside the DP.Emotes = {
["health_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_health",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["car_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_vehicle",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["car_registration"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_registration",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
["home_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
Prop = "m-insurance_prop_card_house",
PropBone = 18905,
PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},-- Path: r_animations/configs/animations.lua
["health_insurance"] = {
category = "other",
label = "Health Insurance",
animDict = "anim@heists@humane_labs@finale@keycards",
animName = "ped_a_enter_loop",
animFlag = 49,
bone = 18905,
prop = "m-insurance_prop_card_health",
propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["car_insurance"] = {
category = "other",
label = "Car Insurance",
animDict = "anim@heists@humane_labs@finale@keycards",
animName = "ped_a_enter_loop",
animFlag = 49,
bone = 18905,
prop = "m-insurance_prop_card_vehicle",
propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["car_registration"] = {
category = "other",
label = "Car Registration",
animDict = "anim@heists@humane_labs@finale@keycards",
animName = "ped_a_enter_loop",
animFlag = 49,
bone = 18905,
prop = "m-insurance_prop_card_registration",
propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["home_insurance"] = {
category = "other",
label = "Home Insurance",
animDict = "anim@heists@humane_labs@finale@keycards",
animName = "ped_a_enter_loop",
animFlag = 49,
bone = 18905,
prop = "m-insurance_prop_card_house",
propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},Jobs Installation
Last updated