scripthookvdotnet

An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language on the .NET Framework runtime in-game.

ZLIB License

Stars
1.1K

Bot releases are hidden (Show)

scripthookvdotnet - ScriptHookVDotNet v2.10.2

Published by crosire about 7 years ago

Changelog

  • Improved Model.IsPed property
  • Fixed memory offsets that were changed in 1.0.1180.2
  • Updated GameVersion enum to contain newer versions
scripthookvdotnet - ScriptHookVDotNet v2.10.1

Published by crosire about 7 years ago

Changelog

  • Updated enums with various vehicle and weapon hashes
  • Fixed crash if DLLs were not unblocked by user after downloading
scripthookvdotnet - ScriptHookVDotNet v2.10.0

Published by crosire over 7 years ago

The installation procedure has changed. You need to install both ScriptHookVDotNet.asi and ScriptHookVDotNet2.dll to the game directory now. Scripts should reference ScriptHookVDotNet2.dll. These changes were necessary to prepare for the v3 release.

Don't forget to unblock ScriptHookVDotNet2.dll after extraction!!!!
See https://blogs.msdn.microsoft.com/delay/p/unblockingdownloadedfile/

Changelog

  • Moved CLR host to its own ASI, so it can load multiple SHVDN versions at the same time
  • Fixed memory offsets that were changed in 1.0.1103.2
  • Updated GameVersion enum to contain newer versions
scripthookvdotnet - ScriptHookVDotNet v2.9.6

Published by crosire over 7 years ago

Changelog

  • Updated GameVersion enum to contain newer versions
  • Fixed Game.GenerateHash for input that contains backslashes
  • Fixed Vehicle.HighGear not throwing an exception on invalid input values
scripthookvdotnet - ScriptHookVDotNet v2.9.5

Published by crosire over 7 years ago

Changelog

  • Updated GameVersion enum to contain newer versions
  • Added new Ped and Vehicle hashes
scripthookvdotnet - ScriptHookVDotNet v2.9.4

Published by crosire almost 8 years ago

Changelog

  • Fixed memory offsets that were changed in 1.0.944.2
  • Updated GameVersion enum to contain newer versions
  • Removed timestamp added to log files
scripthookvdotnet - ScriptHookVDotNet v2.9.3

Published by crosire about 8 years ago

Changelog

  • Fixed memory offsets that were changed in 1.0.877.1
  • Updated GameVersion enum to contain newer versions
scripthookvdotnet - ScriptHookVDotNet v2.9.2

Published by crosire over 8 years ago

