Configure HRLib, oxmysql and the framework for your needs
HRGarages is pre-configured script but you'll need to have a look through its config files, found in HRGarages/config/ folder
Add this to your server.cfg
Restart your server and enjoy the script
Config
HRGarages config is separated in couple files for better definition of the script's features configs.
You can find these files in HRGarages/config/ folder.
Very important to know is when you have custom cars, you have to add your own images for the cars in the rent-a-car feature if any of them is with custom model. You can do this by putting .webp images in HRGarages/config/customImages/ folder.
local config <const> = {}
config.commands = {
enable = true,
commandsSettings = {
giveVehicle = {
enable = true,
isRestricted = true,
name = 'giveVehicle',
description = 'Give vehicle to player',
suggestions = {
{
name = 'playerId',
help = 'Target player server Id'
},
{
name = 'vehicleModel',
help = 'The vehicle model (spawn code)'
},
{
name = 'vehiclePlate',
help = 'The vehicle\'s plate, must be 8 characters long, not more or less (not necessary, default - random plate)'
},
{
name = 'garageIndex',
help = 'The garage where to put the vehicle in (not necessary, default - random garage)'
}
}
},
removeVehicle = { -- Remove vehicle from garage
enable = true,
isRestricted = true,
name = 'removeVehicle',
description = 'Remove vehicle from someone\'s garage',
suggestions = {
{
name = 'vehiclePlate',
help = 'The target vehicle\'s plate'
}
}
}
}
}