Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script QBCore Gang System

shifu

Gold Elite
Joined
May 4, 2025
Messages
51
Reaction score
37
Points
176
Location
Spain
HELLO, I DECIDED TO SHARE THE GANG SYSTEM I USED IN MY OWN PACK, BECAUSE IT IS NOT IN THE FORUM.
NOT THE MANUFACTURER, ONLY BALLAS-AZTEKAS-VAGOS
I ADDED ADDITIONAL LOST MC TO THE ARTICLES WITH STORAGE AND TOOLS EMAIL FOR GANGLER.
VEHICLE COLORS ARE SPECIAL TO EACH GANG. YOU CAN SET COORDINATES AND TOOLS TO BE REMOVED IN CONFIG.LUA.
TO ADD A NEW GANG, YOU MUST MODIFY CLIENT.LUA AND ADD X,Y,Z THROUGH THE CONFIGURATION.
YOU CAN CHANGE THE COLOR OF THE VEHICLES GIVEN ON THE CUSTOMER. I NEVER TRIED THE COLOR OF THE CAR FOR LOST MC. MUST TEST.
Code:​


Code:
function TakeOutVehicleLost(vehicleInfo)
    local coords = Config.Locations["ogcarspawnLost"].coords
    QBCore.Functions.SpawnVehicle(vehicleInfo, function(veh)
        SetVehicleNumberPlateText(veh, "OG"..tostring(math.random(1000, 9999)))
        local color = GetIsVehiclePrimaryColourCustom(veh)
        SetVehicleCustomPrimaryColour(veh, 1,1,1)
        SetVehicleCustomSecondaryColour(veh, 0,0,0)
        SetEntityHeading(veh, coords.h)
        exports['LegacyFuel']:SetFuel(veh, 100.0)
        closeMenuFull()
        TaskWarpPedIntoVehicle(GetPlayerPed(-1), veh, -1)
        TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(veh))
        SetVehicleEngineOn(veh, true, true)
        CurrentPlate = GetVehicleNumberPlateText(veh)
    end, coords, true)
end


CLIENT.LUA - YOU CAN CHANGE THE VEHICLE COLOR BY CHANGEING THE NUMBERS FROM LINE 514 [ (veh, 1,1,1) ]. (FROM THE SECTION I GIVEN ABOVE)

ADDITIONAL THINGS YOU NEED TO DO:

- Occupations must be added to qb-core/shared.lua to open warehouses and garages.
- Occupations to be added:
  • lostmcgng
  • vagos
  • thefamily
  • ballas
  • marabunta

LIKE I SAID, THE SCRIPT IS NOT ME, IT IS AVAILABLE IN THE SCRIPT PRODUCER'S README. GOOD FORUMS
agsdfrgf
 

PRINCEOP_YT

Member
Joined
Mar 17, 2023
Messages
2
Reaction score
0
Points
156
Location
kerala
HELLO, I DECIDED TO SHARE THE GANG SYSTEM I USED IN MY OWN PACK, BECAUSE IT IS NOT IN THE FORUM.
NOT THE MANUFACTURER, ONLY BALLAS-AZTEKAS-VAGOS
I ADDED ADDITIONAL LOST MC TO THE ARTICLES WITH STORAGE AND TOOLS EMAIL FOR GANGLER.
VEHICLE COLORS ARE SPECIAL TO EACH GANG. YOU CAN SET COORDINATES AND TOOLS TO BE REMOVED IN CONFIG.LUA.
TO ADD A NEW GANG, YOU MUST MODIFY CLIENT.LUA AND ADD X,Y,Z THROUGH THE CONFIGURATION.
YOU CAN CHANGE THE COLOR OF THE VEHICLES GIVEN ON THE CUSTOMER. I NEVER TRIED THE COLOR OF THE CAR FOR LOST MC. MUST TEST.
Code:​


