Community Script Hook V .NET V3.6 (+Nightly)

Community Script Hook V .NET 2.10.9

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.

Installation

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.

Important Note: Starting from this release, nightly releases tell what stable versions the nightly versions would be if they were released as stable versions (e.g. v3.7.0-nightly.0 would be v3.7.0 if the nightly release was a stable one).

Changelog:
Changelog 3.6
Added ShapeTest class, ShapeTestHandle and ShapeTestResult structs, and ShapeTestStatus and ShapeTestOptions
Made World.RaycastCapsule() as obsolete because the result may not be made in the same frame you call the method despite START_SHAPE_TEST_CAPSULE asynchronous. Use ShapeTest.StartTestCapsule() instead.
Added missing values to IntersectFlags and old incorrect value as obsolete
Added TaskInvoker.StartVehicleMission(), TaskInvoker.StartHeliMission(), TaskInvoker.StartPlaneMission(), and TaskInvoker.StartBoatMission(), Vehicle.GetActiveMissionType() methods, VehicleMissionType, BoatMissionFlags, and HeliMissionFlags enums
Added Vehicle.BringToHalt(), Vehicle.BringToHalt(), Vehicle.StopBringingToHalt() methods, and IsBeingBroughtToHalt property
Added Vehicle.IsParachuteDeployed, Vehicle.IsRocketBoostActive, Vehicle.StartParachuting(), and the setters of IsLeftIndicatorLightOn and IsRightIndicatorLightOn
Added Projectile.FromHandle()
Added EulerRotationOrder enum
Added the accurate documentation to Ped.AlwaysKeepTask and Ped.BlockPermanentEvents
Note that Ped.AlwaysKeepTask only take effect when you call Ped.MarkAsNoLongerNeeded() or set Ped.IsPersistent to false as previous versions.
Added new peds, vehicles, weapons, weapon components, and blip sprites to PedHash, VehicleHash, WeaponHash, WeaponComponentHash, and BlipSprite enums
Added missing values to AnimationFlags and documentations for all values and made 2 old values as obsolete
Added missing values to Font of v3 API and documentations for all values
Added missing values to VehicleDrivingFlags and old incorrect values as obsolete
Added missing value for INPUT_VEH_FLY_BOOST to Control enum
For developers, if you use VehicleParachute, VehicleBikeWings, VehicleFlyBombBay, VehicleFlyCounter, VehicleFlyTransform, QuadLocoReverse, RespawnFaster, HudmarkerSelect, you should compile against v3.6.0 (v2.11.6.0 for v2 API) or later versions of SHVDN since enum values are compiled as constant values.
Added missing values to EnterVehicleFlags and EnterVehicleFlags and old incorrect values of EnterVehicleFlags as obsolete
Added missing value to Dead to Relationship and documentations for most values to tell script developers accurate names
Added missing values to VehicleWeaponHash
Fixed WeaponComponentCollection (Ped.Weapon.Components) crashing the game on the collection accessed in 1.0.2802.0 or later
Fixed World.CreateParticleEffect not working with entity
Fixed Ped.CanBeKnockedOffBike
Fixed the setter of Vehicle.RadioStation
Fixed the Entity.MaxHealthFloat not working correctly in 1.0.2699.16 or later
Fixed the countermeasure for vehicle despawning not working in 1.0.2802.0 or later
Fixed exception when attempting to initialize a custom script instance
Made Weapon.LocalizedName and WeaponComponent.LocalizedName faster.
Made Ped.LastVehicle more reliable. No longer returns null when the ped is going to a entry point (door) or opening the door, or returns a Vehicle instance that are for the vehicle the ped is getting in.
Updated Formation and old values as obsolete
Updated ParachuteLandingType and old values as obsolete

v3.5.0 is skipped due to versioning issues. Almost all the changes are done in v3.5.0.
Changelog

Added a new overload of Entity.IsInAngledArea(), World.DrawBoxForAngledArea(), World.IsPointInAngledArea(), and DrawBoxFlags
The signature of existing overload of Entity.IsInAngledArea() is kept for existing script compatibilities, including the parameter names.
Added HandlingData.BoostMaxSpeed, HandlingData.BrakeBiasFront, HandlingData.DownForceModifier, HandlingData.DriveBiasFront, HandlingData.InitialDragCoefficient, HandlingData.InitialDriveMaxFlatVelocity, HandlingData.LowSpeedTractionLossMultiplier, HandlingData.PopUpLightRotation, HandlingData.RocketBoostCapacity and HandlingData.TractionCurveLateral
Added Projectile.OwnerEntity
Made Projectile.Owner obsolete as the projectile owner can be other physical entities such as vehicles. The property will be marked as obsolete only in v3 api and the return value of Projectile.Owner will be Entity in next major versions.
Added new peds, vehicles, weapons, weapon components, and blip sprites to PedHash, VehicleHash, WeaponHash, WeaponComponentHash, and BlipSprite enums
Added additional shortcut to remove all the right characters of the cursor with Ctrl + K in console
Added additional shortcut to remove all the left characters of the cursor with Ctrl + U in console
Added ability to show/log version-less SHVDN warning multiple times in console and the log file
This is the only change that is done in v3.5.1 and v3.5.0 does not have.
Clarified HandlingData gets data from or sets data to the CHandlingData instance as is in the documentation comments, and thus some properties of HandlingData may differ from the values in handling.meta
This is done for less confusion and existing script compatibilities.
Fixed Ped.CurrentVehicle in v3 API returning the last vehicle instead of the current vehicle in 1.0.2699.0
This issue is resolved to keep the existing contract and script compatibilities although it seems Rockstar Games are responsible for this issue. See #1079 for more info.
Fixed World.GetAllBlips() and World.GetNearbyBlips() not getting all blips and Blip.MemoryAddress returning IntPtr.Zero in 1.0.2699.0 or later versions
Fixed HandlingDataTractionLossMultiplier not getting/setting the correct value. The property got/setted the value for fLowSpeedTractionLossMult before.
Removed the models of astron2 cyclone2 arbitergt ignus2 s95 from the return values of Vehicle.GetAllModels(), Vehicle.GetAllModelsOfClass(), Vehicle.GetAllModelsOfClass(), and Vehicle.GetAllModelsOfType()
The game will crash if the game try to spawn vehicles with one of the 5 models because of the stub vehicle models.

ScriptHookVDotNet v3.4.0
Changelog

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 Game.FindPattern()
Added Quaternion.LookRotation()
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

ScriptHookVDotNet v3.3.2

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)

Changelog v3.0.3

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

Credits:

crosire & contributors

3.9/5 - (176 votes)

Download mod

