Advertisement
Guest User

Untitled

a guest
Sep 29th, 2022
2,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.framework = "esx" --options: "esx", "qbcore" or "standalone"
  4. Config.cooldownTimer = 15 -- How long it tkaes before the same player can trigger another event (in seconds)
  5. Config.blipTimeout = 20 -- How long it takes for the blip to dissapear (in seconds)
  6. Config.interruptTime = 8 -- How long the player has to interrupt the npc from calling the police (in seconds)
  7.  
  8. Config.breakInEventEnabled = true -- Extra event that checks if a player is breaking into a vehicle by smashing the window
  9. Config.gunshotEvent = true -- Extra event that checks if player is shooting and NPC are in the area to hear it
  10.  
  11. Config.allPedsWillCallPolice = false -- includes gangmembers
  12. Config.policeRoles = {
  13. "police",
  14. }
  15.  
  16. Config.allowedPeds = {
  17. 4, 5, 6 --https://docs.fivem.net/natives/?_0xFF059E1E4C01E63C
  18. }
  19.  
  20.  
  21.  
  22. --example
  23. Config.events = {
  24. ["EVENT_NAME"] = {
  25. blipName = "Reported Shooting",
  26. blipSprite = 110, -- https://docs.fivem.net/docs/game-references/blips/
  27. blipColor = 1, -- https://docs.fivem.net/docs/game-references/blips/
  28. blipScale = 1.1,
  29. blipShortRange = true, -- Always visible on the radar or not
  30. callChance = 20, -- in percentage per npc that is in the area and has line of sight
  31. viewDistance = 50, -- from what distance the peds are able to see the event take place (if onlySoundBased set to true, min 100)
  32. pedNeedsDirectLineOfSight = true, -- If set to true, the NPC doesn't need to be looking in the specific direction of the event (but does require line of sight) to call the police. Otherwise, they do need to be looking that way
  33. -- for example, breaking of a window
  34. onlySoundBased = false, -- if set to true, players don't need to see the event happening to call in (gunshots in the distance) recommended to set to false
  35. extraField1 = "something", -- You can add as many fields as you want to the event, and they will be accessable from the server side
  36. extraField2 = "another thing",
  37. extraField3 = "one last thing"
  38. }
  39. }
  40.  
  41.  
  42.  
  43. if Config.breakInEventEnabled then
  44. Config.events["pd_npc_crime_report:brokenWindow"] = {
  45. blipName = "Parked Car Being Broken Into",
  46. blipSprite = 326,
  47. blipColor = 1,
  48. blipScale = 1.1,
  49. blipShortRange = true,
  50. callChance = 30,
  51. viewDistance = 30,
  52. pedNeedsDirectLineOfSight = true,
  53. onlySoundBased = false,
  54. }
  55. end
  56.  
  57. if Config.gunshotEvent then
  58. Config.events["pd_npc_crime_report:playerShooting"] = {
  59. blipName = "Gunshots heard",
  60. blipSprite = 161,
  61. blipColor = 1,
  62. blipScale = 1.1,
  63. blipShortRange = false,
  64. callChance = 10,
  65. viewDistance = 300,
  66. pedNeedsDirectLineOfSight = false,
  67. onlySoundBased = true,
  68. }
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement