
Crash fix for LS Life mod on game version 1.0.3788.0 and newer.
The latest version of LS Life crashes with an ArgumentNullException (drug=null) during gameplay. This fix resolves that crash so the mod works stable on patch 3788.
Installation:
1. Place LSlife.dll into your scripts folder
2. Requires ScriptHookV and ScriptHookVDotNet
Changelog:
[New in 1.4]
Dealer recruit soft-lock fix
– Brozay_Sayz_Ayoo reported peds walking away from million dollar offers. Root cause: AreaDealer.DecidePlayerOffer (100 – amount/1000 weight) combined with a LastOffer high water mark gate. Once a high offer was rejected and LastOffer pinned to that value, the slider max (capped at player.Money) could not exceed it after the cash was spent. Result: that dealer permanently refused to engage.
– New [ECONOMY] section in LSlife.ini with two independent safety valves:
FORCE_ACCEPT_ABOVE = 750000 (any offer at or above this is auto-accepted, no rng. Set 0 to disable)
AUTO_ACCEPT_AFTER_WALKAWAYS = 3 (per dealer walkaway counter. After N rejections from the same dealer, the very next offer auto-accepts and the counter resets. Set 0 to disable)
– AreaDealer now tracks WalkawayCount with BumpWalkaways and ResetWalkaways helpers. Reset fires on any successful accept.
– LsMenus.HireDealerOfferSelect rewired: bypasses the LastOffer
[New in 1.2]
Police
– Random undercover police buys. Any customer that walks up to you has a configurable chance of being undercover. Triggering aborts the deal, applies a wanted level, blips the undercover, and spikes area heat.
– Realistic line of sight detection while dealing. Cops on foot or in cruisers that have clear sight and are facing you now give you a wanted star and area heat. Range, facing strictness, and master switch are configurable.
Credits:
chris22622
– Original mod by mcal9909
– All credit goes to the original author. This is only a stability fix.




