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:
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:
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