Code:
function TakeOutVehicleLost(vehicleInfo)
    local coords = Config.Locations["ogcarspawnLost"].coords
    QBCore.Functions.SpawnVehicle(vehicleInfo, function(veh)
        SetVehicleNumberPlateText(veh, "OG"..tostring(math.random(1000, 9999)))
        local color = GetIsVehiclePrimaryColourCustom(veh)
        SetVehicleCustomPrimaryColour(veh, 1,1,1)
        SetVehicleCustomSecondaryColour(veh, 0,0,0)
        SetEntityHeading(veh, coords.h)
        exports['LegacyFuel']:SetFuel(veh, 100.0)
        closeMenuFull()
        TaskWarpPedIntoVehicle(GetPlayerPed(-1), veh, -1)
        TriggerEvent("vehiclekeys:client:SetOwner", GetVehicleNumberPlateText(veh))
        SetVehicleEngineOn(veh, true, true)
        CurrentPlate = GetVehicleNumberPlateText(veh)
    end, coords, true)
end


CLIENT.LUA - YOU CAN CHANGE THE VEHICLE COLOR BY CHANGEING THE NUMBERS FROM LINE 514 [ (veh, 1,1,1) ]. (FROM THE SECTION I GIVEN ABOVE)

ADDITIONAL THINGS YOU NEED TO DO:

- Occupations must be added to qb-core/shared.lua to open warehouses and garages.
- Occupations to be added:
  • lostmcgng
  • vagos
  • thefamily
  • ballas
  • marabunta

LIKE I SAID, THE SCRIPT IS NOT ME, IT IS AVAILABLE IN THE SCRIPT PRODUCER'S README. GOOD FORUMS
2222222222
 

Baptistavega

Member
Joined
Oct 29, 2025
Messages
3
Reaction score
0
Points
96
Location
Chile
HOLA, HE DECIDIDO COMPARTIR EL SISTEMA DE BANDAS QUE USÉ EN MI PROPIO PAQUETE, YA QUE NO ESTÁ EN EL FORO.
NO ES EL FABRICANTE, SOLO BALLAS-AZTEKAS-VAGOS
AGREGÉ INFORMACIÓN ADICIONAL SOBRE LOST MC A LOS ARTÍCULOS CON ALMACENAMIENTO Y HERRAMIENTAS, CORREO ELECTRÓNICO PARA GANGLER.
Los colores de los vehículos son específicos de cada banda. Puedes configurar las coordenadas y las herramientas que se eliminarán en el archivo CONFIG.LUA.
PARA AGREGAR UNA NUEVA BANDA, DEBE MODIFICAR CLIENT.LUA Y AGREGAR X, Y, Z A TRAVÉS DE LA CONFIGURACIÓN.
Puedes cambiar el color de los vehículos que se le entregan al cliente. Nunca he probado el color del coche para Lost MC. Hay que probarlo.
Código:​


[CÓDIGO]función TakeOutVehicleLost(vehicleInfo)
coordenadas locales = Config.Locations["ogcarspawnLost"].coords
QBCore.Functions.SpawnVehicle(vehicleInfo, function(veh)
SetVehicleNumberPlateText(veh, "OG"..tostring(math.random(1000, 9999)))
color local = ObtenerEsColorPrimarioVehículoPersonalizado(vehículo)
EstablecerColorPrimarioPersonalizadoVehículo(vehículo, 1,1,1)
EstablecerColorSecundarioPersonalizadoVehículo(vehículo, 0,0,0)
EstablecerEntidadEncabezado(veh, coords.h)
exportaciones['LegacyFuel']:SetFuel(veh, 100.0)
cerrarMenúCompleto()
TaskWarpPedIntoVehicle(GetPlayerPed(-1), veh, -1)
DispararEvento("vehiclekeys:client:SetOwner", ObtenerTextoPlacaVehículo(vehículo))
EncenderMotorVehículo(vehículo, verdadero, verdadero)
MatrículaActual = ObtenerTextoMatrículaVehículo(veh)
fin, coordenadas, verdadero)
fin[/CODE]


CLIENT.LUA - PUEDE CAMBIAR EL COLOR DEL VEHÍCULO MODIFICANDO LOS NÚMEROS DE LA LÍNEA 514 [ (veh, 1,1,1) ]. (DE LA SECCIÓN I ANTERIOR)

COSAS ADICIONALES QUE DEBES HACER:

- Es necesario agregar ocupaciones a qb-core/shared.lua para abrir almacenes y garajes.
- Ocupaciones que se añadirán:
  • lostmcgng
  • vagos
  • la familia
  • balas
  • marabuntá

Como ya dije, el script no es mío, está disponible en el archivo README del creador del script. Buenos foros.
 
Top