Moved authorized vehicles to config

This commit is contained in:
ElPumpo
2018-05-19 09:58:42 +02:00
parent f0d563ae1a
commit a81866bce8
9 changed files with 369 additions and 716 deletions
+20 -59
View File
@@ -36,7 +36,7 @@ Citizen.CreateThread(function()
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
Citizen.Wait(5000)
PlayerData = ESX.GetPlayerData()
end)
@@ -49,7 +49,7 @@ function SetVehicleMaxMods(vehicle)
modSuspension = 3,
modTurbo = true,
}
ESX.Game.SetVehicleProperties(vehicle, props)
end
@@ -294,7 +294,7 @@ function OpenVehicleSpawnerMenu(station, partNum)
ESX.Game.SpawnVehicle(vehicleProps.model, vehicles[partNum].SpawnPoint, 270.0, function(vehicle)
ESX.Game.SetVehicleProperties(vehicle, vehicleProps)
local playerPed = GetPlayerPed(-1)
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
end)
TriggerServerEvent('esx_society:removeVehicleFromGarage', 'police', vehicleProps)
@@ -315,51 +315,12 @@ function OpenVehicleSpawnerMenu(station, partNum)
else
local elements = {}
table.insert(elements, { label = 'Vélo', value = 'fixter' })
table.insert(elements, { label = 'Cruiser', value = 'police' })
table.insert(elements, { label = 'Sheriff Cruiser', value = 'sheriff' })
if PlayerData.job.grade_name == 'officer' then
table.insert(elements, { label = 'Interceptor', value = 'police3'})
local elements = Config.AuthorizedVehicles.Shared
local authorizedVehicles = Config.AuthorizedVehicles[PlayerData.job.grade_name]
for i=1, #authorizedVehicles, 1 do
table.insert(elements, { label = authorizedVehicles[i].label, model = authorizedVehicles[i].model})
end
if PlayerData.job.grade_name == 'sergeant' then
table.insert(elements, { label = 'Sheriff SUV', value = 'sheriff2'})
table.insert(elements, { label = 'Interceptor', value = 'police3'})
table.insert(elements, { label = 'Buffalo', value = 'police2'})
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Bus pénitentiaire', value = 'pbus'})
table.insert(elements, { label = 'Bus de transport', value = 'policet'})
table.insert(elements, { label = 'Antiémeute', value = 'riot'})
end
if PlayerData.job.grade_name == 'lieutenant' then
table.insert(elements, { label = 'Sheriff SUV', value = 'sheriff2'})
table.insert(elements, { label = 'Interceptor', value = 'police3'})
table.insert(elements, { label = 'Buffalo', value = 'police2'})
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Bus pénitentiaire', value = 'pbus'})
table.insert(elements, { label = 'Bus de transport', value = 'policet'})
table.insert(elements, { label = 'Antiémeute', value = 'riot'})
table.insert(elements, { label = 'FBI', value = 'fbi'})
table.insert(elements, { label = 'FBI SUV', value = 'fbi2'})
end
if PlayerData.job.grade_name == 'boss' then
table.insert(elements, { label = 'Sheriff SUV', value = 'sheriff2'})
table.insert(elements, { label = 'Interceptor', value = 'police3'})
table.insert(elements, { label = 'Buffalo', value = 'police2'})
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Bus pénitentiaire', value = 'pbus'})
table.insert(elements, { label = 'Bus de transport', value = 'policet'})
table.insert(elements, { label = 'Antiémeute', value = 'riot'})
table.insert(elements, { label = 'FBI', value = 'fbi'})
table.insert(elements, { label = 'FBI SUV', value = 'fbi2'})
table.insert(elements, { label = 'Voiture Banalisée ', value = 'police4'})
end
ESX.UI.Menu.Open(
'default', GetCurrentResourceName(), 'vehicle_spawner',
{
@@ -371,7 +332,7 @@ function OpenVehicleSpawnerMenu(station, partNum)
menu.close()
local model = data.current.value
local model = data.current.model
local vehicle = GetClosestVehicle(vehicles[partNum].SpawnPoint.x, vehicles[partNum].SpawnPoint.y, vehicles[partNum].SpawnPoint.z, 3.0, 0, 71)
@@ -470,26 +431,26 @@ function OpenPoliceActionsMenu()
align = 'top-left',
elements = elements
}, function(data2, menu2)
local player, distance = ESX.Game.GetClosestPlayer()
if distance ~= -1 and distance <= 3.0 then
local closestPlayer, closestDistance = ESX.Game.GetClosestPlayer()
if closestPlayer ~= -1 and closestDistance <= 3.0 then
local action = data2.current.value
if action == 'identity_card' then
OpenIdentityCardMenu(player)
OpenIdentityCardMenu(closestPlayer)
elseif action == 'body_search' then
OpenBodySearchMenu(player)
OpenBodySearchMenu(closestPlayer)
elseif action == 'handcuff' then
TriggerServerEvent('esx_policejob:handcuff', GetPlayerServerId(player))
TriggerServerEvent('esx_policejob:handcuff', GetPlayerServerId(closestPlayer))
elseif action == 'drag' then
TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(player))
TriggerServerEvent('esx_policejob:drag', GetPlayerServerId(closestPlayer))
elseif action == 'put_in_vehicle' then
TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(player))
TriggerServerEvent('esx_policejob:putInVehicle', GetPlayerServerId(closestPlayer))
elseif action == 'out_the_vehicle' then
TriggerServerEvent('esx_policejob:OutVehicle', GetPlayerServerId(player))
TriggerServerEvent('esx_policejob:OutVehicle', GetPlayerServerId(closestPlayer))
elseif action == 'fine' then
OpenFineMenu(player)
OpenFineMenu(closestPlayer)
elseif action == 'license' then
ShowPlayerLicense(player)
ShowPlayerLicense(closestPlayer)
end
else
@@ -548,7 +509,7 @@ function OpenPoliceActionsMenu()
end
SetTextComponentFormat('STRING')
AddTextComponentString(_U('impound_prompt')) --press ~INPUT_CONTEXT~ to cancel the impound
AddTextComponentString(_U('impound_prompt'))
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
TaskStartScenarioInPlace(playerPed, 'CODE_HUMAN_MEDIC_TEND_TO_DEAD', 0, true)
+235 -194
View File
@@ -14,216 +14,257 @@ Config.Locale = 'fr'
Config.PoliceStations = {
LSPD = {
LSPD = {
Blip = {
Pos = { x = 425.130, y = -979.558, z = 30.711 },
Sprite = 60,
Display = 4,
Scale = 1.2,
Colour = 29,
},
Blip = {
Pos = { x = 425.130, y = -979.558, z = 30.711 },
Sprite = 60,
Display = 4,
Scale = 1.2,
Colour = 29,
},
-- https://wiki.fivem.net/wiki/Weapons
AuthorizedWeapons = {
{ name = 'WEAPON_NIGHTSTICK', price = 200 },
{ name = 'WEAPON_COMBATPISTOL', price = 300 },
{ name = 'WEAPON_ASSAULTSMG', price = 1250 },
{ name = 'WEAPON_ASSAULTRIFLE', price = 1500 },
{ name = 'WEAPON_PUMPSHOTGUN', price = 600 },
{ name = 'WEAPON_STUNGUN', price = 500 },
{ name = 'WEAPON_FLASHLIGHT', price = 80 },
{ name = 'WEAPON_FIREEXTINGUISHER', price = 120 },
{ name = 'WEAPON_FLAREGUN', price = 60 },
{ name = 'WEAPON_STICKYBOMB', price = 250 },
{ name = 'GADGET_PARACHUTE', price = 300 },
},
AuthorizedWeapons = {
{ name = 'WEAPON_NIGHTSTICK', price = 200 },
{ name = 'WEAPON_COMBATPISTOL', price = 300 },
{ name = 'WEAPON_ASSAULTSMG', price = 1250 },
{ name = 'WEAPON_ASSAULTRIFLE', price = 1500 },
{ name = 'WEAPON_PUMPSHOTGUN', price = 600 },
{ name = 'WEAPON_STUNGUN', price = 500 },
{ name = 'WEAPON_FLASHLIGHT', price = 80 },
{ name = 'WEAPON_FIREEXTINGUISHER', price = 120 },
{ name = 'WEAPON_FLAREGUN', price = 60 },
{ name = 'WEAPON_STICKYBOMB', price = 250 },
{ name = 'GADGET_PARACHUTE', price = 300 },
},
Cloakrooms = {
{ x = 452.600, y = -993.306, z = 29.750 },
},
AuthorizedVehicles = {
{ name = 'police', label = 'Véhicule de patrouille 1' },
{ name = 'police2', label = 'Véhicule de patrouille 2' },
{ name = 'police3', label = 'Véhicule de patrouille 3' },
{ name = 'police4', label = 'Véhicule civil' },
{ name = 'policeb', label = 'Moto' },
{ name = 'policet', label = 'Van de transport' },
},
Armories = {
{ x = 451.699, y = -980.356, z = 29.689 },
},
Cloakrooms = {
{ x = 452.600, y = -993.306, z = 29.750 },
},
Vehicles = {
{
Spawner = { x = 454.69, y = -1017.4, z = 27.430 },
SpawnPoint = { x = 438.42, y = -1018.3, z = 27.757 },
Heading = 90.0,
}
},
Armories = {
{ x = 451.699, y = -980.356, z = 29.689 },
},
Helicopters = {
{
Spawner = { x = 466.477, y = -982.819, z = 42.691 },
SpawnPoint = { x = 450.04, y = -981.14, z = 42.691 },
Heading = 0.0,
}
},
Vehicles = {
{
Spawner = { x = 454.69, y = -1017.4, z = 27.430 },
SpawnPoint = { x = 438.42, y = -1018.3, z = 27.757 },
Heading = 90.0,
}
},
VehicleDeleters = {
{ x = 462.74, y = -1014.4, z = 27.065 },
{ x = 462.40, y = -1019.7, z = 27.104 },
},
Helicopters = {
{
Spawner = { x = 466.477, y = -982.819, z = 42.691 },
SpawnPoint = { x = 450.04, y = -981.14, z = 42.691 },
Heading = 0.0,
}
},
BossActions = {
{ x = 448.417, y = -973.208, z = 29.689 }
},
VehicleDeleters = {
{ x = 462.74, y = -1014.4, z = 27.065 },
{ x = 462.40, y = -1019.7, z = 27.104 },
},
},
BossActions = {
{ x = 448.417, y = -973.208, z = 29.689 }
},
}
},
-- https://wiki.fivem.net/wiki/Vehicles
Config.AuthorizedVehicles = {
Shared = {
{
model = 'police',
label = 'Police Cruiser'
},
{
model = 'pbus',
label = 'Police Prison Bus'
}
},
recruit = {
},
officer = {
{
model = 'police3',
label = 'Police Interceptor'
}
},
sergeant = {
{
model = 'policet',
label = 'Police Transporter'
},
{
model = 'policeb',
label = 'Police Bike'
}
},
lieutenant = {
{
model = 'riot',
label = 'Police Riot'
},
{
model = 'fbi2',
label = 'FIB SUV'
}
},
boss = {
}
}
-- CHECK SKINCHANGER CLIENT MAIN.LUA for matching elements
Config.Uniforms = {
cadet_wear = {
male = {
['tshirt_1'] = 59, ['tshirt_2'] = 1,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = 46, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 36, ['tshirt_2'] = 1,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = 45, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
police_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
sergeant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 1,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 1,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
lieutenant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 2,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 2,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
commandant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 3,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 3,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
bullet_wear = {
male = {
['bproof_1'] = 11, ['bproof_2'] = 1
},
female = {
['bproof_1'] = 13, ['bproof_2'] = 1
}
},
gilet_wear = {
male = {
['tshirt_1'] = 59, ['tshirt_2'] = 1
},
female = {
['tshirt_1'] = 36, ['tshirt_2'] = 1
}
}
cadet_wear = {
male = {
['tshirt_1'] = 59, ['tshirt_2'] = 1,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = 46, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 36, ['tshirt_2'] = 1,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = 45, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
police_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
sergeant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 1,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 1,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
lieutenant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 2,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 2,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
commandant_wear = {
male = {
['tshirt_1'] = 58, ['tshirt_2'] = 0,
['torso_1'] = 55, ['torso_2'] = 0,
['decals_1'] = 8, ['decals_2'] = 3,
['arms'] = 41,
['pants_1'] = 25, ['pants_2'] = 0,
['shoes_1'] = 25, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
},
female = {
['tshirt_1'] = 35, ['tshirt_2'] = 0,
['torso_1'] = 48, ['torso_2'] = 0,
['decals_1'] = 7, ['decals_2'] = 3,
['arms'] = 44,
['pants_1'] = 34, ['pants_2'] = 0,
['shoes_1'] = 27, ['shoes_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['ears_1'] = 2, ['ears_2'] = 0
}
},
bullet_wear = {
male = {
['bproof_1'] = 11, ['bproof_2'] = 1
},
female = {
['bproof_1'] = 13, ['bproof_2'] = 1
}
},
gilet_wear = {
male = {
['tshirt_1'] = 59, ['tshirt_2'] = 1
},
female = {
['tshirt_1'] = 36, ['tshirt_2'] = 1
}
}
}
+7 -7
View File
@@ -1,9 +1,9 @@
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_police','Police',1)
('society_police', 'Police', 1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_police','Police',1)
('society_police', 'Police', 1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
@@ -15,11 +15,11 @@ INSERT INTO `jobs` (name, label) VALUES
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('police',0,'recruit','Recrue',20,'{\"tshirt_1\":57,\"torso_1\":55,\"arms\":0,\"pants_1\":35,\"glasses\":0,\"decals_2\":0,\"hair_color_2\":0,\"helmet_2\":0,\"hair_color_1\":5,\"face\":19,\"glasses_2\":1,\"torso_2\":0,\"shoes\":24,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"pants_2\":0,\"hair_2\":0,\"decals_1\":0,\"tshirt_2\":0,\"helmet_1\":8}','{\"tshirt_1\":34,\"torso_1\":48,\"shoes\":24,\"pants_1\":34,\"torso_2\":0,\"decals_2\":0,\"hair_color_2\":0,\"glasses\":0,\"helmet_2\":0,\"hair_2\":3,\"face\":21,\"decals_1\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"arms\":14,\"hair_color_1\":10,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',4,'officer','Officier',40,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',1,'sergeant','Sergent',60,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',2,'lieutenant','Lieutenant',85,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":2,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"glasses\":0,\"decals_1\":8,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"torso_2\":0,\"arms\":41,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"hair_2\":3,\"decals_2\":2,\"hair_color_2\":0,\"hair_color_1\":10,\"helmet_2\":0,\"face\":21,\"shoes\":24,\"torso_2\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"decals_1\":7,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',3,'boss','Commandant',100,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":41,\"torso_2\":0,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"decals_1\":8,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":21,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"hair_color_1\":10,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"shoes\":24,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}')
('police',0,'recruit','Recrue',20,'{}','{}'),
('police',1,'officer','Officier',40,'{}','{}'),
('police',2,'sergeant','Sergent',60,'{}','{}'),
('police',3,'lieutenant','Lieutenant',85,'{}','{}'),
('police',4,'boss','Commandant',100,'{}','{}')
;
CREATE TABLE `fine_types` (
-85
View File
@@ -1,85 +0,0 @@
Config = {}
Config.DrawDistance = 100.0
Config.MarkerType = 1
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
Config.MarkerColor = {r = 50, g = 50, b = 204}
Config.EnablePlayerManagement = false
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = false -- only turn this on if you are using esx_identity
Config.EnableNonFreemodePeds = false -- turn this on if you want custom peds
Config.EnableSocietyOwnedVehicles = false
Config.MaxInService = -1
Config.Locale = 'de'
Config.PoliceStations = {
LSPD = {
Blip = {
Pos = { x = 425.130, y = -979.558, z = 30.711 },
Sprite = 60,
Display = 4,
Scale = 1.2,
Colour = 29,
},
AuthorizedWeapons = {
{name = 'WEAPON_NIGHTSTICK', price = 200},
{name = 'WEAPON_COMBATPISTOL', price = 300},
{name = 'WEAPON_ASSAULTSMG', price = 1250},
{name = 'WEAPON_ASSAULTRIFLE', price = 1500},
{name = 'WEAPON_PUMPSHOTGUN', price = 600},
{name = 'WEAPON_STUNGUN', price = 500},
{name = 'WEAPON_FLASHLIGHT', price = 80},
{name = 'WEAPON_FIREEXTINGUISHER', price = 120},
{name = 'WEAPON_FLAREGUN', price = 60},
{name = 'WEAPON_STICKYBOMB', price = 250},
{name = 'GADGET_PARACHUTE', price = 300},
},
AuthorizedVehicles = {
{name = 'police' , label = 'Streifenfahrzeug 1'},
{name = 'police2', label = 'Streifenfahrzeug 2'},
{name = 'police3', label = 'Streifenfahrzeug 3'},
{name = 'police4', label = 'Zivilfahrzeug'},
{name = 'policeb', label = 'Motorrad'},
{name = 'policet', label = 'Transporter'},
},
Cloakrooms = {
{x = 452.600, y = -993.306, z = 29.750}
},
Armories = {
{x = 451.699, y = -980.356, z = 29.689}
},
Vehicles = {
{
Spawner = {x = 454.69, y = -1017.4, z = 27.430},
SpawnPoint = {x = 438.42, y = -1018.3, z = 27.757},
Heading = 90.0
}
},
Helicopters = {
{
Spawner = {x = 466.477, y = -982.819, z = 42.691},
SpawnPoint = {x = 450.04, y = -981.14, z = 42.691},
Heading = 0.0
}
},
VehicleDeleters = {
{x = 462.74, y = -1014.4, z = 27.065},
{x = 462.40, y = -1019.7, z = 27.104}
},
BossActions = {
{x = 448.417, y = -973.208, z = 29.689}
}
}
}
+14 -13
View File
@@ -1,34 +1,35 @@
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_police','Polizei',1)
('society_police','Polizei',1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_police','Polizei',1)
('society_police','Polizei',1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('society_police', 'Polizei', 1)
('society_police', 'Polizei', 1)
;
INSERT INTO `jobs` (name, label) VALUES
('police','LSPD')
('police','LSPD')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('police',0,'recruit','Rekrut',20,'{\"tshirt_1\":57,\"torso_1\":55,\"arms\":0,\"pants_1\":35,\"glasses\":0,\"decals_2\":0,\"hair_color_2\":0,\"helmet_2\":0,\"hair_color_1\":5,\"face\":19,\"glasses_2\":1,\"torso_2\":0,\"shoes\":24,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"pants_2\":0,\"hair_2\":0,\"decals_1\":0,\"tshirt_2\":0,\"helmet_1\":8}','{\"tshirt_1\":34,\"torso_1\":48,\"shoes\":24,\"pants_1\":34,\"torso_2\":0,\"decals_2\":0,\"hair_color_2\":0,\"glasses\":0,\"helmet_2\":0,\"hair_2\":3,\"face\":21,\"decals_1\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"arms\":14,\"hair_color_1\":10,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',1,'sergeant','Sergent',40,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',2,'lieutenant','Lieutenant',65,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":2,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"glasses\":0,\"decals_1\":8,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"torso_2\":0,\"arms\":41,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"hair_2\":3,\"decals_2\":2,\"hair_color_2\":0,\"hair_color_1\":10,\"helmet_2\":0,\"face\":21,\"shoes\":24,\"torso_2\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"decals_1\":7,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',3,'boss','Commandant',80,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":41,\"torso_2\":0,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"decals_1\":8,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":21,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"hair_color_1\":10,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"shoes\":24,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}')
('police',0,'recruit','Rekrut',20,'{}','{}'),
('police',1,'officer','Officier',40,'{}','{}'),
('police',2,'sergeant','Sergent',40,'{}','{}'),
('police',3,'lieutenant','Lieutenant',65,'{}','{}'),
('police',4,'boss','Commandant',80,'{}','{}')
;
CREATE TABLE `fine_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(255) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`category` int(11) DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(255) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`category` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`)
);
INSERT INTO `fine_types` VALUES ('1', 'Missbrauchen der Hupe', '30', '0');
-266
View File
@@ -1,266 +0,0 @@
Config = {}
Config.DrawDistance = 100.0
Config.MarkerType = 1
Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0}
Config.MarkerColor = {r = 50, g = 50, b = 204}
Config.EnablePlayerManagement = false
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = false -- only turn this on if you are using esx_identity
Config.EnableNonFreemodePeds = false -- turn this on if you want custom peds
Config.EnableSocietyOwnedVehicles = false
Config.EnableLicenses = false -- only turn this on if you are using esx_license
Config.MaxInService = -1
Config.Locale = 'en'
Config.PoliceStations = {
LSPD1 = {
Blip = {
Pos = { x = 425.130, y = -979.558, z = 30.711 },
Sprite = 60,
Display = 4,
Scale = 1.2,
Colour = 29,
},
AuthorizedWeapons = {
{name = 'WEAPON_NIGHTSTICK', price = 200},
{name = 'WEAPON_COMBATPISTOL', price = 300},
{name = 'WEAPON_ASSAULTSMG', price = 1250},
{name = 'WEAPON_SPECIALCARBINE', price = 1500},
{name = 'WEAPON_PUMPSHOTGUN', price = 600},
{name = 'WEAPON_STUNGUN', price = 500},
{name = 'WEAPON_FLASHLIGHT', price = 80},
{name = 'WEAPON_FIREEXTINGUISHER', price = 120},
{name = 'WEAPON_FLAREGUN', price = 60},
},
AuthorizedVehicles = {
{name = 'police' , label = 'Police Vehicle 1'},
{name = 'police2', label = 'Police Vehicle 2'},
{name = 'police3', label = 'Police Vehicle 3'},
{name = 'police4', label = 'Police Vehicle 4'},
{name = 'policeb', label = 'Motorcycle'},
{name = 'policet', label = 'Transport Van'},
},
Cloakrooms = {
{x = 452.600, y = -993.306, z = 29.750}
},
Armories = {
{x = 451.699, y = -980.356, z = 29.689}
},
Vehicles = {
{
Spawner = {x = 454.69, y = -1017.4, z = 27.430},
SpawnPoint = {x = 438.42, y = -1018.3, z = 27.757},
Heading = 90.0
}
},
Helicopters = {
{
Spawner = {x = 466.477, y = -982.819, z = 42.691},
SpawnPoint = {x = 450.04, y = -981.14, z = 42.691},
Heading = 0.0
}
},
VehicleDeleters = {
{x = 462.74, y = -1014.4, z = 27.065},
{x = 462.40, y = -1019.7, z = 27.104}
},
BossActions = {
{x = 448.417, y = -973.208, z = 29.689}
}
},
SASP1 = {
Blip = {
Pos = {x = 825.34204101563, y = -1290.0471191406, z = 28.240659713745 },
Color = 40
},
AuthorizedWeapons = {
{name = 'WEAPON_NIGHTSTICK', price = 200},
{name = 'WEAPON_COMBATPISTOL', price = 300},
{name = 'WEAPON_ASSAULTSMG', price = 1250},
{name = 'WEAPON_SPECIALCARBINE', price = 1500},
{name = 'WEAPON_PUMPSHOTGUN', price = 600},
{name = 'WEAPON_STUNGUN', price = 500},
{name = 'WEAPON_FLASHLIGHT', price = 80},
{name = 'WEAPON_FIREEXTINGUISHER', price = 120},
{name = 'WEAPON_FLAREGUN', price = 60},
},
AuthorizedVehicles = {
{name = 'police' , label = 'Police Vehicle 1'},
{name = 'police2', label = 'Police Vehicle 2'},
{name = 'police3', label = 'Police Vehicle 3'},
{name = 'police4', label = 'Police Vehicle 4'},
{name = 'policeb', label = 'Motorcycle'},
{name = 'policet', label = 'Transport Van'},
},
Cloakrooms = {
{x = 830.11590576172, y = -1311.4512939453, z = 28.13673210144 } -- state pd
},
Armories = {
{x = 858.25366210938, y = -1321.5992431641, z = 28.136734008789 } -- state pd
},
Vehicles = {
{
Spawner = {x = 863.17700195313, y = -1346.2406005859, z = 26.039228439331 }, --state pd
SpawnPoint = {x = 871.07720947266, y = -1350.00390625, z = 26.3092918396 }, -- state pd
Heading = 90.0 --state pd
}
},
Helicopters = {
{
Spawner = {x = 466.477, y = -982.819, z = 42.691},
SpawnPoint = {x = 450.04, y = -981.14, z = 42.691},
Heading = 0.0
}
},
VehicleDeleters = {
{x = 823.95031738281, y = -1371.1483154297, z = 26.136753082275 } --state pd
},
BossActions = {
{x = 850.228515625, y = -1284.50390625, z = 28.004758834839 } --state pd
}
},
LSPD2 = {
Blip = {
Pos = {x = -441.80764770508, y = 6012.5131835938, z = 31.716369628906 },
Color = 29
},
AuthorizedWeapons = {
{name = 'WEAPON_NIGHTSTICK', price = 200},
{name = 'WEAPON_COMBATPISTOL', price = 300},
{name = 'WEAPON_ASSAULTSMG', price = 1250},
{name = 'WEAPON_SPECIALCARBINE', price = 1500},
{name = 'WEAPON_PUMPSHOTGUN', price = 600},
{name = 'WEAPON_STUNGUN', price = 500},
{name = 'WEAPON_FLASHLIGHT', price = 80},
{name = 'WEAPON_FIREEXTINGUISHER', price = 120},
{name = 'WEAPON_FLAREGUN', price = 60},
},
AuthorizedVehicles = {
{name = 'police' , label = 'Police Vehicle 1'},
{name = 'police2', label = 'Police Vehicle 2'},
{name = 'police3', label = 'Police Vehicle 3'},
{name = 'police4', label = 'Police Vehicle 4'},
{name = 'policeb', label = 'Motorcycle'},
{name = 'policet', label = 'Transport Van'},
},
Cloakrooms = {
{x = -450.2878112793, y = 6016.482421875, z = 31.716369628906 },
},
Armories = {
{x = -448.04425048828, y = 6007.7104492188, z = 31.716369628906 },
},
Vehicles = {
{
Spawner = {x = -452.30313110352, y = 6005.6704101563, z = 31.840929031372 },
SpawnPoint = {x = -454.96899414063, y = 6001.8876953125, z = 31.340549468994 },
Heading = 87.0
}
},
Helicopters = {
{
Spawner = {x = -462.88317871094, y = 5993.7685546875, z = 31.245756149292 },
SpawnPoint = {x = -475.48043823242, y = 5988.326171875, z = 31.336708068848 },
Heading = 270.0
}
},
VehicleDeleters = {
{x = -447.64434814453, y = 5994.5024414063, z = 31.340551376343 },
},
BossActions = {
{x = -441.80764770508, y = 6012.5131835938, z = 31.716369628906 },
}
},
SASP2 = {
Blip = {
Pos = {x = 1851.0972900391, y = 3683.7622070313, z = 34.26708984375 },
Color = 40
},
AuthorizedWeapons = {
{name = 'WEAPON_NIGHTSTICK', price = 200},
{name = 'WEAPON_COMBATPISTOL', price = 300},
{name = 'WEAPON_ASSAULTSMG', price = 1250},
{name = 'WEAPON_SPECIALCARBINE', price = 1500},
{name = 'WEAPON_PUMPSHOTGUN', price = 600},
{name = 'WEAPON_STUNGUN', price = 500},
{name = 'WEAPON_FLASHLIGHT', price = 80},
{name = 'WEAPON_FIREEXTINGUISHER', price = 120},
{name = 'WEAPON_FLAREGUN', price = 60},
},
AuthorizedVehicles = {
{name = 'police' , label = 'Police Vehicle 1'},
{name = 'police2', label = 'Police Vehicle 2'},
{name = 'police3', label = 'Police Vehicle 3'},
{name = 'police4', label = 'Police Vehicle 4'},
{name = 'policeb', label = 'Motorcycle'},
{name = 'policet', label = 'Transport Van'},
},
Cloakrooms = {
{x = 1857.2354736328, y = 3689.8408203125, z = 34.26708984375 }, -- state pd
},
Armories = {
{x = 1848.3413085938, y = 3690.1345214844, z = 34.26708984375 }, -- state pd
},
Vehicles = {
{
Spawner = {x = 1866.208984375, y = 3693.8125, z = 33.737236022949 }, --state pd
SpawnPoint = {x = 1872.9417724609, y = 3690.5759277344, z = 33.569362640381 }, -- state pd
Heading = 90.0 --state pd
}
},
Helicopters = {
{
Spawner = {x = 466.477, y = -982.819, z = 42.691},
SpawnPoint = {x = 450.04, y = -981.14, z = 42.691},
Heading = 0.0
}
},
VehicleDeleters = {
{x = 1866.4152832031, y = 3699.6052246094, z = 33.535938262939 }, --state pd
},
BossActions = {
{x = 1851.0972900391, y = 3683.7622070313, z = 34.26708984375 }, --state pd
}
},
}
+88
View File
@@ -0,0 +1,88 @@
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_police','Police',1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_police','Police',1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('society_police', 'Police', 1)
;
INSERT INTO `jobs` (name, label) VALUES
('police','LSPD')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('police',0,'recruit','Recruit',20,'{}','{}'),
('police',1,'officer','Officier',40,'{}','{}'),
('police',2,'sergeant','Sergeant',60,'{}','{}'),
('police',3,'lieutenant','Lieutenant',85,'{}','{}'),
('police',4,'boss','Chief',100,'{}','{}')
;
CREATE TABLE `fine_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(255) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`category` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `fine_types` (label, amount, category) VALUES
('Misuse of a horn', 30, 0),
('Illegally Crossing a continuous Line', 40, 0),
('Driving on the wrong side of the road', 250, 0),
('Illegal U-Turn', 250, 0),
('Illegally Driving Off-road', 170, 0),
('Refusing a Lawful Command', 30, 0),
('Illegally Stoped of a Vehicle', 150, 0),
('Illegal Parking', 70, 0),
('Failing to Yield to the right', 70, 0),
('Failure to comply with Vehicle Information', 90, 0),
('Failing to stop at a Stop Sign ', 105, 0),
('Failing to stop at a Red Light', 130, 0),
('Illegal Passing', 100, 0),
('Driving an illegal Vehicle', 100, 0),
('Driving without a License', 1500, 0),
('Hit and Run', 800, 0),
('Exceeding Speeds Over < 5 mph', 90, 0),
('Exceeding Speeds Over 5-15 mph', 120, 0),
('Exceeding Speeds Over 15-30 mph', 180, 0),
('Exceeding Speeds Over > 30 mph', 300, 0),
('Impeding traffic flow', 110, 1),
('Public Intoxication', 90, 1),
('Disorderly conduct', 90, 1),
('Obstruction of Justice', 130, 1),
('Insults towards Civilans', 75, 1),
('Disrespecting of an LEO', 110, 1),
('Verbal Threat towards a Civilan', 90, 1),
('Verbal Threat towards an LEO', 150, 1),
('Providing False Information', 250, 1),
('Attempt of Corruption', 1500, 1),
('Brandishing a weapon in city Limits', 120, 2),
('Brandishing a Lethal Weapon in city Limits', 300, 2),
('No Firearms License', 600, 2),
('Possession of an Illegal Weapon', 700, 2),
('Possession of Burglary Tools', 300, 2),
('Grand Theft Auto', 1800, 2),
('Intent to Sell/Distrube of an illegal Substance', 1500, 2),
('Frabrication of an Illegal Substance', 1500, 2),
('Possession of an Illegal Substance ', 650, 2),
('Kidnapping of a Civilan', 1500, 2),
('Kidnapping of an LEO', 2000, 2),
('Robbery', 650, 2),
('Armed Robbery of a Store', 650, 2),
('Armed Robbery of a Bank', 1500, 2),
('Assault on a Civilian', 2000, 3),
('Assault of an LEO', 2500, 3),
('Attempt of Murder of a Civilian', 3000, 3),
('Attempt of Murder of an LEO', 5000, 3),
('Murder of a Civilian', 10000, 3),
('Murder of an LEO', 30000, 3),
('Involuntary manslaughter', 1800, 3),
('Fraud', 2000, 2);
;
-87
View File
@@ -1,87 +0,0 @@
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_police','Police',1)
;
INSERT INTO `datastore` (name, label, shared) VALUES
('society_police','Police',1)
;
INSERT INTO `addon_inventory` (name, label, shared) VALUES
('society_police', 'Police', 1)
;
INSERT INTO `jobs` (name, label) VALUES
('police','LSPD')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('police',0,'recruit','Recruit',20,'{\"tshirt_1\":57,\"torso_1\":55,\"arms\":0,\"pants_1\":35,\"glasses\":0,\"decals_2\":0,\"hair_color_2\":0,\"helmet_2\":0,\"hair_color_1\":5,\"face\":19,\"glasses_2\":1,\"torso_2\":0,\"shoes\":24,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"pants_2\":0,\"hair_2\":0,\"decals_1\":0,\"tshirt_2\":0,\"helmet_1\":8}','{\"tshirt_1\":34,\"torso_1\":48,\"shoes\":24,\"pants_1\":34,\"torso_2\":0,\"decals_2\":0,\"hair_color_2\":0,\"glasses\":0,\"helmet_2\":0,\"hair_2\":3,\"face\":21,\"decals_1\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"arms\":14,\"hair_color_1\":10,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',1,'sergeant','Sergeant',40,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',2,'lieutenant','Lieutenant',65,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":2,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"glasses\":0,\"decals_1\":8,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"torso_2\":0,\"arms\":41,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"hair_2\":3,\"decals_2\":2,\"hair_color_2\":0,\"hair_color_1\":10,\"helmet_2\":0,\"face\":21,\"shoes\":24,\"torso_2\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"decals_1\":7,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',3,'boss','Chief',80,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":41,\"torso_2\":0,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"decals_1\":8,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":21,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"hair_color_1\":10,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"shoes\":24,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}')
;
CREATE TABLE `fine_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(255) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`category` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `fine_types` (label, amount, category) VALUES
('Misuse of a horn', 30, 0),
('Illegally Crossing a continuous Line', 40, 0),
('Driving on the wrong side of the road', 250, 0),
('Illegal U-Turn', 250, 0),
('Illegally Driving Off-road', 170, 0),
('Refusing a Lawful Command', 30, 0),
('Illegally Stoped of a Vehicle', 150, 0),
('Illegal Parking', 70, 0),
('Failing to Yield to the right', 70, 0),
('Failure to comply with Vehicle Information', 90, 0),
('Failing to stop at a Stop Sign ', 105, 0),
('Failing to stop at a Red Light', 130, 0),
('Illegal Passing', 100, 0),
('Driving an illegal Vehicle', 100, 0),
('Driving without a License', 1500, 0),
('Hit and Run', 800, 0),
('Exceeding Speeds Over < 5 mph', 90, 0),
('Exceeding Speeds Over 5-15 mph', 120, 0),
('Exceeding Speeds Over 15-30 mph', 180, 0),
('Exceeding Speeds Over > 30 mph', 300, 0),
('Impeding traffic flow', 110, 1),
('Public Intoxication', 90, 1),
('Disorderly conduct', 90, 1),
('Obstruction of Justice', 130, 1),
('Insults towards Civilans', 75, 1),
('Disrespecting of an LEO', 110, 1),
('Verbal Threat towards a Civilan', 90, 1),
('Verbal Threat towards an LEO', 150, 1),
('Providing False Information', 250, 1),
('Attempt of Corruption', 1500, 1),
('Brandishing a weapon in city Limits', 120, 2),
('Brandishing a Lethal Weapon in city Limits', 300, 2),
('No Firearms License', 600, 2),
('Possession of an Illegal Weapon', 700, 2),
('Possession of Burglary Tools', 300, 2),
('Grand Theft Auto', 1800, 2),
('Intent to Sell/Distrube of an illegal Substance', 1500, 2),
('Frabrication of an Illegal Substance', 1500, 2),
('Possession of an Illegal Substance ', 650, 2),
('Kidnapping of a Civilan', 1500, 2),
('Kidnapping of an LEO', 2000, 2),
('Robbery', 650, 2),
('Armed Robbery of a Store', 650, 2),
('Armed Robbery of a Bank', 1500, 2),
('Assault on a Civilian', 2000, 3),
('Assault of an LEO', 2500, 3),
('Attempt of Murder of a Civilian', 3000, 3),
('Attempt of Murder of an LEO', 5000, 3),
('Murder of a Civilian', 10000, 3),
('Murder of an LEO', 30000, 3),
('Involuntary manslaughter', 1800, 3),
('Fraud', 2000, 2);
;
+5 -5
View File
@@ -15,11 +15,11 @@ INSERT INTO `jobs` (name, label) VALUES
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('police',0,'recruit','Aspirant',20,'{\"tshirt_1\":57,\"torso_1\":55,\"arms\":0,\"pants_1\":35,\"glasses\":0,\"decals_2\":0,\"hair_color_2\":0,\"helmet_2\":0,\"hair_color_1\":5,\"face\":19,\"glasses_2\":1,\"torso_2\":0,\"shoes\":24,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"pants_2\":0,\"hair_2\":0,\"decals_1\":0,\"tshirt_2\":0,\"helmet_1\":8}','{\"tshirt_1\":34,\"torso_1\":48,\"shoes\":24,\"pants_1\":34,\"torso_2\":0,\"decals_2\":0,\"hair_color_2\":0,\"glasses\":0,\"helmet_2\":0,\"hair_2\":3,\"face\":21,\"decals_1\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"arms\":14,\"hair_color_1\":10,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',4,'officer','Biträdande Rikspolischef',40,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',1,'sergeant','Assistent',60,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":0,\"decals_1\":8,\"torso_2\":0,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"hair_color_1\":5,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":14,\"pants_1\":34,\"pants_2\":0,\"decals_2\":1,\"hair_color_2\":0,\"shoes\":24,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"face\":21,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"hair_color_1\":10,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',2,'lieutenant','Inspektör',85,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":2,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"glasses\":0,\"decals_1\":8,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"torso_2\":0,\"arms\":41,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"hair_2\":3,\"decals_2\":2,\"hair_color_2\":0,\"hair_color_1\":10,\"helmet_2\":0,\"face\":21,\"shoes\":24,\"torso_2\":0,\"glasses_2\":1,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"pants_2\":0,\"decals_1\":7,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}'),
('police',3,'boss','Rikspolischef',100,'{\"tshirt_1\":58,\"torso_1\":55,\"shoes\":24,\"pants_1\":35,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":19,\"helmet_2\":0,\"hair_2\":0,\"arms\":41,\"torso_2\":0,\"hair_color_1\":5,\"hair_1\":2,\"skin\":34,\"sex\":0,\"glasses_1\":0,\"glasses_2\":1,\"decals_1\":8,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":11}','{\"tshirt_1\":35,\"torso_1\":48,\"arms\":44,\"pants_1\":34,\"pants_2\":0,\"decals_2\":3,\"hair_color_2\":0,\"face\":21,\"helmet_2\":0,\"hair_2\":3,\"decals_1\":7,\"torso_2\":0,\"hair_color_1\":10,\"hair_1\":11,\"skin\":34,\"sex\":1,\"glasses_1\":5,\"glasses_2\":1,\"shoes\":24,\"glasses\":0,\"tshirt_2\":0,\"helmet_1\":57}')
('police',0,'recruit','Aspirant',20,'{}','{}'),
('police',1,'officer','Biträdande Rikspolischef',40,'{}','{}'),
('police',2,'sergeant','Assistent',60,'{}','{}'),
('police',3,'lieutenant','Inspektör',85,'{}','{}'),
('police',4,'boss','Rikspolischef',100,'{}','{}')
;
CREATE TABLE `fine_types` (