ScriptHookVDotNet v2.9.4

@crosire crosire released this Dec 18, 2016

Important! Please read the release description on v2.9.

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

Downloads

ScriptHookVDotNet v2.9.3

@crosire crosire released this Oct 9, 2016

Important! Please read the release description on v2.9.

Changelog

  • Fixed memory offsets that were changed in 1.0.877.1
  • Updated GameVersion enum to contain newer versions

Downloads

ScriptHookVDotNet v2.9.2

@crosire crosire released this Jun 12, 2016 · 20 commits to master since this release

Important! Please read the release description on v2.9.

Changelog

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

Downloads

ScriptHookVDotNet v2.9.1

@crosire crosire released this Jun 11, 2016 · 24 commits to master since this release

Important! Please read the release description on v2.9.

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

Downloads

ScriptHookVDotNet v2.9

@crosire crosire released this Jun 10, 2016 · 27 commits to master since this release

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

Downloads

ScriptHookVDotNet v2.8

@crosire crosire released this May 11, 2016 · 85 commits to master since this release

Changelog

  • Fixed euphoria support
  • Added WeaponAsset class

Downloads

ScriptHookVDotNet v2.7

@crosire crosire released this Apr 5, 2016 · 98 commits to master since this release

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

Downloads

ScriptHookVDotNet v2.6.2

@crosire crosire released this Mar 29, 2016 · 121 commits to master since this release

Changelog

  • Added byte and short overloads to InputArgument/OutputArgument
  • Removed Vehicle.MaxSpeed getter

Downloads

ScriptHookVDotNet v2.6.1

@crosire crosire released this Mar 28, 2016 · 125 commits to master since this release

Changelog

  • Fixed Vector3.DistanceTo2D() and Vector3.DistanceToSquared2D()

Downloads

ScriptHookVDotNet v2.6

@crosire crosire released this Mar 28, 2016 · 127 commits to master since this release

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

Downloads