Community Script Hook V .NET is an ASI plugin, which allows running scripts written in any .NET language ingame. It’s full source code is hosted on Github (Changelog). Development is community-driven and open to everybody, so contributions are warmly welcomed.
Press the “Insert” key to reload scripts. This key can be changed in the accompanying INI file.
Developers can use the NuGet package available at nuget.org.
Install both the Microsoft .NET Framework 4.5.2 (or higher, so skip this on Windows 10) and the Microsoft Visual C++ Redistributable Package for Visual Studio 2013 (x64).
Download and install the latest Script Hook V.
Download Community Script Hook V .NET and copy both the ScriptHookVDotNet.asi and ScriptHookVDotNet2.dll files into your game directory.
Added InteriorProxy (which native functions for interior support), AnimatedBuilding, Building, and InteriorInstance.
Also added the following properties and methods for InteriorProxy, AnimatedBuilding, Building, and InteriorInstance to World class:
count and capacity properties
The methods to get handles
The World.GetClosest() overloads.
Added Entity.FragmentGroupCount, Entity.IsFragmentObject, Entity.DetachFragmentPart(), EntityBone.FragmentGroupIndex, World.EntityColliderCount, and Entity.EntityColliderCapacity
Added Ped.SeeingRange, Ped.HearingRange, Ped.VisualFieldMinAngle, Ped.VisualFieldMaxAngle, Ped.VisualFieldMinElevationAngle, Ped.VisualFieldMaxElevationAngle, Ped.VisualFieldPeripheralRange, and Ped.VisualFieldCenterAngle
Added Ped.CauseOfDeath, Ped.TimeOfDeath, Ped.ClearKillerRecord(), Ped.ClearCauseOfDeathRecord(), and Ped.ClearTimeOfDeathRecord()
Added the getter of Ped.FiringPattern
Added new peds, vehicles, weapons, weapon components, radio station, blip sprites, and explosion type to PedHash, VehicleHash, WeaponHash, WeaponComponentHash, RadioStation, BlipSprite, and ExplosionType enums
Added the documentation note for the incorrectly named parameter offset to Entity.ApplyForce() and Entity.ApplyForceRelative()
Added the documentation note for the non-working parameter isAmmoLoaded to WeaponCollection.Give()
Fixed Stop() method of helper classes of Euphoria not working
Fixed Start() method of helper classes of Euphoria not working properly when peds are ragdolled. Now the method can apply simultaneously just like in v2.10.10 or earlier versions.
Also made the Start() method working when peds are ragdolled but not by SET_PED_TO_RAGDOLL, which does not work in v2.10.10 or earlier versions.
Fixed Vehicle.PassengerCount not counting as intended in v1.0.2545.0 (or later versions) due to addition to parameters and implementation changes
Fixed WeaponCollection.Give() not selecting the weapon if equipNow is set to true and the ped did not have the weapon
Fixed cursor of console not moving properly when pasting clipboard content
Fixed not showing dll names referencing version-less SHVDN in console
Made WeaponCollection.Give() select the weapon only if equipNow is set to true when the ped had the weapon
Fixed VehicleWheel.IsTouchingSurface crashing the game in some cases
Fixed scripts using subclasses that indirectly inherit GTA.Script not showing the correct API version in the log file and console log (although this did not affect determining the API version)
Fixed missing multiply operator in quaternion class for v2 API
Fixed IsPersistent and MarkAsNoLongerNeeded() using the wrong natives
Updated GameVersion enum to contain newer versions
crosire & contributors