hex-BikeRack
How to edit configuration file to hex-BikeRack.
Config File
Here u can configurate your target script
Config.UseTarget = "ox-target" -- "ox-target" or "qb-target"
Do u want to use command for drop bike?
Config.UseCommand = true
Your command here
Config.Command = "dropbike"
Default max bikes on rack
Config.DefaultMaxBike = 2 -- lower value is 1 max value is 4
And here is table with bikes which one u can setup on rack
Config.Bikes = {'bmx', 'cruiser', 'fixter', 'tribike', 'tribike2', 'tribike3', 'scorcher', 'inductor', 'inductor2'}
Max bikes on rack u can carry
Config.MaxBike = {
-- Example value
[`sultan`] = 3,
}
If u want to edit bike coords on car u can do it with that (from place1 to place4)
Config.StandCoords = {
-- Example postion
[`sultan`] = {
place3 = vector3(-0.4, -0.4, 1.3),
},
[`armytrailer`] = {
place1 = vector3(-0.4, -0.4, -0.58),
},
}
-- vector3(0.0, -0.4, 1.3) default positions for all cars
And of course u can translate script here
Config.Translations = {
["setbike"] = "Set bike",
["takeoff"] = "Take off bike",
}
Here u can configurate icons to target script
Config.Icons = {
["getbike"] = "fa-solid fa-hand",
["setbike"] = "fa-solid fa-check",
}
And also whitelist to other vehicles than car
Config.Whitelist = {`armytrailer`}
And notifications
Config.Notify = function()
lib.notify({
title = 'Bike rack',
description = 'There is no free space on rack',
type = 'error'
})
end
If u want to drop bike by radial menu etc. just use this trigger
TriggerEvent('hex-bikerack:detachbike')