ScriptHookVDotNet v3.1.0
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
, andWorld.GetNearbyBlips()
- Added the getters of
Blip.Priority
,Blip.NumberLabel
,Blip.Name
,Blip.Rotation
, andBlip.ShowRoute
- Added
Model.IsBig
,Model.HasBulletProofGlass
,Model.HasLowriderHydraulics
,Model.HasDonkHydraulics
,Model.HasParachute
,Model.HasRocketBoost
,Model.AllowRappel
,Model.CanStandOnTop
, andModel.CanJump
- Added
Vehicle.IsBigVehicle
,Vehicle.IsBus
,Vehicle.IsDonk
,Vehicle.IsElectricVehicle
,Vehicle.IsEmergencyVehicle
,Vehicle.IsLawEnforcementVehicle
,Vehicle.IsLowrider
,Vehicle.IsOffRoadVehicle
,Vehicle.IsSubmarineCar
,Vehicle.IsTank
, andVehicle.IsVan
- Added
World.PedCount
,World.PropCount
,World.PickupObjectCount
,World.VehicleCapacity
,World.PedCapacity
,World.PropCapacity
, andWorld.PickupObjectCapacity
- Added
Entity.IsWaterCannonProof
,Entity.IsSteamProof
,Entity.IsSmokeProof
- Added the property
Vehicle.HandlingData
- Added
Ped.GetAllModels()
andWeapon.GetAllModels()
- Added new peds, vehicles, weapons, radio stations, blip sprites, and explosion types to
PedHash
,VehicleHash
,WeaponHash
,RadioStation
,BlipSprite
, andExplosionType
enums - Added
OpenWheel
toVehicleClass
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
andVehicle.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
andAudio.PlaySoundFrontend
not correctly tying the returning sound id - Fixed
Notification.Show()
,Screen.ShowSubtitle()
,Screen.ShowHelpTextThisFrame()
, the setter ofTextElement.Caption
,TextElement.GetStringWidth()
, andTextElement.GetScaledStringWidth()
throwing exception when the text argument isnull
(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
andWorld.GetAllBlips()
(orWorld.GetActiveBlips()
in the v2 API) - Made
World.CreateRandomVehicle()
return immediately (the method does not work currently) - Made methods for creating entities in
World
returnnull
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