VCarSharing 1.3
8,052
74
8,052
74
VCarSharing mod by SamperMan44 (SampleText2k77)
Description
This mod adds a car sharing service into GTA V. Car sharing offers you to rent a car for a certain period of time. The only difference from typical rental service is that you can park the vehicle anywhere you want when you do not need it anymore.
This is the first mod I've ever created, so your feedback will be much appreciated :)
Features
Requirements
Installation
Dowload a ZIP archive and extract everything from it in your scripts folder. Enjoy!
Configuration
All configuration parameters are located in the VCarSharingSettings.xml file. Feel free to change them according to your preferences.
Usage
Changelog
Version 1.3
Version 1.2
Version 1.1
Known bugs
- Script can crash if you exit a vehicle after changing a character when you started a ride using the previous character.
Description
This mod adds a car sharing service into GTA V. Car sharing offers you to rent a car for a certain period of time. The only difference from typical rental service is that you can park the vehicle anywhere you want when you do not need it anymore.
This is the first mod I've ever created, so your feedback will be much appreciated :)
Features
- Three classes of vehicles (economy, premium, motorcycles).
- Vehicles appear in the city randomly.
- Rental service is available all around the map.
Requirements
- ScriptHookV
- ScriptHookVDotNet
- NativeUI
- .NET Framework 4.8
- iFruitAddon2 (for VCarSharing v1.3 and higher, included in the archive)
Installation
Dowload a ZIP archive and extract everything from it in your scripts folder. Enjoy!
Configuration
All configuration parameters are located in the VCarSharingSettings.xml file. Feel free to change them according to your preferences.
Usage
- Open your iFruit smartphone (default key is up arrow or middle mouse button), go to Contacts and call VCarSharing contact (v1.3 and higher). In older versions of the script, you can open menu by pressing "]" (default key, can be switched using settings file).
- Choose a vehicle (you can find the nearest ones on your minimap). VCarSharing's vehicles are painted orange by default.
- Enter a vehicle and start a ride.
- Exit a vehicle when you do not need it anymore.
Changelog
Version 1.3
- Implemented a new way of VCarSharing menu activation using iFruit (Contacts - VCarSharing)
- Fixed a bug with mod crash when there are no car sharing vehicles and positions for them nearby
Version 1.2
- Wrote new vehicles spawn algorithm. Now vehicles will be spawned automatically, not by user request.
- Provided an opportunity to switch vehicle colors.
- Added spawnpoints provided by user ablasa (thanks a lot for your effort).
Version 1.1
- Improved blips and minimap experience (different colors for different vehicle classes, short range blips and routes to selected vehicles)
- Added more config params
- Added few more spawn points for vehicles in Vinewood
Known bugs
- Script can crash if you exit a vehicle after changing a character when you started a ride using the previous character.
First Uploaded: August 26, 2019
Last Updated: January 09, 2021
Last Downloaded: 5 hours ago
55 Comments
VCarSharing mod by SamperMan44 (SampleText2k77)
Description
This mod adds a car sharing service into GTA V. Car sharing offers you to rent a car for a certain period of time. The only difference from typical rental service is that you can park the vehicle anywhere you want when you do not need it anymore.
This is the first mod I've ever created, so your feedback will be much appreciated :)
Features
Requirements
Installation
Dowload a ZIP archive and extract everything from it in your scripts folder. Enjoy!
Configuration
All configuration parameters are located in the VCarSharingSettings.xml file. Feel free to change them according to your preferences.
Usage
Changelog
Version 1.3
Version 1.2
Version 1.1
Known bugs
- Script can crash if you exit a vehicle after changing a character when you started a ride using the previous character.
Description
This mod adds a car sharing service into GTA V. Car sharing offers you to rent a car for a certain period of time. The only difference from typical rental service is that you can park the vehicle anywhere you want when you do not need it anymore.
This is the first mod I've ever created, so your feedback will be much appreciated :)
Features
- Three classes of vehicles (economy, premium, motorcycles).
- Vehicles appear in the city randomly.
- Rental service is available all around the map.
Requirements
- ScriptHookV
- ScriptHookVDotNet
- NativeUI
- .NET Framework 4.8
- iFruitAddon2 (for VCarSharing v1.3 and higher, included in the archive)
Installation
Dowload a ZIP archive and extract everything from it in your scripts folder. Enjoy!
Configuration
All configuration parameters are located in the VCarSharingSettings.xml file. Feel free to change them according to your preferences.
Usage
- Open your iFruit smartphone (default key is up arrow or middle mouse button), go to Contacts and call VCarSharing contact (v1.3 and higher). In older versions of the script, you can open menu by pressing "]" (default key, can be switched using settings file).
- Choose a vehicle (you can find the nearest ones on your minimap). VCarSharing's vehicles are painted orange by default.
- Enter a vehicle and start a ride.
- Exit a vehicle when you do not need it anymore.
Changelog
Version 1.3
- Implemented a new way of VCarSharing menu activation using iFruit (Contacts - VCarSharing)
- Fixed a bug with mod crash when there are no car sharing vehicles and positions for them nearby
Version 1.2
- Wrote new vehicles spawn algorithm. Now vehicles will be spawned automatically, not by user request.
- Provided an opportunity to switch vehicle colors.
- Added spawnpoints provided by user ablasa (thanks a lot for your effort).
Version 1.1
- Improved blips and minimap experience (different colors for different vehicle classes, short range blips and routes to selected vehicles)
- Added more config params
- Added few more spawn points for vehicles in Vinewood
Known bugs
- Script can crash if you exit a vehicle after changing a character when you started a ride using the previous character.
First Uploaded: August 26, 2019
Last Updated: January 09, 2021
Last Downloaded: 5 hours ago











