Skip to content

chickenlord01/johnspolicerework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Johns Police rework

Created by notjohnl (Discord)

Planned Features

  • Add cuffing sounds for when player is cuffed.
  • Add cuffing animations.
  • Add minigame to allow player a chance to break out of cuffs/drag.

Features

  • Customizable Loadouts
  • Actions
    • Cuff/Uncuff
    • Drag/Undrag
    • Place in Vehicle
    • Remove from Vehicle
    • Remove Weapons
    • Place/Remove Spikestrips
  • Commands
    • /hu (Puts hands up)
    • /handsup (Puts hands up)
    • /surrender (Kneels on ground to give self up)
    • /kneel (Kneels on ground to give self up)
    • /k (Kneels on ground to give self up)
    • /openpm (Opens Police Menu)
  • Controls
    • F9 (Opens Police Menu)
    • Players can change the open menu function in their keybind settings.

Changing permissions

  • If you would like to allow players to use the menu, it is as easy as adding `add_ace identifier.ADDIDENTIFIERHERE policemenu.open allow #PLAYERNAME`
  • If you would like to allow players to use a loadout, it is as easy as adding `add_ace identifier.ADDIDENTIFIERHERE policemenu.LOADOUTNAME allow #PLAYERNAME`
  • server.cfg example

    add_ace identifier.steam:1100001155f7f59 policemenu.open allow #John
    add_ace identifier.steam:1100001155f7f59 policemenu.sru allow #John
    

    You can also allow groups of players:

    add_ace group.leo policemenu.open allow
    add_ace group.sru policemenu.sru allow
    

Modifying Config

  • If you would like to add more weapons, simply add the name to the weapons>spawn portion. You can find a full list of weapons in the weapons.lua file.
  • If you would like to add more attachments, simply add the name of the weapon.attachment. For example: WEAPON_PISTOL.suppressor. You can find a full list of weapon attachments in the weapons.lua file.
  • Note: I tried my best to make it very straight forward for people that are new to development or have no idea what they are looking at. If you have questions don't be afraid to reach out on discord!

Installation

  1. Download dpemotes here. This is a dependency!
  2. Download ox_lib here. This is a dependency!
  3. Download johnspolicerework here.
  4. Extract the folders and upload it to your FiveM server.
  5. Add the resources to your server.cfg file. (dpemotes before johnspolicerework)

Credits

  • Thanks to BritishBrotherhood for the spikescripts script: Link
  • Thanks to the Overextended team for the library: Link
  • If any bug/issue is found please submit it on the github page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages