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