@SamperMan44 AAhh, that´s it? I expect it was a bit harder. :-) Thank you very much!
System.DivideByZeroException: Nastąpiła próba podzielenia przez zero.
w VCarSharing.src.VCarSharing.Map(Int32 x, Int32 in_min, Int32 in_max, Int32 out_min, Int32 out_max)
w VCarSharing.src.VCarSharing.SpawnVehiclesRandomly()
w VCarSharing.src.VCarSharing.OnTick(Object sender, EventArgs e)
w SHVDN.Script.MainLoop() next 5 min game gta5 mod is crashed
Hey, when I try to go outside Los Santos, or outside Paleto Bay the mod crashes (not the whole game fortunately), so i have to use the Restart() command in the ScriptHookV.NET console.
It says something like "division by zero error". I guess it's when it tries to spawn vehicles where there isn't any place to do it. The problem might be in the DLL file but i'm sure you know better than me !
However your mod is still great, love it ♥
@gerardpigeon hi, I faced with this issue too. Some spawn coordinate is bad. I will fix it when I have some free time. Thanks for your report still and sorry for the late answer
@SamperMan44 is not appearing in the contact list
@carloxfranco hi, i will recheck the script tonight. If you can, please check error logs in ScriptHookVDotNet.log and let me know if there are any errors with the script there.
@Manek fixed in 1.3
@gerardpigeon fixed in 1.3
@carloxfranco tested release v1.3 build I've posted on GTA5-Mods. Works on my machine. I've attached a screenshot with iFruit and VCarSharing contact in it. It is in the very end of the contact list. I will wait for your response with error logs if any.
@SamperMan44 friend you are absolutely right it works correctly, I did not notice that there is a huge space between the last contact and the VCarSharing contact.
I have a question cars addon will it work? I liked to put my cars.
@carloxfranco that's great it worked correctly!
You can add any vehicle you want to any class in configuration file that is located in \scripts\VCarSharing. I haven't tried to add addon vehicles. You can try it on your own. If it doesn't work, I can think over to add this feature in v1.4.
@SamperMan44
Hello again, I already know why the script didn't work the first time.
When I installed the script I immediately added a car name addon to replace one of yours.
In other words, if someone puts a name other than a car addon, the script stops working and does not appear in the contacts.
I now put a car addon back into the script and I noticed that.
Try it there with yours to check it out.
i tried to add a new super class white vanilla cars and the it does not show up in the contacts
@carloxfranco it doesn't work for me too. I will add this feature in the next version of the mod
@timelessaru you cannot add a class in the moment. There are only 3 classes of vehicles implemented in the script. Add your cars in one of the existing classes
@SamperMan44 by clicking the "j" key several times
[17:55:03] [ERROR] Caught fatal unhandled exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at VCarSharing.src.VehicleWrapper.SpawnVehicle(VehicleHash model, VehicleClass vehicleClass, VehicleColor vehicleColor)
at VCarSharing.src.VCarSharing.SpawnVehiclesRandomly()
at VCarSharing.src.VCarSharing.OnTick(Object sender, EventArgs e)
at SHVDN.Script.MainLoop()
[17:55:03] [ERROR] The exception was thrown while executing the script VCarSharing.src.VCarSharing.
[17:55:03] [WARNING] Aborted script VCarSharing.src.VCarSharing.
@carloxfranco strange thing. I will check this on my machine. Btw do you have mods installed that use J button for some purposes? (as far as I know VAutodrive mod has this key as default)
@SamperMan44 yes for example VAutodrive has this standard key, but why does it blow up with VCarSharing?
@SamperMan44 again but now by pressing the 3 siren ELS key several times in a row.
[12:11:47] [ERROR] Caught fatal unhandled exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at VCarSharing.src.VehicleWrapper.SpawnVehicle(VehicleHash model, VehicleClass vehicleClass, VehicleColor vehicleColor)
at VCarSharing.src.VCarSharing.SpawnVehiclesRandomly()
at VCarSharing.src.VCarSharing.OnTick(Object sender, EventArgs e)
at SHVDN.Script.MainLoop()
[12:11:47] [ERROR] The exception was thrown while executing the script VCarSharing.src.VCarSharing.
[12:11:47] [WARNING] Aborted script VCarSharing.src.VCarSharing.
Unhandled excveption in script VCarSharing:
NullReferenceException in VCarSharing.src.VehicleWrapper.SpawnVehicle(VehicleHash model,. VehicleClass vehicleClass, VehicleColor vehicleColor)