LG Mods Product Documentation
Tebex Store
  • Welcome
  • MLO / Interiors
    • UK Sinner Street
    • UK Traffic Base
    • UK JRU Base
  • Miscellaneous mods
    • British Server Sided Sirens
    • London Server Sided Sirens
    • Mega Server Sided Sirens
    • Police Prop Pack
    • British Ambience Pack
    • British Traffic Lights
    • British Speedbumps
Powered by GitBook
  1. Miscellaneous mods

Police Prop Pack

Last updated 2 months ago

Was this helpful?

Product Information

Purchase -

The British Police Prop Pack brings 17 British Police related props to your FiveM server. You can use the included prop spawn menu to place these props. The menu can be job locked/whitelisted to ESX, QBCore or just be standalone.

Be aware that this product is encrypted and distributed via Tebex for the FiveM platform only. Editing of some content will be restricted.

You cannot install this product directly into GTA5 as a modification and must use the FiveM platform to use it as a streamed resource.

Contents

File/[Folder]
Information
Required to be configured?

[stream]

Contains the prop models and textures.

No - Do not edit

.fxap

A FiveM file required to be included within the resource folder for the modification to load

No - Do not edit

config.lua

Configuration file for the Prop Pack.

fxmanifest.lua

FiveM config file to determine what files need to be loaded/streamed. Do not edit

No - Edit only to disable the prop menu script

menu.lua

Script for the NativeUI menu.

No - Do not edit

NativeUI.lua

NativeUI framework that is used by the prop spawning menu

No - Do not edit

Do not edit the files within this resource folder outside of what is highlighted above as being configurable. LGMods will not provide assistance to you if you have edited files outside of what has been set out to be edited by the customer.

Installation

These instructions assume you have a working FiveM server that you can already connect to without issue. Please see for more information on setting up a FiveM server.

  1. Find the 'resources' folder within your FiveM server installation. It should be in the same location as your server.cfg.

  2. Extract the files from the ZIP archive you downloaded into the 'Resources' folder.

  3. The folder inside the 'Resources' folder should be 'LGMods_PoliceProps' and within it you see the files listed above.

If you find another folder inside the LGMods_PoliceProps folder, then you need to make sure the contents are moved so that the files above are within the first directory you open from the resources folder, otherwise the addon will not load

  1. Open your server.cfg and find where you see a number of lines that start with the word 'ensure'. The default resources are usually included and appear like below.

ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
  1. Below these lines is where you will add this resource with the following line

ensure LGMods_PoliceProps
  1. Restart your server. Some resources can be loaded while the server is running using the start command, however prop files can usually have problems using this method as such we recommend you restart your server after installation.

All players that join must 'stream' the asset to their computer for the first time they connect to the server. There may be a very short delay in the objects appearing for the first time for each user. The objects will cache and will appear instantly after the first time.

Configuration

The configuration of this product is done within the config.lua file, found in the LGMods_PoliceProps resource folder.

Configuring the Prop Pack Menu

Open Config.lua in a text editor (Windows Notepad is fine, but Notepad++ is a free alternative that makes reading Lua and JSON files easier). There are a number of options to modify.

Config.keybind = 166 -- Keybind for opening the menu

Below this is where the props are defined for the menu. They will appear in the menu in the same order they are placed here. If you wish to add further objects you can do so by copying and pasting one of the lines, ensuring all but the last one have a comma at the end. By default, all of the LG Mods Police Props are listed here, so you do not need to edit anything if you are only wishing to feature these in the menu.

