h0rus007 / ps-microphone

Script to enable microphone uses when enter a zone

Home Page:https://www.discord.gg/projectsloth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

ps-microphone

Script to enhance as a microphone/loudspeaker when an user enters a define zoned.

Installation

For Microphone

  • Download file and make sure it's named ps-microphone

  • Ensure ps-microphone

  • Add image to your inventory folder for the megaphone.

  • Add to qb-core > shared > items.lua

	["megaphone"]						= {["name"] = "megaphone",			["label"] = "Megaphone",		["weight"] = 20000,	["type"] = "item",	["image"] = "megaphone.png",	["unique"] = true,	["useable"] = true,	["shouldClose"] = false,	["combinable"] = nil,	   ["description"] = "A loudspeaker to yell at civilians."},

For Zones

  • Add more zones under the Config.MicrophoneZones
Config.MicrophoneZones = {
    [1] = {
        name = "vinewood_bowl", -- unique name of the zone
        coords = vector3(683.37, 569.31, 130.46), -- coords of the created boxzone
        length = 3.4, -- length of the created boxzone
        width = 3.6, -- width of the created boxzone
        spawnProp = true, -- if set to true, it will let you spawn the prop at location
        data = {
            debugPoly = Config.Showzone, 
            heading = 340, -- heading from created boxzone
            minZ = 127.86, --minZ from the created boxzone
            maxZ = 131.86, -- maxZ from the created boxzone
            data = {
                range = 50.0 -- range for the voice at that particular boxzone
            }
        }
    }
}

Dependecies

Credits

About

Script to enable microphone uses when enter a zone

https://www.discord.gg/projectsloth


Languages

Language:Lua 100.0%