Giter Site home page Giter Site logo

pd5m's Introduction

PD5M Discord Release License

Make sure that your resource is written completely lowercase: pd5m!

Banner

PD5M is a resource for FiveM aiming 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.

Features

  • 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, BCSO, 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 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
  • Type /tp to open the teleport menu that can send you to every police- and DPOS-station
  • Type /rank to choose your department ranks. If you are displaying rank insignia on your uniform, this command will choose the appropriate rank insignia next time you are in the wardrobe

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!

Discord

Join our Discord for the latest announcements, patchnotes and more. Support is offered for this resource over there as well.

Base (included in PD5M, you don't need to download the resources)

Installation Instructions

  • Download the latest release of PD5M
  • Move PD5M to resource/ directory (or any category)
  • Rename the resource folder to pd5m
  • Make sure the folder name is all lowercase
  • Edit your server.cfg to include:
ensure pd5m

Recommended Addons

  • vMenu by Vespura, used to create an mp-ped as said functionality hasn't been added to PD5M yet
  • Delete Vehicle Script by WolfKnight. As traffic loves to get crazy this helps you clean any mess

Optional Addons

The addons listed below can be used to enhance your playing experience. They are fully supported by PD5M. If you want to use them, simply install them as per their installation instructions. Afterwards open PD5M/Config/config_cl.lua and set the respective bool at the top of the file to true.

Legal

  • You are free to use the resource for your server in any way you want. Only requirement is a tag for PD5M in the server-name (can be any design, e.g. plain text, in brackets, vertical lines ...).
  • Creating modifications is encouraged however please publish your own content so everyone can enjoy it.
  • At the same time pull-requests are encouraged as well.

Shoutouts

Shoutouts go out to:

  • The teams of LSPDFR and PIS for their inspiration and small code-examples
  • IllidanS4 for his Entity Iterators
  • The above mentioned mod authors
  • 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.
  • Everyone involved in testing the mod prior to this release.
  • DrBlackError for creating and managing our wonderful Discord!

Newest Patch Notes: Update v0.2.4 EUP 9.3

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

pd5m's People

Contributors

drblackerror avatar jamiet0001 avatar xsilvermanx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pd5m's Issues

Introducing more user friendly controls for controller users

Thought I would throw this up here (after our discussion a couple of days ago).

Maybe introducing basic functions on radial menu where controller 'B' is used to pull up the radial menu (whilst in vehicle) and using the right analog stick to navigate through this menu?

Is PD5M overriding ped group relationships?

I have written some code for peds to attack players and it seems like it does not work when I have PD5M installed. I am using the SetPedRelationshipGroupHash() native and it seems to only work when I completely remove PD5M. Is there any way to turn that off without making PD5M break? And if so, would you be able to point to me where you are overriding ped relationships?

Thanks!

SCRIPT ERROR: @pd5m/Database/database_sv.lua:29: attempt to index a nil value (local 'MainFile')

[ c-scripting-core] Creating script environments for pd5m
[ script:pd5m] Creating Database
[ script:pd5m] SCRIPT ERROR: @pd5m/Database/database_sv.lua:29: attempt to index a nil value (local 'MainFile')
[ script:pd5m] > handler (@pd5m/Database/database_sv.lua:29)
[ script:pd5m] > handler (@pd5m/Database/database_sv.lua:23)
[ script:pd5m] > fn (@pd5m/Startup/startup_sv.lua:1)
[ resources] Started resource pd5m
the pd5m is not work and the F3 not work too

Breathalzier

No Emote, no interaction with the ped and no nothing happen

Interaction between players sometimes possible

If one player is inside a vehicle and another player is outside, the latter player can start talking to the player inside the vehicle. This is caused by the target selector ignoring the possibility of a player sitting in the car.

Animations aren't synced

Animations such as handcuffing isn't synced to the server. This is caused by me not using the custom-sync I specifically coded...

Tow truck

When I pulled a vehicle over and arrested the driver, I went back to the vehicle and did "seize" then "tow" through the radial menu.

F8 error thrown @pd5m/Service/tow_cl.lua:100:: bad argument #1 to 'for iterator' (table expected, got nil)

Pack-function doesn't work properly

Related to the distance-check being set too low. Bigger vehicles will fail most of the time. Up the 0.05-distance-check in pd5m:int:packejectped to 0.2 to fix.

x menu not working

Hello guys so apperntly the mouse is stuck in the mitddle of the menu do you maybe not why thath is
thanks for answers in advance

EUP

When i Activate EUP in the FXMANIFESt, the armory cl and wardrobe have the failed to load. both have a bad argument and miss the interactor.. i have looking far far and can't find anything

Pulling over cars with trailers

Doesn't seem to work. Pounders / Mules etc do work. Trucks pulling big trailers needs to be tested, but Trucks pulling small trailers doesn't seem to work. Will have to check this.

Check Plate Not Working Well on Sandking and Vehicles with Trailers

The Check Plate feature doesn't capture the entity for the Sandking truck or other lifted vehicles. It makes it difficult to also pull them over from time to time. I've also noticed that vehicles with trailers have issues as they aren't able to be detected as vehicle entities.

Coroner is not driving to scene every time

Coroner tends to get stuck while departing from the station. This could be caused by the coroner not being placed on the street but at garage exits. Try changing this.

divide config_cl.lua

One part for the variables which could change more often.
One part for the standard coordinate-lists which could be mostly stable.
One part for custom coordinate-lists which wouldn't be patched at all.

Check Coroner-walking functions

Check if the door opening MoveToCoord has a too low stop range. Up this if necessary (compare to the pack-function). Also try having the coroner-ped actually open the back doors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.