--------------------------- ----rainmad scripts-------- --------------------------- local function Atmrob() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "atmrob", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "ATM Robbery in Progress", -- message job = {"police"} -- jobs that will get the alerts }) end exports('Atmrob', Atmrob) local function Hunting() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "Hunting", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Illegal Hunting In Progress", -- message job = {"police"} -- jobs that will get the alerts }) end exports('Hunting', Hunting) local function ArtGalleryRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "artgalleryrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Art Gallery Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('ArtGalleryRobbery', ArtGalleryRobbery) local function HumaneRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "humanelabsrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Humane Labs Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('HumaneRobbery', HumaneRobbery) local function chopcar() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "chopcar", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-50", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Chop Car", -- message job = {"police"} -- jobs that will get the alerts }) end exports('chopcar', chopcar) local function banktruck() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "banktruck", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-10", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Bank Truck Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('banktruck', banktruck) local function TrainRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "trainrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Train Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('TrainRobbery', TrainRobbery) local function VanRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "vanrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Security Van Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('VanRobbery', VanRobbery) local function UndergroundRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "undergroundrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Bunker Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('UndergroundRobbery', UndergroundRobbery) local function DrugBoatRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "drugboatrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Suspicious Boat", -- message job = {"police"} -- jobs that will get the alerts }) end exports('DrugBoatRobbery', DrugBoatRobbery) local function UnionRobbery() local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "unionrobbery", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-90", firstStreet = locationInfo, gender = gender, model = nil, plate = nil, priority = 2, -- priority firstColor = nil, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Union Depository Robbery", -- message job = {"police"} -- jobs that will get the alerts }) end exports('UnionRobbery', UnionRobbery) local function CarBoosting(vehdata) local currentPos = GetEntityCoords(PlayerPedId()) local locationInfo = getStreetandZone(currentPos) local gender = GetPedGender() TriggerServerEvent("dispatch:server:notify",{ dispatchcodename = "carboosting", -- has to match the codes in sv_dispatchcodes.lua so that it generates the right blip dispatchCode = "10-50", firstStreet = locationInfo, gender = gender, model = vehdata.name, plate = vehdata.plate, priority = 2, firstColor = vehdata.colour, automaticGunfire = false, origin = { x = currentPos.x, y = currentPos.y, z = currentPos.z }, dispatchMessage = "Car Boosting In Progress", -- message job = {"police"} -- jobs that will get the alerts }) end exports('CarBoosting', CarBoosting)