tai script hook v

Bạn đang xem: tai script hook v

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 tát everybody, sánh contributions are warmly welcomed.

Press the “Insert” key to tát reload scripts. This key can be changed in the accompanying INI tệp tin.

Developers can use the NuGet package available at nuget.org.

Installation

Install both the Microsoft .NET Framework 4.5.2 (or higher, sánh 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.


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 gọi the method despite START_SHAPE_TEST_CAPSULE asynchronous. Use ShapeTest.StartTestCapsule() instead.
Added missing values to tát 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 tát Ped.AlwaysKeepTask and Ped.BlockPermanentEvents
Note that Ped.AlwaysKeepTask only take effect when you gọi Ped.MarkAsNoLongerNeeded() or phối Ped.IsPersistent to tát false as previous versions.
Added new peds, vehicles, weapons, weapon components, and blip sprites to tát PedHash, VehicleHash, WeaponHash, WeaponComponentHash, and BlipSprite enums
Added missing values to tát AnimationFlags and documentations for all values and made 2 old values as obsolete
Added missing values to tát Font of v3 API and documentations for all values
Added missing values to tát VehicleDrivingFlags and old incorrect values as obsolete
Added missing value for INPUT_VEH_FLY_BOOST to tát 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 tát EnterVehicleFlags and EnterVehicleFlags and old incorrect values of EnterVehicleFlags as obsolete
Added missing value to tát Dead to tát Relationship and documentations for most values to tát tell script developers accurate names
Added missing values to tát 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 tát 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 tát 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 tát 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 tát PedHash, VehicleHash, WeaponHash, WeaponComponentHash, and BlipSprite enums
Added additional shortcut to tát remove all the right characters of the cursor with Ctrl + K in console
Added additional shortcut to tát remove all the left characters of the cursor with Ctrl + U in console
Added ability to tát 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 tát 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 tát 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 tát 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 tát World class:
count and capacity properties
The methods to tát 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 trò chơi.FindPattern()
Added Quaternion.LookRotation()
Added new peds, vehicles, weapons, weapon components, radio station, blip sprites, and explosion type to tát PedHash, VehicleHash, WeaponHash, WeaponComponentHash, RadioStation, BlipSprite, and ExplosionType enums
Added the documentation note for the incorrectly named parameter offset to tát Entity.ApplyForce() and Entity.ApplyForceRelative()
Added the documentation note for the non-working parameter isAmmoLoaded to tát 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 lượt thích 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 tát addition to tát parameters and implementation changes
Fixed WeaponCollection.Give() not selecting the weapon if equipNow is phối to tát 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 phối to tát 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 tệp tin 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 tát contain newer versions

Credits:

crosire & contributors

4/5 - (98 votes)