Caught unhandled exception:
System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at GTA.Native.MemoryAccess..cctor()
--- End of inner exception stack trace ---
at GTA.Native.MemoryAccess.GetPedHandles()
at GTA.World.GetAllPeds()
at BodyguardSquads.IsInCombat(Ped ped)
at BodyguardSquads.OnKeyDown(Object sender, KeyEventArgs e)
at GTA.Script.raise_KeyDown(Object value0, KeyEventArgs value1)
at GTA.Script.MainLoop()
Please Help !
Caught unhandled exception:
System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at GTA.Native.MemoryAccess..cctor()
--- End of inner exception stack trace ---
at GTA.Native.MemoryAccess.GetPedHandles()
at GTA.World.GetAllPeds()
at BodyguardSquads.IsInCombat(Ped ped)
at BodyguardSquads.OnKeyDown(Object sender, KeyEventArgs e)
at GTA.Script.raise_KeyDown(Object value0, KeyEventArgs value1)
at GTA.Script.MainLoop()