You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated ScriptHookRDR2DotNet internals to be more up to date with ScriptHookVDotNet, which also includes various fixes
Fixes
Fixed a crash that would happen when passing in null/empty strings for native arguments
Fixed a crash that would happen when trying to call pool functions. e.g World.GetAllPeds(), World.GetAllVehicles()
Fixed entity proofs (for real this time)
Classes
RDR2.Native.Function class accessibility has been reverted back to public. It is now possible to call native functions using this class again.
Reason behind this change is that you may need to call natives with different param types. e.g the native may have wrong param types, or its params are of type Any and the actual type is something else, making it impossible to call the native correctly. Note that OutputArgument class still no longer exists, for now.
Made Prompt class internal for now, until the prompt text issues are solved
RDR2.Tasks has been renamed to TaskInvoker, and has been completely rewritten with updated parameters and more functions
Added classes that help with easily modifying ped cores (eAttributeCore) and attributes (ePedAttribute)
Added new class AnimScene to help with creating and playing animation scenes. e.g cutscenes, herb picking, eating, etc
Class Updates
Updated Entity class:
Entity.IsAttached() is no longer a function, it is now a member: Entity.IsAttached
Added Entity.IsAttachedToAnyObject
Added Entity.IsAttachedToAnyPed
Added Entity.IsAttachedToAnyVehicle
Added Entity.CarriableState
Added Entity.ClearProofs()
Added Entity.ProofBits
Added alias Entity.Forward
Updated Ped class:
Removed attribute and core related functions. They have been replaced with variables Ped.Cores and Ped.Attributes
Added Ped.EquipOutfitComponent()
Added Ped.PlaySpeech()
Added Ped.NeverLeavesGroup
Added Ped.GroupIndex
Added Ped.CanWrithe
Updated World class:
Added World.SetAmbientRoadPopulationEnabled()
Updated Game class:
Added Game.GetGlobalPtr()
Updates Globals class:
Added Globals.Get()
Enums Additions & Changes
Added and updated enums
Added enum eIkControlFlags
Added enum eFleeStyle
Added enum ePedAttribute
Added enum eSpeechParams
Renamed eEnterExitConfigFlags to eEnterExitVehicleFlags, and changed to be proper case
Renamed enum VehicleDrivingFlags to eDrivingFlags
Renamed enum Relationship to eRelationshipType, and updated types
Renamed enum FiringPattern to eFiringPattern, and updated types
Renamed enum PedCore to eAttributeCore
Updated eScriptedAnimFlags enum to be proper case
Misc
Added some missing natives that were intentionally not included because they generated a CS0306, which has been fixed w/ System.IntPtr