Skip to content

ScriptHookVDotNet v3.1.0

Compare
Choose a tag to compare
@crosire crosire released this 30 Dec 09:51
· 0 commits to 283d934f1ed7b0499f02a4b66590d7667a4efa1c since this release

You can now specify scripting API version to be used for source scripts via file name. For example, SHVDN runs "script.3.cs" using the v3 API.

Changelog

  • Added Blip.MemoryAddress, Blip.DisplayType, Blip.CategoryType, Blip.SecondaryColor, Blip.DisplayNameHash, Blip.RotationFloat, Blip.ScaleX, Blip.ScaleY, Blip.FlashInterval, Blip.FlashTimeLeft, Blip.ShowsDollarSign, Blip.ShowsHeadingIndicator, Blip.ShowsOutlineIndicator, Blip.ShowsFriendIndicator, Blip.ShowsCrewIndicator, Blip.IsHiddenOnLegend, Blip.GetAppropriateName(), Blip.ResetName(), BlipCategoryType, BlipDisplayType, and World.GetNearbyBlips()
  • Added the getters of Blip.Priority, Blip.NumberLabel, Blip.Name, Blip.Rotation, and Blip.ShowRoute
  • Added Model.IsBig, Model.HasBulletProofGlass, Model.HasLowriderHydraulics, Model.HasDonkHydraulics, Model.HasParachute, Model.HasRocketBoost, Model.AllowRappel, Model.CanStandOnTop, and Model.CanJump
  • Added Vehicle.IsBigVehicle, Vehicle.IsBus, Vehicle.IsDonk, Vehicle.IsElectricVehicle, Vehicle.IsEmergencyVehicle, Vehicle.IsLawEnforcementVehicle, Vehicle.IsLowrider, Vehicle.IsOffRoadVehicle, Vehicle.IsSubmarineCar, Vehicle.IsTank, and Vehicle.IsVan
  • Added World.PedCount, World.PropCount, World.PickupObjectCount, World.VehicleCapacity, World.PedCapacity, World.PropCapacity, and World.PickupObjectCapacity
  • Added Entity.IsWaterCannonProof, Entity.IsSteamProof, Entity.IsSmokeProof
  • Added the property Vehicle.HandlingData
  • Added Ped.GetAllModels() and Weapon.GetAllModels()
  • Added new peds, vehicles, weapons, radio stations, blip sprites, and explosion types to PedHash, VehicleHash, WeaponHash, RadioStation,BlipSprite, and ExplosionType enums
  • Added OpenWheel to VehicleClass enum
  • Added missing control values to Control enum
  • Added missing firing pattern values to FiringPattern enum
  • Added missing flag values to LeaveVehicleFlags enum
  • Added more accurate values to VehicleLockStatus and made confusing values obsolete
  • Added countermeasure against removing vehicles added in Arena War or later updates (Lowriders or later updates in 1.0.505.2 to 1.0.1493.1), using memory patterns
  • Fixed Vehicle.OilVolume and Vehicle.PetrolTankVolume returning the wrong value
  • Fixed the getter of Game.TimeScale not working in v1.0.2060.0 or higher
  • Fixed some properties and methods of EntityBone not working in v1.0.2189.0 or higher
  • Fixed Game.GetUserInput() throwing exception for certain window titles
  • Fixed Ped.SeatIndex not necessarily returning the correct value
  • Fixed Audio.PlaySoundAt and Audio.PlaySoundFrontend not correctly tying the returning sound id
  • Fixed Notification.Show(), Screen.ShowSubtitle(), Screen.ShowHelpTextThisFrame(), the setter of TextElement.Caption, TextElement.GetStringWidth(), and TextElement.GetScaledStringWidth() throwing exception when the text argument is null (now work as if the text argument is the empty string)
  • Fixed PedHash.Corpse01UMY using the wrong value
  • Improved performance of methods for getting entities in World and World.GetAllBlips() (or World.GetActiveBlips() in the v2 API)
  • Made World.CreateRandomVehicle() return immediately (the method does not work currently)
  • Made methods for creating entities in World return null when the entity pool is full in order to prevent the game from crashing
  • Made some vehicle properties more future-proof by using memory patterns, preventing some scripts from easily not working by game updates
  • Updated GameVersion enum to contain newer versions