Files
2026-03-29 21:41:17 +03:00

185 lines
6.1 KiB
Lua

Config = {
Framework = "qb", -- qb, esx
ProgressBarType = "qb_progressbar", -- qb_progressbar, ox_progressbar, custom_progressbar
BorrowOfVehicle = true, -- Can a player take a ped's vehicle with player work ID Card
Locale = "ro",
MySQL = "oxmysql", -- oxmysql, mysql-async, ghmattimysql
IdCard = "id_card", -- Item name for ID Card
JobCard = "job_card", -- Item name for Job Card
FakeIdCard = "fake_id_card", -- Item name for Fake Id Card
FakeJobCard = "fake_job_card", -- Item name for Fake Job Card
DriverLicense = "driver_license", -- Item name for Driver License
WeaponLicense = "weapon_license", -- Item name for Weapon License
UseQbLicense = true,
UseESXLicense = false,
UseDatabaseForDriverLicense = false, -- If true, player will need to have driver license item to drive a vehicle
UseDatabaseForWeaponLicense = false, -- If true, player will need to have weapon license item to use a weapon
BoardHeader = "Red Valley", -- Header of the card
TargetLoc = vector3(439.01852416992, -974.27752685547, 30.927928924561),
MugShotCoords = vector3(402.84, -996.38, -100.0),
MugShotHeading = 179.03,
CameraPos = {
pos = vector3(402.81, -999.87, -98.5),
rotation = vector3(0.0, 0.0, 358.04),
},
FakeCardPrice = 1000,
BadgeAnimation = {
dict = "paper_1_rcm_alt1-9",
anim = "player_one_dual-9",
prop = "prop_fib_badge",
},
HeadshotPed = {
model = "s_m_y_cop_01",
coords = vector4(-269.04, -955.62, 31.22, 202.65),
},
FakeCardPed = {
model = "s_m_y_cop_01",
coords = vector4(1471.7, 1140.5, 114.33, 269.26),
},
BorrowWhitelist = {
["police"] = true,
},
GiveVehicleKey = function(plate, vehicle)
if Config.Framework == "qb" then
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
exports['qs-vehiclekeys']:GiveKeys(plate, model, true)
elseif Config.Framework == "esx" then
TriggerServerEvent("esx_vehicleshop:giveVehicleKeys", plate)
end
end,
CoreExport = function()
if Config.Framework == "qb" then
return exports["qb-core"]:GetCoreObject()
elseif Config.Framework == "esx" then
return exports["es_extended"]:getSharedObject()
end
end,
Notify = function(message, type)
exports['17mov_Hud']:ShowNotification(message, type or 'info', 'Red Valley', 5000)
end,
-- These are the card types that will be shown depend on the grade.
CardTypes = {
["citizen"] = { -- This will be selected if player has non of the jobs below.
job = "citizen", -- dont change this
grades = {
[0] = {
cardType = "one",
textColor = "#555555",
text = "Citizen Card",
},
}
},
["driver"] = {
job = "driver", -- dont change this
grades = {
[0] = {
cardType = "one",
textColor = "#555555",
text = "Drivers License",
},
}
},--[[ [KÜBRA] [Río] [https://discord.gg/7DBc9hYujP] ]]
["weapon"] = {
job = "weapon", -- dont change this
grades = {
[0] = {
cardType = "one",
textColor = "#FFFFFF",
text = "Weapon License",
},
}
},
["police"] = {
job = "police",
grades = {
[0] = {
cardType = "one",
textColor = "#FFFFFF",
text = "Police Officer Card",
},
[1] = {
cardType = "one",
textColor = "#FFFFFF",
text = "Police Officer Card",
},
[2] = {
cardType = "two",
textColor = "#FFFFFF",
text = "Police Officer Card",
},
[3] = {
cardType = "two",
textColor = "#FFFFFF",
text = "Police Officer Card",
},
[4] = {
cardType = "three",
textColor = "#FFFFFF",
text = "Police Officer Card",
},
[5] = {
cardType = "three",
textColor = "#FFFFFF",
text = "Police Cheff Card",
},
[6] = {
cardType = "three",
textColor = "#FFFFFF",
text = "Police Cheff Card",
},
}
},
["ambulance"] = {
job = "ambulance",
grades = {
[0] = {
cardType = "one",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[1] = {
cardType = "one",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[2] = {
cardType = "two",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[3] = {
cardType = "two",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[4] = {
cardType = "three",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[5] = {
cardType = "three",
textColor = "#FFFFFF",
text = "Doctor Card",
},
[6] = {
cardType = "four",
textColor = "#FFFFFF",
text = "Doctor Card",
},
}
},
}
}