HexscriptsClassicRent
Configurations
Here you will get all configurations & open source files that are included within this script.
Open Source Files
Config = {}
Config.Debug = false
Config.Locale = 'de'
Config.Plate = 'HEX_OT' --Cars will Spawn with this Plate
Config.Rents = {
['Los Santos Car Rent'] = {
npc = 'cs_movpremmale', --https://docs.fivem.net/docs/game-references/ped-models/
coord = vector4(-53.0431, -1104.1152, 25.4368, 161.7739), --Open Point
vehSpawn = vector4(-53.4889, -1116.7531, 26.4345, 2.7578), --Vehicle Spawn Point
vehicles = {
{
name = 'adder', --Spawn Name
label = 'Adder', --Display Name
price = 10 --Price Per Minute
},
{
name = 'asea', --Spawn Name
label = 'Asea', --Display Name
price = 1 --Price Per Minute
},
},
blip = {
id = 56, --https://wiki.rage.mp/index.php?title=Blips#Blip_model
color = 1, --https://wiki.rage.mp/index.php?title=Blips#Blip_colors
scale = 1.0,
shortrange = true,
name = 'HEX Rent',
enabled = true,
}
}
}
Config.Locales = {
['de'] = {
['pressE'] = 'Drücke [~r~E~s~] um auf die Vermietung zuzugreifen',
['notEnoughBank'] = 'Du hast nicht genug Geld auf der Bank!',
['notEnoughCash'] = 'Du hast nicht genug Geld auf der Hand!',
['alreadyRenting'] = 'Du hast bereits ein Mietfahrzeug!',
['rentStarted'] = 'Miete gestartet!',
['rentEnded'] = 'Miete beendet!',
['title'] = 'Vermietung'
},
['en'] = {
['pressE'] = 'Press [~r~E~s~] to open the Vehicle Rent',
['notEnoughBank'] = 'You bank is lacking the Amounf of Money!',
['notEnoughCash'] = 'You need more Money to afford that!',
['alreadyRenting'] = 'You already got a Rented Vehicle!',
['rentStarted'] = 'Rent started!',
['rentEnded'] = 'Rent ended!',
['title'] = 'Rent'
}
}
function ShowNotify(msg)
AddTextEntry('hexNotification', msg)
BeginTextCommandDisplayHelp('hexNotification')
EndTextCommandDisplayHelp(0, false, true, -1)
end
function Notify(title, message, type)
TriggerEvent('hex_hud:notify', title, message, type)
end