🌐
MFPSCRIPTS- Documentation
  • πŸ”Documentation
  • 🐌Scripts
    • πŸ“±PhoneBattery
      • βš™οΈInstallation
      • ☎️Addidtional Phones
        • πŸ“±RoadPhone
        • πŸ“±GCPhone
        • πŸ“±HighPhone
        • πŸ“±D-Phone
        • πŸ“±NPWD
    • πŸ’ΈBanking
      • βš™οΈInstallation
    • πŸš”Policejob
      • βš™οΈInstallation
      • πŸ”—Script Intergrations
      • πŸ‘¨β€πŸ’»Developers
    • 🚧Progressbar
    • ℹ️Notification
    • πŸ—‘οΈScrapyard
    • 🎬HUD
    • πŸ—ΊοΈAdvancedBlips
  • πŸ₯©Additional
    • βš™οΈINSTALL SCRIPTS
    • πŸ“΄FiveStatus
  • 🚫General Errors
    • πŸ“€es_extended
  • LB-Phone
    • πŸ“²Dispatches-App for LB-Phone
    • πŸ“²Games-App for LB-Phone
Powered by GitBook
On this page
  1. Scripts
  2. Policejob

Installation

This is how to install our script easy on your server.

PreviousPolicejobNextScript Intergrations

Last updated 10 months ago

This Script is only for ESX.

Requirements

Server.cfg

start NativeUI
start mfp_blips
start mfp_policejob

SQL Imports

-- if you dont already have it
INSERT INTO `licenses` (`type`, `label`) VALUES 
('weapon', 'Weapon');
------------------------------------------


CREATE TABLE IF NOT EXISTS `mfp_stocks` (
  `typ` varchar(255) DEFAULT NULL,
  `amount` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

INSERT INTO `mfp_stocks` (`typ`, `amount`) VALUES
	('WEAPON_NIGHTSTICK', 10),
	('WEAPON_FLASHLIGHT', 10),
	('WEAPON_STUNGUN', 11),
	('WEAPON_PISTOL50', 18),
	('WEAPON_COMBATPISTOL', 13),
	('WEAPON_PUMPSHOTGUN', 15),
	('WEAPON_COMBATPDW', 7),
	('WEAPON_SNIPERRIFLE', 0),
	('WEAPON_CARBINERIFLE', 4);


CREATE TABLE IF NOT EXISTS `mfp_policecars` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `owner_id` VARCHAR(64) NOT NULL,
    `vehicle_model` TEXT NOT NULL,
    `vehicle` TEXT NOT NULL,
    `plate` VARCHAR(10) NOT NULL,
    `mileage` FLOAT NOT NULL
);

CREATE TABLE IF NOT EXISTS `mfp_policehelis` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `owner_id` VARCHAR(64) NOT NULL,
    `vehicle_model` TEXT NOT NULL,
    `vehicle` TEXT NOT NULL,
    `plate` VARCHAR(10) NOT NULL,
    `mileage` FLOAT NOT NULL
);

CREATE TABLE IF NOT EXISTS `mfp_policeboats` (
    `id` INT AUTO_INCREMENT PRIMARY KEY,
    `owner_id` VARCHAR(64) NOT NULL,
    `vehicle_model` TEXT NOT NULL,
    `vehicle` TEXT NOT NULL,
    `plate` VARCHAR(10) NOT NULL,
    `mileage` FLOAT NOT NULL
);

Thats it. Edit the config.lua the way you want it to. ^^

🐌
πŸš”
βš™οΈ
NativeUI / NativeUIReloaded
MFP_AdvancedBlips