FileFile size
zip ScriptHookVDotNet-v3.7.0-nightly.1532 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1422 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1412 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1342 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1332 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1312 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1292 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1262 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1252 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1232 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1222 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1182 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1102 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1052 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1042 MB
zip ScriptHookVDotNet-v3.7.0-nightly.1032 MB
zip ScriptHookVDotNet-v3.7.0-nightly.952 MB
zip ScriptHookVDotNet-v3.7.0-nightly.942 MB
zip ScriptHookVDotNet-v3.7.0-nightly.932 MB
zip ScriptHookVDotNet-v3.7.0-nightly.922 MB
zip ScriptHookVDotNet-v3.7.0-nightly.902 MB
zip ScriptHookVDotNet-v3.7.0-nightly.872 MB
zip ScriptHookVDotNet-v3.7.0-nightly.842 MB
zip ScriptHookVDotNet-v3.7.0-nightly.832 MB
zip ScriptHookVDotNet-v3.7.0-nightly.792 MB
zip ScriptHookVDotNet-v3.7.0-nightly.782 MB
zip ScriptHookVDotNet-v3.7.0-nightly.752 MB
zip ScriptHookVDotNet-v3.7.0-nightly.742 MB
zip ScriptHookVDotNet-v3.7.0-nightly.732 MB
zip ScriptHookVDotNet-v3.7.0-nightly.722 MB
zip ScriptHookVDotNet-v3.7.0-nightly.712 MB
zip ScriptHookVDotNet-v3.7.0-nightly.702 MB
zip ScriptHookVDotNet-v3.7.0-nightly.582 MB
zip ScriptHookVDotNet-v3.7.0-nightly.542 MB
zip ScriptHookVDotNet-v3.7.0-nightly.502 MB
zip ScriptHookVDotNet-v3.7.0-nightly.492 MB
zip ScriptHookVDotNet-v3.7.0-nightly.482 MB
zip ScriptHookVDotNet-v3.7.0-nightly.462 MB
zip ScriptHookVDotNet-v3.7.0-nightly.452 MB
zip ScriptHookVDotNet-v3.7.0-nightly.422 MB
zip ScriptHookVDotNet-v3.7.0-nightly.392 MB
zip ScriptHookVDotNet-v3.7.0-nightly.332 MB
zip ScriptHookVDotNet-v3.7.0-nightly.312 MB
zip ScriptHookVDotNet-v3.7.0-nightly.292 MB
zip ScriptHookVDotNet-v3.7.0-nightly.272 MB
zip ScriptHookVDotNet-v3.7.0-nightly.262 MB
zip ScriptHookVDotNet-v3.7.0-nightly.242 MB
zip ScriptHookVDotNet-v3.7.0-nightly.232 MB
zip ScriptHookVDotNet-v3.7.0-nightly.222 MB
zip ScriptHookVDotNet-v3.7.0-nightly.212 MB
zip ScriptHookVDotNet-v3.7.0-nightly.202 MB
zip ScriptHookVDotNet-v3.7.0-nightly.192 MB
zip ScriptHookVDotNet-v3.7.0-nightly.182 MB
zip ScriptHookVDotNet-v3.7.0-nightly.172 MB
zip ScriptHookVDotNet-v3.7.0-nightly.142 MB
zip ScriptHookVDotNet-v3.7.0-nightly.132 MB
zip ScriptHookVDotNet-v3.7.0-nightly.122 MB
zip ScriptHookVDotNet-v3.7.0-nightly.112 MB
zip ScriptHookVDotNet-v3.7.0-nightly.72 MB
zip ScriptHookVDotNet-v3.7.0-nightly.62 MB
zip ScriptHookVDotNet-v3.7.0-nightly.52 MB
zip ScriptHookVDotNet-v3.7.0-nightly.32 MB
zip ScriptHookVDotNet-v3.7.0-nightly.22 MB
zip ScriptHookVDotNet-v3.7.0-nightly.02 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1392 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1372 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1352 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1342 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1322 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1282 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1272 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1262 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1242 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1222 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1202 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1192 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1172 MB
zip ScriptHookVDotNet-v3.6.0-nightly.1142 MB
zip ScriptHookVDotNet-v3.6.0-nightly.962 MB
zip ScriptHookVDotNet-v3.6.0-nightly.742 MB
zip ScriptHookVDotNet-v3.6.0-nightly.572 MB
zip ScriptHookVDotNet V3.6999 KB
zip ScriptHookVDotNet V3.5.1951 KB
zip ScriptHookVDotNet947 KB

17 thoughts on “Community Script Hook V .NET V3.6 (+Nightly)

  1. What is the solution to this warning I receive?

    INFO: 2 scripts are running but are using the v2 API (ScriptHookVDotNet2.dll), which is deprecated and not actively supported. It may stop being supported in the future, disabling to run the scripts. You could contact the author(s) or find alternatives to avoid the issue. See the console outputs or the log file for more details.

  2. As a GTA V player, I just want to say a huge thank you to the creators of Community Script Hook V .NET V3.6! This modding tool has added so much value to my gaming experience by allowing me to create and share my own mods and scripts. The new features and improvements in the latest version have made it even more user-friendly and reliable.

  3. The ScriptHookVDot2.dll works fine but for this new version of GTAV/LSPDFR 2802, you also need the ScriptHookDot3.dll for the game to work properly. As soon as I drop the ScriptHookVDotNet.asi, the game starts crashing but as soon as I take that particular file out, the game works great. I’ve tested it many times over the last 2 hours or so just to see if that was in fact the issue and it is. The other files from ScriptHookVDotNet work fine but the asi needs to be looked into.

    Thank you in advance…

  4. I think the Parameter Ped.VehicleDrivingFlags with the type (Enum)VehicleDrivingFlags is not implemented well. It should be an long because it is representing bitflags. How should I combine VehicleDrivingFlags.IgnorePathFinding
    with VehicleDrivingFlags.StopAtDestination by using an Enum?

Leave a Reply

Your email address will not be published. Required fields are marked *