|
Config, Locales = {}, {}
Config.Debug = false
Config.Locale = 'zh' -- en / pt / gr / fr / de / es
Config.EventPrefix = "okokGarage"
Config.ESXPrefix = "esx"
Config.onPlayerDeath = "onPlayerDeath"
Config.playerLoaded = "playerLoaded"
Config.getSharedObject = "getSharedObject"
Config.getDeathStatus = "esx_ambulancejob:getDeathStatus" -- Should be a callback that returns a variable that is true if dead, false if alive
Config.FuelResource = "native" -- "nothing" - no fuel resource, "native" - will use the FiveM natives, "okokGasStation", "legacyfuel", "ox_fuel"
Config.CameraEnabled = true -- Camera animation when taking out a vehicle
Config.ImageType = "default" -- "default" - each vehicle uses a unique image (e.g. Zentorno - zentorno.png), "type" - each vehicle type uses an image (e.g. Zentorno - car.png), "single" - all vehicles use the same image (e.g. Zentorno - vehicle.png)
Config.vImageCreator = false -- If true, it'll use vImageCreator
Config.GetVehicleAnywhere = true -- You can get your vehicle from all garages even if you didn't store it there
Config.GetVehicleModelName = true -- If true, it'll get the vehicle model name instead of the vehicle name
Config.CameraAnimationTime = 2 -- Camera animation time in seconds
Config.CameraLockTime = 200 -- Camera lock time
Config.CameraOffsetHeight = 10 -- The height of the vehicle camera after taking it out
Config.ShakeAmplitude = 0.0 -- Camera shake when viewing a vehicle (0.2 to be like in okokVehicleShop)
Config.InteractionKey = 38 -- [E] Key to open the interaction, check here the keys ID: https://docs.fivem.net/docs/game-references/controls/#controls
Config.UseOkokVehicleKeys = true
Config.KeySystem = "okokVehicleKeys" -- if Config.UseOkokVehicleKeys = false, you can change this to another key system ( okokVehicleKeys, qs-vehiclekeys, wasabi-keys, qb-vehiclekeys, jaksam-keys, custom )
Config.LockVehicle = "U" -- This is used to allow custom keybinds that players can change in their settings
Config.LockVehicleCommand = "lockvehicle"
Config.LockVehicleDescription = "Used to lock/unlock vehicle"
Config.LockVehicleAudioVolume = 0.3 -- (0.0 - 1.0)
Config.VehicleRadius = 20.0 -- This is the radius used to check if the player is close enough to lock/unlock vehicle
Config.MarkerRadius = 25 -- The view distance for the markers
Config.SaveWithKey = true -- If true, players with the vehicle key can store the vehicle. The vehicle will then be stored in the owner's garage.
Config.GiveKeysCommand = "givekeys"
Config.GiveKeysRadius = 7.5
Config.UseOkokTextUI = true
Config.UseOkOkNotify = true
Config.UseOkOkRequests = true
Config.UseOkOkBanking = true -- For transactions logs
Config.HideMinimap = true
Config.ShowBlips = true
Config.SetIntoVehicle = true -- If true, it'll teleport the player into the vehicle
Config.ShowGaragesBlipCommand = "garageblips"
Config.ShowGaragesBlip = true
Config.StoreOwnedVehiclesOnly = true -- If true, players will only be able to store vehicles they own, if false, they will be able to store any vehicle
Config.StoreVehicleFade = true -- If true, the vehicle will fade out
Config.ShowVehicleImpoundedWhenExists = true -- If true, the vehicle will be available to take out of the impound even when he's spawned in the map
Config.VehicleImpoundedOnDV = true -- If true, the vehicle will be set as impounded when he gets deleted
Config.SetVehicleImpoundAfter = 300 -- How many seconds after taking out the vehicle does it take to set as impounded
Config.CheckInterval = 60 -- How often it'll check for non existing vehicles
Config.ChangeVehicleStateOnStart = true -- If true, vehicle will be set to stored or impounded (Config.SetVehiclesImpoundedOnStart)
Config.SetVehiclesImpoundedOnStart = true -- If true, outside vehicles will be set as impounded on start, if false, they'll be set as stored
Config.UseOkokVehicleSales = false -- If true, If a vehicle is in display he won't show in the impound
Config.okokVehicleSalesName = "okokVehicleSales" -- Name of the vehicle sales script
Config.KeyMetaData = { -- Items will be used instead of the "U" key to lock/unlock vehicles. (Only ox-inventory supported at the moment - if you use another inventory with metadata and would like support to it to be added, please let us know through the tickets)
inventoryResourceName = "ox_inventory",
keyItemName = "keys",
oxInventory = false,
quasarInventory = false,
coreInventory = false,
}
Config.HousingSystems = {
quasarHousing = false,
esxProperty = false,
}
Config.ImpoundCommand = "impound"
Config.ImpoundJobs = {"police", "mechanic"} -- Jobs that can impound vehicles
Config.ImpoundDistance = 5.0 -- Max distance you can impound from
Config.ImpoundTimes = {"2", "4", "6", "8", "10", "12", "14", "16", "18", "20", "22", "24"} -- Hours
Config.GlobalImpound = true -- If true, a vehicle can be taken from any impound
Config.PayToImpound = true -- Enable this if a player should be able to skip the impound time by paying.
Config.PayToImpoundFee = 300 -- This is per hour that the player gets their vehicle early
Config.RetrieveFeeEnabled = false -- If enabled, players will have to pay a one time fee when retrieving their vehicle after the timer has finished.
Config.RetrieveFee = 500 -- One time payment once vehicle is retrieved.
Config.AdminGroups = { -- Groups allowed to remove all the vehicles from the impound/give vehicle/remove vehicle/give key
"admin",
"superadmin"
}
Config.RemoveAllImpoundedVehiclesCommand = "removeallimpoundedvehicles"
Config.GiveVehicle = "givevehicle"
Config.RemoveVehicle = "removevehicle"
Config.GiveKeys = "adminkeys" -- Has to be different to Config.GiveKeysCommand
Config.AdminMenu = "gadmin"
Config.PlateLetters = 3 -- How many letters the plate has (Used when adding a vehicle)
Config.PlateUseSpace = true
Config.PlateNumbers = 3 -- How many numbers the plate has (Used when adding a vehicle)
Config.RandomPlateSociety = false -- If true, will generate a plate for vehicles in infinite garage
Config.CreateGarageCommand = "creategarage"
Config.SellGarageCommand = "sellgarage"
Config.SellGarageRadius = 3.0
Config.SellerComission = 5 -- In percent (%)
Config.RenewalPrice = 500
Config.RenewalIntervals = 7 -- In real life days
Config.MaxPrivateGaragesPerPlayer = 3
-- Used to show the vehicle properties in the view menu
Config.UseKMh = true
Config.MaxSpeedValue = 300
Config.MaxAcceleration = 0.6
Config.MaxBraking = 1.6
Config.MaxHandling = 10
Config.ViewCameraAngle = -60
Config.ViewCameraDistance = 5.5
Config.ViewCameraHeight = 2.0
Config.AllowRepair = true -- If a player can repair the vehicle when viewing the vehicle
Config.RepairPrice = 1000
Config.TakeOutAtView = true -- When taking the vehicle out via the view menu it'll spawn in the same location as the view vehicle
Config.LiveriesAndExtrasCommand = "liveries"
Config.AccessLiveriesExtrasJobs = { -- Add 'all' so everyone can access this menu
'police',
'ambulance',
}
-- COMPANY
Config.MaxEmployees = 7
Config.JobRanks = { -- These are the ranks available on the vehicle shops, you can add or remove as many as you want but leave at least 1. Don't add owner as this is automatically added.
["Newbie"] = {id = 1, coOwner = false}, -- ID: 1
["Experienced"] = {id = 2, coOwner = false}, -- ID: 2
["Expert"] = {id = 3, coOwner = false}, -- ID: 3
["Sub-Owner"] = {id = 4, coOwner = true} -- ID: 4
}
Config.PrivateGarages = {
blip = { blipId = 524, blipColor = 2, blipScale = 0.9, blipText = "Private Garage For Sale" },
ownedBlip = { blipId = 524, blipColor = 3, blipScale = 0.9, blipText = "Owned Private Garage"},
ownedMarker = { id = 36, color = { r = 31, g = 94, b = 255, a = 90 }, size = { x = 0.7, y = 0.7, z = 0.7 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
storeVehicleMarker = {id = 36, color = {r = 255, g = 0, b = 0, a = 90}, size = {x = 1.25, y = 1.25, z = 1.25}, radius = 2.5, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 }, -- Marker informations for the sell vehicle marker
radius = 1
}
Config.HireEmployeeRadius = 15.0
Config.SellBusinessReceivePercentage = 50 -- How much a player will receive for selling his business (in percentage, 50 = 50%)
Config.Companies = {
["Garage Shop"] = {
coords = vec3(112.28, -630.06, 44.23),
ownerCoords = vec3(112.28, -630.06, 44.23),
radius = 1,
price = 5000000,
ownerBlip = {blipId = 475, blipColor = 38, blipScale = 0.9, blipText = "Owner Panel"},
unownedOwnerBlip = {blipId = 476, blipColor = 2, blipScale = 0.9, blipText = "车库公司"},
ownerMarker = {id = 21, color = {r = 31, g = 94, b = 255, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
UnownedMarker = {id = 21, color = {r = 0, g = 255, b = 0, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
},--[[
["Garage Shop 2"] = {
coords = vector3(-949.5,-2946.55,13.95),
ownerCoords = vector3(-949.5,-2946.55,13.95),
radius = 1,
price = 12000,
ownerBlip = {blipId = 475, blipColor = 38, blipScale = 0.9, blipText = "Owner Panel"},
unownedOwnerBlip = {blipId = 476, blipColor = 2, blipScale = 0.9, blipText = "Unowned Company"},
ownerMarker = {id = 21, color = {r = 31, g = 94, b = 255, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
UnownedMarker = {id = 21, color = {r = 0, g = 255, b = 0, a = 90}, size = {x = 0.5, y = 0.5, z = 0.5}, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0, textureDict = 0, textureName = 0 },
}
|
|