Changelog

  • Fixed Tasks.PlayAnimation()
  • Reverted removal of IDisposable interface from Script class (but it's obsolete)
scripthookvdotnet - ScriptHookVDotNet v2.9.1

Published by crosire over 8 years ago

Changelog

  • Fixed crash if no global INI was present
  • Fixed ScriptSettings.GetValue returning null instead of the default value if an entry was not found
scripthookvdotnet - ScriptHookVDotNet v2.9

Published by crosire over 8 years ago

This is the last big update to the v2 line of Community Script Hook V .NET (aka SHVDN). The upcoming major v3 version is a complete overhaul of the project and will break compatibility with most scripts. To continue support for older mods written against v2 or earlier, an option to change the location from which scripts are loaded was added, which now makes it possible to run multiple different versions of SHVDN alongside each other (e.g. both v2.9 and v3.0).

To do so, add a new INI file with the same name as the ASI to the game folder (e.g. ScriptHookVDotNet.ini if the ASI is called ScriptHookVDotNet.asi) with the following lines for SHVDN to load scripts from "\scripts_custom" instead of "\scripts":

ReloadKey=Insert
ScriptsLocation=scripts_custom

Script developers are encouraged to start becoming comfortable with all the changes to the .NET scripting API in v3. To do so, simply checkout and build the default dev_v3 branch. But please note that it's a work-in-progress, so changes are still to be expected.
Also, the entire .NET scripting API was rewritten from scratch in C# (instead of C++/CLI as before), which should make contributions a lot easier for most, if you are interested in helping this project.

Changelog

  • Added support for global settings file with "ReloadKey" and "ScriptsLocation" options
  • Added Aborted event to script class which is called on shutdown
  • Added car removing patch for mpexecutive update
  • Added Blip.Rotation setter
  • Added Camera.GetOffsetInWorldCoords and Camera.GetOffsetFromWorldCoords
  • Added Entity.IsInAngledArea and Entity.ApplyForce overloads which take a ForceType enum
  • Added Ped.DropsWeaponsOnDeath getter, Ped.MovementAnimationSet setter and Ped.GetLastWeaponImpactCoords()
  • Added Player.MaxArmor, Player.WantedCenterPosition, Player.PrimaryParachuteTint, Player.ReserveParachuteTint, Player.ChangeModel(), Player.RefillSpecialAbility(), Player.SetRunSpeedMultThisFrame(), Player.SetSwimSpeedMultThisFrame(), SetExplosiveAmmoThisFrame(), SetExplosiveMeleeThisFrame(), SetSuperJumpThisFrame(), SetFireAmmoThisFrame()
  • Added Scaleform.IsLoaded, Scalreform.IsValid and new constructor overload to handle loading instead of the Load() method
  • Added Tasks.AchieveHeading(), Tasks.FollowToOffsetFromEntity(), Tasks.LeaveVehicle() with LeaveVehicleFlags overload, more Tasks.ParkVehicle() overloads and more Tasks.PlayAnimation() overloads
  • Added Vehicle.Driver, Vehicle.IsFrontBumperBrokenOff, Vehicle.IsRearBumperBrokenOff, Vehicle.IsAxlesStrong setter, Vehicle.DropsMoneyOnExplosion setter, Vehicle.ProvidesCover setter, Vehicle.HasBombBay, Vehicle.HasForks, Vehicle.HasSiren, Vehicle.HasTowArm, Vehicle.CurrentRPM setter, Vehicle.WheelSpeed, Vehicle.ExtraExists(), Vehicle.IsExtraOn(), Vehicle.ToggleExtra(), Vehicle.Wash(), Vehicle.GetDoors(), Vehicle.IsDoorOpen(), Vehicle.GetDoorAngleRatio(), Vehicle.OpenBombBay(), Vehicle.CloseBombBay()
  • Added Weapon.Name and various methods related to weapon components
  • Added World.GetClosest() and additional overlodas for World.AddExplosion and World.AddOwnedExplosion
  • Fixed UI.Notify and UI.ShowSubtitle for messages longer than 99 characters
  • Fixed Vector3.Distance2D and Vector3.DistanceSquared2D
scripthookvdotnet - ScriptHookVDotNet v2.8

Published by crosire over 8 years ago

Changelog

  • Fixed euphoria support
  • Added WeaponAsset class
scripthookvdotnet - ScriptHookVDotNet v2.7

Published by crosire over 8 years ago

Changelog

  • Added System.Core.dll, System.XML.dll and System.XML.Linq.dll references to text script compiler
  • Fixed Ped.SetConfigFlag()
  • Changed startup code to only apply mplowrider2 car removing patch on newer game versions
scripthookvdotnet - ScriptHookVDotNet v2.6.2

Published by crosire over 8 years ago

Changelog

  • Added byte and short overloads to InputArgument/OutputArgument
  • Removed Vehicle.MaxSpeed getter
scripthookvdotnet - ScriptHookVDotNet v2.6.1

Published by crosire over 8 years ago

Changelog

  • Fixed Vector3.DistanceTo2D() and Vector3.DistanceToSquared2D()
scripthookvdotnet - ScriptHookVDotNet v2.6

Published by crosire over 8 years ago

Changelog

  • Added BlaineCountyRadio to radio station enum
  • Added a lot of properties and methods to entity classes
  • Added a bunch of methods to game class
  • Added a bunch of properties and methods to math classes
  • Added IEquatable base interface to some scripting classes
  • Added IEnumerable base interface to PedGroup class
  • Added IHandleable and ISpatial base interfaces
  • Added InputArgument and OutputArgument overload for uint
  • Added World.ShootBullet() overload which takes a speed argument
  • Fixed game crash when calling UI.DrawTexture() with a non-existing file
  • Fixed wrong animal values in ped hash enum
  • Fixed WeaponCollection.Give()
  • Fixed Entity.IsExplosionProof, Entity.HasCollision, Ped.CanSufferCriticalHits and Vehicle.LandingGear
  • Fixed World.NextWeather
  • Optimized script tick execution performance
  • Optimized Game.GenerateHash() with custom implementation
  • Updated game version enum
  • Updated native function, vehicle and weapon hash enums
scripthookvdotnet - ScriptHookVDotNet v2.5.1

Published by crosire over 8 years ago

Changelog

  • Restored Entity.Health behavior from previous versions
scripthookvdotnet - ScriptHookVDotNet v2.5

Published by crosire over 8 years ago

Changelog

  • Disabled euphoria classes as they do not currently work on the latest patch
  • Added key code range check
  • Added Audio class
  • Added UISprite class
  • Added shadow and outline options for UIText class
  • Added World.Weather getter
  • Added Ped.IsFalling, Ped.IsJumping, Ped.IsClimbing, Ped.IsVaulting, Ped.IsDiving, Ped.IsFleeing, Ped.IsInCombatAgainst(), Ped.IsHeadtracking(), Ped.IsJumpingOutOfVehicle, Ped.IsCuffed, Ped.DropsWeaponsOnDeath setter, Ped.GetVehiclesIsTryingtoEnter(), Ped.GetMeleeTarget(), ...
  • Added Ped.Clone() method
  • Added Vehicle.IsDamaged, Vehicle.ClassType
  • Added Entity.IsTouching()
  • Added Player.DisableFiringThisFrame()
  • Added additional Task.EnterVehicle() overloads
  • Added Weapon.Tint
  • Added GameplayCamera.Zoom
  • Added Game.GenerateHash(), Game.GetControlNormal()
  • Fixed Entity.Health
  • Fixed Ped.MaxHealth
  • Fixed Entity.HasGravity
  • Updated native, weapon and vehicle hash enums
scripthookvdotnet - ScriptHookVDotNet v0.1

Published by crosire almost 9 years ago

First public release.

scripthookvdotnet - ScriptHookVDotNet v0.2

Published by crosire almost 9 years ago

Changelog

  • Added unrestricted permissions to script appdomain
  • Changed project to target framework version 4.5 instead of 4.0 again
  • Changed native function calling to use hash enumeration instead of strings
  • Changed script domain implementation to support multiple instances for different source directories
scripthookvdotnet - ScriptHookVDotNet v0.3

Published by crosire almost 9 years ago

Changelog

  • Added World.CreatePed() and World.CreateVehicle() to instantiate entities
  • Added a lot of new members to the Entity, Ped and Vehicle classes
  • Added some additional members to the Model class
  • Added Script.Wait() function
  • Added option to pass and return scripting objects to/from native functions
  • Added Vector2 class
  • Added INI file reader, see Script.Settings
  • Moved Vector3, Matrix and Quaternion classes into separate Math namespace
  • Changed assembly file loading so the files are no longer blocked once loaded
  • Changed Ped.CurrentVehicle to use "GET_VEHICLE_PED_IS_IN" instead of "GET_VEHICLE_PED_IS_USING"
  • Fixed Game.RadarZoom not being of type int
Badges
Extracted from project README
NuGet Build Status License
Related Projects