AI Cops Pro v2

50.00 USD

ALL SCRIPTS ESCROWED USING FIVEM ESCROW SYSTEM

Works with R-Core Prison out the Box

Package Description

An advanced system that allows servers to have AI cops in game. Great for servers with low or no police count. Script comes with triggers that must be added to other scripts to work. Example:Drug Scripts where the in game police is notified you would want to add the trigger for the arresting AI cop or whatever other trigger events you choose for a chance to activate.

StreetCode A.I Cops Pro Promo/Instructional Video (youtube.com)


New Features:

Players can now use the patty wagon feature if they have the police job.  This will allow police to place players in patty wagon to be taken to jail the same way the AI cop does.

Handcuff items have been added to allow officers to cuff players thru the AI cop system. This means if a player runs off on a cop after being cuffed they will be cuffed permanently the same as with the AI cop cuffs.

Arresting Cop

A AI cop that will chase players and if player is caught the player will be handcuffed and offered 4 options. Depending on option selection and chance player may be let go or taken to prison in the patty wagon.

Great to add to:

  • Drug Sales
  • NPC Robberies
  • Heist
  • And a wide range  of other scripts you may have that need a police to be active.(Be Creative)

Swat Team

A swat team of 4 to 5 swat agents. Perfect for heist!!! Swat will pull up to kill no questions asked or you can use the more non lethal trigger for swat if you choose. 

Great to add to:

  • Heist
  • Bank Robberies 
  • Any script where there is a situation where you feel player should risk being killed

Car and Boat Chase

Adds the ability to add car and boat chases.. Both chases are full out assault to player. kill or be killed.

Great to add to:

  • Heist that uses cars or boats during the process
  • Car Thefts
  • etc....


Assests Included In Package For Keymaster 

SteetCode Ai Cops Pro

Dialoguge

SteetCode KickStarter

StreetCode-NotySystem

Resource Integration

AI cops can work with any script that gives you the ability to add triggers to it. As long as you can add the trigger to the part where police is notified or what ever part you would like the triggers to trigger scripts will work with any script. Some Knowledge of scripts needed but not difficult at all.


Discord Support

All scripts come with support via discord. I prefer voice chat to help people out faster and more efficient


Config

--Edit Notificantion system

function ShowNotifyESX(msg)

    ---ESX.ShowNotification(msg)

--------------------------------

---GKS Phone    

    TriggerEvent('gksphone:notifi', {title = 'Trap', message = msg , img= '/html/static/img/icons/vale.png' })

--------------------------------

---Quasar    

    --TriggerEvent('qs-smartphone:client:notify', {

   -- title = 'Trap',

   -- text = msg,

   -- icon = "./img/apps/whatsapp.png",

   -- timeout = 1500

---})

-------------------------------

---lb phone--    

    --exports["lb-phone"]:SendNotification({

  --  app = "Twitter", -- the app to send the notification to (optional)

   -- title = "Trap", -- the title of the notification

   -- content = msg, -- the description of the notification

--})

--------------------------------

    ---Add your own phone message function or uncomment esx.shownoti and commeent phone functon instead

end

--------------------------------------------

---Add your jail script trigger here

--Script is preconfig for HD-Jail but can easily be adapted to any jail script

function JailCall()

local crimplayer = (GetPlayerServerId(PlayerId()))

TriggerServerEvent('HD_Jail:sendToJail', crimplayer, 5 *60, "DRUGS by local officer")----HD Jail


  print 'jail'

--TriggerServerEvent('HD_Jail:sendToJail', crimplayer, "Prison",5 *60, "DRUGS by local officer", "Admin")----New HD Jail

---TriggerEvent('esx_jail:sendToJail', crimplayer, DELTETHISANDPUTHOWMANYMINUTES * 60)----ESX Jail

---TriggerServerEvent("esx-qalle-jail:jailPlayer", crimplayer, 10, AICOPS) ---Change jailtime to how many minutes rest should be good----Qalle Jail

    

    

    

----Dont edit anything below---    

TriggerEvent('SC:radioscanner:killall')

    DeleteEntity(SpawnedPed)

    DeleteEntity(fizz_veh)

    DeleteEntity(fizzped)

    DeleteEntity(fizzped2)

    DeleteEntity(fizzped3)

    

end


--------------------------------------------


Config                            = {}


Config.NewESX = true


Config.ArrestCopPed = 's_m_y_cop_01'

Config.ArrestVehicle = "riot"

Config.TransportCrewWeapons = "WEAPON_SPECIALCARBINE"

Config.CarChaseCareType = "police2"

Config.BoatChaseCareType = "predator"

Config.CarBoatChasePeds = 2374966032

Config.CarBoatChaseSmallWeapon = "WEAPON_PISTOL"

Config.CarBoatChaseBigWeapon = "WEAPON_SPECIALCARBINE"

Config.SwatTeamLightWeapons = "WEAPON_PISTOL"

Config.SwatTeamWeapons = "WEAPON_SPECIALCARBINE"


