crosire
released this
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, andExplosionTypeenums - Added
OpenWheeltoVehicleClassenum - Added missing control values to
Controlenum - Added missing firing pattern values to
FiringPatternenum - Added missing flag values to
LeaveVehicleFlagsenum - Added more accurate values to
VehicleLockStatusand 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.OilVolumeandVehicle.PetrolTankVolumereturning the wrong value - Fixed the getter of
Game.TimeScalenot working in v1.0.2060.0 or higher - Fixed some properties and methods of
EntityBonenot working in v1.0.2189.0 or higher - Fixed
Game.GetUserInput()throwing exception for certain window titles - Fixed
Ped.SeatIndexnot necessarily returning the correct value - Fixed
Audio.PlaySoundAtandAudio.PlaySoundFrontendnot 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.Corpse01UMYusing the wrong value - Improved performance of methods for getting entities in
WorldandWorld.GetAllBlips()(orWorld.GetActiveBlips()in the v2 API) - Made
World.CreateRandomVehicle()return immediately (the method does not work currently) - Made methods for creating entities in
Worldreturnnullwhen 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
GameVersionenum to contain newer versions