Native.Function(Hash.SET_ENTITY_AS_MISSION_ENTITY, entity, 0, 0) Exception Info: System.AccessViolationException at nativeCall() at GTA.Native.?() at () at () at ScriptHookVDotNet.Tick() This does successfully make the entity no longer persistent but it sometimes will cause the game to crash when used on peds (vehicles don't have an issue) and when it does the eventlog viewer always gives this error:Īpplication: GTA5.exe Framework Version: v9 Description: The process was terminated due to an unhandled exception. Native.Function(Hash.SET_ENTITY_AS_MISSION_ENTITY, entity, 1, 0) This doesn't appear to cause crashes at all and marks them as persistent correctly Native.Function(Hash.SET_ENTITY_AS_MISSION_ENTITY, entity, 1, 1)
Looking over the code these are my findings. Vehicles seemed to never have this problem but peds do cause the crash I'm about to mention at random over a period of time. Oddly enough this works 99% of the time but sometimes causes a crash. So I was able to track down the problem, it actually wasn't an issue with a native call on my end but with IsPersistent in SHVDN. Report Id: eadf7220-a4ce-11e7-ac68-00ac70c9ea78ĭescription: The process was terminated due to an unhandled exception.Įxception Info: System.AccessViolationExceptionĪt GTA.Native.?()Įxception Info: Īt (System.Object, System.Object, System.Signature, Boolean)Īt (System.Object, System.Object, System.Object)Īt (System.Object,, , System.Object, ) 23889, time stamp: 0x598d50baįaulting application start time: 0x01d338da57328130įaulting application path: E:\Program Files (x86)\Steam Games\steamapps\common\Grand Theft Auto V\GTA5.exeįaulting module path: C:\Windows\system32\KERNELBASE.dll 2, time stamp: 0x599d9281įaulting module name: KERNELBASE.dll, version. Here's how it's look in eventviewer:įaulting application name: GTA5.exe, version. Hi i just got a crash when playing GTA V with scripthookdotnet.