Config.Props = {
  --[[
      EXAMPLE: 
  {name = 'a', spawncode = 'b'},
      ────────────────────────────────────────────────────────────────
      'a' is the title that shows in the menu
      'b' is the spawn code for prop that will be spawned
  ]]
  {name = 'Police Cone', spawncode = 'lgmods_cone'},
  {name = 'Police Slow Sign', spawncode = 'lgmods_policeslow'},
  {name = 'Police Road Closed Sign', spawncode = 'lgmods_policeroadclosed'},
  {name = 'Police Accident Sign', spawncode = 'lgmods_policeaccident'},
  {name = 'Bare Left Arrow', spawncode = 'lgmods_policeleftarrow'},
  {name = 'Bare Right Arrow', spawncode = 'lgmods_policerightarrow'},
  {name = 'Police Drink Drive Checkpoint', spawncode = 'lgmods_policeddc'},
  {name = 'Police Drones in Operation', spawncode = 'lgmods_policedrones'},
  {name = 'Vision Zero Met Police', spawncode = 'lgmods_visionzero'},
  {name = 'Dorman Blue Lantern', spawncode = 'lgmods_lantern'},
  {name = 'Forensic Tent', spawncode = 'lgmods_forensictent'},
  {name = 'Collision Investigation Camera', spawncode = 'lgmods_collision_cam'},
  {name = 'CSI Marker 1', spawncode = 'lgmods_csimarker1'},
  {name = 'CSI Marker 2', spawncode = 'lgmods_csimarker2'},
  {name = 'CSI Marker 3', spawncode = 'lgmods_csimarker3'},
  {name = 'CSI Marker 4', spawncode = 'lgmods_csimarker4'},
  {name = 'CSI Marker 5', spawncode = 'lgmods_csimarker5'}
}

The final part of config.lua that you can modify is the whitelisting/job lock to define who can open the menu.

The first line requires you to pick from a list of the options listed in the comment on the same line. If you are not using a framework mentioned (oEssentials, PoliceEssentials, QBCore, ESX) then use standalone.

If you do use one of the frameworks, copy that into the value for the Framework. You then need to define what jobs are allowed access to this menu. Each network should define a name for the job/role and this is what you will place here. In this example "Police" and "Job2" roles will be able to open the menu. But, you must ensure you have entered the correct framework in Config.Framework value above or this will be ignored.

Config.Framework = 'standalone' -- standalone, oEssentials, PoliceEssentials, QBCore or ESX. If you are using ESX please remove "--" from the start of Line 11S in fxmanifest.

Config.AllowedJobs = { -- This is only checked when Framework is set to QBCore or ESX.
    "Police",
    "Job2"
}

Once you have completed all of the above, save config.lua and close it.

Disable Prop Menu

You may have your own script or tool to spawn the LG Mods Police Props and therefore do not require the script included. To prevent this appearing, edit the

Prop Pack Classnames

You can spawn the props using your own methods. The class names are available below.

Classname
Name

lgmods_cone

Police Cone

lgmods_policeslow

Police Slow Sign

lgmods_policeroadclosed

Police Road Closed Sign

lgmods_policeaccident

Police Accident Sign

lgmods_policeleftarrow

Bare Left Arrow Sign

lgmods_policerightarrow

Bare Right Arrow Sign

lgmods_policeddc

Police Drink Drive Checkpoint Sign

lgmods_policedrones

Police Drones in Operation Sign

lgmods_visionzero

Vision Zero Met Police Sign

lgmods_lantern

Dorman Blue Lantern

lgmods_forensictent

Forensic Tent

lgmods_collision_cam

Collision Investigation Camera

lgmods_csimarker1

CSI Marker 1

lgmods_csimarker2

CSI Marker 2

lgmods_csimarker3

CSI Marker 3

lgmods_csimarker4

CSI Marker 4

lgmods_csimarker5

CSI Marker 5

Requires configuration if using whitelisting - see

Download the LG Mods product from your , if you haven't already.

The first line sets the key to be used to open the open the menu. By default it is 166, which is F5. You can change this by selecting a different number corresponding to a different key, as laid out by the information on .

Tebex Store - British Police Prop Pack
here
FiveM Keymaster
this CFx FiveM Controls doc
configuration
Page cover image