Skip to content

OG-Gangs for QB-Core with Gang Support instead of Jobs.

License

Notifications You must be signed in to change notification settings

wanderrer/qb-gangs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

qb-gangs

OG-Gangs for QB-Core with Gang Support instead of Jobs.

Features:

All Gangs Are Combined in One Script & The Script Is Completely Optimised Can Be Easily Converted For Any Framework Instructions:

Installation

Add Gangs into qb-core/shared.lua like this:

QBShared.Gangs = {
	["geen"] = {
		label = "No Gang"
	},
	["ballas"] = {
		label = "Ballas"
	},
	["thefamily"] = {
		label = "The Family"
	},
	["vagos"] = {
		label = "Vagos"
	},
	["marabunta"] = {
		label = "marabunta"
	},
}

To enable lockable doors for gangs, you need to modify qb-doorlocks/client/main.lua line 217 like this:

function IsAuthorized(doorID)
	local PlayerData = QBCore.Functions.GetPlayerData()

	for _,job in pairs(doorID.authorizedJobs) do
		if job == PlayerData.job.name then
			return true
		end
	end

	for _,gang in pairs(doorID.authorizedJobs) do
		if gang == PlayerData.job.name then
			return true
		end
	end
	
	return false
end

Required Resources:

About

OG-Gangs for QB-Core with Gang Support instead of Jobs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages