PD5M is a resource that aims to provide a functional police multiplayer to the game. Inspired by LSPDFR and PIS you can take on the role of an officer of the Police Departments to protect and to serve the citizens of San Andreas.
- Interact with every ped and vehicle on the server
- Talk to civilians, search them, use a drugtest or a breathalyzer
- Seize cars or items, fine peds or arrest them
- Call Coroner and Towtrucks to get rid of dead bodies resp. seized cars
- Departments: LSPD, LSSD, SAHP, SAPR (Park Ranger), SWAT
- Advanced and fully customizable armory, wardrobe and garage - systems
- Full EUP wardrobe support
- Work as a towtruck driver for the DPOS (Department of Public Order and Safety; very limited script-support)
- Wardrobe and garage support for Fire Department and EMS (no script-support currently)
- Custom TP-script to quickly get you to each police-station
- Config file pre-set to work with a few mods (listed below)
- Backend: Sync-structure so every client gets the same information of the peds
Controls
- Use
F3
to enable a crosshair that will help you determine what you are looking at
Keyboard
- Use
E
to interact with an npc you are looking at. Is also used to interact with every marker on the map - Hold
X
to open the radialmenu. You can see every action your officer can possibly take. Hover your mouse over an action and release the key (no click necessary) to perform the action. Has different options on foot and in a car
Controller
- Use
DPad Right
to interact with an npc you are looking at. Is also used to interact with every marker on the map - Press
DPad Down
to open the radialmenu. You can see every action your officer can possibly take. Use the right analog stick to move the cursor over an action and press DPad Down again to perform the action. Has different options on foot and in a car
On foot: To carry out an action look at a ped and use E or X as described above.
In a car: The actions will get carried out for the vehicle directly in front of your vehicle.
Make sure to talk to people before taking an action against them (e.g. arresting them). You wouldnât like that in real life either!
Video Tutorial
View this video tutorial to learn the basics about the controls:
Base
PD5M is based on the following resources:
- radialmenu by Brent_Peterson
- warmenu by Warxander
Both resources have been integrated into PD5M. A huge thank you to the authors for these awesome resources and the permission for the integration.
Other resources are recommended for better playability. For the full list see the readme in the github (link at the bottom of the post).
Installation Instructions
Please make sure that the resource is called pd5m
in all lowercase!
Described in the readme of the github. You can also find information on the licences there.
Pictures
Pictures
Interacting with peds
Starting a traffic stop
Searching a vehicle
Handcuffing
Resistance
Armory
Clothing Main Menu
Park Ranger Outfit
SWAT Outfit
LSPD Garage Main Menu
Shoutouts to
- The teams of LSPDFR and PIS for their inspiration and code-examples that I could rely on
- Brent_Peterson for his resource radialmenu
- Warxander for his resource warmenu
- Vespura for the recommended addon vMenu
- WolfKnight for the recommended addon Delete Vehicle Script
- MrDaGree, T0y, BradM, Kipz, Thehurk, Broderick, SLB2k11, Bamboozled, matus77, Smokey7, grzybeek and MrBrown1999 for their creations and resources that can be used to greatly enhance the playing experience of an officer.
- DrBlackError for his tremendous help regarding setting up and maintaining the github.
- MobTV for his contribution to offer ESX-integration.
- ChieF TroN for his contribution to offer vRP-integration.
github-Link
https://github.com/xSilvermanx/PD5M/releases/tag/v0.2.4
https://github.com/xSilvermanx/PD5M
Newest Patch Notes
This release updates the wardrobe to EUP-Version 9.3 and includes the option to save your outfits. It also includes Armories for Tow Trucks and Fire Departments with Fire Extinguishers and Jerry Cans.
- Armories and Wardrobe have been updated to EUP 9.3
- Json-Database to save outfits for each department
- BCSO has changed to LSSD
- Added Support for SAHP-Station LaMesa by Matus and LSPD-Station Del Perro Pier by Pablito
- Added TP-markers at every department, removed /tp-command
- Added the rank-command into the wardrobe, removed /rank-command
- Added Vehicle-Repair and -Impound/Deletion Markers. They are located at every tow truck station and a few police stations
- Ped Props now get removed when you open the uniform tab in the wardrobe
Older Patch Notes
v0.2.3 Mostly OneSync-ready
This release is not useable with normal FiveM however it should be much more stable with OneSync. Note that coroner and towtruck might be very unreliable.
Fixed peds and vehicles not having synced wanted status
Fixed peds randomly spawning arrested (that was a fun one)
Fixed Sandy Shores Bamboozled Station having the wrong handle name
Fixed some custom police vehicles spawning with neon light
Fixed âUnknown commandâ error popping up in chat for ESX
Added ESX ambulance and fire department to whitelisted players (they can
use the different menus)
Fixed some vehicles not being able to transport arrested peds even
though it theoretically should be possible
Removed âFirstname Surnameâ from the ped search for easier entry of
names
Removed script that reset the playerâs clothes on death
v0.2.2.1
- Fixed a bug where the permission system for ESX and vRP didnât work at all.
- Fixed medic stations not being loaded properly.
v0.2.2 Usability Update
- Updated
__resource.lua
tofxmanifest.lua
- Included Variables in
fxmanifest.lua
to easily activate and deactivate the files you need
v0.2.1 The wardrobe update
- Completely rewrote the wardrobe to feature much better customizability
of your mp-ped - Full support for EUP Law & Order + Serve & Rescue
- To utilize the EUP-wardrobe, use the EUP Serve & Rescue
Pack.
Only install theeup-stream
part of the download, you neither need
NativeUI nor eup-ui for the PD5M-wardrobe to function
- To utilize the EUP-wardrobe, use the EUP Serve & Rescue
- Added a check to keep you from opening the wardrobe without an mp-ped
- Added fire department and paramedic wardrobe and garage for every
hospital and fire station (no script-support, only for RP-purposes
currently) - Added command /rank so you can set your department rank for every
ingame department. Uniforms that can display rank insignia will display
the appropriate rank insignia when choosing that piece of clothing in
the wardrobe
Minor changes
- Moved ESX and vRP-integration to new folder
Integration
- Removed debug messages in Ambient Event âNon Roadworthy Vehicleâ that
were in the live version on accident - Discovered, traced and removed a bug where only a âfewâ markers were
displayed (turns out that there is a limit on how many markers can be
displayed at all. I seem to have reached that quite fine :-P). As an
unintended side effect performance of PD5M was improved from 0.6 CPU
msec to 0.2 CPU msec
v0.2 Ambient Events
- Added a system that provides work for officers while on-duty
- System works fully automatic, doesnât need to be activated nor started
- Added ambient event: car ignoring red lights (randomized, more things may happen)
- Added ambient event: car not in a road-worthy condition (randomized, different things may happen)
Tbh this is not the big update I was hoping to bring to you guys. However Callouts are a huge problem and the first version didnât work at all. Thus I completely removed the Callout-system to publish the mostly-working ambient events. Iâll target callouts later on, an idea on how to get a dynamic system done does exist. However this will be extremely complicated so might take a long while.
More patchnotes, sorted for files:
common_cl_fct.lua
:
- Added sync to automatically create data for all entities when peds drive vehicles
- Mission System Handler added: when using the SyncPedAndVeh()-function the mission system detects the used entities as interacted
- Fixed a bug where vehicles and peds wouldnât have synced data if you used the CheckPlate()-command without prior interaction to the vehicle
config_cl.lua
:
- Edited the Standard Driving Behavior. The peds should now drive way more predictable, and should not overtake anymore after being stopped.
- The towtrucks and coroners shouldnât drive the wrong direction of streets anymore.
station config Pillbox Hill Medical Center
:
- Markers at Pillbox Hill Medical Center now heal you instead of displaying the controls.
cleanupthreads_cl.lua
:
- Added events that trigger SetEntityAsMissionEntity and SetEntityAsNoLongerNeeded on every client
- Added event that sets mission entities to wander if they exist
- Added checks to make sure that mission entities properly get deleted and properly start wandering around after an interaction. Deletion of mission entities only works if the script doesnât get restarted.
def_gl.lua
and dev_sv.lua
:
- Every custom list that was defined serverside only is now global (items, weapons, names, offenses, âŚ)
- Serverside definitions of lists related to the mission system
interaction_cl.lua
:
- Fixed interaction with E-menu for players with ping > 200 (now problems will occur with a ping > 1000)
- Changed the FinePed()-function so you can directly start typing a sum instead of deleting huge amounts of text
- Upped the distance to grab peds using GrabPed()-function
- included targetveh-support in pedflee()-event. Should properly delete cars now
- peds in vehicles will now drive way slower when sending them on their way after a traffic stop
- Fixed a bug that caused a crash of the interaction-script when trying to set weapons for a ped which shouldnât have them
- Changed the speed at which the peds drive after interacting with you. Should be less speedy in the city, maybe a little bit too slow on the highway.
- Upped the distances at which you can use RunPlate to reflect the changes made to TrafficStops
- Set the max cruise speed of fleeing targets in vehicles higher and changed their driving style to be less chaotic. Chases should be harder now.
- Deleted Blips for fleeing peds. Chases should be harder now.
- Deleted Blips for hostile peds that get triggered through the interaction script.
- Fixed a bug where peds you interacted with wouldnât get properly marked as no longer needed.
interaction_sv.lua
:
- Fixed a bug where illegal weapons for peds would generate out of the list for legal weapons thus rendering illegal weapons never used
- Added
flagismissionped
which if set prevents dead bodies from despawning without calling a coroner. Used for mission peds.
markers_cl.lua
:
- Deleted large chunks of commented code that was left on accident
- Changed the creation of the vehicle blip such that it is not named âGetaway Vehicleâ anymore
towtruck_cl.lua
, towtruck_sv.lua
, coroner_cl.lua
and coroner_sv.lua
:
- Changed distances and speeds of the coroner during approach and on-scene. Should behave way calmer now
- Hopefully fixed a bug where the coroner would sometimes only pick up the first dead body. Heâd go to every body, pick them up, the bodies would disappear and reappear almost instantly.
- Fixed towtruck and coroner spawning with incorrect orientation (should work 95% of the time now, last 5% are not a bug but a result of how the script works)
startup_cl.lua
:
Deactivated dispatch services for cruising PD and pulled over PD
v0.1.3 The Console Peasant Update
- Added controller support for radialmenu and warmenu
- Integrated Warmenu and Radialmenu into PD5M
- Finished ESX- and vRP-permissions. Every menu should be permission-guarded now
- fixed a bug in radialmenu that could mess up the controls of other menus
- Completely rewrote armories and garages
- Added large config sections so you can customize most aspects of armories and garages
- Changed the crosshair-function not to use the SniperScope but a sprite
- Changed the help-function to also display controller-buttons
- Fixed a bug that made it impossible to pull over cars with trailers
v0.1.3.1
- Fixed a bug related to multicharacter scripts in ESX / vRP that caused a crash of radialmenu
v0.1.3.2
- Rewrote coroner and tow stuck check. They will hopefully do their duty way more reliable.
v0.1.3.3
- Fixed a bug that had LaMesa-coroners spawn under a bridge on Los Santos Freeway
- Fixed a bug that caused radialmenu to be stuck open when opening chat
- Changes to tow and coroner-scripts to hopefully improve their behavior
- Sorted
__resource.lua
-config options - Added three tow truck-stations
v0.1.2 Yet another Config Update
- Config files were expanded yet again. Features great customability for stations and is now a lot cleaner than before.
- vRP-integration thanks to ChieF TroN. To activate it uncomment the files in
__resource.lua
. - Bugfix: Improved performance by not performing a large amount of distance-checks in while-loops with Wait(0).
- Bugfix: Coroners and Towtrucks should now more reliably drive away from stations. Please report issues about it stating the exact location that caused the bug.
v0.1.1.1
- ESX-integration thanks to MobTV.
- Bugfix: Stealing cars is possible again.
- Bugfix: Pullover is more reliable on intersections with traffic lights.
v0.1.1 The config update
- Config files were greatly expanded and now feature many variables to tweak the ped-generation of the resource.
- Probabilities for peds possessing weapons, using drugs, drinking, and fleeing / fighting have been increased.
- Fixed a bug where imprisoned peds were still stuck to a player for everyone else.
v0.102:
- Fix: Pack-function should work on most police vehicles now.
- Fix: Error messages for the garages are now written in english.
- Fix: Fixed variable names so the resisting-function is functioning properly for peds in vehicles.
- Fix: Fixed an error that allowed players in cars to be interacted with.
- Fix: Disabled controller input for radialmenu.
- Fix: Grab-function now properly works on peds that have been arrested by other players.
v0.101: Fixed radialmenu not working as intended. This was related to me not uploading every changed file. Whoopsie.