Locked Vehicles
5.393
182
5.393
182
Installation
Place LockedVehicles.dll and LockedVehicles.ini into your "scripts" folder. You will need Script Hook V and Script Hook V .NET.
Controls
- Force Hijack Locked Vehicle (Default: J)
The control can be edited via the .ini file.
Settings
- Max Chance (Default: 3)
The minimum chance is 1, so by default the chance of a vehicle being locked is 1/3, do your math if you want to make it more/less probable.
About
I always wondered why pedestrians left their car unlocked...with this mod there is a tunable random chance that they will be locked! If a vehicle is locked, you can unlock it by using the force hijack key or by killing the driver.
Changelog
1.0
- Initial Release
Place LockedVehicles.dll and LockedVehicles.ini into your "scripts" folder. You will need Script Hook V and Script Hook V .NET.
Controls
- Force Hijack Locked Vehicle (Default: J)
The control can be edited via the .ini file.
Settings
- Max Chance (Default: 3)
The minimum chance is 1, so by default the chance of a vehicle being locked is 1/3, do your math if you want to make it more/less probable.
About
I always wondered why pedestrians left their car unlocked...with this mod there is a tunable random chance that they will be locked! If a vehicle is locked, you can unlock it by using the force hijack key or by killing the driver.
Changelog
1.0
- Initial Release
Првпат Додадено: Февруари 21, 2016
Последно Ажурирање: Февруари 21, 2016
Последно Симнување: пред 2 дена
48 Коментари
More mods by jedijosh920:
Installation
Place LockedVehicles.dll and LockedVehicles.ini into your "scripts" folder. You will need Script Hook V and Script Hook V .NET.
Controls
- Force Hijack Locked Vehicle (Default: J)
The control can be edited via the .ini file.
Settings
- Max Chance (Default: 3)
The minimum chance is 1, so by default the chance of a vehicle being locked is 1/3, do your math if you want to make it more/less probable.
About
I always wondered why pedestrians left their car unlocked...with this mod there is a tunable random chance that they will be locked! If a vehicle is locked, you can unlock it by using the force hijack key or by killing the driver.
Changelog
1.0
- Initial Release
Place LockedVehicles.dll and LockedVehicles.ini into your "scripts" folder. You will need Script Hook V and Script Hook V .NET.
Controls
- Force Hijack Locked Vehicle (Default: J)
The control can be edited via the .ini file.
Settings
- Max Chance (Default: 3)
The minimum chance is 1, so by default the chance of a vehicle being locked is 1/3, do your math if you want to make it more/less probable.
About
I always wondered why pedestrians left their car unlocked...with this mod there is a tunable random chance that they will be locked! If a vehicle is locked, you can unlock it by using the force hijack key or by killing the driver.
Changelog
1.0
- Initial Release
Првпат Додадено: Февруари 21, 2016
Последно Ажурирање: Февруари 21, 2016
Последно Симнување: пред 2 дена
Thanks!!!
Can you make it so all vehicles without ped inside will be locked too? I mean parked vehicles.
Nice mod! But i've noticed perfomance drop to 32-42 fps using ur script along with RDE mod: without it i've got solid 60 fps on my rig. Maybe it caused by much more cars spawns on the streets with RDE.
@jedijosh920
like the previous person said, i'm getting decreasing FPS the longer I play with this mod enabled. It took a bunch of testing to narrow down why after a while my fps would refuse to go over 60 (except in the pause menu/map), then a little while later 50.. then 40.. etc etc and once i got to around 20ish (which isnt really playable anyway lol) the game usually crashed with a memory error.
without the mod installed, my max fps doesnt decrease like this.
This is a sick mod but there might be something wrong with it (which I hate saying as your scripts are the best ones around) as the longer I play the lower and lower my fps gets. Maybe an issue with the way you are checking cars to lock the doors where it just keeps eating up more and more memory... I had an issue a while back with one of my own scripts where a non terminating loop was being recreated while the previous loop was still going and it just slowed the game to a crawl after a while.., idk
@diamond-optic Yeah this mod puts all nearby vehicles in an array and basically just gets a random number for each one and locks it if the chance equals 1 lol. I've noticed people and myself getting lag especially in my Ped Riot mod, Idk how to fix it, I'll try and maybe lower the nearby ped array range.
@jedijosh920 are you just putting data into an array that just keeps growing and growing over time?
@diamond-optic Yeah I think so, it's in a loop (OnTick) that is called per frame lol.
@jedijosh920 ahh yeah if the array is just continuing to grow in size that will do it lol... It would be extra processing obviously, but you might need to basically remove cars from the array that are no longer present nearby and overwrite their entries to keep the array size down. Or even just more or less only letting a certain number of cars to be saved to the array before you start overwriting old entries and hope that the entries you overwrite are no longer near the player, though since this is based on chance to lock the doors, even then it probably wouldnt be perceivable in most situations.
BEWARE! This script creates a loop into code and after 5 minutes of gameplay, where are some vehicles your fps drops near 8-10!
nice. make a mod where it takes 45 seconds to hotwire a car. and quicksave after death
Can you use this mod with the DrunkIV?
It works on parked cars?
Does Forced Hijack just makes npc's jump out of the vehicle? xD
I know this mod it 2(almost 3) years old, but is it possible to implement a feature where once you break the glass, you can reach in the car to unlock it? (If there's no anim for it then just auto-unlock)
@Saberninja710 what about an ACTUALLY realistic car theft model where you get key blanks and fobs and have to target specific years and models?
the mod that i were wating for! thanks!
This mod makes my game drop FPS
@jedijosh920 I'm not sure if this mod is working properly anymore. I have the latest 1.0.1868.1 patch. I set the MaxChance value to 2 and tested it out in game and all the cars I attempted to hijack had their doors unlocked. I tried like 5 cars in a row, one after another on the same road, and all their doors were unlocked. I was able to open their doors and pull the drivers out. Ended up fighting all the drivers at once because I was able to pull 'em out of their cars as normal. So like I said, I don't know if it works with the newest patch of gta 5 though.
I'm surprised this mod doesn't have more downvotes. I've been trying to figure out for 4+ hours what's wrong with my game performance before finding out, it's been this 4.67 / 5 mod all this time. Great mod, terrible memory leak
This will forever now teach me to read the comments before installing a mod