mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Improved realistic out vehicle animation, Markers modification implemented and Added es_esx_policejob.sql (#465)
* Improved realistic out vehicle animation. * Markers modification implemented. * Added es_esx_policejob.sql.
This commit is contained in:
+6
-6
@@ -1136,7 +1136,7 @@ AddEventHandler('esx_policejob:OutVehicle', function()
|
||||
|
||||
if IsPedSittingInAnyVehicle(playerPed) then
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
TaskLeaveVehicle(playerPed, vehicle, 16)
|
||||
TaskLeaveVehicle(playerPed, vehicle, 64)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -1234,7 +1234,7 @@ Citizen.CreateThread(function()
|
||||
local distance = #(playerCoords - v.Cloakrooms[i])
|
||||
|
||||
if distance < Config.DrawDistance then
|
||||
DrawMarker(20, v.Cloakrooms[i], 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
DrawMarker(Config.MarkerType.Cloakrooms, v.Cloakrooms[i], 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
letSleep = false
|
||||
|
||||
if distance < Config.MarkerSize.x then
|
||||
@@ -1247,7 +1247,7 @@ Citizen.CreateThread(function()
|
||||
local distance = #(playerCoords - v.Armories[i])
|
||||
|
||||
if distance < Config.DrawDistance then
|
||||
DrawMarker(21, v.Armories[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.5, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
DrawMarker(Config.MarkerType.Armories, v.Armories[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.5, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
letSleep = false
|
||||
|
||||
if distance < Config.MarkerSize.x then
|
||||
@@ -1260,7 +1260,7 @@ Citizen.CreateThread(function()
|
||||
local distance = #(playerCoords - v.Vehicles[i].Spawner)
|
||||
|
||||
if distance < Config.DrawDistance then
|
||||
DrawMarker(36, v.Vehicles[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
DrawMarker(Config.MarkerType.Vehicles, v.Vehicles[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
letSleep = false
|
||||
|
||||
if distance < Config.MarkerSize.x then
|
||||
@@ -1273,7 +1273,7 @@ Citizen.CreateThread(function()
|
||||
local distance = #(playerCoords - v.Helicopters[i].Spawner)
|
||||
|
||||
if distance < Config.DrawDistance then
|
||||
DrawMarker(34, v.Helicopters[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
DrawMarker(Config.MarkerType.Helicopters, v.Helicopters[i].Spawner, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
letSleep = false
|
||||
|
||||
if distance < Config.MarkerSize.x then
|
||||
@@ -1287,7 +1287,7 @@ Citizen.CreateThread(function()
|
||||
local distance = #(playerCoords - v.BossActions[i])
|
||||
|
||||
if distance < Config.DrawDistance then
|
||||
DrawMarker(22, v.BossActions[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
DrawMarker(Config.MarkerType.BossActions, v.BossActions[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, true, false, false, false)
|
||||
letSleep = false
|
||||
|
||||
if distance < Config.MarkerSize.x then
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
Config = {}
|
||||
|
||||
Config.DrawDistance = 100.0
|
||||
Config.MarkerType = 1
|
||||
Config.MarkerType = {Cloakrooms = 20, Armories = 21, BossActions = 22, Vehicles = 36, Helicopters = 34}
|
||||
Config.MarkerSize = {x = 1.5, y = 1.5, z = 0.5}
|
||||
Config.MarkerColor = {r = 50, g = 50, b = 204}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
USE `es_extended`;
|
||||
|
||||
INSERT INTO `addon_account` (name, label, shared) VALUES
|
||||
('society_police', 'Policía', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `datastore` (name, label, shared) VALUES
|
||||
('society_police', 'Policía', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `addon_inventory` (name, label, shared) VALUES
|
||||
('society_police', 'Policía', 1)
|
||||
;
|
||||
|
||||
INSERT INTO `jobs` (name, label) VALUES
|
||||
('police', 'Policía')
|
||||
;
|
||||
|
||||
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
|
||||
('police',0,'recruit','Recluta',20,'{}','{}'),
|
||||
('police',1,'officer','Oficial',40,'{}','{}'),
|
||||
('police',2,'sergeant','Sargento',60,'{}','{}'),
|
||||
('police',3,'lieutenant','Teniente',85,'{}','{}'),
|
||||
('police',4,'boss','Jefe',100,'{}','{}')
|
||||
;
|
||||
|
||||
CREATE TABLE `fine_types` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`label` varchar(255) DEFAULT NULL,
|
||||
`amount` int DEFAULT NULL,
|
||||
`category` int DEFAULT NULL,
|
||||
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
INSERT INTO `fine_types` (label, amount, category) VALUES
|
||||
('Mal uso del claxon', 30, 0),
|
||||
('Cruzar indebidamente la línea continua', 40, 0),
|
||||
('Conducir por el lado incorrecto de la carretera', 250, 0),
|
||||
('Giro indebido', 250, 0),
|
||||
('Conducir indebidamente fuera de la carretera', 170, 0),
|
||||
('No hacer caso a una orden de un agente', 30, 0),
|
||||
('Detener el vehículo de forma incorrecta', 150, 0),
|
||||
('Aparcar en un lugar no habilitado', 70, 0),
|
||||
('No ceder al girar a la derecha', 70, 0),
|
||||
('No cumplir con los datos de tu vehículo', 90, 0),
|
||||
('No pararse en una señal de STOP', 105, 0),
|
||||
('No pararse en un semáforo cuando está en rojo', 130, 0),
|
||||
('Cruzar indebidamente', 100, 0),
|
||||
('Conducir un coche no permitido', 100, 0),
|
||||
('Conducir sin carnet de conducción', 1500, 0),
|
||||
('Chocar y darse a la fuga', 800, 0),
|
||||
('Exceder la velocidad permitida en 5 km/h', 90, 0),
|
||||
('Exceder la velocidad permitida entre 5 y 15 km/h', 120, 0),
|
||||
('Exceder la velocidad permitida entre 15 y 30 km/h', 180, 0),
|
||||
('Exceder la velocidad permitida más de 30 km/h', 300, 0),
|
||||
('Generar atasco en una carretera', 110, 1),
|
||||
('Intoxicación pública', 90, 1),
|
||||
('Conducta alocada', 90, 1),
|
||||
('Obstrucción a la justicia', 130, 1),
|
||||
('Insultos hacia civiles', 75, 1),
|
||||
('Insultos hacia un agente', 110, 1),
|
||||
('Amenaza verbar a un civil', 90, 1),
|
||||
('Amenaza verbal a un agente', 150, 1),
|
||||
('Dar información falsa', 250, 1),
|
||||
('Intento de corrupción', 1500, 1),
|
||||
('Tendencia de armas en los limites de la ciudad', 120, 2),
|
||||
('Tendencia de armas letales en los limites de la ciudad', 300, 2),
|
||||
('No tener licencia de armas', 600, 2),
|
||||
('Posesión de un arma ilegal', 700, 2),
|
||||
('Posesión de herramientas para robos', 300, 2),
|
||||
('Desorden público', 1800, 2),
|
||||
('Intento de venta o distribución de sustancias ilegales', 1500, 2),
|
||||
('Fabricación de sustancias ilegales', 1500, 2),
|
||||
('Posesión de sustancias ilegales', 650, 2),
|
||||
('Secuestro de un civil', 1500, 2),
|
||||
('Secuestro de un agente', 2000, 2),
|
||||
('Robo', 650, 2),
|
||||
('Robo armado a una tienda', 650, 2),
|
||||
('Robo armado a un banco', 1500, 2),
|
||||
('Asalto a un civil', 2000, 3),
|
||||
('Asalto a un agente', 2500, 3),
|
||||
('Intento de asesinato a un civil', 3000, 3),
|
||||
('Intento de asesinato a un agente', 5000, 3),
|
||||
('Asesinato de un civil', 10000, 3),
|
||||
('Asesinato de un policia', 30000, 3),
|
||||
('Homicidio involuntario', 1800, 3),
|
||||
('Fraude', 2000, 2);
|
||||
;
|
||||
Reference in New Issue
Block a user