Hello everyone,
I would like to introduce to you a new script from our workshop.
If you do not want to have vehicle rental shops solved through multiple scripts, this solution is exactly for you. In one script you have the option to create unlimited vehicle rental shops for any vehicles.
Cars
Boats
Planes
Bikes
Motorcycles
| BEST THINGS
OWN GARAGES
OWN CAR LOCKING
VERY USER FRIENDLY
| ONLY TWO CONDITIONS
The distance between the two must be at least 2x the visibility of one vehicle rental shop
There can be a maximum of exposed vehicles. 10 vehicles in one vehicle rental shop
| - VERY CONFIGURABLE
You can setup ped position, type and voice for every rental
Exposed vehicles type and position
Exposed vehicles color (primary, secondary and perlescent)
Rented vehicle colour by RGB
3D text about cars position
Font (style, position, size, color)
Percents of three type of insurance
Maximum rented days
You can useown notifications
You can setup BLIP, type and color and size for every rental
DebugMode
Discord Webhook - serving as a loan record
Rented vehicle locking (Key and distance) - system built-in this script
Garages for rented vehicles (Especially for relog) - system built-in this script
Prices (rent, insurance, fine for not returned car, fine for % damage of vehicle if you return it)
You can use own vehicleshop for generating license plate (if you don’t use vehicleshop, we have a
plate generator in this script. But I recommend generator from vehicleshop)
| Dependencies
es_extended
esx_menu_default
optional - vehicleshop for generating plate
| Resmon inactive
| Resmon if you stand or talking with ped
| Resmon if you have rented vehicle (due to carlock)
| STEPS FOR USE
Import file importIntoDatabase.sql into your database
Write ensure svejdarpa_vehicle_rental into server.cfg
Set up vehicles and rentals in config.lua
Optional - setup your webhook in /server/webhook.lua and in config.lua change DiscordWebhookAllowed to true
Optional - open and watch file manual_for_next_rental.png for add a new rental
Just bought this, and it’s amazing!!! but one problem im having right now. I just rented the grotti with no insurance then i go to place it in the garage, i hit enter nothing happens, but the server thinks i put it in the garage, next option tells me withdraw from garage while im still in the rented car. then another copy of my grotti appears. basically duplicating my car over and over. Any fix for this? maybe im doing something wrong? Oh also after i locked the car i keep pressing J and it doesn’t unlock, it keeps saying vehicle locked so im locked out of my car
also in my F8 console im constantly getting this error:
SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:1145: No such export SendAlert in Resource mythic_notify
@makthementor1
se you a mythic notify? If no, you must change type of notification in config, behind your type of notification. Because if you don´t use mythic notify, export doesnt work, and script show the error
function Notification(type, text)
if type == 'error' then
exports['mythic_notify']:SendAlert('error', text)
elseif type == 'success' then
exports['mythic_notify']:SendAlert('success', text)
elseif type == 'inform' then
exports['mythic_notify']:SendAlert('inform', text)
end
end
replace with this
function Notification(type, text)
if type == 'error' then
ESX.ShowNotification(~r~text)
elseif type == 'success' then
ESX.ShowNotification(~g~text)
elseif type == 'inform' then
ESX.ShowNotification(~b~text)
end
end
function Notification(type, text)
if type == 'error' then
ESX.ShowNotification('~r~'..text)
elseif type == 'success' then
ESX.ShowNotification('~g~'..text)
elseif type == 'inform' then
ESX.ShowNotification('~b~'..text)
end
end