Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.framework = "esx" --options: "esx", "qbcore" or "standalone"
- Config.cooldownTimer = 15 -- How long it tkaes before the same player can trigger another event (in seconds)
- Config.blipTimeout = 20 -- How long it takes for the blip to dissapear (in seconds)
- Config.interruptTime = 8 -- How long the player has to interrupt the npc from calling the police (in seconds)
- Config.breakInEventEnabled = true -- Extra event that checks if a player is breaking into a vehicle by smashing the window
- Config.gunshotEvent = true -- Extra event that checks if player is shooting and NPC are in the area to hear it
- Config.allPedsWillCallPolice = false -- includes gangmembers
- Config.policeRoles = {
- "police",
- }
- Config.allowedPeds = {
- 4, 5, 6 --https://docs.fivem.net/natives/?_0xFF059E1E4C01E63C
- }
- --example
- Config.events = {
- ["EVENT_NAME"] = {
- blipName = "Reported Shooting",
- blipSprite = 110, -- https://docs.fivem.net/docs/game-references/blips/
- blipColor = 1, -- https://docs.fivem.net/docs/game-references/blips/
- blipScale = 1.1,
- blipShortRange = true, -- Always visible on the radar or not
- callChance = 20, -- in percentage per npc that is in the area and has line of sight
- viewDistance = 50, -- from what distance the peds are able to see the event take place (if onlySoundBased set to true, min 100)
- 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
- -- for example, breaking of a window
- 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
- extraField1 = "something", -- You can add as many fields as you want to the event, and they will be accessable from the server side
- extraField2 = "another thing",
- extraField3 = "one last thing"
- }
- }
- if Config.breakInEventEnabled then
- Config.events["pd_npc_crime_report:brokenWindow"] = {
- blipName = "Parked Car Being Broken Into",
- blipSprite = 326,
- blipColor = 1,
- blipScale = 1.1,
- blipShortRange = true,
- callChance = 30,
- viewDistance = 30,
- pedNeedsDirectLineOfSight = true,
- onlySoundBased = false,
- }
- end
- if Config.gunshotEvent then
- Config.events["pd_npc_crime_report:playerShooting"] = {
- blipName = "Gunshots heard",
- blipSprite = 161,
- blipColor = 1,
- blipScale = 1.1,
- blipShortRange = false,
- callChance = 10,
- viewDistance = 300,
- pedNeedsDirectLineOfSight = false,
- onlySoundBased = true,
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement