Law and Order is an addon for qb-phone With this addon you can create and manage the laws, also every citizen can read these laws.
© Copyright 2022 all rights reserved
All contents, especially the source code of all files, are protected by copyright. All rights, including reproduction, publication, editing and translation, are reserved.
Law and Order is an addon for qb-phone
With this addon you can create and manage the laws, also every citizen can read these laws.
Screenshots:
Files that nedd to be modified:
./resource/[qb]/qb-phone/html/index.html
./resource/[qb]/qb-phone/html/fxmanifest.lua
Installation:
-
Move the folder
./html/audio
to:./resource/[qb]/[phone]/html/
-
Move the file
./html/js/lawandorder.js
to:./resource/[qb]/[phone]/html/js/
-
Move the file
./html/css/lawandorder.css
to:./resource/[qb]/[phone]/html/css/
-
Move the file
./client/lawandorder.lua
to:./resource/[qb]/[phone]/client/
-
Move the file
./server/lawandorder.lua
to:./resource/[qb]/[phone]/server/
-
Open the file:
./resource/[qb]/qb-phone/html/index.html
-
Search in the file for:
<link rel="stylesheet" href="./css/camera.css">
-
After that, paste:
<link rel="stylesheet" href="./css/lawandorder.css">
-
Search in the file for:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
-
Replace it by:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
-
Search in the file for:
<div class="phone-application-container">
-
After that, paste:
<div class="lawandorder-app"> <div class="lawandorderok" id="lawandorderok" style="display:none;"></div> <div class="lawandorderok" id="lawandorderdeleted" style="display:none;"></div> <div class="lawandorderok" id="lawsure" style="display:none;"></div> <div class="lawandorder-app-header">Laws</div> <div id="lawandorderloader"><i class="fas fa-scale-balanced"></i><br>Code of Law<p style="font-size: 1.8vh;padding-top: 5vh;">In any case, justice does not come into being without the Word.</p></div> <div class="lawandorder-list"></div> <div class="lawandorder-read"></div> <div class="lawandorder-cats"></div> <div class="lawandorder-create"></div> </div>
-
Search in the file for:
<script src="./js/camera.js"></script>
-
After that, paste:
<script src="./js/lawandorder.js"></script>
-
Save and close
-
Open the file:
./resource/[qb]/qb-phone/fxmanifest.lua
-
Search in the file for:
'client/main.lua',
-
After that, paste:
'client/lawandorder.lua',
-
Search in the file for:
'server/main.lua'
-
Replace it by:
'server/main.lua', 'server/lawandorder.lua'
-
Search in the file for:
files {
-
After that, paste:
'html/audio/*.mp3',
-
Save and close
-
Open the file:
./ressource[qb]/qb-phone/config.lua
-
Search in file for:
["camera"] = { app = "camera", color = "#AC1D2C", icon = "fas fa-camera", tooltipText = "Camera", tooltipPos = "bottom", job = false, blockedjobs = {}, slot = 15, Alerts = 0, },
-
After that, paste:
["lawandorde"] = { app = "lawandorder", color = "#AC1D2C", icon = "fas fa-scale-balanced", tooltipText = "Gesetze", tooltipPos = "bottom", job = false, blockedjobs = {}, slot = 18, Alerts = 0, },
-
Save and close
-
run lawandorder.sql
restart script (better restart server), DONE!
required: qb-phone