Config.PrisonDropOff = {coords = vector3(1849.44,2608.59,45.59), heading = 0} 

---Cop Settings             ---ALL NUMBERS BELOW ARE PERCENTAGE OF CHANCE OF COP SHOWING UP(0-100 percent)

Config.AlertCops = 20   ---20%(number equals percent of chance triggered)

Config.StreetAlert =30  ---chance of the streets getting call across cb

Config.ArrestCop = 20  ---chance for arrest cop to show up(still add in percent your drug script alert police calls and do the math lol

Config.PlayerNotifiedOfCop = 30 ---chance player will receive heads up that arrest cop is on the way must have their phone on them if using our phone in shownotify in config.

Config.AlertMessage = "Some one snitched on you my G get up outta there ASAP!"

----Swat Triggers from README

Config.SwatTeamPistol = 10  ---swatmed trigger in read me

Config.SwatTeamRifle = 10  ---SwatTeam trigger in read me

Config.SwatTeamTazer = 10  ---RaidUnit trigger in read me


Config.DirtyCop = 5


----handcuff

Config.EnableHandcuffTimer        = false ---leave false

Config.HandcuffTimer              = 10 * 60000 


----communityservice


Config.Locale                       = 'en' 



Config.ServiceExtensionOnEscape        = 8



Config.ServiceLocation                 = {x =  170.43, y = -990.7, z = 30.09}


Config.ReleaseLocation                = {x = 427.33, y = -979.51, z = 30.2}



Config.ServiceLocations = {

    { type = "cleaning", coords = vector3(170.0, -1006.0, 29.34) },

    { type = "cleaning", coords = vector3(177.0, -1007.94, 29.33) },

    { type = "cleaning", coords = vector3(181.58, -1009.46, 29.34) },

    { type = "cleaning", coords = vector3(189.33, -1009.48, 29.34) },

    { type = "cleaning", coords = vector3(195.31, -1016.0, 29.34) },

    { type = "cleaning", coords = vector3(169.97, -1001.29, 29.34) },

    { type = "cleaning", coords = vector3(164.74, -1008.0, 29.43) },

    { type = "cleaning", coords = vector3(163.28, -1000.55, 29.35) },

    { type = "gardening", coords = vector3(181.38, -1000.05, 29.29) },

    { type = "gardening", coords = vector3(188.43, -1000.38, 29.29) },

    { type = "gardening", coords = vector3(194.81, -1002.0, 29.29) },

    { type = "gardening", coords = vector3(198.97, -1006.85, 29.29) },

    { type = "gardening", coords = vector3(201.47, -1004.37, 29.29) }

}




Config.Uniforms = {

    prison_wear = {

        male = {

            ['tshirt_1'] = 208,  ['tshirt_2'] = 0,

            ['torso_1']  = 31, ['torso_2']  = 0,

            ['decals_1'] = 0,   ['decals_2'] = 0,

            ['arms']     = 0, ['pants_1']  = 3,

            ['pants_2']  = 0,   ['shoes_1']  = 34,

            ['shoes_2']  = 0  ----['chain_1']  = 0

            --['chain_2']  = 0

        },

        female = {

            ['tshirt_1'] = 3,   ['tshirt_2'] = 0,

            ['torso_1']  = 38,  ['torso_2']  = 3,

            ['decals_1'] = 0,   ['decals_2'] = 0,

            ['arms']     = 120,  ['pants_1'] = 3,

            ['pants_2']  = 15,  ['shoes_1']  = 66,

            ['shoes_2']  = 5,   ['chain_1']  = 0,

            ['chain_2']  = 0

        }

    }

}


--------------Search Items

Config.RobMoney = true -- Remove money // Remover dinheiro

Config.Money = false -- Remove money // Remover dinheiro

Config.BlackMoney = true -- Remove Black Money // Remover dinheiro sujo


Config.Items = {

    ['sccokesmall'] = {

        give_burn = false---'burned_phone'

    },

    ['sccrack'] = {

        give_burn = false---'burned_gps'

    },

    ['schersmall'] = {

        give_burn = false---'burned_radio'

    },

    ['scfentsmall'] = {

        give_burn = false---'burned_vape'

    },

    ['scdahlia'] = {

        give_burn = false

    },

    ['scecstasy'] = {

        give_burn = false

    },

    ['scleancup'] = {

        give_burn = false

    },

    ['scperc30'] = {

        give_burn = false

    },

    ['scflakka'] = {

        give_burn = false

    }

}


-------Medic--------------------

Config.Surgeon = 2 -- Needs to be less then this amount online for it to work

Config.Price = 2000

Config.LoclMoneySign = '$'




-----text-------


Config.Text1 = 'Get the fuck out!!!...Its your lucky but unlucky day LOL!!!'

Config.Text2 = 'The medic is trying to revive you'

Config.Text3 = "Fuck 12!!!."

Config.Text4 = "Shit not me...You can search me!!!"

Config.Text5 = "Run!!!!"

Config.Text6 = "Stay Quiet..."