From 9dfa4c96e4134a3ef709d0fdbc0044490aea15a2 Mon Sep 17 00:00:00 2001 From: doxoh Date: Sat, 9 Jul 2022 13:39:21 +0200 Subject: [PATCH 1/6] Updated submodule runtime --- runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime b/runtime index fd491c247a..6ea4e3fd85 160000 --- a/runtime +++ b/runtime @@ -1 +1 @@ -Subproject commit fd491c247aa5152aa07758a0095c30a232f55372 +Subproject commit 6ea4e3fd85c55a41c0502b726ae44084af65766c From 96e053d1d0da0e7e2f9f54709a90d58b74849dc2 Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Sat, 9 Jul 2022 19:52:59 +0200 Subject: [PATCH 2/6] Fixed Player_GetInteriorLocation --- api/AltV.Net.CApi/Libraries/ServerLibrary.cs | 3 +++ api/AltV.Net.CApi/Libraries/SharedLibrary.cs | 3 --- api/AltV.Net.Client/Elements/Entities/Player.cs | 12 ------------ .../Elements/Entities/ISharedPlayer.cs | 2 -- api/AltV.Net/Elements/Entities/IPlayer.cs | 2 ++ api/AltV.Net/Elements/Entities/Player.cs | 2 +- runtime | 2 +- 7 files changed, 7 insertions(+), 19 deletions(-) diff --git a/api/AltV.Net.CApi/Libraries/ServerLibrary.cs b/api/AltV.Net.CApi/Libraries/ServerLibrary.cs index 749ad8400f..82474235bd 100644 --- a/api/AltV.Net.CApi/Libraries/ServerLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/ServerLibrary.cs @@ -103,6 +103,7 @@ public unsafe interface IServerLibrary public delegate* unmanaged[Cdecl] Player_GetHeadOverlay { get; } public delegate* unmanaged[Cdecl] Player_GetHwidExHash { get; } public delegate* unmanaged[Cdecl] Player_GetHwidHash { get; } + public delegate* unmanaged[Cdecl] Player_GetInteriorLocation { get; } public delegate* unmanaged[Cdecl] Player_GetInvincible { get; } public delegate* unmanaged[Cdecl] Player_GetIP { get; } public delegate* unmanaged[Cdecl] Player_GetLocalMetaData { get; } @@ -447,6 +448,7 @@ public unsafe class ServerLibrary : IServerLibrary public delegate* unmanaged[Cdecl] Player_GetHeadOverlay { get; } public delegate* unmanaged[Cdecl] Player_GetHwidExHash { get; } public delegate* unmanaged[Cdecl] Player_GetHwidHash { get; } + public delegate* unmanaged[Cdecl] Player_GetInteriorLocation { get; } public delegate* unmanaged[Cdecl] Player_GetInvincible { get; } public delegate* unmanaged[Cdecl] Player_GetIP { get; } public delegate* unmanaged[Cdecl] Player_GetLocalMetaData { get; } @@ -791,6 +793,7 @@ public ServerLibrary(string dllName) Player_GetHeadOverlay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetHeadOverlay"); Player_GetHwidExHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetHwidExHash"); Player_GetHwidHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetHwidHash"); + Player_GetInteriorLocation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetInteriorLocation"); Player_GetInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetInvincible"); Player_GetIP = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetIP"); Player_GetLocalMetaData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetLocalMetaData"); diff --git a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs index 8d18226a94..bce0ff2a96 100644 --- a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs @@ -202,7 +202,6 @@ public unsafe interface ISharedLibrary public delegate* unmanaged[Cdecl] Player_GetHeadRotation { get; } public delegate* unmanaged[Cdecl] Player_GetHealth { get; } public delegate* unmanaged[Cdecl] Player_GetID { get; } - public delegate* unmanaged[Cdecl] Player_GetInteriorLocation { get; } public delegate* unmanaged[Cdecl] Player_GetMaxArmor { get; } public delegate* unmanaged[Cdecl] Player_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetMoveSpeed { get; } @@ -437,7 +436,6 @@ public unsafe class SharedLibrary : ISharedLibrary public delegate* unmanaged[Cdecl] Player_GetHeadRotation { get; } public delegate* unmanaged[Cdecl] Player_GetHealth { get; } public delegate* unmanaged[Cdecl] Player_GetID { get; } - public delegate* unmanaged[Cdecl] Player_GetInteriorLocation { get; } public delegate* unmanaged[Cdecl] Player_GetMaxArmor { get; } public delegate* unmanaged[Cdecl] Player_GetMaxHealth { get; } public delegate* unmanaged[Cdecl] Player_GetMoveSpeed { get; } @@ -672,7 +670,6 @@ public SharedLibrary(string dllName) Player_GetHeadRotation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetHeadRotation"); Player_GetHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetHealth"); Player_GetID = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetID"); - Player_GetInteriorLocation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetInteriorLocation"); Player_GetMaxArmor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetMaxArmor"); Player_GetMaxHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetMaxHealth"); Player_GetMoveSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Player_GetMoveSpeed"); diff --git a/api/AltV.Net.Client/Elements/Entities/Player.cs b/api/AltV.Net.Client/Elements/Entities/Player.cs index 8d87c7fd2e..afb2495e41 100644 --- a/api/AltV.Net.Client/Elements/Entities/Player.cs +++ b/api/AltV.Net.Client/Elements/Entities/Player.cs @@ -145,18 +145,6 @@ public Position EntityAimOffset } } - public uint InteriorLocation - { - get - { - unsafe - { - CheckIfEntityExists(); - return this.Core.Library.Shared.Player_GetInteriorLocation(this.PlayerNativePointer); - } - } - } - public void GetCurrentWeaponComponents(out uint[] weaponComponents) { unsafe diff --git a/api/AltV.Net.Shared/Elements/Entities/ISharedPlayer.cs b/api/AltV.Net.Shared/Elements/Entities/ISharedPlayer.cs index e54ddad7a0..25d93e9405 100644 --- a/api/AltV.Net.Shared/Elements/Entities/ISharedPlayer.cs +++ b/api/AltV.Net.Shared/Elements/Entities/ISharedPlayer.cs @@ -117,8 +117,6 @@ public interface ISharedPlayer : ISharedEntity /// Returns the IEntity object if the player is aiming at /// ISharedEntity EntityAimingAt { get; } - - uint InteriorLocation { get; } /// /// Gets the current weapon components for the weapon in hand diff --git a/api/AltV.Net/Elements/Entities/IPlayer.cs b/api/AltV.Net/Elements/Entities/IPlayer.cs index d7a189ba07..c7abbe93fb 100644 --- a/api/AltV.Net/Elements/Entities/IPlayer.cs +++ b/api/AltV.Net/Elements/Entities/IPlayer.cs @@ -90,6 +90,8 @@ public interface IPlayer : ISharedPlayer, IEntity /// Returns the IP of the player /// string Ip { get; } + + uint InteriorLocation { get; } /// /// Spawns a player at the designated position with a optional delay in milliseconds diff --git a/api/AltV.Net/Elements/Entities/Player.cs b/api/AltV.Net/Elements/Entities/Player.cs index 0b12efa77e..85e5904d16 100644 --- a/api/AltV.Net/Elements/Entities/Player.cs +++ b/api/AltV.Net/Elements/Entities/Player.cs @@ -492,7 +492,7 @@ public uint InteriorLocation unsafe { CheckIfEntityExists(); - return Core.Library.Shared.Player_GetInteriorLocation(PlayerNativePointer); + return Core.Library.Server.Player_GetInteriorLocation(PlayerNativePointer); } } } diff --git a/runtime b/runtime index 6ea4e3fd85..72bb59314a 160000 --- a/runtime +++ b/runtime @@ -1 +1 @@ -Subproject commit 6ea4e3fd85c55a41c0502b726ae44084af65766c +Subproject commit 72bb59314afb77082953f022db0cecfbaf2c7a5a From cc62ba0b63cd242e73b386cf2b39ca11a835bbc4 Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Sat, 9 Jul 2022 19:53:05 +0200 Subject: [PATCH 3/6] Fixed natives --- api/AltV.Net.Client/Natives.cs | 16558 +++++++++++++++---------------- 1 file changed, 8279 insertions(+), 8279 deletions(-) diff --git a/api/AltV.Net.Client/Natives.cs b/api/AltV.Net.Client/Natives.cs index 6ec5212cb8..8a29d66e1c 100644 --- a/api/AltV.Net.Client/Natives.cs +++ b/api/AltV.Net.Client/Natives.cs @@ -27150,7 +27150,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__round; private delegate* unmanaged[Cdecl] fn__toFloat; private delegate* unmanaged[Cdecl] fn__setThreadPriority; - private delegate* unmanaged[Cdecl] fn__appDataValid; + private delegate* unmanaged[Cdecl] fn__appDataValid; private delegate* unmanaged[Cdecl] fn__appGetInt; private delegate* unmanaged[Cdecl] fn__appGetFloat; private delegate* unmanaged[Cdecl] fn__appGetString; @@ -27162,12 +27162,12 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__appClearBlock; private delegate* unmanaged[Cdecl] fn__appCloseApp; private delegate* unmanaged[Cdecl] fn__appCloseBlock; - private delegate* unmanaged[Cdecl] fn__appHasLinkedSocialClubAccount; - private delegate* unmanaged[Cdecl] fn__appHasSyncedData; + private delegate* unmanaged[Cdecl] fn__appHasLinkedSocialClubAccount; + private delegate* unmanaged[Cdecl] fn__appHasSyncedData; private delegate* unmanaged[Cdecl] fn__appSaveData; private delegate* unmanaged[Cdecl] fn__appGetDeletedFileStatus; - private delegate* unmanaged[Cdecl] fn__appDeleteAppData; - private delegate* unmanaged[Cdecl] fn__setDebugLinesAndSpheresDrawingActive; + private delegate* unmanaged[Cdecl] fn__appDeleteAppData; + private delegate* unmanaged[Cdecl] fn__setDebugLinesAndSpheresDrawingActive; private delegate* unmanaged[Cdecl] fn__drawDebugLine; private delegate* unmanaged[Cdecl] fn__drawDebugLineWithTwoColours; private delegate* unmanaged[Cdecl] fn__drawDebugSphere; @@ -27180,27 +27180,27 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__drawSpritePoly; private delegate* unmanaged[Cdecl] fn__drawSpritePoly2; private delegate* unmanaged[Cdecl] fn__drawBox; - private delegate* unmanaged[Cdecl] fn__setBackfaceculling; + private delegate* unmanaged[Cdecl] fn__setBackfaceculling; private delegate* unmanaged[Cdecl] fn__0xC5C8F970D4EDFF71; private delegate* unmanaged[Cdecl] fn__beginTakeMissionCreatorPhoto; private delegate* unmanaged[Cdecl] fn__getStatusOfTakeMissionCreatorPhoto; private delegate* unmanaged[Cdecl] fn__freeMemoryForMissionCreatorPhoto; - private delegate* unmanaged[Cdecl] fn__loadMissionCreatorPhoto; + private delegate* unmanaged[Cdecl] fn__loadMissionCreatorPhoto; private delegate* unmanaged[Cdecl] fn__getStatusOfLoadMissionCreatorPhoto; private delegate* unmanaged[Cdecl] fn__0x7FA5D82B8F58EC06; private delegate* unmanaged[Cdecl] fn__0x5B0316762AFD4A64; private delegate* unmanaged[Cdecl] fn__0x346EF3ECAAAB149E; - private delegate* unmanaged[Cdecl] fn__beginTakeHighQualityPhoto; + private delegate* unmanaged[Cdecl] fn__beginTakeHighQualityPhoto; private delegate* unmanaged[Cdecl] fn__getStatusOfTakeHighQualityPhoto; private delegate* unmanaged[Cdecl] fn__freeMemoryForHighQualityPhoto; - private delegate* unmanaged[Cdecl] fn__0x1BBC135A4D25EDDE; + private delegate* unmanaged[Cdecl] fn__0x1BBC135A4D25EDDE; private delegate* unmanaged[Cdecl] fn__0xF3F776ADA161E47D; - private delegate* unmanaged[Cdecl] fn__saveHighQualityPhoto; + private delegate* unmanaged[Cdecl] fn__saveHighQualityPhoto; private delegate* unmanaged[Cdecl] fn__getStatusOfSaveHighQualityPhoto; - private delegate* unmanaged[Cdecl] fn__0x759650634F07B6B4; + private delegate* unmanaged[Cdecl] fn__0x759650634F07B6B4; private delegate* unmanaged[Cdecl] fn__0xCB82A0BF0E3E3265; private delegate* unmanaged[Cdecl] fn__freeMemoryForLowQualityPhoto; - private delegate* unmanaged[Cdecl] fn__drawLowQualityPhotoToPhone; + private delegate* unmanaged[Cdecl] fn__drawLowQualityPhotoToPhone; private delegate* unmanaged[Cdecl] fn__getMaximumNumberOfPhotos; private delegate* unmanaged[Cdecl] fn__getMaximumNumberOfCloudPhotos; private delegate* unmanaged[Cdecl] fn__getCurrentNumberOfCloudPhotos; @@ -27218,8 +27218,8 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__updateLightsOnEntity; private delegate* unmanaged[Cdecl] fn__0x9641588DAB93B4B5; private delegate* unmanaged[Cdecl] fn__0x393BD2275CEB7793; - private delegate* unmanaged[Cdecl] fn__drawMarker; - private delegate* unmanaged[Cdecl] fn__drawMarker2; + private delegate* unmanaged[Cdecl] fn__drawMarker; + private delegate* unmanaged[Cdecl] fn__drawMarker2; private delegate* unmanaged[Cdecl] fn__drawSphere; private delegate* unmanaged[Cdecl] fn__createCheckpoint; private delegate* unmanaged[Cdecl] fn__setCheckpointScale; @@ -27233,25 +27233,25 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xDB1EA9411C8911EC; private delegate* unmanaged[Cdecl] fn__0x3C788E7F6438754D; private delegate* unmanaged[Cdecl] fn__deleteCheckpoint; - private delegate* unmanaged[Cdecl] fn__dontRenderInGameUi; - private delegate* unmanaged[Cdecl] fn__forceRenderInGameUi; - private delegate* unmanaged[Cdecl] fn__requestStreamedTextureDict; - private delegate* unmanaged[Cdecl] fn__hasStreamedTextureDictLoaded; + private delegate* unmanaged[Cdecl] fn__dontRenderInGameUi; + private delegate* unmanaged[Cdecl] fn__forceRenderInGameUi; + private delegate* unmanaged[Cdecl] fn__requestStreamedTextureDict; + private delegate* unmanaged[Cdecl] fn__hasStreamedTextureDictLoaded; private delegate* unmanaged[Cdecl] fn__setStreamedTextureDictAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__drawRect; - private delegate* unmanaged[Cdecl] fn__setScriptGfxDrawBehindPausemenu; + private delegate* unmanaged[Cdecl] fn__drawRect; + private delegate* unmanaged[Cdecl] fn__setScriptGfxDrawBehindPausemenu; private delegate* unmanaged[Cdecl] fn__setScriptGfxDrawOrder; private delegate* unmanaged[Cdecl] fn__setScriptGfxAlign; private delegate* unmanaged[Cdecl] fn__resetScriptGfxAlign; private delegate* unmanaged[Cdecl] fn__setScriptGfxAlignParams; private delegate* unmanaged[Cdecl] fn__getScriptGfxPosition; private delegate* unmanaged[Cdecl] fn__getSafeZoneSize; - private delegate* unmanaged[Cdecl] fn__drawSprite; + private delegate* unmanaged[Cdecl] fn__drawSprite; private delegate* unmanaged[Cdecl] fn__0x2D3B147AFAD49DE0; private delegate* unmanaged[Cdecl] fn__drawInteractiveSprite; private delegate* unmanaged[Cdecl] fn__drawSpriteUv; private delegate* unmanaged[Cdecl] fn__addEntityIcon; - private delegate* unmanaged[Cdecl] fn__setEntityIconVisibility; + private delegate* unmanaged[Cdecl] fn__setEntityIconVisibility; private delegate* unmanaged[Cdecl] fn__setEntityIconColor; private delegate* unmanaged[Cdecl] fn__setDrawOrigin; private delegate* unmanaged[Cdecl] fn__clearDrawOrigin; @@ -27264,39 +27264,39 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getBinkMovieTime; private delegate* unmanaged[Cdecl] fn__setBinkMovieVolume; private delegate* unmanaged[Cdecl] fn__attachTvAudioToEntity; - private delegate* unmanaged[Cdecl] fn__setBinkMovieUnk2; - private delegate* unmanaged[Cdecl] fn__setTvAudioFrontend; - private delegate* unmanaged[Cdecl] fn__setBinkShouldSkip; + private delegate* unmanaged[Cdecl] fn__setBinkMovieUnk2; + private delegate* unmanaged[Cdecl] fn__setTvAudioFrontend; + private delegate* unmanaged[Cdecl] fn__setBinkShouldSkip; private delegate* unmanaged[Cdecl] fn__loadMovieMeshSet; private delegate* unmanaged[Cdecl] fn__releaseMovieMeshSet; private delegate* unmanaged[Cdecl] fn__queryMovieMeshSetState; private delegate* unmanaged[Cdecl] fn__getScreenResolution; private delegate* unmanaged[Cdecl] fn__getActiveScreenResolution; - private delegate* unmanaged[Cdecl] fn__getAspectRatio; + private delegate* unmanaged[Cdecl] fn__getAspectRatio; private delegate* unmanaged[Cdecl] fn__0xB2EBE8CBC58B90E9; - private delegate* unmanaged[Cdecl] fn__getIsWidescreen; - private delegate* unmanaged[Cdecl] fn__getIsHidef; + private delegate* unmanaged[Cdecl] fn__getIsWidescreen; + private delegate* unmanaged[Cdecl] fn__getIsHidef; private delegate* unmanaged[Cdecl] fn__0xEFABC7722293DA7C; - private delegate* unmanaged[Cdecl] fn__setNightvision; - private delegate* unmanaged[Cdecl] fn__getRequestingnightvision; - private delegate* unmanaged[Cdecl] fn__getUsingnightvision; - private delegate* unmanaged[Cdecl] fn__0xEF398BEEE4EF45F9; + private delegate* unmanaged[Cdecl] fn__setNightvision; + private delegate* unmanaged[Cdecl] fn__getRequestingnightvision; + private delegate* unmanaged[Cdecl] fn__getUsingnightvision; + private delegate* unmanaged[Cdecl] fn__0xEF398BEEE4EF45F9; private delegate* unmanaged[Cdecl] fn__0x814AF7DCAACC597B; private delegate* unmanaged[Cdecl] fn__0x43FA7CBE20DAB219; - private delegate* unmanaged[Cdecl] fn__setNoiseoveride; + private delegate* unmanaged[Cdecl] fn__setNoiseoveride; private delegate* unmanaged[Cdecl] fn__setNoisinessoveride; - private delegate* unmanaged[Cdecl] fn__getScreenCoordFromWorldCoord; + private delegate* unmanaged[Cdecl] fn__getScreenCoordFromWorldCoord; private delegate* unmanaged[Cdecl] fn__getTextureResolution; - private delegate* unmanaged[Cdecl] fn__overridePedBadgeTexture; + private delegate* unmanaged[Cdecl] fn__overridePedBadgeTexture; private delegate* unmanaged[Cdecl] fn__0xE2892E7E55D7073A; private delegate* unmanaged[Cdecl] fn__setFlash; private delegate* unmanaged[Cdecl] fn__disableOcclusionThisFrame; - private delegate* unmanaged[Cdecl] fn__setArtificialLightsState; - private delegate* unmanaged[Cdecl] fn__setArtificialLightsStateAffectsVehicles; + private delegate* unmanaged[Cdecl] fn__setArtificialLightsState; + private delegate* unmanaged[Cdecl] fn__setArtificialLightsStateAffectsVehicles; private delegate* unmanaged[Cdecl] fn__0xC35A6D07C93802B2; private delegate* unmanaged[Cdecl] fn__createTrackedPoint; private delegate* unmanaged[Cdecl] fn__setTrackedPointInfo; - private delegate* unmanaged[Cdecl] fn__isTrackedPointVisible; + private delegate* unmanaged[Cdecl] fn__isTrackedPointVisible; private delegate* unmanaged[Cdecl] fn__destroyTrackedPoint; private delegate* unmanaged[Cdecl] fn__0xBE197EAA669238F4; private delegate* unmanaged[Cdecl] fn__0x61F95E5BB3E0A8C6; @@ -27311,33 +27311,33 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__grassLodShrinkScriptAreas; private delegate* unmanaged[Cdecl] fn__grassLodResetScriptAreas; private delegate* unmanaged[Cdecl] fn__cascadeShadowsInitSession; - private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetCascadeBounds; + private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetCascadeBounds; private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetCascadeBoundsScale; private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetEntityTrackerScale; private delegate* unmanaged[Cdecl] fn__0x36F6626459D91457; private delegate* unmanaged[Cdecl] fn__0x259BA6D4E6F808F1; - private delegate* unmanaged[Cdecl] fn__cascadeShadowsEnableEntityTracker; - private delegate* unmanaged[Cdecl] fn__0x25FC3E33A31AD0C9; + private delegate* unmanaged[Cdecl] fn__cascadeShadowsEnableEntityTracker; + private delegate* unmanaged[Cdecl] fn__0x25FC3E33A31AD0C9; private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetShadowSampleType; private delegate* unmanaged[Cdecl] fn__cascadeShadowsClearShadowSampleType; - private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetAircraftMode; - private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetDynamicDepthMode; + private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetAircraftMode; + private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetDynamicDepthMode; private delegate* unmanaged[Cdecl] fn__cascadeShadowsSetDynamicDepthValue; - private delegate* unmanaged[Cdecl] fn__0x0AE73D8DF3A762B2; + private delegate* unmanaged[Cdecl] fn__0x0AE73D8DF3A762B2; private delegate* unmanaged[Cdecl] fn__0xCA465D9CC0D231BA; - private delegate* unmanaged[Cdecl] fn__golfTrailSetEnabled; - private delegate* unmanaged[Cdecl] fn__golfTrailSetPath; + private delegate* unmanaged[Cdecl] fn__golfTrailSetEnabled; + private delegate* unmanaged[Cdecl] fn__golfTrailSetPath; private delegate* unmanaged[Cdecl] fn__golfTrailSetRadius; private delegate* unmanaged[Cdecl] fn__golfTrailSetColour; private delegate* unmanaged[Cdecl] fn__golfTrailSetTessellation; - private delegate* unmanaged[Cdecl] fn__0xC0416B061F2B7E5E; + private delegate* unmanaged[Cdecl] fn__0xC0416B061F2B7E5E; private delegate* unmanaged[Cdecl] fn__golfTrailSetFixedControlPoint; private delegate* unmanaged[Cdecl] fn__golfTrailSetShaderParams; - private delegate* unmanaged[Cdecl] fn__golfTrailSetFacing; + private delegate* unmanaged[Cdecl] fn__golfTrailSetFacing; private delegate* unmanaged[Cdecl] fn__golfTrailGetMaxHeight; private delegate* unmanaged[Cdecl] fn__golfTrailGetVisualControlPoint; - private delegate* unmanaged[Cdecl] fn__setSeethrough; - private delegate* unmanaged[Cdecl] fn__getUsingseethrough; + private delegate* unmanaged[Cdecl] fn__setSeethrough; + private delegate* unmanaged[Cdecl] fn__getUsingseethrough; private delegate* unmanaged[Cdecl] fn__seethroughReset; private delegate* unmanaged[Cdecl] fn__seethroughSetFadeStartDistance; private delegate* unmanaged[Cdecl] fn__seethroughSetFadeEndDistance; @@ -27351,73 +27351,73 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__seethroughSetColorNear; private delegate* unmanaged[Cdecl] fn__0xB3C641F3630BF6DA; private delegate* unmanaged[Cdecl] fn__0xE59343E9E96529E7; - private delegate* unmanaged[Cdecl] fn__0x6A51F78772175A51; - private delegate* unmanaged[Cdecl] fn__togglePlayerDamageOverlay; + private delegate* unmanaged[Cdecl] fn__0x6A51F78772175A51; + private delegate* unmanaged[Cdecl] fn__togglePlayerDamageOverlay; private delegate* unmanaged[Cdecl] fn__0xE3E2C1B4C59DBC77; - private delegate* unmanaged[Cdecl] fn__triggerScreenblurFadeIn; - private delegate* unmanaged[Cdecl] fn__triggerScreenblurFadeOut; + private delegate* unmanaged[Cdecl] fn__triggerScreenblurFadeIn; + private delegate* unmanaged[Cdecl] fn__triggerScreenblurFadeOut; private delegate* unmanaged[Cdecl] fn__disableScreenblurFade; private delegate* unmanaged[Cdecl] fn__getScreenblurFadeCurrentTime; - private delegate* unmanaged[Cdecl] fn__isScreenblurFadeRunning; - private delegate* unmanaged[Cdecl] fn__togglePausedRenderphases; - private delegate* unmanaged[Cdecl] fn__getTogglePausedRenderphasesStatus; + private delegate* unmanaged[Cdecl] fn__isScreenblurFadeRunning; + private delegate* unmanaged[Cdecl] fn__togglePausedRenderphases; + private delegate* unmanaged[Cdecl] fn__getTogglePausedRenderphasesStatus; private delegate* unmanaged[Cdecl] fn__resetPausedRenderphases; private delegate* unmanaged[Cdecl] fn__0x851CD923176EBA7C; - private delegate* unmanaged[Cdecl] fn__setHidofEnvBlurParams; + private delegate* unmanaged[Cdecl] fn__setHidofEnvBlurParams; private delegate* unmanaged[Cdecl] fn__0xB569F41F3E7E83A4; - private delegate* unmanaged[Cdecl] fn__0x7AC24EAB6D74118D; + private delegate* unmanaged[Cdecl] fn__0x7AC24EAB6D74118D; private delegate* unmanaged[Cdecl] fn__0xBCEDB009461DA156; - private delegate* unmanaged[Cdecl] fn__0x27FEB5254759CDE3; - private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedAtCoord; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedAtCoord; - private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedOnPedBone; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnPedBone; - private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedOnEntity; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnEntity; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnEntityBone; + private delegate* unmanaged[Cdecl] fn__0x27FEB5254759CDE3; + private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedAtCoord; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedAtCoord; + private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedOnPedBone; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnPedBone; + private delegate* unmanaged[Cdecl] fn__startParticleFxNonLoopedOnEntity; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnEntity; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxNonLoopedOnEntityBone; private delegate* unmanaged[Cdecl] fn__setParticleFxNonLoopedColour; private delegate* unmanaged[Cdecl] fn__setParticleFxNonLoopedAlpha; - private delegate* unmanaged[Cdecl] fn__0x8CDE909A0370BB3A; - private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedAtCoord; - private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnPedBone; - private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnEntity; - private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnEntityBone; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxLoopedOnEntity; - private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxLoopedOnEntityBone; - private delegate* unmanaged[Cdecl] fn__stopParticleFxLooped; - private delegate* unmanaged[Cdecl] fn__removeParticleFx; + private delegate* unmanaged[Cdecl] fn__0x8CDE909A0370BB3A; + private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedAtCoord; + private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnPedBone; + private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnEntity; + private delegate* unmanaged[Cdecl] fn__startParticleFxLoopedOnEntityBone; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxLoopedOnEntity; + private delegate* unmanaged[Cdecl] fn__startNetworkedParticleFxLoopedOnEntityBone; + private delegate* unmanaged[Cdecl] fn__stopParticleFxLooped; + private delegate* unmanaged[Cdecl] fn__removeParticleFx; private delegate* unmanaged[Cdecl] fn__removeParticleFxFromEntity; private delegate* unmanaged[Cdecl] fn__removeParticleFxInRange; private delegate* unmanaged[Cdecl] fn__0xBA0127DA25FD54C9; - private delegate* unmanaged[Cdecl] fn__doesParticleFxLoopedExist; + private delegate* unmanaged[Cdecl] fn__doesParticleFxLoopedExist; private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedOffsets; - private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedEvolution; - private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedColour; + private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedEvolution; + private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedColour; private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedAlpha; private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedScale; private delegate* unmanaged[Cdecl] fn__setParticleFxLoopedFarClipDist; - private delegate* unmanaged[Cdecl] fn__setParticleFxCamInsideVehicle; - private delegate* unmanaged[Cdecl] fn__setParticleFxCamInsideNonplayerVehicle; + private delegate* unmanaged[Cdecl] fn__setParticleFxCamInsideVehicle; + private delegate* unmanaged[Cdecl] fn__setParticleFxCamInsideNonplayerVehicle; private delegate* unmanaged[Cdecl] fn__setParticleFxShootoutBoat; private delegate* unmanaged[Cdecl] fn__0x2A251AA48B2B46DB; private delegate* unmanaged[Cdecl] fn__0x908311265D42A820; - private delegate* unmanaged[Cdecl] fn__0xCFD16F0DB5A3535C; - private delegate* unmanaged[Cdecl] fn__0x5F6DF3D92271E8A1; + private delegate* unmanaged[Cdecl] fn__0xCFD16F0DB5A3535C; + private delegate* unmanaged[Cdecl] fn__0x5F6DF3D92271E8A1; private delegate* unmanaged[Cdecl] fn__0x2B40A97646381508; - private delegate* unmanaged[Cdecl] fn__enableClownBloodVfx; - private delegate* unmanaged[Cdecl] fn__enableAlienBloodVfx; + private delegate* unmanaged[Cdecl] fn__enableClownBloodVfx; + private delegate* unmanaged[Cdecl] fn__enableAlienBloodVfx; private delegate* unmanaged[Cdecl] fn__setParticleFxBulletImpactScale; private delegate* unmanaged[Cdecl] fn__0xBB90E12CAC1DAB25; - private delegate* unmanaged[Cdecl] fn__0xCA4AE345A153D573; + private delegate* unmanaged[Cdecl] fn__0xCA4AE345A153D573; private delegate* unmanaged[Cdecl] fn__0x54E22EA2C1956A8D; private delegate* unmanaged[Cdecl] fn__0x949F397A288B28B3; private delegate* unmanaged[Cdecl] fn__0xBA3D194057C79A7B; private delegate* unmanaged[Cdecl] fn__0x5DBF05DB5926D089; - private delegate* unmanaged[Cdecl] fn__0x9B079E5221D984D3; + private delegate* unmanaged[Cdecl] fn__0x9B079E5221D984D3; private delegate* unmanaged[Cdecl] fn__useParticleFxAsset; private delegate* unmanaged[Cdecl] fn__setParticleFxOverride; private delegate* unmanaged[Cdecl] fn__resetParticleFxOverride; - private delegate* unmanaged[Cdecl] fn__0xA46B73FAA3460AE1; + private delegate* unmanaged[Cdecl] fn__0xA46B73FAA3460AE1; private delegate* unmanaged[Cdecl] fn__0xF78B803082D4386F; private delegate* unmanaged[Cdecl] fn__washDecalsInRange; private delegate* unmanaged[Cdecl] fn__washDecalsFromVehicle; @@ -27426,38 +27426,38 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__removeDecalsFromObject; private delegate* unmanaged[Cdecl] fn__removeDecalsFromObjectFacing; private delegate* unmanaged[Cdecl] fn__removeDecalsFromVehicle; - private delegate* unmanaged[Cdecl] fn__addDecal; + private delegate* unmanaged[Cdecl] fn__addDecal; private delegate* unmanaged[Cdecl] fn__addPetrolDecal; private delegate* unmanaged[Cdecl] fn__startPetrolTrailDecals; private delegate* unmanaged[Cdecl] fn__addPetrolTrailDecalInfo; private delegate* unmanaged[Cdecl] fn__endPetrolTrailDecals; private delegate* unmanaged[Cdecl] fn__removeDecal; - private delegate* unmanaged[Cdecl] fn__isDecalAlive; + private delegate* unmanaged[Cdecl] fn__isDecalAlive; private delegate* unmanaged[Cdecl] fn__getDecalWashLevel; private delegate* unmanaged[Cdecl] fn__0xD9454B5752C857DC; private delegate* unmanaged[Cdecl] fn__0x27CFB1B1E078CB2D; private delegate* unmanaged[Cdecl] fn__setDisableDecalRenderingThisFrame; - private delegate* unmanaged[Cdecl] fn__getIsPetrolDecalInRange; + private delegate* unmanaged[Cdecl] fn__getIsPetrolDecalInRange; private delegate* unmanaged[Cdecl] fn__patchDecalDiffuseMap; private delegate* unmanaged[Cdecl] fn__unpatchDecalDiffuseMap; private delegate* unmanaged[Cdecl] fn__moveVehicleDecals; - private delegate* unmanaged[Cdecl] fn__addVehicleCrewEmblem; + private delegate* unmanaged[Cdecl] fn__addVehicleCrewEmblem; private delegate* unmanaged[Cdecl] fn__0x82ACC484FFA3B05F; private delegate* unmanaged[Cdecl] fn__removeVehicleCrewEmblem; private delegate* unmanaged[Cdecl] fn__getVehicleCrewEmblemRequestState; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveCrewEmblem; - private delegate* unmanaged[Cdecl] fn__0x0E4299C549F0D1F1; - private delegate* unmanaged[Cdecl] fn__0x02369D5C8A51FDCF; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveCrewEmblem; + private delegate* unmanaged[Cdecl] fn__0x0E4299C549F0D1F1; + private delegate* unmanaged[Cdecl] fn__0x02369D5C8A51FDCF; private delegate* unmanaged[Cdecl] fn__0x46D1A61A21F566FC; private delegate* unmanaged[Cdecl] fn__overrideInteriorSmokeName; private delegate* unmanaged[Cdecl] fn__overrideInteriorSmokeLevel; private delegate* unmanaged[Cdecl] fn__overrideInteriorSmokeEnd; private delegate* unmanaged[Cdecl] fn__registerNoirScreenEffectThisFrame; - private delegate* unmanaged[Cdecl] fn__disableVehicleDistantlights; - private delegate* unmanaged[Cdecl] fn__0x03300B57FCAC6DDB; + private delegate* unmanaged[Cdecl] fn__disableVehicleDistantlights; + private delegate* unmanaged[Cdecl] fn__0x03300B57FCAC6DDB; private delegate* unmanaged[Cdecl] fn__0x98EDF76A7271E4F2; - private delegate* unmanaged[Cdecl] fn__setForcePedFootstepsTracks; - private delegate* unmanaged[Cdecl] fn__setForceVehicleTrails; + private delegate* unmanaged[Cdecl] fn__setForcePedFootstepsTracks; + private delegate* unmanaged[Cdecl] fn__setForceVehicleTrails; private delegate* unmanaged[Cdecl] fn__disableScriptAmbientEffects; private delegate* unmanaged[Cdecl] fn__presetInteriorAmbientCache; private delegate* unmanaged[Cdecl] fn__setTimecycleModifier; @@ -27483,15 +27483,15 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__requestScaleformMovie; private delegate* unmanaged[Cdecl] fn__requestScaleformMovieInstance; private delegate* unmanaged[Cdecl] fn__requestScaleformMovieInteractive; - private delegate* unmanaged[Cdecl] fn__hasScaleformMovieLoaded; - private delegate* unmanaged[Cdecl] fn__0x2FCB133CA50A49EB; - private delegate* unmanaged[Cdecl] fn__0x86255B1FC929E33E; - private delegate* unmanaged[Cdecl] fn__hasScaleformMovieFilenameLoaded; - private delegate* unmanaged[Cdecl] fn__hasScaleformContainerMovieLoadedIntoParent; + private delegate* unmanaged[Cdecl] fn__hasScaleformMovieLoaded; + private delegate* unmanaged[Cdecl] fn__0x2FCB133CA50A49EB; + private delegate* unmanaged[Cdecl] fn__0x86255B1FC929E33E; + private delegate* unmanaged[Cdecl] fn__hasScaleformMovieFilenameLoaded; + private delegate* unmanaged[Cdecl] fn__hasScaleformContainerMovieLoadedIntoParent; private delegate* unmanaged[Cdecl] fn__setScaleformMovieAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__setScaleformMovieToUseSystemTime; + private delegate* unmanaged[Cdecl] fn__setScaleformMovieToUseSystemTime; private delegate* unmanaged[Cdecl] fn__0x32F34FF7F617643B; - private delegate* unmanaged[Cdecl] fn__setScaleformFitRendertarget; + private delegate* unmanaged[Cdecl] fn__setScaleformFitRendertarget; private delegate* unmanaged[Cdecl] fn__drawScaleformMovie; private delegate* unmanaged[Cdecl] fn__drawScaleformMovieFullscreen; private delegate* unmanaged[Cdecl] fn__drawScaleformMovieFullscreenMasked; @@ -27501,94 +27501,94 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__callScaleformMovieMethodWithNumber; private delegate* unmanaged[Cdecl] fn__callScaleformMovieMethodWithString; private delegate* unmanaged[Cdecl] fn__callScaleformMovieMethodWithNumberAndString; - private delegate* unmanaged[Cdecl] fn__beginScaleformScriptHudMovieMethod; - private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethod; - private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethodOnFrontend; - private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethodOnFrontendHeader; + private delegate* unmanaged[Cdecl] fn__beginScaleformScriptHudMovieMethod; + private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethod; + private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethodOnFrontend; + private delegate* unmanaged[Cdecl] fn__beginScaleformMovieMethodOnFrontendHeader; private delegate* unmanaged[Cdecl] fn__endScaleformMovieMethod; private delegate* unmanaged[Cdecl] fn__endScaleformMovieMethodReturnValue; - private delegate* unmanaged[Cdecl] fn__isScaleformMovieMethodReturnValueReady; + private delegate* unmanaged[Cdecl] fn__isScaleformMovieMethodReturnValueReady; private delegate* unmanaged[Cdecl] fn__getScaleformMovieMethodReturnValueInt; - private delegate* unmanaged[Cdecl] fn__getScaleformMovieMethodReturnValueBool; + private delegate* unmanaged[Cdecl] fn__getScaleformMovieMethodReturnValueBool; private delegate* unmanaged[Cdecl] fn__getScaleformMovieMethodReturnValueString; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamInt; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamFloat; - private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamBool; + private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamBool; private delegate* unmanaged[Cdecl] fn__beginTextCommandScaleformString; private delegate* unmanaged[Cdecl] fn__endTextCommandScaleformString; private delegate* unmanaged[Cdecl] fn__endTextCommandScaleformString2; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamTextureNameString2; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamTextureNameString; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamPlayerNameString; - private delegate* unmanaged[Cdecl] fn__doesLatestBriefStringExist; + private delegate* unmanaged[Cdecl] fn__doesLatestBriefStringExist; private delegate* unmanaged[Cdecl] fn__scaleformMovieMethodAddParamLatestBriefString; private delegate* unmanaged[Cdecl] fn__requestScaleformScriptHudMovie; - private delegate* unmanaged[Cdecl] fn__hasScaleformScriptHudMovieLoaded; + private delegate* unmanaged[Cdecl] fn__hasScaleformScriptHudMovieLoaded; private delegate* unmanaged[Cdecl] fn__removeScaleformScriptHudMovie; - private delegate* unmanaged[Cdecl] fn__0xD1C7CB175E012964; + private delegate* unmanaged[Cdecl] fn__0xD1C7CB175E012964; private delegate* unmanaged[Cdecl] fn__setTvChannel; private delegate* unmanaged[Cdecl] fn__getTvChannel; private delegate* unmanaged[Cdecl] fn__setTvVolume; private delegate* unmanaged[Cdecl] fn__getTvVolume; private delegate* unmanaged[Cdecl] fn__drawTvChannel; - private delegate* unmanaged[Cdecl] fn__setTvChannelPlaylist; + private delegate* unmanaged[Cdecl] fn__setTvChannelPlaylist; private delegate* unmanaged[Cdecl] fn__setTvChannelPlaylistAtHour; private delegate* unmanaged[Cdecl] fn__clearTvChannelPlaylist; - private delegate* unmanaged[Cdecl] fn__isPlaylistUnk; - private delegate* unmanaged[Cdecl] fn__isTvPlaylistItemPlaying; - private delegate* unmanaged[Cdecl] fn__enableMovieKeyframeWait; + private delegate* unmanaged[Cdecl] fn__isPlaylistUnk; + private delegate* unmanaged[Cdecl] fn__isTvPlaylistItemPlaying; + private delegate* unmanaged[Cdecl] fn__enableMovieKeyframeWait; private delegate* unmanaged[Cdecl] fn__0xD1C55B110E4DF534; private delegate* unmanaged[Cdecl] fn__0x30432A0118736E00; - private delegate* unmanaged[Cdecl] fn__enableMovieSubtitles; - private delegate* unmanaged[Cdecl] fn__ui3dsceneIsAvailable; - private delegate* unmanaged[Cdecl] fn__ui3dscenePushPreset; - private delegate* unmanaged[Cdecl] fn__0x98C4FE6EC34154CA; + private delegate* unmanaged[Cdecl] fn__enableMovieSubtitles; + private delegate* unmanaged[Cdecl] fn__ui3dsceneIsAvailable; + private delegate* unmanaged[Cdecl] fn__ui3dscenePushPreset; + private delegate* unmanaged[Cdecl] fn__0x98C4FE6EC34154CA; private delegate* unmanaged[Cdecl] fn__0x7A42B2E236E71415; - private delegate* unmanaged[Cdecl] fn__0x108BE26959A9D9BB; - private delegate* unmanaged[Cdecl] fn__terraingridActivate; + private delegate* unmanaged[Cdecl] fn__0x108BE26959A9D9BB; + private delegate* unmanaged[Cdecl] fn__terraingridActivate; private delegate* unmanaged[Cdecl] fn__terraingridSetParams; private delegate* unmanaged[Cdecl] fn__terraingridSetColours; - private delegate* unmanaged[Cdecl] fn__animpostfxPlay; + private delegate* unmanaged[Cdecl] fn__animpostfxPlay; private delegate* unmanaged[Cdecl] fn__animpostfxStop; private delegate* unmanaged[Cdecl] fn__animpostfxGetUnk; - private delegate* unmanaged[Cdecl] fn__animpostfxIsRunning; + private delegate* unmanaged[Cdecl] fn__animpostfxIsRunning; private delegate* unmanaged[Cdecl] fn__animpostfxStopAll; private delegate* unmanaged[Cdecl] fn__animpostfxStopAndDoUnk; - private delegate* unmanaged[Cdecl] fn__playPedRingtone; - private delegate* unmanaged[Cdecl] fn__isPedRingtonePlaying; + private delegate* unmanaged[Cdecl] fn__playPedRingtone; + private delegate* unmanaged[Cdecl] fn__isPedRingtonePlaying; private delegate* unmanaged[Cdecl] fn__stopPedRingtone; - private delegate* unmanaged[Cdecl] fn__isMobilePhoneCallOngoing; - private delegate* unmanaged[Cdecl] fn__0xC8B1B2425604CDD0; + private delegate* unmanaged[Cdecl] fn__isMobilePhoneCallOngoing; + private delegate* unmanaged[Cdecl] fn__0xC8B1B2425604CDD0; private delegate* unmanaged[Cdecl] fn__createNewScriptedConversation; - private delegate* unmanaged[Cdecl] fn__addLineToConversation; + private delegate* unmanaged[Cdecl] fn__addLineToConversation; private delegate* unmanaged[Cdecl] fn__addPedToConversation; private delegate* unmanaged[Cdecl] fn__0x33E3C6C6F2F0B506; private delegate* unmanaged[Cdecl] fn__0x892B6AB8F33606F5; - private delegate* unmanaged[Cdecl] fn__setMicrophonePosition; - private delegate* unmanaged[Cdecl] fn__0x0B568201DD99F0EB; - private delegate* unmanaged[Cdecl] fn__0x61631F5DF50D1C34; - private delegate* unmanaged[Cdecl] fn__startScriptPhoneConversation; - private delegate* unmanaged[Cdecl] fn__preloadScriptPhoneConversation; - private delegate* unmanaged[Cdecl] fn__startScriptConversation; - private delegate* unmanaged[Cdecl] fn__preloadScriptConversation; + private delegate* unmanaged[Cdecl] fn__setMicrophonePosition; + private delegate* unmanaged[Cdecl] fn__0x0B568201DD99F0EB; + private delegate* unmanaged[Cdecl] fn__0x61631F5DF50D1C34; + private delegate* unmanaged[Cdecl] fn__startScriptPhoneConversation; + private delegate* unmanaged[Cdecl] fn__preloadScriptPhoneConversation; + private delegate* unmanaged[Cdecl] fn__startScriptConversation; + private delegate* unmanaged[Cdecl] fn__preloadScriptConversation; private delegate* unmanaged[Cdecl] fn__startPreloadedConversation; - private delegate* unmanaged[Cdecl] fn__getIsPreloadedConversationReady; - private delegate* unmanaged[Cdecl] fn__isScriptedConversationOngoing; - private delegate* unmanaged[Cdecl] fn__isScriptedConversationLoaded; + private delegate* unmanaged[Cdecl] fn__getIsPreloadedConversationReady; + private delegate* unmanaged[Cdecl] fn__isScriptedConversationOngoing; + private delegate* unmanaged[Cdecl] fn__isScriptedConversationLoaded; private delegate* unmanaged[Cdecl] fn__getCurrentScriptedConversationLine; - private delegate* unmanaged[Cdecl] fn__pauseScriptedConversation; + private delegate* unmanaged[Cdecl] fn__pauseScriptedConversation; private delegate* unmanaged[Cdecl] fn__restartScriptedConversation; - private delegate* unmanaged[Cdecl] fn__stopScriptedConversation; + private delegate* unmanaged[Cdecl] fn__stopScriptedConversation; private delegate* unmanaged[Cdecl] fn__skipToNextScriptedConversationLine; private delegate* unmanaged[Cdecl] fn__interruptConversation; private delegate* unmanaged[Cdecl] fn__interruptConversationAndPause; private delegate* unmanaged[Cdecl] fn__0xAA19F5572C38B564; - private delegate* unmanaged[Cdecl] fn__0xB542DE8C3D1CB210; + private delegate* unmanaged[Cdecl] fn__0xB542DE8C3D1CB210; private delegate* unmanaged[Cdecl] fn__registerScriptWithAudio; private delegate* unmanaged[Cdecl] fn__unregisterScriptWithAudio; - private delegate* unmanaged[Cdecl] fn__requestMissionAudioBank; - private delegate* unmanaged[Cdecl] fn__requestAmbientAudioBank; - private delegate* unmanaged[Cdecl] fn__requestScriptAudioBank; + private delegate* unmanaged[Cdecl] fn__requestMissionAudioBank; + private delegate* unmanaged[Cdecl] fn__requestAmbientAudioBank; + private delegate* unmanaged[Cdecl] fn__requestScriptAudioBank; private delegate* unmanaged[Cdecl] fn__0x40763EA7B9B783E7; private delegate* unmanaged[Cdecl] fn__hintAmbientAudioBank; private delegate* unmanaged[Cdecl] fn__hintScriptAudioBank; @@ -27601,28 +27601,28 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x11579D940949C49E; private delegate* unmanaged[Cdecl] fn__getSoundId; private delegate* unmanaged[Cdecl] fn__releaseSoundId; - private delegate* unmanaged[Cdecl] fn__playSound; - private delegate* unmanaged[Cdecl] fn__playSoundFrontend; + private delegate* unmanaged[Cdecl] fn__playSound; + private delegate* unmanaged[Cdecl] fn__playSoundFrontend; private delegate* unmanaged[Cdecl] fn__playDeferredSoundFrontend; - private delegate* unmanaged[Cdecl] fn__playSoundFromEntity; + private delegate* unmanaged[Cdecl] fn__playSoundFromEntity; private delegate* unmanaged[Cdecl] fn__0x5B9853296731E88D; - private delegate* unmanaged[Cdecl] fn__playSoundFromCoord; + private delegate* unmanaged[Cdecl] fn__playSoundFromCoord; private delegate* unmanaged[Cdecl] fn__0x7EC3C679D0E7E46B; private delegate* unmanaged[Cdecl] fn__stopSound; private delegate* unmanaged[Cdecl] fn__getNetworkIdFromSoundId; private delegate* unmanaged[Cdecl] fn__getSoundIdFromNetworkId; private delegate* unmanaged[Cdecl] fn__setVariableOnSound; private delegate* unmanaged[Cdecl] fn__setVariableOnStream; - private delegate* unmanaged[Cdecl] fn__overrideUnderwaterStream; + private delegate* unmanaged[Cdecl] fn__overrideUnderwaterStream; private delegate* unmanaged[Cdecl] fn__setVariableOnUnderWaterStream; - private delegate* unmanaged[Cdecl] fn__hasSoundFinished; + private delegate* unmanaged[Cdecl] fn__hasSoundFinished; private delegate* unmanaged[Cdecl] fn__playPedAmbientSpeechNative; private delegate* unmanaged[Cdecl] fn__playPedAmbientSpeechAndCloneNative; - private delegate* unmanaged[Cdecl] fn__playPedAmbientSpeechWithVoiceNative; + private delegate* unmanaged[Cdecl] fn__playPedAmbientSpeechWithVoiceNative; private delegate* unmanaged[Cdecl] fn__playAmbientSpeechFromPositionNative; private delegate* unmanaged[Cdecl] fn__overrideTrevorRage; private delegate* unmanaged[Cdecl] fn__resetTrevorRage; - private delegate* unmanaged[Cdecl] fn__setPlayerAngry; + private delegate* unmanaged[Cdecl] fn__setPlayerAngry; private delegate* unmanaged[Cdecl] fn__playPain; private delegate* unmanaged[Cdecl] fn__releaseWeaponAudio; private delegate* unmanaged[Cdecl] fn__activateAudioSlowmoMode; @@ -27633,185 +27633,185 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPedScream; private delegate* unmanaged[Cdecl] fn__0x1B7ABE26CBCBF8C7; private delegate* unmanaged[Cdecl] fn__setPedVoiceGroup; - private delegate* unmanaged[Cdecl] fn__setPedAudioGender; + private delegate* unmanaged[Cdecl] fn__setPedAudioGender; private delegate* unmanaged[Cdecl] fn__stopCurrentPlayingSpeech; private delegate* unmanaged[Cdecl] fn__stopCurrentPlayingAmbientSpeech; - private delegate* unmanaged[Cdecl] fn__isAmbientSpeechPlaying; - private delegate* unmanaged[Cdecl] fn__isScriptedSpeechPlaying; - private delegate* unmanaged[Cdecl] fn__isAnySpeechPlaying; + private delegate* unmanaged[Cdecl] fn__isAmbientSpeechPlaying; + private delegate* unmanaged[Cdecl] fn__isScriptedSpeechPlaying; + private delegate* unmanaged[Cdecl] fn__isAnySpeechPlaying; private delegate* unmanaged[Cdecl] fn__0x30CA2EF91D15ADF8; - private delegate* unmanaged[Cdecl] fn__canPedSpeak; - private delegate* unmanaged[Cdecl] fn__isPedInCurrentConversation; - private delegate* unmanaged[Cdecl] fn__setPedIsDrunk; + private delegate* unmanaged[Cdecl] fn__canPedSpeak; + private delegate* unmanaged[Cdecl] fn__isPedInCurrentConversation; + private delegate* unmanaged[Cdecl] fn__setPedIsDrunk; private delegate* unmanaged[Cdecl] fn__playAnimalVocalization; - private delegate* unmanaged[Cdecl] fn__isAnimalVocalizationPlaying; + private delegate* unmanaged[Cdecl] fn__isAnimalVocalizationPlaying; private delegate* unmanaged[Cdecl] fn__setAnimalMood; - private delegate* unmanaged[Cdecl] fn__isMobilePhoneRadioActive; - private delegate* unmanaged[Cdecl] fn__setMobilePhoneRadioState; + private delegate* unmanaged[Cdecl] fn__isMobilePhoneRadioActive; + private delegate* unmanaged[Cdecl] fn__setMobilePhoneRadioState; private delegate* unmanaged[Cdecl] fn__getPlayerRadioStationIndex; private delegate* unmanaged[Cdecl] fn__getPlayerRadioStationName; private delegate* unmanaged[Cdecl] fn__getRadioStationName; private delegate* unmanaged[Cdecl] fn__getPlayerRadioStationGenre; - private delegate* unmanaged[Cdecl] fn__isRadioRetuning; - private delegate* unmanaged[Cdecl] fn__isRadioFadedOut; + private delegate* unmanaged[Cdecl] fn__isRadioRetuning; + private delegate* unmanaged[Cdecl] fn__isRadioFadedOut; private delegate* unmanaged[Cdecl] fn__0xFF266D1D0EB1195D; private delegate* unmanaged[Cdecl] fn__0xDD6BCF9E94425DF9; private delegate* unmanaged[Cdecl] fn__setRadioToStationName; private delegate* unmanaged[Cdecl] fn__setVehRadioStation; private delegate* unmanaged[Cdecl] fn__setVehHasRadioOverride; - private delegate* unmanaged[Cdecl] fn__isVehicleRadioEnabled; + private delegate* unmanaged[Cdecl] fn__isVehicleRadioEnabled; private delegate* unmanaged[Cdecl] fn__0xC1805D05E6D4FE10; private delegate* unmanaged[Cdecl] fn__setEmitterRadioStation; - private delegate* unmanaged[Cdecl] fn__setStaticEmitterEnabled; + private delegate* unmanaged[Cdecl] fn__setStaticEmitterEnabled; private delegate* unmanaged[Cdecl] fn__linkStaticEmitterToEntity; private delegate* unmanaged[Cdecl] fn__setRadioToStationIndex; - private delegate* unmanaged[Cdecl] fn__setFrontendRadioActive; + private delegate* unmanaged[Cdecl] fn__setFrontendRadioActive; private delegate* unmanaged[Cdecl] fn__unlockMissionNewsStory; - private delegate* unmanaged[Cdecl] fn__isMissionNewsStoryUnlocked; + private delegate* unmanaged[Cdecl] fn__isMissionNewsStoryUnlocked; private delegate* unmanaged[Cdecl] fn__getAudibleMusicTrackTextId; - private delegate* unmanaged[Cdecl] fn__playEndCreditsMusic; + private delegate* unmanaged[Cdecl] fn__playEndCreditsMusic; private delegate* unmanaged[Cdecl] fn__skipRadioForward; private delegate* unmanaged[Cdecl] fn__freezeRadioStation; private delegate* unmanaged[Cdecl] fn__unfreezeRadioStation; - private delegate* unmanaged[Cdecl] fn__setRadioAutoUnfreeze; + private delegate* unmanaged[Cdecl] fn__setRadioAutoUnfreeze; private delegate* unmanaged[Cdecl] fn__setInitialPlayerStation; - private delegate* unmanaged[Cdecl] fn__setUserRadioControlEnabled; + private delegate* unmanaged[Cdecl] fn__setUserRadioControlEnabled; private delegate* unmanaged[Cdecl] fn__setRadioTrack; private delegate* unmanaged[Cdecl] fn__setRadioTrackMix; private delegate* unmanaged[Cdecl] fn__0x55ECF4D13D9903B0; - private delegate* unmanaged[Cdecl] fn__setVehicleRadioLoud; - private delegate* unmanaged[Cdecl] fn__isVehicleRadioLoud; - private delegate* unmanaged[Cdecl] fn__setMobileRadioEnabledDuringGameplay; - private delegate* unmanaged[Cdecl] fn__doesPlayerVehHaveRadio; - private delegate* unmanaged[Cdecl] fn__isPlayerVehRadioEnable; - private delegate* unmanaged[Cdecl] fn__setVehicleRadioEnabled; + private delegate* unmanaged[Cdecl] fn__setVehicleRadioLoud; + private delegate* unmanaged[Cdecl] fn__isVehicleRadioLoud; + private delegate* unmanaged[Cdecl] fn__setMobileRadioEnabledDuringGameplay; + private delegate* unmanaged[Cdecl] fn__doesPlayerVehHaveRadio; + private delegate* unmanaged[Cdecl] fn__isPlayerVehRadioEnable; + private delegate* unmanaged[Cdecl] fn__setVehicleRadioEnabled; private delegate* unmanaged[Cdecl] fn__0xDA07819E452FFE8F; - private delegate* unmanaged[Cdecl] fn__setCustomRadioTrackList; + private delegate* unmanaged[Cdecl] fn__setCustomRadioTrackList; private delegate* unmanaged[Cdecl] fn__clearCustomRadioTrackList; private delegate* unmanaged[Cdecl] fn__getNumUnlockedRadioStations; private delegate* unmanaged[Cdecl] fn__findRadioStationIndex; - private delegate* unmanaged[Cdecl] fn__setRadioStationMusicOnly; + private delegate* unmanaged[Cdecl] fn__setRadioStationMusicOnly; private delegate* unmanaged[Cdecl] fn__setRadioFrontendFadeTime; private delegate* unmanaged[Cdecl] fn__unlockRadioStationTrackList; private delegate* unmanaged[Cdecl] fn__lockRadioStationTrackList; - private delegate* unmanaged[Cdecl] fn__updateLsur; - private delegate* unmanaged[Cdecl] fn__lockRadioStation; - private delegate* unmanaged[Cdecl] fn__setRadioStationIsVisible; - private delegate* unmanaged[Cdecl] fn__0xC64A06D939F826F5; + private delegate* unmanaged[Cdecl] fn__updateLsur; + private delegate* unmanaged[Cdecl] fn__lockRadioStation; + private delegate* unmanaged[Cdecl] fn__setRadioStationIsVisible; + private delegate* unmanaged[Cdecl] fn__0xC64A06D939F826F5; private delegate* unmanaged[Cdecl] fn__forceRadioTrackListPosition; private delegate* unmanaged[Cdecl] fn__getCurrentRadioStationHash; private delegate* unmanaged[Cdecl] fn__0x34D66BC058019CE0; - private delegate* unmanaged[Cdecl] fn__0xF3365489E0DD50F9; - private delegate* unmanaged[Cdecl] fn__setAmbientZoneState; - private delegate* unmanaged[Cdecl] fn__clearAmbientZoneState; - private delegate* unmanaged[Cdecl] fn__setAmbientZoneListState; - private delegate* unmanaged[Cdecl] fn__clearAmbientZoneListState; - private delegate* unmanaged[Cdecl] fn__setAmbientZoneStatePersistent; - private delegate* unmanaged[Cdecl] fn__setAmbientZoneListStatePersistent; - private delegate* unmanaged[Cdecl] fn__isAmbientZoneEnabled; + private delegate* unmanaged[Cdecl] fn__0xF3365489E0DD50F9; + private delegate* unmanaged[Cdecl] fn__setAmbientZoneState; + private delegate* unmanaged[Cdecl] fn__clearAmbientZoneState; + private delegate* unmanaged[Cdecl] fn__setAmbientZoneListState; + private delegate* unmanaged[Cdecl] fn__clearAmbientZoneListState; + private delegate* unmanaged[Cdecl] fn__setAmbientZoneStatePersistent; + private delegate* unmanaged[Cdecl] fn__setAmbientZoneListStatePersistent; + private delegate* unmanaged[Cdecl] fn__isAmbientZoneEnabled; private delegate* unmanaged[Cdecl] fn__0x5D2BFAAB8D956E0E; private delegate* unmanaged[Cdecl] fn__setCutsceneAudioOverride; private delegate* unmanaged[Cdecl] fn__setVariableOnCutsceneAudio; private delegate* unmanaged[Cdecl] fn__playPoliceReport; private delegate* unmanaged[Cdecl] fn__cancelCurrentPoliceReport; private delegate* unmanaged[Cdecl] fn__blipSiren; - private delegate* unmanaged[Cdecl] fn__overrideVehHorn; - private delegate* unmanaged[Cdecl] fn__isHornActive; - private delegate* unmanaged[Cdecl] fn__setAggressiveHorns; - private delegate* unmanaged[Cdecl] fn__0x02E93C796ABD3A97; - private delegate* unmanaged[Cdecl] fn__0x58BB377BEC7CD5F4; + private delegate* unmanaged[Cdecl] fn__overrideVehHorn; + private delegate* unmanaged[Cdecl] fn__isHornActive; + private delegate* unmanaged[Cdecl] fn__setAggressiveHorns; + private delegate* unmanaged[Cdecl] fn__0x02E93C796ABD3A97; + private delegate* unmanaged[Cdecl] fn__0x58BB377BEC7CD5F4; private delegate* unmanaged[Cdecl] fn__0x9BD7BD55E4533183; - private delegate* unmanaged[Cdecl] fn__isStreamPlaying; + private delegate* unmanaged[Cdecl] fn__isStreamPlaying; private delegate* unmanaged[Cdecl] fn__getStreamPlayTime; - private delegate* unmanaged[Cdecl] fn__loadStream; - private delegate* unmanaged[Cdecl] fn__loadStreamWithStartOffset; + private delegate* unmanaged[Cdecl] fn__loadStream; + private delegate* unmanaged[Cdecl] fn__loadStreamWithStartOffset; private delegate* unmanaged[Cdecl] fn__playStreamFromPed; private delegate* unmanaged[Cdecl] fn__playStreamFromVehicle; private delegate* unmanaged[Cdecl] fn__playStreamFromObject; private delegate* unmanaged[Cdecl] fn__playStreamFrontend; private delegate* unmanaged[Cdecl] fn__playStreamFromPosition; private delegate* unmanaged[Cdecl] fn__stopStream; - private delegate* unmanaged[Cdecl] fn__stopPedSpeaking; - private delegate* unmanaged[Cdecl] fn__0xF8AD2EED7C47E8FE; + private delegate* unmanaged[Cdecl] fn__stopPedSpeaking; + private delegate* unmanaged[Cdecl] fn__0xF8AD2EED7C47E8FE; private delegate* unmanaged[Cdecl] fn__0xAB6781A5F3101470; - private delegate* unmanaged[Cdecl] fn__disablePedPainAudio; - private delegate* unmanaged[Cdecl] fn__isAmbientSpeechDisabled; + private delegate* unmanaged[Cdecl] fn__disablePedPainAudio; + private delegate* unmanaged[Cdecl] fn__isAmbientSpeechDisabled; private delegate* unmanaged[Cdecl] fn__0xA8A7D434AFB4B97B; private delegate* unmanaged[Cdecl] fn__0x2ACABED337622DF2; - private delegate* unmanaged[Cdecl] fn__setSirenWithNoDriver; - private delegate* unmanaged[Cdecl] fn__setSirenKeepOn; + private delegate* unmanaged[Cdecl] fn__setSirenWithNoDriver; + private delegate* unmanaged[Cdecl] fn__setSirenKeepOn; private delegate* unmanaged[Cdecl] fn__triggerSiren; private delegate* unmanaged[Cdecl] fn__soundVehicleHornThisFrame; - private delegate* unmanaged[Cdecl] fn__setHornEnabled; + private delegate* unmanaged[Cdecl] fn__setHornEnabled; private delegate* unmanaged[Cdecl] fn__setAudioVehiclePriority; private delegate* unmanaged[Cdecl] fn__0x9D3AF56E94C9AE98; - private delegate* unmanaged[Cdecl] fn__useSirenAsHorn; + private delegate* unmanaged[Cdecl] fn__useSirenAsHorn; private delegate* unmanaged[Cdecl] fn__forceVehicleEngineAudio; private delegate* unmanaged[Cdecl] fn__preloadVehicleAudio; private delegate* unmanaged[Cdecl] fn__setVehicleStartupRevSound; private delegate* unmanaged[Cdecl] fn__resetVehicleStartupRevSound; private delegate* unmanaged[Cdecl] fn__0x97FFB4ADEED08066; - private delegate* unmanaged[Cdecl] fn__isVehicleAudiblyDamaged; + private delegate* unmanaged[Cdecl] fn__isVehicleAudiblyDamaged; private delegate* unmanaged[Cdecl] fn__setVehicleAudioEngineDamageFactor; private delegate* unmanaged[Cdecl] fn__setVehicleAudioBodyDamageFactor; - private delegate* unmanaged[Cdecl] fn__enableVehicleFanbeltDamage; - private delegate* unmanaged[Cdecl] fn__enableVehicleExhaustPops; - private delegate* unmanaged[Cdecl] fn__setVehicleBoostActive; - private delegate* unmanaged[Cdecl] fn__0x6FDDAD856E36988A; - private delegate* unmanaged[Cdecl] fn__setScriptUpdateDoorAudio; + private delegate* unmanaged[Cdecl] fn__enableVehicleFanbeltDamage; + private delegate* unmanaged[Cdecl] fn__enableVehicleExhaustPops; + private delegate* unmanaged[Cdecl] fn__setVehicleBoostActive; + private delegate* unmanaged[Cdecl] fn__0x6FDDAD856E36988A; + private delegate* unmanaged[Cdecl] fn__setScriptUpdateDoorAudio; private delegate* unmanaged[Cdecl] fn__playVehicleDoorOpenSound; private delegate* unmanaged[Cdecl] fn__playVehicleDoorCloseSound; - private delegate* unmanaged[Cdecl] fn__enableStallWarningSounds; - private delegate* unmanaged[Cdecl] fn__isGameInControlOfMusic; - private delegate* unmanaged[Cdecl] fn__setGpsActive; + private delegate* unmanaged[Cdecl] fn__enableStallWarningSounds; + private delegate* unmanaged[Cdecl] fn__isGameInControlOfMusic; + private delegate* unmanaged[Cdecl] fn__setGpsActive; private delegate* unmanaged[Cdecl] fn__playMissionCompleteAudio; - private delegate* unmanaged[Cdecl] fn__isMissionCompletePlaying; - private delegate* unmanaged[Cdecl] fn__isMissionCompleteReadyForUi; - private delegate* unmanaged[Cdecl] fn__blockDeathJingle; - private delegate* unmanaged[Cdecl] fn__startAudioScene; + private delegate* unmanaged[Cdecl] fn__isMissionCompletePlaying; + private delegate* unmanaged[Cdecl] fn__isMissionCompleteReadyForUi; + private delegate* unmanaged[Cdecl] fn__blockDeathJingle; + private delegate* unmanaged[Cdecl] fn__startAudioScene; private delegate* unmanaged[Cdecl] fn__stopAudioScene; private delegate* unmanaged[Cdecl] fn__stopAudioScenes; - private delegate* unmanaged[Cdecl] fn__isAudioSceneActive; + private delegate* unmanaged[Cdecl] fn__isAudioSceneActive; private delegate* unmanaged[Cdecl] fn__setAudioSceneVariable; private delegate* unmanaged[Cdecl] fn__setAudioScriptCleanupTime; private delegate* unmanaged[Cdecl] fn__addEntityToAudioMixGroup; private delegate* unmanaged[Cdecl] fn__removeEntityFromAudioMixGroup; - private delegate* unmanaged[Cdecl] fn__audioIsScriptedMusicPlaying; + private delegate* unmanaged[Cdecl] fn__audioIsScriptedMusicPlaying; private delegate* unmanaged[Cdecl] fn__0x2DD39BF3E2F9C47F; - private delegate* unmanaged[Cdecl] fn__prepareMusicEvent; - private delegate* unmanaged[Cdecl] fn__cancelMusicEvent; - private delegate* unmanaged[Cdecl] fn__triggerMusicEvent; - private delegate* unmanaged[Cdecl] fn__isMusicOneshotPlaying; + private delegate* unmanaged[Cdecl] fn__prepareMusicEvent; + private delegate* unmanaged[Cdecl] fn__cancelMusicEvent; + private delegate* unmanaged[Cdecl] fn__triggerMusicEvent; + private delegate* unmanaged[Cdecl] fn__isMusicOneshotPlaying; private delegate* unmanaged[Cdecl] fn__getMusicPlaytime; private delegate* unmanaged[Cdecl] fn__0x159B7318403A1CD8; private delegate* unmanaged[Cdecl] fn__recordBrokenGlass; private delegate* unmanaged[Cdecl] fn__clearAllBrokenGlass; - private delegate* unmanaged[Cdecl] fn__0x70B8EC8FC108A634; + private delegate* unmanaged[Cdecl] fn__0x70B8EC8FC108A634; private delegate* unmanaged[Cdecl] fn__0x149AEE66F0CB3A99; private delegate* unmanaged[Cdecl] fn__0x8BF907833BE275DE; private delegate* unmanaged[Cdecl] fn__forcePedPanicWalla; - private delegate* unmanaged[Cdecl] fn__prepareAlarm; - private delegate* unmanaged[Cdecl] fn__startAlarm; - private delegate* unmanaged[Cdecl] fn__stopAlarm; - private delegate* unmanaged[Cdecl] fn__stopAllAlarms; - private delegate* unmanaged[Cdecl] fn__isAlarmPlaying; + private delegate* unmanaged[Cdecl] fn__prepareAlarm; + private delegate* unmanaged[Cdecl] fn__startAlarm; + private delegate* unmanaged[Cdecl] fn__stopAlarm; + private delegate* unmanaged[Cdecl] fn__stopAllAlarms; + private delegate* unmanaged[Cdecl] fn__isAlarmPlaying; private delegate* unmanaged[Cdecl] fn__getVehicleDefaultHorn; private delegate* unmanaged[Cdecl] fn__getVehicleDefaultHornIgnoreMods; private delegate* unmanaged[Cdecl] fn__resetPedAudioFlags; - private delegate* unmanaged[Cdecl] fn__setPedAudioFootstepLoud; - private delegate* unmanaged[Cdecl] fn__setPedAudioFootstepQuiet; - private delegate* unmanaged[Cdecl] fn__overridePlayerGroundMaterial; - private delegate* unmanaged[Cdecl] fn__0xBF4DC1784BE94DFA; - private delegate* unmanaged[Cdecl] fn__overrideMicrophoneSettings; + private delegate* unmanaged[Cdecl] fn__setPedAudioFootstepLoud; + private delegate* unmanaged[Cdecl] fn__setPedAudioFootstepQuiet; + private delegate* unmanaged[Cdecl] fn__overridePlayerGroundMaterial; + private delegate* unmanaged[Cdecl] fn__0xBF4DC1784BE94DFA; + private delegate* unmanaged[Cdecl] fn__overrideMicrophoneSettings; private delegate* unmanaged[Cdecl] fn__freezeMicrophone; - private delegate* unmanaged[Cdecl] fn__distantCopCarSirens; - private delegate* unmanaged[Cdecl] fn__0x43FA0DFC5DF87815; + private delegate* unmanaged[Cdecl] fn__distantCopCarSirens; + private delegate* unmanaged[Cdecl] fn__0x43FA0DFC5DF87815; private delegate* unmanaged[Cdecl] fn__0xB81CF134AEB56FFB; - private delegate* unmanaged[Cdecl] fn__setAudioFlag; + private delegate* unmanaged[Cdecl] fn__setAudioFlag; private delegate* unmanaged[Cdecl] fn__prepareSynchronizedAudioEvent; - private delegate* unmanaged[Cdecl] fn__prepareSynchronizedAudioEventForScene; - private delegate* unmanaged[Cdecl] fn__playSynchronizedAudioEvent; - private delegate* unmanaged[Cdecl] fn__stopSynchronizedAudioEvent; + private delegate* unmanaged[Cdecl] fn__prepareSynchronizedAudioEventForScene; + private delegate* unmanaged[Cdecl] fn__playSynchronizedAudioEvent; + private delegate* unmanaged[Cdecl] fn__stopSynchronizedAudioEvent; private delegate* unmanaged[Cdecl] fn__0xC8EDE9BDBCCBA6D4; private delegate* unmanaged[Cdecl] fn__setSynchronizedAudioEventPositionThisFrame; private delegate* unmanaged[Cdecl] fn__setAudioSpecialEffectMode; @@ -27821,35 +27821,35 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getMusicVolSlider; private delegate* unmanaged[Cdecl] fn__requestTennisBanks; private delegate* unmanaged[Cdecl] fn__unrequestTennisBanks; - private delegate* unmanaged[Cdecl] fn__0xBEF34B1D9624D5DD; + private delegate* unmanaged[Cdecl] fn__0xBEF34B1D9624D5DD; private delegate* unmanaged[Cdecl] fn__stopCutsceneAudio; - private delegate* unmanaged[Cdecl] fn__hasMultiplayerAudioDataLoaded; - private delegate* unmanaged[Cdecl] fn__hasMultiplayerAudioDataUnloaded; + private delegate* unmanaged[Cdecl] fn__hasMultiplayerAudioDataLoaded; + private delegate* unmanaged[Cdecl] fn__hasMultiplayerAudioDataUnloaded; private delegate* unmanaged[Cdecl] fn__getVehicleDefaultHornVariation; private delegate* unmanaged[Cdecl] fn__setVehicleHornVariation; private delegate* unmanaged[Cdecl] fn__addScriptToRandomPed; private delegate* unmanaged[Cdecl] fn__registerObjectScriptBrain; - private delegate* unmanaged[Cdecl] fn__isObjectWithinBrainActivationRange; + private delegate* unmanaged[Cdecl] fn__isObjectWithinBrainActivationRange; private delegate* unmanaged[Cdecl] fn__registerWorldPointScriptBrain; - private delegate* unmanaged[Cdecl] fn__isWorldPointWithinBrainActivationRange; + private delegate* unmanaged[Cdecl] fn__isWorldPointWithinBrainActivationRange; private delegate* unmanaged[Cdecl] fn__enableScriptBrainSet; private delegate* unmanaged[Cdecl] fn__disableScriptBrainSet; private delegate* unmanaged[Cdecl] fn__0x0B40ED49D7D6FF84; private delegate* unmanaged[Cdecl] fn__0x4D953DF78EBF8158; private delegate* unmanaged[Cdecl] fn__0x6D6840CEE8845831; private delegate* unmanaged[Cdecl] fn__0x6E91B04E08773030; - private delegate* unmanaged[Cdecl] fn__renderScriptCams; - private delegate* unmanaged[Cdecl] fn__stopRenderingScriptCamsUsingCatchUp; - private delegate* unmanaged[Cdecl] fn__createCam; - private delegate* unmanaged[Cdecl] fn__createCamWithParams; - private delegate* unmanaged[Cdecl] fn__createCamera; - private delegate* unmanaged[Cdecl] fn__createCameraWithParams; - private delegate* unmanaged[Cdecl] fn__destroyCam; - private delegate* unmanaged[Cdecl] fn__destroyAllCams; - private delegate* unmanaged[Cdecl] fn__doesCamExist; - private delegate* unmanaged[Cdecl] fn__setCamActive; - private delegate* unmanaged[Cdecl] fn__isCamActive; - private delegate* unmanaged[Cdecl] fn__isCamRendering; + private delegate* unmanaged[Cdecl] fn__renderScriptCams; + private delegate* unmanaged[Cdecl] fn__stopRenderingScriptCamsUsingCatchUp; + private delegate* unmanaged[Cdecl] fn__createCam; + private delegate* unmanaged[Cdecl] fn__createCamWithParams; + private delegate* unmanaged[Cdecl] fn__createCamera; + private delegate* unmanaged[Cdecl] fn__createCameraWithParams; + private delegate* unmanaged[Cdecl] fn__destroyCam; + private delegate* unmanaged[Cdecl] fn__destroyAllCams; + private delegate* unmanaged[Cdecl] fn__doesCamExist; + private delegate* unmanaged[Cdecl] fn__setCamActive; + private delegate* unmanaged[Cdecl] fn__isCamActive; + private delegate* unmanaged[Cdecl] fn__isCamRendering; private delegate* unmanaged[Cdecl] fn__getRenderingCam; private delegate* unmanaged[Cdecl] fn__getCamCoord; private delegate* unmanaged[Cdecl] fn__getCamRot; @@ -27869,7 +27869,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setCamFarDof; private delegate* unmanaged[Cdecl] fn__setCamDofStrength; private delegate* unmanaged[Cdecl] fn__setCamDofPlanes; - private delegate* unmanaged[Cdecl] fn__setCamUseShallowDofMode; + private delegate* unmanaged[Cdecl] fn__setCamUseShallowDofMode; private delegate* unmanaged[Cdecl] fn__setUseHiDof; private delegate* unmanaged[Cdecl] fn__0xF55E4046F6F831DC; private delegate* unmanaged[Cdecl] fn__0xE111A7C0D200CBC5; @@ -27878,21 +27878,21 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setCamDofFocusDistanceBias; private delegate* unmanaged[Cdecl] fn__setCamDofMaxNearInFocusDistance; private delegate* unmanaged[Cdecl] fn__setCamDofMaxNearInFocusDistanceBlendLevel; - private delegate* unmanaged[Cdecl] fn__attachCamToEntity; - private delegate* unmanaged[Cdecl] fn__attachCamToPedBone; - private delegate* unmanaged[Cdecl] fn__attachCamToPedBone2; + private delegate* unmanaged[Cdecl] fn__attachCamToEntity; + private delegate* unmanaged[Cdecl] fn__attachCamToPedBone; + private delegate* unmanaged[Cdecl] fn__attachCamToPedBone2; private delegate* unmanaged[Cdecl] fn__0x202A5ED9CE01D6E7; - private delegate* unmanaged[Cdecl] fn__attachCamToVehicleBone; + private delegate* unmanaged[Cdecl] fn__attachCamToVehicleBone; private delegate* unmanaged[Cdecl] fn__detachCam; - private delegate* unmanaged[Cdecl] fn__setCamInheritRollVehicle; + private delegate* unmanaged[Cdecl] fn__setCamInheritRollVehicle; private delegate* unmanaged[Cdecl] fn__pointCamAtCoord; - private delegate* unmanaged[Cdecl] fn__pointCamAtEntity; - private delegate* unmanaged[Cdecl] fn__pointCamAtPedBone; + private delegate* unmanaged[Cdecl] fn__pointCamAtEntity; + private delegate* unmanaged[Cdecl] fn__pointCamAtPedBone; private delegate* unmanaged[Cdecl] fn__stopCamPointing; - private delegate* unmanaged[Cdecl] fn__setCamAffectsAiming; - private delegate* unmanaged[Cdecl] fn__0x661B5C8654ADD825; - private delegate* unmanaged[Cdecl] fn__0xA2767257A320FC82; - private delegate* unmanaged[Cdecl] fn__0x271017B9BA825366; + private delegate* unmanaged[Cdecl] fn__setCamAffectsAiming; + private delegate* unmanaged[Cdecl] fn__0x661B5C8654ADD825; + private delegate* unmanaged[Cdecl] fn__0xA2767257A320FC82; + private delegate* unmanaged[Cdecl] fn__0x271017B9BA825366; private delegate* unmanaged[Cdecl] fn__setCamDebugName; private delegate* unmanaged[Cdecl] fn__getDebugCamera; private delegate* unmanaged[Cdecl] fn__addCamSplineNode; @@ -27910,38 +27910,38 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__overrideCamSplineVelocity; private delegate* unmanaged[Cdecl] fn__overrideCamSplineMotionBlur; private delegate* unmanaged[Cdecl] fn__setCamSplineNodeExtraFlags; - private delegate* unmanaged[Cdecl] fn__isCamSplinePaused; + private delegate* unmanaged[Cdecl] fn__isCamSplinePaused; private delegate* unmanaged[Cdecl] fn__setCamActiveWithInterp; - private delegate* unmanaged[Cdecl] fn__isCamInterpolating; + private delegate* unmanaged[Cdecl] fn__isCamInterpolating; private delegate* unmanaged[Cdecl] fn__shakeCam; private delegate* unmanaged[Cdecl] fn__animatedShakeCam; - private delegate* unmanaged[Cdecl] fn__isCamShaking; + private delegate* unmanaged[Cdecl] fn__isCamShaking; private delegate* unmanaged[Cdecl] fn__setCamShakeAmplitude; - private delegate* unmanaged[Cdecl] fn__stopCamShaking; + private delegate* unmanaged[Cdecl] fn__stopCamShaking; private delegate* unmanaged[Cdecl] fn__shakeScriptGlobal; private delegate* unmanaged[Cdecl] fn__animatedShakeScriptGlobal; - private delegate* unmanaged[Cdecl] fn__isScriptGlobalShaking; - private delegate* unmanaged[Cdecl] fn__stopScriptGlobalShaking; + private delegate* unmanaged[Cdecl] fn__isScriptGlobalShaking; + private delegate* unmanaged[Cdecl] fn__stopScriptGlobalShaking; private delegate* unmanaged[Cdecl] fn__0x5D96CFB59DA076A0; - private delegate* unmanaged[Cdecl] fn__playCamAnim; - private delegate* unmanaged[Cdecl] fn__isCamPlayingAnim; + private delegate* unmanaged[Cdecl] fn__playCamAnim; + private delegate* unmanaged[Cdecl] fn__isCamPlayingAnim; private delegate* unmanaged[Cdecl] fn__setCamAnimCurrentPhase; private delegate* unmanaged[Cdecl] fn__getCamAnimCurrentPhase; - private delegate* unmanaged[Cdecl] fn__playSynchronizedCamAnim; + private delegate* unmanaged[Cdecl] fn__playSynchronizedCamAnim; private delegate* unmanaged[Cdecl] fn__setFlyCamHorizontalResponse; private delegate* unmanaged[Cdecl] fn__setFlyCamVerticalSpeedMultiplier; private delegate* unmanaged[Cdecl] fn__setFlyCamMaxHeight; private delegate* unmanaged[Cdecl] fn__setFlyCamCoordAndConstrain; private delegate* unmanaged[Cdecl] fn__0xC8B5C4A79CC18B94; - private delegate* unmanaged[Cdecl] fn__0x5C48A1D6E3B33179; - private delegate* unmanaged[Cdecl] fn__isScreenFadedOut; - private delegate* unmanaged[Cdecl] fn__isScreenFadedIn; - private delegate* unmanaged[Cdecl] fn__isScreenFadingOut; - private delegate* unmanaged[Cdecl] fn__isScreenFadingIn; + private delegate* unmanaged[Cdecl] fn__0x5C48A1D6E3B33179; + private delegate* unmanaged[Cdecl] fn__isScreenFadedOut; + private delegate* unmanaged[Cdecl] fn__isScreenFadedIn; + private delegate* unmanaged[Cdecl] fn__isScreenFadingOut; + private delegate* unmanaged[Cdecl] fn__isScreenFadingIn; private delegate* unmanaged[Cdecl] fn__doScreenFadeIn; private delegate* unmanaged[Cdecl] fn__doScreenFadeOut; - private delegate* unmanaged[Cdecl] fn__setWidescreenBorders; - private delegate* unmanaged[Cdecl] fn__0x4879E4FE39074CDF; + private delegate* unmanaged[Cdecl] fn__setWidescreenBorders; + private delegate* unmanaged[Cdecl] fn__0x4879E4FE39074CDF; private delegate* unmanaged[Cdecl] fn__getGameplayCamCoord; private delegate* unmanaged[Cdecl] fn__getGameplayCamRot; private delegate* unmanaged[Cdecl] fn__getGameplayCamFov; @@ -27955,28 +27955,28 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x28B022A17B068A3A; private delegate* unmanaged[Cdecl] fn__setGameplayCamRawYaw; private delegate* unmanaged[Cdecl] fn__setGameplayCamRawPitch; - private delegate* unmanaged[Cdecl] fn__0x469F2ECDEC046337; + private delegate* unmanaged[Cdecl] fn__0x469F2ECDEC046337; private delegate* unmanaged[Cdecl] fn__shakeGameplayCam; - private delegate* unmanaged[Cdecl] fn__isGameplayCamShaking; + private delegate* unmanaged[Cdecl] fn__isGameplayCamShaking; private delegate* unmanaged[Cdecl] fn__setGameplayCamShakeAmplitude; - private delegate* unmanaged[Cdecl] fn__stopGameplayCamShaking; + private delegate* unmanaged[Cdecl] fn__stopGameplayCamShaking; private delegate* unmanaged[Cdecl] fn__setGameplayCamFollowPedThisUpdate; - private delegate* unmanaged[Cdecl] fn__isGameplayCamRendering; - private delegate* unmanaged[Cdecl] fn__0x3044240D2E0FA842; - private delegate* unmanaged[Cdecl] fn__0x705A276EBFF3133D; - private delegate* unmanaged[Cdecl] fn__0xDB90C6CCA48940F1; + private delegate* unmanaged[Cdecl] fn__isGameplayCamRendering; + private delegate* unmanaged[Cdecl] fn__0x3044240D2E0FA842; + private delegate* unmanaged[Cdecl] fn__0x705A276EBFF3133D; + private delegate* unmanaged[Cdecl] fn__0xDB90C6CCA48940F1; private delegate* unmanaged[Cdecl] fn__enableCrosshairThisFrame; - private delegate* unmanaged[Cdecl] fn__isGameplayCamLookingBehind; + private delegate* unmanaged[Cdecl] fn__isGameplayCamLookingBehind; private delegate* unmanaged[Cdecl] fn__disableCamCollisionForEntity; private delegate* unmanaged[Cdecl] fn__disableCamCollisionForObject; private delegate* unmanaged[Cdecl] fn__0xA7092AFE81944852; private delegate* unmanaged[Cdecl] fn__0xFD3151CD37EA2245; private delegate* unmanaged[Cdecl] fn__0xB1381B97F70C7B30; private delegate* unmanaged[Cdecl] fn__0xDD79DF9F4D26E1C9; - private delegate* unmanaged[Cdecl] fn__isSphereVisible; - private delegate* unmanaged[Cdecl] fn__isFollowPedCamActive; - private delegate* unmanaged[Cdecl] fn__setFollowPedCamThisUpdate; - private delegate* unmanaged[Cdecl] fn__0x271401846BD26E92; + private delegate* unmanaged[Cdecl] fn__isSphereVisible; + private delegate* unmanaged[Cdecl] fn__isFollowPedCamActive; + private delegate* unmanaged[Cdecl] fn__setFollowPedCamThisUpdate; + private delegate* unmanaged[Cdecl] fn__0x271401846BD26E92; private delegate* unmanaged[Cdecl] fn__0xC8391C309684595A; private delegate* unmanaged[Cdecl] fn__clampGameplayCamYaw; private delegate* unmanaged[Cdecl] fn__clampGameplayCamPitch; @@ -27988,10 +27988,10 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getFollowPedCamZoomLevel; private delegate* unmanaged[Cdecl] fn__getFollowPedCamViewMode; private delegate* unmanaged[Cdecl] fn__setFollowPedCamViewMode; - private delegate* unmanaged[Cdecl] fn__isFollowVehicleCamActive; - private delegate* unmanaged[Cdecl] fn__0x91EF6EE6419E5B97; - private delegate* unmanaged[Cdecl] fn__0x9DFE13ECDC1EC196; - private delegate* unmanaged[Cdecl] fn__0x79C0E43EB9B944E2; + private delegate* unmanaged[Cdecl] fn__isFollowVehicleCamActive; + private delegate* unmanaged[Cdecl] fn__0x91EF6EE6419E5B97; + private delegate* unmanaged[Cdecl] fn__0x9DFE13ECDC1EC196; + private delegate* unmanaged[Cdecl] fn__0x79C0E43EB9B944E2; private delegate* unmanaged[Cdecl] fn__getFollowVehicleCamZoomLevel; private delegate* unmanaged[Cdecl] fn__setFollowVehicleCamZoomLevel; private delegate* unmanaged[Cdecl] fn__getFollowVehicleCamViewMode; @@ -28003,9 +28003,9 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setGameplayCamHash; private delegate* unmanaged[Cdecl] fn__0x0AA27680A0BD43FA; private delegate* unmanaged[Cdecl] fn__setFollowTurretSeatCam; - private delegate* unmanaged[Cdecl] fn__isAimCamActive; - private delegate* unmanaged[Cdecl] fn__isAimCamThirdPersonActive; - private delegate* unmanaged[Cdecl] fn__isFirstPersonAimCamActive; + private delegate* unmanaged[Cdecl] fn__isAimCamActive; + private delegate* unmanaged[Cdecl] fn__isAimCamThirdPersonActive; + private delegate* unmanaged[Cdecl] fn__isFirstPersonAimCamActive; private delegate* unmanaged[Cdecl] fn__disableAimCamThisUpdate; private delegate* unmanaged[Cdecl] fn__getFirstPersonAimCamZoomFactor; private delegate* unmanaged[Cdecl] fn__setFirstPersonAimCamZoomFactor; @@ -28014,7 +28014,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setFirstPersonCamPitchRange; private delegate* unmanaged[Cdecl] fn__setFirstPersonAimCamNearClipThisUpdate; private delegate* unmanaged[Cdecl] fn__setThirdPersonAimCamNearClipThisUpdate; - private delegate* unmanaged[Cdecl] fn__0x4008EDF7D6E48175; + private delegate* unmanaged[Cdecl] fn__0x4008EDF7D6E48175; private delegate* unmanaged[Cdecl] fn__0x380B4968D1E09E55; private delegate* unmanaged[Cdecl] fn__getFinalRenderedCamCoord; private delegate* unmanaged[Cdecl] fn__getFinalRenderedCamRot; @@ -28027,43 +28027,43 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getFinalRenderedCamFarDof; private delegate* unmanaged[Cdecl] fn__getFinalRenderedCamMotionBlurStrength; private delegate* unmanaged[Cdecl] fn__setGameplayCoordHint; - private delegate* unmanaged[Cdecl] fn__setGameplayPedHint; - private delegate* unmanaged[Cdecl] fn__setGameplayVehicleHint; - private delegate* unmanaged[Cdecl] fn__setGameplayObjectHint; - private delegate* unmanaged[Cdecl] fn__setGameplayEntityHint; - private delegate* unmanaged[Cdecl] fn__isGameplayHintActive; - private delegate* unmanaged[Cdecl] fn__stopGameplayHint; - private delegate* unmanaged[Cdecl] fn__0xCCD078C2665D2973; - private delegate* unmanaged[Cdecl] fn__0x247ACBC4ABBC9D1C; + private delegate* unmanaged[Cdecl] fn__setGameplayPedHint; + private delegate* unmanaged[Cdecl] fn__setGameplayVehicleHint; + private delegate* unmanaged[Cdecl] fn__setGameplayObjectHint; + private delegate* unmanaged[Cdecl] fn__setGameplayEntityHint; + private delegate* unmanaged[Cdecl] fn__isGameplayHintActive; + private delegate* unmanaged[Cdecl] fn__stopGameplayHint; + private delegate* unmanaged[Cdecl] fn__0xCCD078C2665D2973; + private delegate* unmanaged[Cdecl] fn__0x247ACBC4ABBC9D1C; private delegate* unmanaged[Cdecl] fn__0xBF72910D0F26F025; private delegate* unmanaged[Cdecl] fn__setGameplayHintFov; private delegate* unmanaged[Cdecl] fn__setGameplayHintFollowDistanceScalar; private delegate* unmanaged[Cdecl] fn__setGameplayHintBaseOrbitPitchOffset; private delegate* unmanaged[Cdecl] fn__setGameplayHintAnimOffsetx; private delegate* unmanaged[Cdecl] fn__setGameplayHintAnimOffsety; - private delegate* unmanaged[Cdecl] fn__setGameplayHintAnimCloseup; - private delegate* unmanaged[Cdecl] fn__setCinematicButtonActive; - private delegate* unmanaged[Cdecl] fn__isCinematicCamRendering; + private delegate* unmanaged[Cdecl] fn__setGameplayHintAnimCloseup; + private delegate* unmanaged[Cdecl] fn__setCinematicButtonActive; + private delegate* unmanaged[Cdecl] fn__isCinematicCamRendering; private delegate* unmanaged[Cdecl] fn__shakeCinematicCam; - private delegate* unmanaged[Cdecl] fn__isCinematicCamShaking; + private delegate* unmanaged[Cdecl] fn__isCinematicCamShaking; private delegate* unmanaged[Cdecl] fn__setCinematicCamShakeAmplitude; - private delegate* unmanaged[Cdecl] fn__stopCinematicCamShaking; + private delegate* unmanaged[Cdecl] fn__stopCinematicCamShaking; private delegate* unmanaged[Cdecl] fn__disableVehicleFirstPersonCamThisFrame; private delegate* unmanaged[Cdecl] fn__0x62ECFCFDEE7885D6; private delegate* unmanaged[Cdecl] fn__invalidateVehicleIdleCam; private delegate* unmanaged[Cdecl] fn__invalidateIdleCam; - private delegate* unmanaged[Cdecl] fn__isCinematicIdleCamRendering; - private delegate* unmanaged[Cdecl] fn__isInVehicleCamDisabled; + private delegate* unmanaged[Cdecl] fn__isCinematicIdleCamRendering; + private delegate* unmanaged[Cdecl] fn__isInVehicleCamDisabled; private delegate* unmanaged[Cdecl] fn__createCinematicShot; - private delegate* unmanaged[Cdecl] fn__isCinematicShotActive; + private delegate* unmanaged[Cdecl] fn__isCinematicShotActive; private delegate* unmanaged[Cdecl] fn__stopCinematicShot; - private delegate* unmanaged[Cdecl] fn__forceCinematicRenderingThisUpdate; + private delegate* unmanaged[Cdecl] fn__forceCinematicRenderingThisUpdate; private delegate* unmanaged[Cdecl] fn__0xDC9DA9E8789F5246; - private delegate* unmanaged[Cdecl] fn__setCinematicModeActive; + private delegate* unmanaged[Cdecl] fn__setCinematicModeActive; private delegate* unmanaged[Cdecl] fn__0x1F2300CB7FA7B7F6; private delegate* unmanaged[Cdecl] fn__0x17FCA7199A530203; private delegate* unmanaged[Cdecl] fn__0xD7360051C885628B; - private delegate* unmanaged[Cdecl] fn__isCinematicCamActive; + private delegate* unmanaged[Cdecl] fn__isCinematicCamActive; private delegate* unmanaged[Cdecl] fn__0x7B8A361C1813FBEF; private delegate* unmanaged[Cdecl] fn__stopCutsceneCamShaking; private delegate* unmanaged[Cdecl] fn__0x324C5AA411DA7737; @@ -28078,7 +28078,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x62374889A4D59F72; private delegate* unmanaged[Cdecl] fn__replayFreeCamGetMaxRange; private delegate* unmanaged[Cdecl] fn__setClockTime; - private delegate* unmanaged[Cdecl] fn__pauseClock; + private delegate* unmanaged[Cdecl] fn__pauseClock; private delegate* unmanaged[Cdecl] fn__advanceClockTimeTo; private delegate* unmanaged[Cdecl] fn__addToClockTime; private delegate* unmanaged[Cdecl] fn__getClockHours; @@ -28096,92 +28096,92 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__requestCutscene; private delegate* unmanaged[Cdecl] fn__requestCutsceneWithPlaybackList; private delegate* unmanaged[Cdecl] fn__removeCutscene; - private delegate* unmanaged[Cdecl] fn__hasCutsceneLoaded; - private delegate* unmanaged[Cdecl] fn__hasThisCutsceneLoaded; + private delegate* unmanaged[Cdecl] fn__hasCutsceneLoaded; + private delegate* unmanaged[Cdecl] fn__hasThisCutsceneLoaded; private delegate* unmanaged[Cdecl] fn__0x8D9DF6ECA8768583; - private delegate* unmanaged[Cdecl] fn__canRequestAssetsForCutsceneEntity; - private delegate* unmanaged[Cdecl] fn__isCutscenePlaybackFlagSet; + private delegate* unmanaged[Cdecl] fn__canRequestAssetsForCutsceneEntity; + private delegate* unmanaged[Cdecl] fn__isCutscenePlaybackFlagSet; private delegate* unmanaged[Cdecl] fn__setCutsceneEntityStreamingFlags; private delegate* unmanaged[Cdecl] fn__requestCutFile; - private delegate* unmanaged[Cdecl] fn__hasCutFileLoaded; + private delegate* unmanaged[Cdecl] fn__hasCutFileLoaded; private delegate* unmanaged[Cdecl] fn__removeCutFile; private delegate* unmanaged[Cdecl] fn__getCutFileNumSections; private delegate* unmanaged[Cdecl] fn__startCutscene; private delegate* unmanaged[Cdecl] fn__startCutsceneAtCoords; - private delegate* unmanaged[Cdecl] fn__stopCutscene; + private delegate* unmanaged[Cdecl] fn__stopCutscene; private delegate* unmanaged[Cdecl] fn__stopCutsceneImmediately; private delegate* unmanaged[Cdecl] fn__setCutsceneOrigin; private delegate* unmanaged[Cdecl] fn__0x011883F41211432A; private delegate* unmanaged[Cdecl] fn__getCutsceneTime; private delegate* unmanaged[Cdecl] fn__getCutsceneTotalDuration; private delegate* unmanaged[Cdecl] fn__0x971D7B15BCDBEF99; - private delegate* unmanaged[Cdecl] fn__wasCutsceneSkipped; - private delegate* unmanaged[Cdecl] fn__hasCutsceneFinished; - private delegate* unmanaged[Cdecl] fn__isCutsceneActive; - private delegate* unmanaged[Cdecl] fn__isCutscenePlaying; + private delegate* unmanaged[Cdecl] fn__wasCutsceneSkipped; + private delegate* unmanaged[Cdecl] fn__hasCutsceneFinished; + private delegate* unmanaged[Cdecl] fn__isCutsceneActive; + private delegate* unmanaged[Cdecl] fn__isCutscenePlaying; private delegate* unmanaged[Cdecl] fn__getCutsceneSectionPlaying; private delegate* unmanaged[Cdecl] fn__getEntityIndexOfCutsceneEntity; private delegate* unmanaged[Cdecl] fn__0x583DF8E3D4AFBD98; - private delegate* unmanaged[Cdecl] fn__0x4CEBC1ED31E8925E; + private delegate* unmanaged[Cdecl] fn__0x4CEBC1ED31E8925E; private delegate* unmanaged[Cdecl] fn__0x4FCD976DA686580C; private delegate* unmanaged[Cdecl] fn__registerEntityForCutscene; private delegate* unmanaged[Cdecl] fn__getEntityIndexOfRegisteredEntity; private delegate* unmanaged[Cdecl] fn__0x7F96F23FA9B73327; private delegate* unmanaged[Cdecl] fn__setCutsceneTriggerArea; - private delegate* unmanaged[Cdecl] fn__canSetEnterStateForRegisteredEntity; - private delegate* unmanaged[Cdecl] fn__canSetExitStateForRegisteredEntity; - private delegate* unmanaged[Cdecl] fn__canSetExitStateForCamera; - private delegate* unmanaged[Cdecl] fn__0xC61B86C9F61EB404; - private delegate* unmanaged[Cdecl] fn__setCutsceneFadeValues; - private delegate* unmanaged[Cdecl] fn__0x20746F7B1032A3C7; - private delegate* unmanaged[Cdecl] fn__0x06EE9048FD080382; + private delegate* unmanaged[Cdecl] fn__canSetEnterStateForRegisteredEntity; + private delegate* unmanaged[Cdecl] fn__canSetExitStateForRegisteredEntity; + private delegate* unmanaged[Cdecl] fn__canSetExitStateForCamera; + private delegate* unmanaged[Cdecl] fn__0xC61B86C9F61EB404; + private delegate* unmanaged[Cdecl] fn__setCutsceneFadeValues; + private delegate* unmanaged[Cdecl] fn__0x20746F7B1032A3C7; + private delegate* unmanaged[Cdecl] fn__0x06EE9048FD080382; private delegate* unmanaged[Cdecl] fn__0xA0FE76168A189DDB; - private delegate* unmanaged[Cdecl] fn__0x2F137B508DE238F2; - private delegate* unmanaged[Cdecl] fn__0xE36A98D8AB3D3C66; + private delegate* unmanaged[Cdecl] fn__0x2F137B508DE238F2; + private delegate* unmanaged[Cdecl] fn__0xE36A98D8AB3D3C66; private delegate* unmanaged[Cdecl] fn__0x5EDEF0CF8C1DAB3C; - private delegate* unmanaged[Cdecl] fn__setCutsceneCanBeSkipped; + private delegate* unmanaged[Cdecl] fn__setCutsceneCanBeSkipped; private delegate* unmanaged[Cdecl] fn__registerSynchronisedScriptSpeech; private delegate* unmanaged[Cdecl] fn__setCutscenePedComponentVariation; private delegate* unmanaged[Cdecl] fn__setCutscenePedComponentVariationFromPed; - private delegate* unmanaged[Cdecl] fn__doesCutsceneEntityExist; + private delegate* unmanaged[Cdecl] fn__doesCutsceneEntityExist; private delegate* unmanaged[Cdecl] fn__setCutscenePedPropVariation; - private delegate* unmanaged[Cdecl] fn__hasCutsceneCutThisFrame; + private delegate* unmanaged[Cdecl] fn__hasCutsceneCutThisFrame; private delegate* unmanaged[Cdecl] fn__datafileWatchRequestId; private delegate* unmanaged[Cdecl] fn__datafileClearWatchList; - private delegate* unmanaged[Cdecl] fn__datafileIsValidRequestId; - private delegate* unmanaged[Cdecl] fn__datafileHasLoadedFileData; - private delegate* unmanaged[Cdecl] fn__datafileHasValidFileData; - private delegate* unmanaged[Cdecl] fn__datafileSelectActiveFile; - private delegate* unmanaged[Cdecl] fn__datafileDeleteRequestedFile; - private delegate* unmanaged[Cdecl] fn__ugcCreateContent; - private delegate* unmanaged[Cdecl] fn__ugcCreateMission; - private delegate* unmanaged[Cdecl] fn__ugcUpdateContent; - private delegate* unmanaged[Cdecl] fn__ugcUpdateMission; - private delegate* unmanaged[Cdecl] fn__ugcSetPlayerData; - private delegate* unmanaged[Cdecl] fn__datafileSelectUgcData; - private delegate* unmanaged[Cdecl] fn__datafileSelectUgcStats; - private delegate* unmanaged[Cdecl] fn__datafileSelectUgcPlayerData; - private delegate* unmanaged[Cdecl] fn__datafileSelectCreatorStats; - private delegate* unmanaged[Cdecl] fn__datafileLoadOfflineUgc; + private delegate* unmanaged[Cdecl] fn__datafileIsValidRequestId; + private delegate* unmanaged[Cdecl] fn__datafileHasLoadedFileData; + private delegate* unmanaged[Cdecl] fn__datafileHasValidFileData; + private delegate* unmanaged[Cdecl] fn__datafileSelectActiveFile; + private delegate* unmanaged[Cdecl] fn__datafileDeleteRequestedFile; + private delegate* unmanaged[Cdecl] fn__ugcCreateContent; + private delegate* unmanaged[Cdecl] fn__ugcCreateMission; + private delegate* unmanaged[Cdecl] fn__ugcUpdateContent; + private delegate* unmanaged[Cdecl] fn__ugcUpdateMission; + private delegate* unmanaged[Cdecl] fn__ugcSetPlayerData; + private delegate* unmanaged[Cdecl] fn__datafileSelectUgcData; + private delegate* unmanaged[Cdecl] fn__datafileSelectUgcStats; + private delegate* unmanaged[Cdecl] fn__datafileSelectUgcPlayerData; + private delegate* unmanaged[Cdecl] fn__datafileSelectCreatorStats; + private delegate* unmanaged[Cdecl] fn__datafileLoadOfflineUgc; private delegate* unmanaged[Cdecl] fn__datafileCreate; private delegate* unmanaged[Cdecl] fn__datafileDelete; private delegate* unmanaged[Cdecl] fn__datafileStoreMissionHeader; private delegate* unmanaged[Cdecl] fn__datafileFlushMissionHeader; private delegate* unmanaged[Cdecl] fn__datafileGetFileDict; - private delegate* unmanaged[Cdecl] fn__datafileStartSaveToCloud; - private delegate* unmanaged[Cdecl] fn__datafileUpdateSaveToCloud; - private delegate* unmanaged[Cdecl] fn__datafileIsSavePending; + private delegate* unmanaged[Cdecl] fn__datafileStartSaveToCloud; + private delegate* unmanaged[Cdecl] fn__datafileUpdateSaveToCloud; + private delegate* unmanaged[Cdecl] fn__datafileIsSavePending; private delegate* unmanaged[Cdecl] fn__0xA6EEF01087181EDD; private delegate* unmanaged[Cdecl] fn__0x6AD0BD5E087866CB; private delegate* unmanaged[Cdecl] fn__0xDBF860CF1DB8E599; - private delegate* unmanaged[Cdecl] fn__datadictSetBool; + private delegate* unmanaged[Cdecl] fn__datadictSetBool; private delegate* unmanaged[Cdecl] fn__datadictSetInt; private delegate* unmanaged[Cdecl] fn__datadictSetFloat; private delegate* unmanaged[Cdecl] fn__datadictSetString; private delegate* unmanaged[Cdecl] fn__datadictSetVector; private delegate* unmanaged[Cdecl] fn__datadictCreateDict; private delegate* unmanaged[Cdecl] fn__datadictCreateArray; - private delegate* unmanaged[Cdecl] fn__datadictGetBool; + private delegate* unmanaged[Cdecl] fn__datadictGetBool; private delegate* unmanaged[Cdecl] fn__datadictGetInt; private delegate* unmanaged[Cdecl] fn__datadictGetFloat; private delegate* unmanaged[Cdecl] fn__datadictGetString; @@ -28189,13 +28189,13 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__datadictGetDict; private delegate* unmanaged[Cdecl] fn__datadictGetArray; private delegate* unmanaged[Cdecl] fn__datadictGetType; - private delegate* unmanaged[Cdecl] fn__dataarrayAddBool; + private delegate* unmanaged[Cdecl] fn__dataarrayAddBool; private delegate* unmanaged[Cdecl] fn__dataarrayAddInt; private delegate* unmanaged[Cdecl] fn__dataarrayAddFloat; private delegate* unmanaged[Cdecl] fn__dataarrayAddString; private delegate* unmanaged[Cdecl] fn__dataarrayAddVector; private delegate* unmanaged[Cdecl] fn__dataarrayAddDict; - private delegate* unmanaged[Cdecl] fn__dataarrayGetBool; + private delegate* unmanaged[Cdecl] fn__dataarrayGetBool; private delegate* unmanaged[Cdecl] fn__dataarrayGetInt; private delegate* unmanaged[Cdecl] fn__dataarrayGetFloat; private delegate* unmanaged[Cdecl] fn__dataarrayGetString; @@ -28203,42 +28203,42 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__dataarrayGetDict; private delegate* unmanaged[Cdecl] fn__dataarrayGetCount; private delegate* unmanaged[Cdecl] fn__dataarrayGetType; - private delegate* unmanaged[Cdecl] fn__decorSetTime; - private delegate* unmanaged[Cdecl] fn__decorSetBool; - private delegate* unmanaged[Cdecl] fn__decorSetFloat; - private delegate* unmanaged[Cdecl] fn__decorSetInt; - private delegate* unmanaged[Cdecl] fn__decorGetBool; + private delegate* unmanaged[Cdecl] fn__decorSetTime; + private delegate* unmanaged[Cdecl] fn__decorSetBool; + private delegate* unmanaged[Cdecl] fn__decorSetFloat; + private delegate* unmanaged[Cdecl] fn__decorSetInt; + private delegate* unmanaged[Cdecl] fn__decorGetBool; private delegate* unmanaged[Cdecl] fn__decorGetFloat; private delegate* unmanaged[Cdecl] fn__decorGetInt; - private delegate* unmanaged[Cdecl] fn__decorExistOn; - private delegate* unmanaged[Cdecl] fn__decorRemove; + private delegate* unmanaged[Cdecl] fn__decorExistOn; + private delegate* unmanaged[Cdecl] fn__decorRemove; private delegate* unmanaged[Cdecl] fn__decorRegister; - private delegate* unmanaged[Cdecl] fn__decorIsRegisteredAsType; + private delegate* unmanaged[Cdecl] fn__decorIsRegisteredAsType; private delegate* unmanaged[Cdecl] fn__decorRegisterLock; - private delegate* unmanaged[Cdecl] fn__0x241FCA5B1AA14F75; - private delegate* unmanaged[Cdecl] fn__isDlcPresent; - private delegate* unmanaged[Cdecl] fn__0xF2E07819EF1A5289; - private delegate* unmanaged[Cdecl] fn__0x9489659372A81585; - private delegate* unmanaged[Cdecl] fn__0xA213B11DFF526300; - private delegate* unmanaged[Cdecl] fn__getExtraContentPackHasBeenInstalled; - private delegate* unmanaged[Cdecl] fn__getIsLoadingScreenActive; - private delegate* unmanaged[Cdecl] fn__0xC4637A6D03C24CC3; - private delegate* unmanaged[Cdecl] fn__hasCloudRequestsFinished; + private delegate* unmanaged[Cdecl] fn__0x241FCA5B1AA14F75; + private delegate* unmanaged[Cdecl] fn__isDlcPresent; + private delegate* unmanaged[Cdecl] fn__0xF2E07819EF1A5289; + private delegate* unmanaged[Cdecl] fn__0x9489659372A81585; + private delegate* unmanaged[Cdecl] fn__0xA213B11DFF526300; + private delegate* unmanaged[Cdecl] fn__getExtraContentPackHasBeenInstalled; + private delegate* unmanaged[Cdecl] fn__getIsLoadingScreenActive; + private delegate* unmanaged[Cdecl] fn__0xC4637A6D03C24CC3; + private delegate* unmanaged[Cdecl] fn__hasCloudRequestsFinished; private delegate* unmanaged[Cdecl] fn__onEnterSp; private delegate* unmanaged[Cdecl] fn__onEnterMp; - private delegate* unmanaged[Cdecl] fn__doesEntityExist; - private delegate* unmanaged[Cdecl] fn__doesEntityBelongToThisScript; - private delegate* unmanaged[Cdecl] fn__doesEntityHaveDrawable; - private delegate* unmanaged[Cdecl] fn__doesEntityHavePhysics; - private delegate* unmanaged[Cdecl] fn__hasEntityAnimFinished; - private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyObject; - private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyPed; - private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyVehicle; - private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByEntity; - private delegate* unmanaged[Cdecl] fn__hasEntityClearLosToEntity; + private delegate* unmanaged[Cdecl] fn__doesEntityExist; + private delegate* unmanaged[Cdecl] fn__doesEntityBelongToThisScript; + private delegate* unmanaged[Cdecl] fn__doesEntityHaveDrawable; + private delegate* unmanaged[Cdecl] fn__doesEntityHavePhysics; + private delegate* unmanaged[Cdecl] fn__hasEntityAnimFinished; + private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyObject; + private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyPed; + private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByAnyVehicle; + private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByEntity; + private delegate* unmanaged[Cdecl] fn__hasEntityClearLosToEntity; private delegate* unmanaged[Cdecl] fn__hasEntityClearLosToEntity2; - private delegate* unmanaged[Cdecl] fn__hasEntityClearLosToEntityInFront; - private delegate* unmanaged[Cdecl] fn__hasEntityCollidedWithAnything; + private delegate* unmanaged[Cdecl] fn__hasEntityClearLosToEntityInFront; + private delegate* unmanaged[Cdecl] fn__hasEntityCollidedWithAnything; private delegate* unmanaged[Cdecl] fn__getLastMaterialHitByEntity; private delegate* unmanaged[Cdecl] fn__getCollisionNormalOfLastHitForEntity; private delegate* unmanaged[Cdecl] fn__forceEntityAiAndAnimationUpdate; @@ -28246,7 +28246,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getEntityAnimTotalTime; private delegate* unmanaged[Cdecl] fn__getAnimDuration; private delegate* unmanaged[Cdecl] fn__getEntityAttachedTo; - private delegate* unmanaged[Cdecl] fn__getEntityCoords; + private delegate* unmanaged[Cdecl] fn__getEntityCoords; private delegate* unmanaged[Cdecl] fn__getEntityForwardVector; private delegate* unmanaged[Cdecl] fn__getEntityForwardX; private delegate* unmanaged[Cdecl] fn__getEntityForwardY; @@ -28255,7 +28255,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getEntityHealth; private delegate* unmanaged[Cdecl] fn__getEntityMaxHealth; private delegate* unmanaged[Cdecl] fn__setEntityMaxHealth; - private delegate* unmanaged[Cdecl] fn__getEntityHeight; + private delegate* unmanaged[Cdecl] fn__getEntityHeight; private delegate* unmanaged[Cdecl] fn__getEntityHeightAboveGround; private delegate* unmanaged[Cdecl] fn__getEntityMatrix; private delegate* unmanaged[Cdecl] fn__getEntityModel; @@ -28268,7 +28268,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getEntityRotationVelocity; private delegate* unmanaged[Cdecl] fn__getEntityScript; private delegate* unmanaged[Cdecl] fn__getEntitySpeed; - private delegate* unmanaged[Cdecl] fn__getEntitySpeedVector; + private delegate* unmanaged[Cdecl] fn__getEntitySpeedVector; private delegate* unmanaged[Cdecl] fn__getEntityUprightValue; private delegate* unmanaged[Cdecl] fn__getEntityVelocity; private delegate* unmanaged[Cdecl] fn__getObjectIndexFromEntityIndex; @@ -28279,125 +28279,125 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getNearestPlayerToEntityOnTeam; private delegate* unmanaged[Cdecl] fn__getEntityType; private delegate* unmanaged[Cdecl] fn__getEntityPopulationType; - private delegate* unmanaged[Cdecl] fn__isAnEntity; - private delegate* unmanaged[Cdecl] fn__isEntityAPed; - private delegate* unmanaged[Cdecl] fn__isEntityAMissionEntity; - private delegate* unmanaged[Cdecl] fn__isEntityAVehicle; - private delegate* unmanaged[Cdecl] fn__isEntityAnObject; - private delegate* unmanaged[Cdecl] fn__isEntityAtCoord; - private delegate* unmanaged[Cdecl] fn__isEntityAtEntity; - private delegate* unmanaged[Cdecl] fn__isEntityAttached; - private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyObject; - private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyPed; - private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyVehicle; - private delegate* unmanaged[Cdecl] fn__isEntityAttachedToEntity; - private delegate* unmanaged[Cdecl] fn__isEntityDead; - private delegate* unmanaged[Cdecl] fn__isEntityInAir; - private delegate* unmanaged[Cdecl] fn__isEntityInAngledArea; - private delegate* unmanaged[Cdecl] fn__isEntityInArea; - private delegate* unmanaged[Cdecl] fn__isEntityInZone; - private delegate* unmanaged[Cdecl] fn__isEntityInWater; + private delegate* unmanaged[Cdecl] fn__isAnEntity; + private delegate* unmanaged[Cdecl] fn__isEntityAPed; + private delegate* unmanaged[Cdecl] fn__isEntityAMissionEntity; + private delegate* unmanaged[Cdecl] fn__isEntityAVehicle; + private delegate* unmanaged[Cdecl] fn__isEntityAnObject; + private delegate* unmanaged[Cdecl] fn__isEntityAtCoord; + private delegate* unmanaged[Cdecl] fn__isEntityAtEntity; + private delegate* unmanaged[Cdecl] fn__isEntityAttached; + private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyObject; + private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyPed; + private delegate* unmanaged[Cdecl] fn__isEntityAttachedToAnyVehicle; + private delegate* unmanaged[Cdecl] fn__isEntityAttachedToEntity; + private delegate* unmanaged[Cdecl] fn__isEntityDead; + private delegate* unmanaged[Cdecl] fn__isEntityInAir; + private delegate* unmanaged[Cdecl] fn__isEntityInAngledArea; + private delegate* unmanaged[Cdecl] fn__isEntityInArea; + private delegate* unmanaged[Cdecl] fn__isEntityInZone; + private delegate* unmanaged[Cdecl] fn__isEntityInWater; private delegate* unmanaged[Cdecl] fn__getEntitySubmergedLevel; - private delegate* unmanaged[Cdecl] fn__0x694E00132F2823ED; - private delegate* unmanaged[Cdecl] fn__isEntityOnScreen; - private delegate* unmanaged[Cdecl] fn__isEntityPlayingAnim; - private delegate* unmanaged[Cdecl] fn__isEntityStatic; - private delegate* unmanaged[Cdecl] fn__isEntityTouchingEntity; - private delegate* unmanaged[Cdecl] fn__isEntityTouchingModel; - private delegate* unmanaged[Cdecl] fn__isEntityUpright; - private delegate* unmanaged[Cdecl] fn__isEntityUpsidedown; - private delegate* unmanaged[Cdecl] fn__isEntityVisible; - private delegate* unmanaged[Cdecl] fn__isEntityVisibleToScript; - private delegate* unmanaged[Cdecl] fn__isEntityOccluded; - private delegate* unmanaged[Cdecl] fn__wouldEntityBeOccluded; - private delegate* unmanaged[Cdecl] fn__isEntityWaitingForWorldCollision; - private delegate* unmanaged[Cdecl] fn__applyForceToEntityCenterOfMass; - private delegate* unmanaged[Cdecl] fn__applyForceToEntity; - private delegate* unmanaged[Cdecl] fn__attachEntityToEntity; - private delegate* unmanaged[Cdecl] fn__attachEntityBoneToEntityBone; - private delegate* unmanaged[Cdecl] fn__attachEntityBoneToEntityBonePhysically; - private delegate* unmanaged[Cdecl] fn__attachEntityToEntityPhysically; + private delegate* unmanaged[Cdecl] fn__0x694E00132F2823ED; + private delegate* unmanaged[Cdecl] fn__isEntityOnScreen; + private delegate* unmanaged[Cdecl] fn__isEntityPlayingAnim; + private delegate* unmanaged[Cdecl] fn__isEntityStatic; + private delegate* unmanaged[Cdecl] fn__isEntityTouchingEntity; + private delegate* unmanaged[Cdecl] fn__isEntityTouchingModel; + private delegate* unmanaged[Cdecl] fn__isEntityUpright; + private delegate* unmanaged[Cdecl] fn__isEntityUpsidedown; + private delegate* unmanaged[Cdecl] fn__isEntityVisible; + private delegate* unmanaged[Cdecl] fn__isEntityVisibleToScript; + private delegate* unmanaged[Cdecl] fn__isEntityOccluded; + private delegate* unmanaged[Cdecl] fn__wouldEntityBeOccluded; + private delegate* unmanaged[Cdecl] fn__isEntityWaitingForWorldCollision; + private delegate* unmanaged[Cdecl] fn__applyForceToEntityCenterOfMass; + private delegate* unmanaged[Cdecl] fn__applyForceToEntity; + private delegate* unmanaged[Cdecl] fn__attachEntityToEntity; + private delegate* unmanaged[Cdecl] fn__attachEntityBoneToEntityBone; + private delegate* unmanaged[Cdecl] fn__attachEntityBoneToEntityBonePhysically; + private delegate* unmanaged[Cdecl] fn__attachEntityToEntityPhysically; private delegate* unmanaged[Cdecl] fn__processEntityAttachments; private delegate* unmanaged[Cdecl] fn__getEntityBoneIndexByName; private delegate* unmanaged[Cdecl] fn__clearEntityLastDamageEntity; private delegate* unmanaged[Cdecl] fn__deleteEntity; - private delegate* unmanaged[Cdecl] fn__detachEntity; - private delegate* unmanaged[Cdecl] fn__freezeEntityPosition; - private delegate* unmanaged[Cdecl] fn__setEntityCleanupByEngine; - private delegate* unmanaged[Cdecl] fn__playEntityAnim; - private delegate* unmanaged[Cdecl] fn__playSynchronizedEntityAnim; - private delegate* unmanaged[Cdecl] fn__playSynchronizedMapEntityAnim; - private delegate* unmanaged[Cdecl] fn__stopSynchronizedMapEntityAnim; + private delegate* unmanaged[Cdecl] fn__detachEntity; + private delegate* unmanaged[Cdecl] fn__freezeEntityPosition; + private delegate* unmanaged[Cdecl] fn__setEntityCleanupByEngine; + private delegate* unmanaged[Cdecl] fn__playEntityAnim; + private delegate* unmanaged[Cdecl] fn__playSynchronizedEntityAnim; + private delegate* unmanaged[Cdecl] fn__playSynchronizedMapEntityAnim; + private delegate* unmanaged[Cdecl] fn__stopSynchronizedMapEntityAnim; private delegate* unmanaged[Cdecl] fn__stopEntityAnim; - private delegate* unmanaged[Cdecl] fn__stopSynchronizedEntityAnim; - private delegate* unmanaged[Cdecl] fn__hasAnimEventFired; - private delegate* unmanaged[Cdecl] fn__findAnimEventPhase; + private delegate* unmanaged[Cdecl] fn__stopSynchronizedEntityAnim; + private delegate* unmanaged[Cdecl] fn__hasAnimEventFired; + private delegate* unmanaged[Cdecl] fn__findAnimEventPhase; private delegate* unmanaged[Cdecl] fn__setEntityAnimCurrentTime; private delegate* unmanaged[Cdecl] fn__setEntityAnimSpeed; - private delegate* unmanaged[Cdecl] fn__setEntityAsMissionEntity; + private delegate* unmanaged[Cdecl] fn__setEntityAsMissionEntity; private delegate* unmanaged[Cdecl] fn__setEntityAsNoLongerNeeded; private delegate* unmanaged[Cdecl] fn__setPedAsNoLongerNeeded; private delegate* unmanaged[Cdecl] fn__setVehicleAsNoLongerNeeded; private delegate* unmanaged[Cdecl] fn__setObjectAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__setEntityCanBeDamaged; - private delegate* unmanaged[Cdecl] fn__getEntityCanBeDamaged; - private delegate* unmanaged[Cdecl] fn__setEntityCanBeDamagedByRelationshipGroup; + private delegate* unmanaged[Cdecl] fn__setEntityCanBeDamaged; + private delegate* unmanaged[Cdecl] fn__getEntityCanBeDamaged; + private delegate* unmanaged[Cdecl] fn__setEntityCanBeDamagedByRelationshipGroup; private delegate* unmanaged[Cdecl] fn__0x352E2B5CF420BF3B; - private delegate* unmanaged[Cdecl] fn__setEntityCanBeTargetedWithoutLos; - private delegate* unmanaged[Cdecl] fn__setEntityCollision; - private delegate* unmanaged[Cdecl] fn__getEntityCollisionDisabled; - private delegate* unmanaged[Cdecl] fn__setEntityCompletelyDisableCollision; - private delegate* unmanaged[Cdecl] fn__setEntityCoords; - private delegate* unmanaged[Cdecl] fn__setEntityCoordsWithoutPlantsReset; - private delegate* unmanaged[Cdecl] fn__setEntityCoordsNoOffset; - private delegate* unmanaged[Cdecl] fn__setEntityDynamic; + private delegate* unmanaged[Cdecl] fn__setEntityCanBeTargetedWithoutLos; + private delegate* unmanaged[Cdecl] fn__setEntityCollision; + private delegate* unmanaged[Cdecl] fn__getEntityCollisionDisabled; + private delegate* unmanaged[Cdecl] fn__setEntityCompletelyDisableCollision; + private delegate* unmanaged[Cdecl] fn__setEntityCoords; + private delegate* unmanaged[Cdecl] fn__setEntityCoordsWithoutPlantsReset; + private delegate* unmanaged[Cdecl] fn__setEntityCoordsNoOffset; + private delegate* unmanaged[Cdecl] fn__setEntityDynamic; private delegate* unmanaged[Cdecl] fn__setEntityHeading; private delegate* unmanaged[Cdecl] fn__setEntityHealth; - private delegate* unmanaged[Cdecl] fn__setEntityInvincible; - private delegate* unmanaged[Cdecl] fn__setEntityIsTargetPriority; - private delegate* unmanaged[Cdecl] fn__setEntityLights; - private delegate* unmanaged[Cdecl] fn__setEntityLoadCollisionFlag; - private delegate* unmanaged[Cdecl] fn__hasCollisionLoadedAroundEntity; + private delegate* unmanaged[Cdecl] fn__setEntityInvincible; + private delegate* unmanaged[Cdecl] fn__setEntityIsTargetPriority; + private delegate* unmanaged[Cdecl] fn__setEntityLights; + private delegate* unmanaged[Cdecl] fn__setEntityLoadCollisionFlag; + private delegate* unmanaged[Cdecl] fn__hasCollisionLoadedAroundEntity; private delegate* unmanaged[Cdecl] fn__setEntityMaxSpeed; - private delegate* unmanaged[Cdecl] fn__setEntityOnlyDamagedByPlayer; - private delegate* unmanaged[Cdecl] fn__setEntityOnlyDamagedByRelationshipGroup; - private delegate* unmanaged[Cdecl] fn__setEntityProofs; - private delegate* unmanaged[Cdecl] fn__getEntityProofs; + private delegate* unmanaged[Cdecl] fn__setEntityOnlyDamagedByPlayer; + private delegate* unmanaged[Cdecl] fn__setEntityOnlyDamagedByRelationshipGroup; + private delegate* unmanaged[Cdecl] fn__setEntityProofs; + private delegate* unmanaged[Cdecl] fn__getEntityProofs; private delegate* unmanaged[Cdecl] fn__setEntityQuaternion; - private delegate* unmanaged[Cdecl] fn__setEntityRecordsCollisions; - private delegate* unmanaged[Cdecl] fn__setEntityRotation; - private delegate* unmanaged[Cdecl] fn__setEntityVisible; - private delegate* unmanaged[Cdecl] fn__0xC34BC448DA29F5E9; - private delegate* unmanaged[Cdecl] fn__0xE66377CDDADA4810; + private delegate* unmanaged[Cdecl] fn__setEntityRecordsCollisions; + private delegate* unmanaged[Cdecl] fn__setEntityRotation; + private delegate* unmanaged[Cdecl] fn__setEntityVisible; + private delegate* unmanaged[Cdecl] fn__0xC34BC448DA29F5E9; + private delegate* unmanaged[Cdecl] fn__0xE66377CDDADA4810; private delegate* unmanaged[Cdecl] fn__setEntityVelocity; private delegate* unmanaged[Cdecl] fn__setEntityAngularVelocity; - private delegate* unmanaged[Cdecl] fn__setEntityHasGravity; + private delegate* unmanaged[Cdecl] fn__setEntityHasGravity; private delegate* unmanaged[Cdecl] fn__setEntityLodDist; private delegate* unmanaged[Cdecl] fn__getEntityLodDist; - private delegate* unmanaged[Cdecl] fn__setEntityAlpha; + private delegate* unmanaged[Cdecl] fn__setEntityAlpha; private delegate* unmanaged[Cdecl] fn__getEntityAlpha; private delegate* unmanaged[Cdecl] fn__resetEntityAlpha; private delegate* unmanaged[Cdecl] fn__0x490861B88F4FD846; private delegate* unmanaged[Cdecl] fn__0xCEA7C8E1B48FF68C; private delegate* unmanaged[Cdecl] fn__0x5C3B791D580E0BC2; - private delegate* unmanaged[Cdecl] fn__setEntityAlwaysPrerender; - private delegate* unmanaged[Cdecl] fn__setEntityRenderScorched; + private delegate* unmanaged[Cdecl] fn__setEntityAlwaysPrerender; + private delegate* unmanaged[Cdecl] fn__setEntityRenderScorched; private delegate* unmanaged[Cdecl] fn__setEntityTrafficlightOverride; private delegate* unmanaged[Cdecl] fn__0x78E8E3A640178255; - private delegate* unmanaged[Cdecl] fn__createModelSwap; - private delegate* unmanaged[Cdecl] fn__removeModelSwap; - private delegate* unmanaged[Cdecl] fn__createModelHide; - private delegate* unmanaged[Cdecl] fn__createModelHideExcludingScriptObjects; - private delegate* unmanaged[Cdecl] fn__removeModelHide; - private delegate* unmanaged[Cdecl] fn__createForcedObject; + private delegate* unmanaged[Cdecl] fn__createModelSwap; + private delegate* unmanaged[Cdecl] fn__removeModelSwap; + private delegate* unmanaged[Cdecl] fn__createModelHide; + private delegate* unmanaged[Cdecl] fn__createModelHideExcludingScriptObjects; + private delegate* unmanaged[Cdecl] fn__removeModelHide; + private delegate* unmanaged[Cdecl] fn__createForcedObject; private delegate* unmanaged[Cdecl] fn__removeForcedObject; - private delegate* unmanaged[Cdecl] fn__setEntityNoCollisionEntity; - private delegate* unmanaged[Cdecl] fn__setEntityMotionBlur; - private delegate* unmanaged[Cdecl] fn__setCanAutoVaultOnEntity; - private delegate* unmanaged[Cdecl] fn__setCanClimbOnEntity; - private delegate* unmanaged[Cdecl] fn__0xDC6F8601FAF2E893; - private delegate* unmanaged[Cdecl] fn__setEntityDecalsDisabled; - private delegate* unmanaged[Cdecl] fn__0x1A092BB0C3808B96; + private delegate* unmanaged[Cdecl] fn__setEntityNoCollisionEntity; + private delegate* unmanaged[Cdecl] fn__setEntityMotionBlur; + private delegate* unmanaged[Cdecl] fn__setCanAutoVaultOnEntity; + private delegate* unmanaged[Cdecl] fn__setCanClimbOnEntity; + private delegate* unmanaged[Cdecl] fn__0xDC6F8601FAF2E893; + private delegate* unmanaged[Cdecl] fn__setEntityDecalsDisabled; + private delegate* unmanaged[Cdecl] fn__0x1A092BB0C3808B96; private delegate* unmanaged[Cdecl] fn__getEntityBoneRotation; private delegate* unmanaged[Cdecl] fn__getEntityBonePosition2; private delegate* unmanaged[Cdecl] fn__getEntityBoneRotationLocal; @@ -28407,27 +28407,27 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x68B562E124CC0AEF; private delegate* unmanaged[Cdecl] fn__0x36F32DE87082343E; private delegate* unmanaged[Cdecl] fn__getEntityPickup; - private delegate* unmanaged[Cdecl] fn__0xD7B80E7C3BEFC396; + private delegate* unmanaged[Cdecl] fn__0xD7B80E7C3BEFC396; private delegate* unmanaged[Cdecl] fn__setDecisionMaker; private delegate* unmanaged[Cdecl] fn__clearDecisionMakerEventResponse; private delegate* unmanaged[Cdecl] fn__blockDecisionMakerEvent; private delegate* unmanaged[Cdecl] fn__unblockDecisionMakerEvent; private delegate* unmanaged[Cdecl] fn__addShockingEventAtPosition; private delegate* unmanaged[Cdecl] fn__addShockingEventForEntity; - private delegate* unmanaged[Cdecl] fn__isShockingEventInSphere; - private delegate* unmanaged[Cdecl] fn__removeShockingEvent; - private delegate* unmanaged[Cdecl] fn__removeAllShockingEvents; + private delegate* unmanaged[Cdecl] fn__isShockingEventInSphere; + private delegate* unmanaged[Cdecl] fn__removeShockingEvent; + private delegate* unmanaged[Cdecl] fn__removeAllShockingEvents; private delegate* unmanaged[Cdecl] fn__removeShockingEventSpawnBlockingAreas; private delegate* unmanaged[Cdecl] fn__suppressShockingEventsNextFrame; private delegate* unmanaged[Cdecl] fn__suppressShockingEventTypeNextFrame; private delegate* unmanaged[Cdecl] fn__suppressAgitationEventsNextFrame; private delegate* unmanaged[Cdecl] fn__getNumTattooShopDlcItems; - private delegate* unmanaged[Cdecl] fn__getTattooShopDlcItemData; + private delegate* unmanaged[Cdecl] fn__getTattooShopDlcItemData; private delegate* unmanaged[Cdecl] fn__0x10144267DD22866C; private delegate* unmanaged[Cdecl] fn__initShopPedComponent; private delegate* unmanaged[Cdecl] fn__initShopPedProp; private delegate* unmanaged[Cdecl] fn__setupShopPedApparelQuery; - private delegate* unmanaged[Cdecl] fn__setupShopPedApparelQueryTu; + private delegate* unmanaged[Cdecl] fn__setupShopPedApparelQueryTu; private delegate* unmanaged[Cdecl] fn__getShopPedQueryComponent; private delegate* unmanaged[Cdecl] fn__0x96E2929292A4DB77; private delegate* unmanaged[Cdecl] fn__getShopPedComponent; @@ -28444,61 +28444,61 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getShopPedApparelForcedPropCount; private delegate* unmanaged[Cdecl] fn__getForcedComponent; private delegate* unmanaged[Cdecl] fn__getForcedProp; - private delegate* unmanaged[Cdecl] fn__isTagRestricted; - private delegate* unmanaged[Cdecl] fn__setupShopPedOutfitQuery; + private delegate* unmanaged[Cdecl] fn__isTagRestricted; + private delegate* unmanaged[Cdecl] fn__setupShopPedOutfitQuery; private delegate* unmanaged[Cdecl] fn__getShopPedQueryOutfit; private delegate* unmanaged[Cdecl] fn__getShopPedOutfit; private delegate* unmanaged[Cdecl] fn__getShopPedOutfitLocate; - private delegate* unmanaged[Cdecl] fn__getShopPedOutfitPropVariant; - private delegate* unmanaged[Cdecl] fn__getShopPedOutfitComponentVariant; + private delegate* unmanaged[Cdecl] fn__getShopPedOutfitPropVariant; + private delegate* unmanaged[Cdecl] fn__getShopPedOutfitComponentVariant; private delegate* unmanaged[Cdecl] fn__getNumDlcVehicles; private delegate* unmanaged[Cdecl] fn__getDlcVehicleModel; - private delegate* unmanaged[Cdecl] fn__getDlcVehicleData; + private delegate* unmanaged[Cdecl] fn__getDlcVehicleData; private delegate* unmanaged[Cdecl] fn__getDlcVehicleFlags; private delegate* unmanaged[Cdecl] fn__getNumDlcWeapons; private delegate* unmanaged[Cdecl] fn__getNumDlcWeaponsSp; - private delegate* unmanaged[Cdecl] fn__getDlcWeaponData; - private delegate* unmanaged[Cdecl] fn__getDlcWeaponDataSp; + private delegate* unmanaged[Cdecl] fn__getDlcWeaponData; + private delegate* unmanaged[Cdecl] fn__getDlcWeaponDataSp; private delegate* unmanaged[Cdecl] fn__getNumDlcWeaponComponents; private delegate* unmanaged[Cdecl] fn__getNumDlcWeaponComponentsSp; - private delegate* unmanaged[Cdecl] fn__getDlcWeaponComponentData; - private delegate* unmanaged[Cdecl] fn__getDlcWeaponComponentDataSp; - private delegate* unmanaged[Cdecl] fn__isContentItemLocked; - private delegate* unmanaged[Cdecl] fn__isDlcVehicleMod; + private delegate* unmanaged[Cdecl] fn__getDlcWeaponComponentData; + private delegate* unmanaged[Cdecl] fn__getDlcWeaponComponentDataSp; + private delegate* unmanaged[Cdecl] fn__isContentItemLocked; + private delegate* unmanaged[Cdecl] fn__isDlcVehicleMod; private delegate* unmanaged[Cdecl] fn__getDlcVehicleModLockHash; private delegate* unmanaged[Cdecl] fn__loadContentChangeSetGroup; private delegate* unmanaged[Cdecl] fn__unloadContentChangeSetGroup; - private delegate* unmanaged[Cdecl] fn__startScriptFire; + private delegate* unmanaged[Cdecl] fn__startScriptFire; private delegate* unmanaged[Cdecl] fn__removeScriptFire; private delegate* unmanaged[Cdecl] fn__startEntityFire; private delegate* unmanaged[Cdecl] fn__stopEntityFire; - private delegate* unmanaged[Cdecl] fn__isEntityOnFire; + private delegate* unmanaged[Cdecl] fn__isEntityOnFire; private delegate* unmanaged[Cdecl] fn__getNumberOfFiresInRange; private delegate* unmanaged[Cdecl] fn__setFireSpreadRate; private delegate* unmanaged[Cdecl] fn__stopFireInRange; - private delegate* unmanaged[Cdecl] fn__getClosestFirePos; - private delegate* unmanaged[Cdecl] fn__addExplosion; - private delegate* unmanaged[Cdecl] fn__addOwnedExplosion; - private delegate* unmanaged[Cdecl] fn__addExplosionWithUserVfx; - private delegate* unmanaged[Cdecl] fn__isExplosionInArea; - private delegate* unmanaged[Cdecl] fn__isExplosionActiveInArea; - private delegate* unmanaged[Cdecl] fn__isExplosionInSphere; + private delegate* unmanaged[Cdecl] fn__getClosestFirePos; + private delegate* unmanaged[Cdecl] fn__addExplosion; + private delegate* unmanaged[Cdecl] fn__addOwnedExplosion; + private delegate* unmanaged[Cdecl] fn__addExplosionWithUserVfx; + private delegate* unmanaged[Cdecl] fn__isExplosionInArea; + private delegate* unmanaged[Cdecl] fn__isExplosionActiveInArea; + private delegate* unmanaged[Cdecl] fn__isExplosionInSphere; private delegate* unmanaged[Cdecl] fn__getEntityInsideExplosionSphere; - private delegate* unmanaged[Cdecl] fn__isExplosionInAngledArea; + private delegate* unmanaged[Cdecl] fn__isExplosionInAngledArea; private delegate* unmanaged[Cdecl] fn__getEntityInsideExplosionArea; private delegate* unmanaged[Cdecl] fn__beginTextCommandBusyspinnerOn; private delegate* unmanaged[Cdecl] fn__endTextCommandBusyspinnerOn; private delegate* unmanaged[Cdecl] fn__busyspinnerOff; private delegate* unmanaged[Cdecl] fn__preloadBusyspinner; - private delegate* unmanaged[Cdecl] fn__busyspinnerIsOn; - private delegate* unmanaged[Cdecl] fn__busyspinnerIsDisplaying; - private delegate* unmanaged[Cdecl] fn__0x9245E81072704B8A; + private delegate* unmanaged[Cdecl] fn__busyspinnerIsOn; + private delegate* unmanaged[Cdecl] fn__busyspinnerIsDisplaying; + private delegate* unmanaged[Cdecl] fn__0x9245E81072704B8A; private delegate* unmanaged[Cdecl] fn__setMouseCursorActiveThisFrame; private delegate* unmanaged[Cdecl] fn__setMouseCursorSprite; - private delegate* unmanaged[Cdecl] fn__setMouseCursorVisibleInMenus; + private delegate* unmanaged[Cdecl] fn__setMouseCursorVisibleInMenus; private delegate* unmanaged[Cdecl] fn__0x3D9ACB1EB139E702; - private delegate* unmanaged[Cdecl] fn__0x632B2940C67F4EA9; - private delegate* unmanaged[Cdecl] fn__thefeedOnlyShowTooltips; + private delegate* unmanaged[Cdecl] fn__0x632B2940C67F4EA9; + private delegate* unmanaged[Cdecl] fn__thefeedOnlyShowTooltips; private delegate* unmanaged[Cdecl] fn__thefeedSetScriptedMenuHeight; private delegate* unmanaged[Cdecl] fn__thefeedDisableLoadingScreenTips; private delegate* unmanaged[Cdecl] fn__thefeedHideThisFrame; @@ -28509,7 +28509,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__thefeedForceRenderOff; private delegate* unmanaged[Cdecl] fn__thefeedPause; private delegate* unmanaged[Cdecl] fn__thefeedResume; - private delegate* unmanaged[Cdecl] fn__thefeedIsPaused; + private delegate* unmanaged[Cdecl] fn__thefeedIsPaused; private delegate* unmanaged[Cdecl] fn__thefeedSpsExtendWidescreenOn; private delegate* unmanaged[Cdecl] fn__thefeedSpsExtendWidescreenOff; private delegate* unmanaged[Cdecl] fn__thefeedGetFirstVisibleDeleteRemaining; @@ -28518,51 +28518,51 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__thefeedSetNextPostBackgroundColor; private delegate* unmanaged[Cdecl] fn__thefeedSetAnimpostfxColor; private delegate* unmanaged[Cdecl] fn__thefeedSetAnimpostfxCount; - private delegate* unmanaged[Cdecl] fn__thefeedSetAnimpostfxSound; + private delegate* unmanaged[Cdecl] fn__thefeedSetAnimpostfxSound; private delegate* unmanaged[Cdecl] fn__thefeedResetAllParameters; private delegate* unmanaged[Cdecl] fn__thefeedFreezeNextPost; private delegate* unmanaged[Cdecl] fn__thefeedClearFrozenPost; - private delegate* unmanaged[Cdecl] fn__thefeedSetFlushAnimpostfx; + private delegate* unmanaged[Cdecl] fn__thefeedSetFlushAnimpostfx; private delegate* unmanaged[Cdecl] fn__thefeedAddTxdRef; private delegate* unmanaged[Cdecl] fn__beginTextCommandThefeedPost; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostStats; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetext; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextGxtEntry; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextTu; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextWithCrewTag; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTicker; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTickerForced; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTickerWithTokens; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostStats; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetext; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextGxtEntry; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextTu; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextWithCrewTag; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTicker; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTickerForced; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostTickerWithTokens; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostAward; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewtag; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewtagWithGameName; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewtag; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewtagWithGameName; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostUnlock; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostUnlockTu; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostUnlockTuWithColor; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMpticker; - private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewRankup; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostMpticker; + private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostCrewRankup; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostVersusTu; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostReplayIcon; private delegate* unmanaged[Cdecl] fn__endTextCommandThefeedPostReplayInput; private delegate* unmanaged[Cdecl] fn__beginTextCommandPrint; - private delegate* unmanaged[Cdecl] fn__endTextCommandPrint; + private delegate* unmanaged[Cdecl] fn__endTextCommandPrint; private delegate* unmanaged[Cdecl] fn__beginTextCommandIsMessageDisplayed; - private delegate* unmanaged[Cdecl] fn__endTextCommandIsMessageDisplayed; + private delegate* unmanaged[Cdecl] fn__endTextCommandIsMessageDisplayed; private delegate* unmanaged[Cdecl] fn__beginTextCommandDisplayText; private delegate* unmanaged[Cdecl] fn__endTextCommandDisplayText; private delegate* unmanaged[Cdecl] fn__beginTextCommandGetWidth; - private delegate* unmanaged[Cdecl] fn__endTextCommandGetWidth; + private delegate* unmanaged[Cdecl] fn__endTextCommandGetWidth; private delegate* unmanaged[Cdecl] fn__beginTextCommandLineCount; private delegate* unmanaged[Cdecl] fn__endTextCommandLineCount; private delegate* unmanaged[Cdecl] fn__beginTextCommandDisplayHelp; - private delegate* unmanaged[Cdecl] fn__endTextCommandDisplayHelp; + private delegate* unmanaged[Cdecl] fn__endTextCommandDisplayHelp; private delegate* unmanaged[Cdecl] fn__beginTextCommandIsThisHelpMessageBeingDisplayed; - private delegate* unmanaged[Cdecl] fn__endTextCommandIsThisHelpMessageBeingDisplayed; + private delegate* unmanaged[Cdecl] fn__endTextCommandIsThisHelpMessageBeingDisplayed; private delegate* unmanaged[Cdecl] fn__beginTextCommandSetBlipName; private delegate* unmanaged[Cdecl] fn__endTextCommandSetBlipName; private delegate* unmanaged[Cdecl] fn__beginTextCommandObjective; - private delegate* unmanaged[Cdecl] fn__endTextCommandObjective; + private delegate* unmanaged[Cdecl] fn__endTextCommandObjective; private delegate* unmanaged[Cdecl] fn__beginTextCommandClearPrint; private delegate* unmanaged[Cdecl] fn__endTextCommandClearPrint; private delegate* unmanaged[Cdecl] fn__beginTextCommandOverrideButtonText; @@ -28574,7 +28574,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringBlipName; private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringPlayerName; private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringTime; - private delegate* unmanaged[Cdecl] fn__addTextComponentFormattedInteger; + private delegate* unmanaged[Cdecl] fn__addTextComponentFormattedInteger; private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringPhoneNumber; private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringWebsite; private delegate* unmanaged[Cdecl] fn__addTextComponentSubstringKeyboardDisplay; @@ -28588,42 +28588,42 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__clearAllHelpMessages; private delegate* unmanaged[Cdecl] fn__clearThisPrint; private delegate* unmanaged[Cdecl] fn__clearSmallPrints; - private delegate* unmanaged[Cdecl] fn__doesTextBlockExist; + private delegate* unmanaged[Cdecl] fn__doesTextBlockExist; private delegate* unmanaged[Cdecl] fn__requestAdditionalText; private delegate* unmanaged[Cdecl] fn__requestAdditionalTextForDlc; - private delegate* unmanaged[Cdecl] fn__hasAdditionalTextLoaded; - private delegate* unmanaged[Cdecl] fn__clearAdditionalText; - private delegate* unmanaged[Cdecl] fn__isStreamingAdditionalText; - private delegate* unmanaged[Cdecl] fn__hasThisAdditionalTextLoaded; - private delegate* unmanaged[Cdecl] fn__isMessageBeingDisplayed; - private delegate* unmanaged[Cdecl] fn__doesTextLabelExist; + private delegate* unmanaged[Cdecl] fn__hasAdditionalTextLoaded; + private delegate* unmanaged[Cdecl] fn__clearAdditionalText; + private delegate* unmanaged[Cdecl] fn__isStreamingAdditionalText; + private delegate* unmanaged[Cdecl] fn__hasThisAdditionalTextLoaded; + private delegate* unmanaged[Cdecl] fn__isMessageBeingDisplayed; + private delegate* unmanaged[Cdecl] fn__doesTextLabelExist; private delegate* unmanaged[Cdecl] fn__0x98C3CF913D895111; private delegate* unmanaged[Cdecl] fn__getLengthOfStringWithThisTextLabel; private delegate* unmanaged[Cdecl] fn__getLengthOfLiteralString; private delegate* unmanaged[Cdecl] fn__getLengthOfLiteralStringInBytes; private delegate* unmanaged[Cdecl] fn__getStreetNameFromHashKey; - private delegate* unmanaged[Cdecl] fn__isHudPreferenceSwitchedOn; - private delegate* unmanaged[Cdecl] fn__isRadarPreferenceSwitchedOn; - private delegate* unmanaged[Cdecl] fn__isSubtitlePreferenceSwitchedOn; - private delegate* unmanaged[Cdecl] fn__displayHud; + private delegate* unmanaged[Cdecl] fn__isHudPreferenceSwitchedOn; + private delegate* unmanaged[Cdecl] fn__isRadarPreferenceSwitchedOn; + private delegate* unmanaged[Cdecl] fn__isSubtitlePreferenceSwitchedOn; + private delegate* unmanaged[Cdecl] fn__displayHud; private delegate* unmanaged[Cdecl] fn__displayHudWhenDeadThisFrame; private delegate* unmanaged[Cdecl] fn__displayHudWhenPausedThisFrame; - private delegate* unmanaged[Cdecl] fn__displayRadar; - private delegate* unmanaged[Cdecl] fn__0xCD74233600C4EA6B; - private delegate* unmanaged[Cdecl] fn__0xC2D2AD9EAAE265B8; - private delegate* unmanaged[Cdecl] fn__isHudHidden; - private delegate* unmanaged[Cdecl] fn__isRadarHidden; - private delegate* unmanaged[Cdecl] fn__isMinimapRendering; + private delegate* unmanaged[Cdecl] fn__displayRadar; + private delegate* unmanaged[Cdecl] fn__0xCD74233600C4EA6B; + private delegate* unmanaged[Cdecl] fn__0xC2D2AD9EAAE265B8; + private delegate* unmanaged[Cdecl] fn__isHudHidden; + private delegate* unmanaged[Cdecl] fn__isRadarHidden; + private delegate* unmanaged[Cdecl] fn__isMinimapRendering; private delegate* unmanaged[Cdecl] fn__0x0C698D8F099174C7; private delegate* unmanaged[Cdecl] fn__0xE4C3B169876D33D7; private delegate* unmanaged[Cdecl] fn__0xEB81A3DADD503187; - private delegate* unmanaged[Cdecl] fn__setBlipRoute; + private delegate* unmanaged[Cdecl] fn__setBlipRoute; private delegate* unmanaged[Cdecl] fn__clearAllBlipRoutes; private delegate* unmanaged[Cdecl] fn__setBlipRouteColour; - private delegate* unmanaged[Cdecl] fn__0x2790F4B17D098E26; + private delegate* unmanaged[Cdecl] fn__0x2790F4B17D098E26; private delegate* unmanaged[Cdecl] fn__0x6CDD58146A436083; private delegate* unmanaged[Cdecl] fn__0xD1942374085C8469; - private delegate* unmanaged[Cdecl] fn__addNextMessageToPreviousBriefs; + private delegate* unmanaged[Cdecl] fn__addNextMessageToPreviousBriefs; private delegate* unmanaged[Cdecl] fn__0x57D760D55F54E071; private delegate* unmanaged[Cdecl] fn__setRadarZoomPrecise; private delegate* unmanaged[Cdecl] fn__setRadarZoom; @@ -28635,21 +28635,21 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setScriptVariable2HudColour; private delegate* unmanaged[Cdecl] fn__replaceHudColour; private delegate* unmanaged[Cdecl] fn__replaceHudColourWithRgba; - private delegate* unmanaged[Cdecl] fn__setAbilityBarVisibilityInMultiplayer; - private delegate* unmanaged[Cdecl] fn__setAllowAbilityBarInMultiplayer; + private delegate* unmanaged[Cdecl] fn__setAbilityBarVisibilityInMultiplayer; + private delegate* unmanaged[Cdecl] fn__setAllowAbilityBarInMultiplayer; private delegate* unmanaged[Cdecl] fn__flashAbilityBar; private delegate* unmanaged[Cdecl] fn__setAbilityBarValue; - private delegate* unmanaged[Cdecl] fn__flashWantedDisplay; - private delegate* unmanaged[Cdecl] fn__0xBA8D65C1C65702E5; + private delegate* unmanaged[Cdecl] fn__flashWantedDisplay; + private delegate* unmanaged[Cdecl] fn__0xBA8D65C1C65702E5; private delegate* unmanaged[Cdecl] fn__getRenderedCharacterHeight; private delegate* unmanaged[Cdecl] fn__setTextScale; private delegate* unmanaged[Cdecl] fn__setTextColour; - private delegate* unmanaged[Cdecl] fn__setTextCentre; - private delegate* unmanaged[Cdecl] fn__setTextRightJustify; + private delegate* unmanaged[Cdecl] fn__setTextCentre; + private delegate* unmanaged[Cdecl] fn__setTextRightJustify; private delegate* unmanaged[Cdecl] fn__setTextJustification; private delegate* unmanaged[Cdecl] fn__setTextWrap; private delegate* unmanaged[Cdecl] fn__setTextLeading; - private delegate* unmanaged[Cdecl] fn__setTextProportional; + private delegate* unmanaged[Cdecl] fn__setTextProportional; private delegate* unmanaged[Cdecl] fn__setTextFont; private delegate* unmanaged[Cdecl] fn__setTextDropShadow; private delegate* unmanaged[Cdecl] fn__setTextDropshadow; @@ -28657,19 +28657,19 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setTextEdge; private delegate* unmanaged[Cdecl] fn__setTextRenderId; private delegate* unmanaged[Cdecl] fn__getDefaultScriptRendertargetRenderId; - private delegate* unmanaged[Cdecl] fn__registerNamedRendertarget; - private delegate* unmanaged[Cdecl] fn__isNamedRendertargetRegistered; - private delegate* unmanaged[Cdecl] fn__releaseNamedRendertarget; + private delegate* unmanaged[Cdecl] fn__registerNamedRendertarget; + private delegate* unmanaged[Cdecl] fn__isNamedRendertargetRegistered; + private delegate* unmanaged[Cdecl] fn__releaseNamedRendertarget; private delegate* unmanaged[Cdecl] fn__linkNamedRendertarget; private delegate* unmanaged[Cdecl] fn__getNamedRendertargetRenderId; - private delegate* unmanaged[Cdecl] fn__isNamedRendertargetLinked; - private delegate* unmanaged[Cdecl] fn__clearHelp; - private delegate* unmanaged[Cdecl] fn__isHelpMessageOnScreen; - private delegate* unmanaged[Cdecl] fn__0x214CD562A939246A; - private delegate* unmanaged[Cdecl] fn__isHelpMessageBeingDisplayed; - private delegate* unmanaged[Cdecl] fn__isHelpMessageFadingOut; + private delegate* unmanaged[Cdecl] fn__isNamedRendertargetLinked; + private delegate* unmanaged[Cdecl] fn__clearHelp; + private delegate* unmanaged[Cdecl] fn__isHelpMessageOnScreen; + private delegate* unmanaged[Cdecl] fn__0x214CD562A939246A; + private delegate* unmanaged[Cdecl] fn__isHelpMessageBeingDisplayed; + private delegate* unmanaged[Cdecl] fn__isHelpMessageFadingOut; private delegate* unmanaged[Cdecl] fn__setHelpMessageTextStyle; - private delegate* unmanaged[Cdecl] fn__getStandardBlipEnumId; + private delegate* unmanaged[Cdecl] fn__getStandardBlipEnumId; private delegate* unmanaged[Cdecl] fn__getWaypointBlipEnumId; private delegate* unmanaged[Cdecl] fn__getNumberOfActiveBlips; private delegate* unmanaged[Cdecl] fn__getNextBlipInfoId; @@ -28687,7 +28687,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__addBlipForPickup; private delegate* unmanaged[Cdecl] fn__addBlipForCoord; private delegate* unmanaged[Cdecl] fn__triggerSonarBlip; - private delegate* unmanaged[Cdecl] fn__allowSonarBlips; + private delegate* unmanaged[Cdecl] fn__allowSonarBlips; private delegate* unmanaged[Cdecl] fn__setBlipCoords; private delegate* unmanaged[Cdecl] fn__getBlipCoords; private delegate* unmanaged[Cdecl] fn__setBlipSprite; @@ -28709,82 +28709,82 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setBlipSecondaryColour; private delegate* unmanaged[Cdecl] fn__getBlipColour; private delegate* unmanaged[Cdecl] fn__getBlipHudColour; - private delegate* unmanaged[Cdecl] fn__isBlipShortRange; - private delegate* unmanaged[Cdecl] fn__isBlipOnMinimap; - private delegate* unmanaged[Cdecl] fn__doesBlipHaveGpsRoute; - private delegate* unmanaged[Cdecl] fn__setBlipHiddenOnLegend; - private delegate* unmanaged[Cdecl] fn__setBlipHighDetail; - private delegate* unmanaged[Cdecl] fn__setBlipAsMissionCreatorBlip; - private delegate* unmanaged[Cdecl] fn__isMissionCreatorBlip; + private delegate* unmanaged[Cdecl] fn__isBlipShortRange; + private delegate* unmanaged[Cdecl] fn__isBlipOnMinimap; + private delegate* unmanaged[Cdecl] fn__doesBlipHaveGpsRoute; + private delegate* unmanaged[Cdecl] fn__setBlipHiddenOnLegend; + private delegate* unmanaged[Cdecl] fn__setBlipHighDetail; + private delegate* unmanaged[Cdecl] fn__setBlipAsMissionCreatorBlip; + private delegate* unmanaged[Cdecl] fn__isMissionCreatorBlip; private delegate* unmanaged[Cdecl] fn__getNewSelectedMissionCreatorBlip; - private delegate* unmanaged[Cdecl] fn__isHoveringOverMissionCreatorBlip; - private delegate* unmanaged[Cdecl] fn__showStartMissionInstructionalButton; + private delegate* unmanaged[Cdecl] fn__isHoveringOverMissionCreatorBlip; + private delegate* unmanaged[Cdecl] fn__showStartMissionInstructionalButton; private delegate* unmanaged[Cdecl] fn__0x2916A928514C9827; private delegate* unmanaged[Cdecl] fn__0xB552929B85FC27EC; - private delegate* unmanaged[Cdecl] fn__setBlipFlashes; - private delegate* unmanaged[Cdecl] fn__setBlipFlashesAlternate; - private delegate* unmanaged[Cdecl] fn__isBlipFlashing; - private delegate* unmanaged[Cdecl] fn__setBlipAsShortRange; + private delegate* unmanaged[Cdecl] fn__setBlipFlashes; + private delegate* unmanaged[Cdecl] fn__setBlipFlashesAlternate; + private delegate* unmanaged[Cdecl] fn__isBlipFlashing; + private delegate* unmanaged[Cdecl] fn__setBlipAsShortRange; private delegate* unmanaged[Cdecl] fn__setBlipScale; private delegate* unmanaged[Cdecl] fn__setBlipScaleTransformation; private delegate* unmanaged[Cdecl] fn__setBlipPriority; private delegate* unmanaged[Cdecl] fn__setBlipDisplay; private delegate* unmanaged[Cdecl] fn__setBlipCategory; private delegate* unmanaged[Cdecl] fn__removeBlip; - private delegate* unmanaged[Cdecl] fn__setBlipAsFriendly; + private delegate* unmanaged[Cdecl] fn__setBlipAsFriendly; private delegate* unmanaged[Cdecl] fn__pulseBlip; private delegate* unmanaged[Cdecl] fn__showNumberOnBlip; private delegate* unmanaged[Cdecl] fn__hideNumberOnBlip; - private delegate* unmanaged[Cdecl] fn__showHeightOnBlip; - private delegate* unmanaged[Cdecl] fn__showTickOnBlip; - private delegate* unmanaged[Cdecl] fn__showHeadingIndicatorOnBlip; - private delegate* unmanaged[Cdecl] fn__showOutlineIndicatorOnBlip; - private delegate* unmanaged[Cdecl] fn__showFriendIndicatorOnBlip; - private delegate* unmanaged[Cdecl] fn__showCrewIndicatorOnBlip; - private delegate* unmanaged[Cdecl] fn__setBlipDisplayIndicatorOnBlip; + private delegate* unmanaged[Cdecl] fn__showHeightOnBlip; + private delegate* unmanaged[Cdecl] fn__showTickOnBlip; + private delegate* unmanaged[Cdecl] fn__showHeadingIndicatorOnBlip; + private delegate* unmanaged[Cdecl] fn__showOutlineIndicatorOnBlip; + private delegate* unmanaged[Cdecl] fn__showFriendIndicatorOnBlip; + private delegate* unmanaged[Cdecl] fn__showCrewIndicatorOnBlip; + private delegate* unmanaged[Cdecl] fn__setBlipDisplayIndicatorOnBlip; private delegate* unmanaged[Cdecl] fn__0x4B5B620C9B59ED34; private delegate* unmanaged[Cdecl] fn__0x2C9F302398E13141; - private delegate* unmanaged[Cdecl] fn__setBlipAsMinimalOnEdge; - private delegate* unmanaged[Cdecl] fn__setRadiusBlipEdge; - private delegate* unmanaged[Cdecl] fn__doesBlipExist; + private delegate* unmanaged[Cdecl] fn__setBlipAsMinimalOnEdge; + private delegate* unmanaged[Cdecl] fn__setRadiusBlipEdge; + private delegate* unmanaged[Cdecl] fn__doesBlipExist; private delegate* unmanaged[Cdecl] fn__setWaypointOff; private delegate* unmanaged[Cdecl] fn__deleteWaypoint; private delegate* unmanaged[Cdecl] fn__refreshWaypoint; - private delegate* unmanaged[Cdecl] fn__isWaypointActive; + private delegate* unmanaged[Cdecl] fn__isWaypointActive; private delegate* unmanaged[Cdecl] fn__setNewWaypoint; - private delegate* unmanaged[Cdecl] fn__setBlipBright; - private delegate* unmanaged[Cdecl] fn__setBlipShowCone; + private delegate* unmanaged[Cdecl] fn__setBlipBright; + private delegate* unmanaged[Cdecl] fn__setBlipShowCone; private delegate* unmanaged[Cdecl] fn__0xC594B315EDF2D4AF; private delegate* unmanaged[Cdecl] fn__0xF83D0FEBE75E62C9; private delegate* unmanaged[Cdecl] fn__0x35A3CD97B2C0A6D2; private delegate* unmanaged[Cdecl] fn__0x8410C5E0CD847B9D; - private delegate* unmanaged[Cdecl] fn__setMinimapComponent; - private delegate* unmanaged[Cdecl] fn__setMinimapSonarEnabled; + private delegate* unmanaged[Cdecl] fn__setMinimapComponent; + private delegate* unmanaged[Cdecl] fn__setMinimapSonarEnabled; private delegate* unmanaged[Cdecl] fn__showSigninUi; private delegate* unmanaged[Cdecl] fn__getMainPlayerBlipId; - private delegate* unmanaged[Cdecl] fn__0x41350B4FC28E3941; + private delegate* unmanaged[Cdecl] fn__0x41350B4FC28E3941; private delegate* unmanaged[Cdecl] fn__hideLoadingOnFadeThisFrame; private delegate* unmanaged[Cdecl] fn__setRadarAsInteriorThisFrame; - private delegate* unmanaged[Cdecl] fn__setInteriorZoomLevelIncreased; - private delegate* unmanaged[Cdecl] fn__setInteriorZoomLevelDecreased; + private delegate* unmanaged[Cdecl] fn__setInteriorZoomLevelIncreased; + private delegate* unmanaged[Cdecl] fn__setInteriorZoomLevelDecreased; private delegate* unmanaged[Cdecl] fn__setRadarAsExteriorThisFrame; private delegate* unmanaged[Cdecl] fn__setPlayerBlipPositionThisFrame; private delegate* unmanaged[Cdecl] fn__0xA17784FCA9548D15; - private delegate* unmanaged[Cdecl] fn__isMinimapInInterior; + private delegate* unmanaged[Cdecl] fn__isMinimapInInterior; private delegate* unmanaged[Cdecl] fn__hideMinimapExteriorMapThisFrame; private delegate* unmanaged[Cdecl] fn__hideMinimapInteriorMapThisFrame; - private delegate* unmanaged[Cdecl] fn__setToggleMinimapHeistIsland; + private delegate* unmanaged[Cdecl] fn__setToggleMinimapHeistIsland; private delegate* unmanaged[Cdecl] fn__dontTiltMinimapThisFrame; private delegate* unmanaged[Cdecl] fn__0x55F5A5F07134DE60; private delegate* unmanaged[Cdecl] fn__setWidescreenFormat; - private delegate* unmanaged[Cdecl] fn__displayAreaName; - private delegate* unmanaged[Cdecl] fn__displayCash; - private delegate* unmanaged[Cdecl] fn__0x170F541E1CADD1DE; + private delegate* unmanaged[Cdecl] fn__displayAreaName; + private delegate* unmanaged[Cdecl] fn__displayCash; + private delegate* unmanaged[Cdecl] fn__0x170F541E1CADD1DE; private delegate* unmanaged[Cdecl] fn__setPlayerCashChange; - private delegate* unmanaged[Cdecl] fn__displayAmmoThisFrame; + private delegate* unmanaged[Cdecl] fn__displayAmmoThisFrame; private delegate* unmanaged[Cdecl] fn__displaySniperScopeThisFrame; private delegate* unmanaged[Cdecl] fn__hideHudAndRadarThisFrame; - private delegate* unmanaged[Cdecl] fn__0xE67C6DFD386EA5E7; + private delegate* unmanaged[Cdecl] fn__0xE67C6DFD386EA5E7; private delegate* unmanaged[Cdecl] fn__setMultiplayerWalletCash; private delegate* unmanaged[Cdecl] fn__removeMultiplayerWalletCash; private delegate* unmanaged[Cdecl] fn__setMultiplayerBankCash; @@ -28792,43 +28792,43 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setMultiplayerHudCash; private delegate* unmanaged[Cdecl] fn__removeMultiplayerHudCash; private delegate* unmanaged[Cdecl] fn__hideHelpTextThisFrame; - private delegate* unmanaged[Cdecl] fn__0x801879A9B4F4B2FB; - private delegate* unmanaged[Cdecl] fn__displayHelpTextThisFrame; - private delegate* unmanaged[Cdecl] fn__hudForceWeaponWheel; + private delegate* unmanaged[Cdecl] fn__0x801879A9B4F4B2FB; + private delegate* unmanaged[Cdecl] fn__displayHelpTextThisFrame; + private delegate* unmanaged[Cdecl] fn__hudForceWeaponWheel; private delegate* unmanaged[Cdecl] fn__hudDisplayLoadingScreenTips; private delegate* unmanaged[Cdecl] fn__blockWeaponWheelThisFrame; private delegate* unmanaged[Cdecl] fn__hudWeaponWheelGetSelectedHash; private delegate* unmanaged[Cdecl] fn__hudSetWeaponWheelTopSlot; private delegate* unmanaged[Cdecl] fn__hudWeaponWheelGetSlotHash; - private delegate* unmanaged[Cdecl] fn__hudWeaponWheelIgnoreControlInput; + private delegate* unmanaged[Cdecl] fn__hudWeaponWheelIgnoreControlInput; private delegate* unmanaged[Cdecl] fn__setGpsFlags; private delegate* unmanaged[Cdecl] fn__clearGpsFlags; - private delegate* unmanaged[Cdecl] fn__setRaceTrackRender; + private delegate* unmanaged[Cdecl] fn__setRaceTrackRender; private delegate* unmanaged[Cdecl] fn__clearGpsRaceTrack; - private delegate* unmanaged[Cdecl] fn__startGpsCustomRoute; + private delegate* unmanaged[Cdecl] fn__startGpsCustomRoute; private delegate* unmanaged[Cdecl] fn__addPointToGpsCustomRoute; - private delegate* unmanaged[Cdecl] fn__setGpsCustomRouteRender; + private delegate* unmanaged[Cdecl] fn__setGpsCustomRouteRender; private delegate* unmanaged[Cdecl] fn__clearGpsCustomRoute; - private delegate* unmanaged[Cdecl] fn__startGpsMultiRoute; + private delegate* unmanaged[Cdecl] fn__startGpsMultiRoute; private delegate* unmanaged[Cdecl] fn__addPointToGpsMultiRoute; - private delegate* unmanaged[Cdecl] fn__setGpsMultiRouteRender; + private delegate* unmanaged[Cdecl] fn__setGpsMultiRouteRender; private delegate* unmanaged[Cdecl] fn__clearGpsMultiRoute; private delegate* unmanaged[Cdecl] fn__clearGpsPlayerWaypoint; - private delegate* unmanaged[Cdecl] fn__setGpsFlashes; + private delegate* unmanaged[Cdecl] fn__setGpsFlashes; private delegate* unmanaged[Cdecl] fn__setMainPlayerBlipColour; private delegate* unmanaged[Cdecl] fn__flashMinimapDisplay; private delegate* unmanaged[Cdecl] fn__flashMinimapDisplayWithColor; - private delegate* unmanaged[Cdecl] fn__toggleStealthRadar; - private delegate* unmanaged[Cdecl] fn__setMinimapInSpectatorMode; - private delegate* unmanaged[Cdecl] fn__setMissionName; - private delegate* unmanaged[Cdecl] fn__setMissionName2; - private delegate* unmanaged[Cdecl] fn__0x817B86108EB94E51; - private delegate* unmanaged[Cdecl] fn__setMinimapBlockWaypoint; - private delegate* unmanaged[Cdecl] fn__setMinimapInPrologue; - private delegate* unmanaged[Cdecl] fn__setMinimapHideFow; + private delegate* unmanaged[Cdecl] fn__toggleStealthRadar; + private delegate* unmanaged[Cdecl] fn__setMinimapInSpectatorMode; + private delegate* unmanaged[Cdecl] fn__setMissionName; + private delegate* unmanaged[Cdecl] fn__setMissionName2; + private delegate* unmanaged[Cdecl] fn__0x817B86108EB94E51; + private delegate* unmanaged[Cdecl] fn__setMinimapBlockWaypoint; + private delegate* unmanaged[Cdecl] fn__setMinimapInPrologue; + private delegate* unmanaged[Cdecl] fn__setMinimapHideFow; private delegate* unmanaged[Cdecl] fn__getMinimapFowDiscoveryRatio; - private delegate* unmanaged[Cdecl] fn__getMinimapFowCoordinateIsRevealed; - private delegate* unmanaged[Cdecl] fn__0x62E849B7EB28E770; + private delegate* unmanaged[Cdecl] fn__getMinimapFowCoordinateIsRevealed; + private delegate* unmanaged[Cdecl] fn__0x62E849B7EB28E770; private delegate* unmanaged[Cdecl] fn__setMinimapFowRevealCoordinate; private delegate* unmanaged[Cdecl] fn__setMinimapGolfCourse; private delegate* unmanaged[Cdecl] fn__setMinimapGolfCourseOff; @@ -28836,16 +28836,16 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__unlockMinimapAngle; private delegate* unmanaged[Cdecl] fn__lockMinimapPosition; private delegate* unmanaged[Cdecl] fn__unlockMinimapPosition; - private delegate* unmanaged[Cdecl] fn__setMinimapAltitudeIndicatorLevel; - private delegate* unmanaged[Cdecl] fn__setHealthHudDisplayValues; + private delegate* unmanaged[Cdecl] fn__setMinimapAltitudeIndicatorLevel; + private delegate* unmanaged[Cdecl] fn__setHealthHudDisplayValues; private delegate* unmanaged[Cdecl] fn__setMaxHealthHudDisplay; private delegate* unmanaged[Cdecl] fn__setMaxArmourHudDisplay; - private delegate* unmanaged[Cdecl] fn__setBigmapActive; - private delegate* unmanaged[Cdecl] fn__isHudComponentActive; - private delegate* unmanaged[Cdecl] fn__isScriptedHudComponentActive; + private delegate* unmanaged[Cdecl] fn__setBigmapActive; + private delegate* unmanaged[Cdecl] fn__isHudComponentActive; + private delegate* unmanaged[Cdecl] fn__isScriptedHudComponentActive; private delegate* unmanaged[Cdecl] fn__hideScriptedHudComponentThisFrame; private delegate* unmanaged[Cdecl] fn__showScriptedHudComponentThisFrame; - private delegate* unmanaged[Cdecl] fn__isScriptedHudComponentHiddenThisFrame; + private delegate* unmanaged[Cdecl] fn__isScriptedHudComponentHiddenThisFrame; private delegate* unmanaged[Cdecl] fn__hideHudComponentThisFrame; private delegate* unmanaged[Cdecl] fn__showHudComponentThisFrame; private delegate* unmanaged[Cdecl] fn__hideAreaAndVehicleNameThisFrame; @@ -28854,26 +28854,26 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setHudComponentPosition; private delegate* unmanaged[Cdecl] fn__getHudComponentPosition; private delegate* unmanaged[Cdecl] fn__clearReminderMessage; - private delegate* unmanaged[Cdecl] fn__getScreenCoordFromWorldCoord2; + private delegate* unmanaged[Cdecl] fn__getScreenCoordFromWorldCoord2; private delegate* unmanaged[Cdecl] fn__openReportugcMenu; private delegate* unmanaged[Cdecl] fn__forceCloseReportugcMenu; - private delegate* unmanaged[Cdecl] fn__isReportugcMenuOpen; - private delegate* unmanaged[Cdecl] fn__isFloatingHelpTextOnScreen; + private delegate* unmanaged[Cdecl] fn__isReportugcMenuOpen; + private delegate* unmanaged[Cdecl] fn__isFloatingHelpTextOnScreen; private delegate* unmanaged[Cdecl] fn__setFloatingHelpTextScreenPosition; private delegate* unmanaged[Cdecl] fn__setFloatingHelpTextWorldPosition; private delegate* unmanaged[Cdecl] fn__setFloatingHelpTextToEntity; private delegate* unmanaged[Cdecl] fn__setFloatingHelpTextStyle; - private delegate* unmanaged[Cdecl] fn__clearFloatingHelp; - private delegate* unmanaged[Cdecl] fn__createMpGamerTagWithCrewColor; - private delegate* unmanaged[Cdecl] fn__isMpGamerTagMovieActive; - private delegate* unmanaged[Cdecl] fn__createFakeMpGamerTag; + private delegate* unmanaged[Cdecl] fn__clearFloatingHelp; + private delegate* unmanaged[Cdecl] fn__createMpGamerTagWithCrewColor; + private delegate* unmanaged[Cdecl] fn__isMpGamerTagMovieActive; + private delegate* unmanaged[Cdecl] fn__createFakeMpGamerTag; private delegate* unmanaged[Cdecl] fn__removeMpGamerTag; - private delegate* unmanaged[Cdecl] fn__isMpGamerTagActive; - private delegate* unmanaged[Cdecl] fn__isMpGamerTagFree; - private delegate* unmanaged[Cdecl] fn__setMpGamerTagVisibility; - private delegate* unmanaged[Cdecl] fn__setMpGamerTagEnabled; - private delegate* unmanaged[Cdecl] fn__setMpGamerTagIcons; - private delegate* unmanaged[Cdecl] fn__setMpGamerHealthBarDisplay; + private delegate* unmanaged[Cdecl] fn__isMpGamerTagActive; + private delegate* unmanaged[Cdecl] fn__isMpGamerTagFree; + private delegate* unmanaged[Cdecl] fn__setMpGamerTagVisibility; + private delegate* unmanaged[Cdecl] fn__setMpGamerTagEnabled; + private delegate* unmanaged[Cdecl] fn__setMpGamerTagIcons; + private delegate* unmanaged[Cdecl] fn__setMpGamerHealthBarDisplay; private delegate* unmanaged[Cdecl] fn__setMpGamerHealthBarMax; private delegate* unmanaged[Cdecl] fn__setMpGamerTagColour; private delegate* unmanaged[Cdecl] fn__setMpGamerTagHealthBarColour; @@ -28881,122 +28881,122 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setMpGamerTagWantedLevel; private delegate* unmanaged[Cdecl] fn__setMpGamerTagUnk; private delegate* unmanaged[Cdecl] fn__setMpGamerTagName; - private delegate* unmanaged[Cdecl] fn__isValidMpGamerTagMovie; + private delegate* unmanaged[Cdecl] fn__isValidMpGamerTagMovie; private delegate* unmanaged[Cdecl] fn__setMpGamerTagBigText; private delegate* unmanaged[Cdecl] fn__getCurrentWebpageId; private delegate* unmanaged[Cdecl] fn__getCurrentWebsiteId; private delegate* unmanaged[Cdecl] fn__getGlobalActionscriptFlag; private delegate* unmanaged[Cdecl] fn__resetGlobalActionscriptFlag; - private delegate* unmanaged[Cdecl] fn__isWarningMessageActive2; - private delegate* unmanaged[Cdecl] fn__setWarningMessage; - private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeader; - private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeaderAndSubstringFlags; - private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeaderUnk; - private delegate* unmanaged[Cdecl] fn__setWarningMessageWithAlert; + private delegate* unmanaged[Cdecl] fn__isWarningMessageActive2; + private delegate* unmanaged[Cdecl] fn__setWarningMessage; + private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeader; + private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeaderAndSubstringFlags; + private delegate* unmanaged[Cdecl] fn__setWarningMessageWithHeaderUnk; + private delegate* unmanaged[Cdecl] fn__setWarningMessageWithAlert; private delegate* unmanaged[Cdecl] fn__getWarningMessageTitleHash; - private delegate* unmanaged[Cdecl] fn__setWarningMessageListRow; - private delegate* unmanaged[Cdecl] fn__0xDAF87174BE7454FF; + private delegate* unmanaged[Cdecl] fn__setWarningMessageListRow; + private delegate* unmanaged[Cdecl] fn__0xDAF87174BE7454FF; private delegate* unmanaged[Cdecl] fn__removeWarningMessageListItems; - private delegate* unmanaged[Cdecl] fn__isWarningMessageActive; + private delegate* unmanaged[Cdecl] fn__isWarningMessageActive; private delegate* unmanaged[Cdecl] fn__clearDynamicPauseMenuErrorMessage; - private delegate* unmanaged[Cdecl] fn__raceGalleryFullscreen; + private delegate* unmanaged[Cdecl] fn__raceGalleryFullscreen; private delegate* unmanaged[Cdecl] fn__raceGalleryNextBlipSprite; private delegate* unmanaged[Cdecl] fn__raceGalleryAddBlip; private delegate* unmanaged[Cdecl] fn__clearRaceGalleryBlips; private delegate* unmanaged[Cdecl] fn__forceSonarBlipsThisFrame; private delegate* unmanaged[Cdecl] fn__getNorthRadarBlip; - private delegate* unmanaged[Cdecl] fn__displayPlayerNameTagsOnBlips; + private delegate* unmanaged[Cdecl] fn__displayPlayerNameTagsOnBlips; private delegate* unmanaged[Cdecl] fn__0x211C4EF450086857; private delegate* unmanaged[Cdecl] fn__0xBF4F34A85CA2970C; - private delegate* unmanaged[Cdecl] fn__activateFrontendMenu; + private delegate* unmanaged[Cdecl] fn__activateFrontendMenu; private delegate* unmanaged[Cdecl] fn__restartFrontendMenu; private delegate* unmanaged[Cdecl] fn__getCurrentFrontendMenuVersion; - private delegate* unmanaged[Cdecl] fn__setPauseMenuActive; + private delegate* unmanaged[Cdecl] fn__setPauseMenuActive; private delegate* unmanaged[Cdecl] fn__disableFrontendThisFrame; private delegate* unmanaged[Cdecl] fn__suppressFrontendRenderingThisFrame; private delegate* unmanaged[Cdecl] fn__allowPauseMenuWhenDeadThisFrame; - private delegate* unmanaged[Cdecl] fn__setFrontendActive; - private delegate* unmanaged[Cdecl] fn__isPauseMenuActive; - private delegate* unmanaged[Cdecl] fn__0x2F057596F2BD0061; + private delegate* unmanaged[Cdecl] fn__setFrontendActive; + private delegate* unmanaged[Cdecl] fn__isPauseMenuActive; + private delegate* unmanaged[Cdecl] fn__0x2F057596F2BD0061; private delegate* unmanaged[Cdecl] fn__getPauseMenuState; private delegate* unmanaged[Cdecl] fn__0x5BFF36D6ED83E0AE; - private delegate* unmanaged[Cdecl] fn__isPauseMenuRestarting; + private delegate* unmanaged[Cdecl] fn__isPauseMenuRestarting; private delegate* unmanaged[Cdecl] fn__logDebugInfo; private delegate* unmanaged[Cdecl] fn__0x77F16B447824DA6C; private delegate* unmanaged[Cdecl] fn__0xCDCA26E80FAECB8F; private delegate* unmanaged[Cdecl] fn__0x2DE6C5E2E996F178; private delegate* unmanaged[Cdecl] fn__pauseMenuActivateContext; private delegate* unmanaged[Cdecl] fn__pauseMenuDeactivateContext; - private delegate* unmanaged[Cdecl] fn__pauseMenuIsContextActive; - private delegate* unmanaged[Cdecl] fn__pauseMenuIsContextMenuActive; + private delegate* unmanaged[Cdecl] fn__pauseMenuIsContextActive; + private delegate* unmanaged[Cdecl] fn__pauseMenuIsContextMenuActive; private delegate* unmanaged[Cdecl] fn__0xDE03620F8703A9DF; private delegate* unmanaged[Cdecl] fn__0x359AF31A4B52F5ED; private delegate* unmanaged[Cdecl] fn__0x13C4B962653A5280; - private delegate* unmanaged[Cdecl] fn__0xC8E1071177A23BE5; + private delegate* unmanaged[Cdecl] fn__0xC8E1071177A23BE5; private delegate* unmanaged[Cdecl] fn__0x4895BDEA16E7C080; - private delegate* unmanaged[Cdecl] fn__pauseMenuSetBusySpinner; - private delegate* unmanaged[Cdecl] fn__0xF06EBB91A81E09E3; - private delegate* unmanaged[Cdecl] fn__isFrontendReadyForControl; + private delegate* unmanaged[Cdecl] fn__pauseMenuSetBusySpinner; + private delegate* unmanaged[Cdecl] fn__0xF06EBB91A81E09E3; + private delegate* unmanaged[Cdecl] fn__isFrontendReadyForControl; private delegate* unmanaged[Cdecl] fn__takeControlOfFrontend; private delegate* unmanaged[Cdecl] fn__releaseControlOfFrontend; - private delegate* unmanaged[Cdecl] fn__0x66E7CB63C97B7D20; + private delegate* unmanaged[Cdecl] fn__0x66E7CB63C97B7D20; private delegate* unmanaged[Cdecl] fn__0x593FEAE1F73392D4; - private delegate* unmanaged[Cdecl] fn__isNavigatingMenuContent; - private delegate* unmanaged[Cdecl] fn__0xF284AC67940C6812; - private delegate* unmanaged[Cdecl] fn__0x2E22FEFA0100275E; + private delegate* unmanaged[Cdecl] fn__isNavigatingMenuContent; + private delegate* unmanaged[Cdecl] fn__0xF284AC67940C6812; + private delegate* unmanaged[Cdecl] fn__0x2E22FEFA0100275E; private delegate* unmanaged[Cdecl] fn__0x0CF54F20DE43879C; private delegate* unmanaged[Cdecl] fn__getPauseMenuSelection; private delegate* unmanaged[Cdecl] fn__getPauseMenuSelectionData; - private delegate* unmanaged[Cdecl] fn__0xA238192F33110615; - private delegate* unmanaged[Cdecl] fn__getMenuPedIntStat; - private delegate* unmanaged[Cdecl] fn__0xCA6B2F7CE32AB653; - private delegate* unmanaged[Cdecl] fn__getMenuPedMaskedIntStat; - private delegate* unmanaged[Cdecl] fn__0x24A49BEAF468DC90; - private delegate* unmanaged[Cdecl] fn__getMenuPedFloatStat; - private delegate* unmanaged[Cdecl] fn__0x8F08017F9D7C47BD; - private delegate* unmanaged[Cdecl] fn__getMenuPedBoolStat; + private delegate* unmanaged[Cdecl] fn__0xA238192F33110615; + private delegate* unmanaged[Cdecl] fn__getMenuPedIntStat; + private delegate* unmanaged[Cdecl] fn__0xCA6B2F7CE32AB653; + private delegate* unmanaged[Cdecl] fn__getMenuPedMaskedIntStat; + private delegate* unmanaged[Cdecl] fn__0x24A49BEAF468DC90; + private delegate* unmanaged[Cdecl] fn__getMenuPedFloatStat; + private delegate* unmanaged[Cdecl] fn__0x8F08017F9D7C47BD; + private delegate* unmanaged[Cdecl] fn__getMenuPedBoolStat; private delegate* unmanaged[Cdecl] fn__clearPedInPauseMenu; private delegate* unmanaged[Cdecl] fn__givePedToPauseMenu; - private delegate* unmanaged[Cdecl] fn__setPauseMenuPedLighting; - private delegate* unmanaged[Cdecl] fn__setPauseMenuPedSleepState; + private delegate* unmanaged[Cdecl] fn__setPauseMenuPedLighting; + private delegate* unmanaged[Cdecl] fn__setPauseMenuPedSleepState; private delegate* unmanaged[Cdecl] fn__openOnlinePoliciesMenu; - private delegate* unmanaged[Cdecl] fn__0xF13FE2A80C05C561; - private delegate* unmanaged[Cdecl] fn__isOnlinePoliciesMenuActive; + private delegate* unmanaged[Cdecl] fn__0xF13FE2A80C05C561; + private delegate* unmanaged[Cdecl] fn__isOnlinePoliciesMenuActive; private delegate* unmanaged[Cdecl] fn__openSocialClubMenu; private delegate* unmanaged[Cdecl] fn__closeSocialClubMenu; private delegate* unmanaged[Cdecl] fn__setSocialClubTour; - private delegate* unmanaged[Cdecl] fn__isSocialClubActive; - private delegate* unmanaged[Cdecl] fn__0x1185A8087587322C; + private delegate* unmanaged[Cdecl] fn__isSocialClubActive; + private delegate* unmanaged[Cdecl] fn__0x1185A8087587322C; private delegate* unmanaged[Cdecl] fn__forceCloseTextInputBox; private delegate* unmanaged[Cdecl] fn__0x577599CCED639CA2; private delegate* unmanaged[Cdecl] fn__overrideMultiplayerChatPrefix; - private delegate* unmanaged[Cdecl] fn__isMultiplayerChatActive; + private delegate* unmanaged[Cdecl] fn__isMultiplayerChatActive; private delegate* unmanaged[Cdecl] fn__closeMultiplayerChat; private delegate* unmanaged[Cdecl] fn__0x7C226D5346D4D10A; private delegate* unmanaged[Cdecl] fn__overrideMultiplayerChatColour; - private delegate* unmanaged[Cdecl] fn__setTextChatUnk; - private delegate* unmanaged[Cdecl] fn__flagPlayerContextInTournament; - private delegate* unmanaged[Cdecl] fn__setPedHasAiBlip; - private delegate* unmanaged[Cdecl] fn__setPedHasAiBlipWithColor; - private delegate* unmanaged[Cdecl] fn__doesPedHaveAiBlip; + private delegate* unmanaged[Cdecl] fn__setTextChatUnk; + private delegate* unmanaged[Cdecl] fn__flagPlayerContextInTournament; + private delegate* unmanaged[Cdecl] fn__setPedHasAiBlip; + private delegate* unmanaged[Cdecl] fn__setPedHasAiBlipWithColor; + private delegate* unmanaged[Cdecl] fn__doesPedHaveAiBlip; private delegate* unmanaged[Cdecl] fn__setPedAiBlipGangId; - private delegate* unmanaged[Cdecl] fn__setPedAiBlipHasCone; - private delegate* unmanaged[Cdecl] fn__setPedAiBlipForcedOn; + private delegate* unmanaged[Cdecl] fn__setPedAiBlipHasCone; + private delegate* unmanaged[Cdecl] fn__setPedAiBlipForcedOn; private delegate* unmanaged[Cdecl] fn__setPedAiBlipNoticeRange; private delegate* unmanaged[Cdecl] fn__setPedAiBlipSprite; private delegate* unmanaged[Cdecl] fn__getAiBlip2; private delegate* unmanaged[Cdecl] fn__getAiBlip; - private delegate* unmanaged[Cdecl] fn__hasDirectorModeBeenTriggered; + private delegate* unmanaged[Cdecl] fn__hasDirectorModeBeenTriggered; private delegate* unmanaged[Cdecl] fn__setDirectorModeClearTriggeredFlag; - private delegate* unmanaged[Cdecl] fn__setPlayerIsInDirectorMode; - private delegate* unmanaged[Cdecl] fn__0x04655F9D075D0AE5; + private delegate* unmanaged[Cdecl] fn__setPlayerIsInDirectorMode; + private delegate* unmanaged[Cdecl] fn__0x04655F9D075D0AE5; private delegate* unmanaged[Cdecl] fn__0x243296A510B562B6; private delegate* unmanaged[Cdecl] fn__getInteriorHeading; private delegate* unmanaged[Cdecl] fn__getInteriorInfo; private delegate* unmanaged[Cdecl] fn__getInteriorGroupId; private delegate* unmanaged[Cdecl] fn__getOffsetFromInteriorInWorldCoords; - private delegate* unmanaged[Cdecl] fn__isInteriorScene; - private delegate* unmanaged[Cdecl] fn__isValidInterior; + private delegate* unmanaged[Cdecl] fn__isInteriorScene; + private delegate* unmanaged[Cdecl] fn__isValidInterior; private delegate* unmanaged[Cdecl] fn__clearRoomForEntity; private delegate* unmanaged[Cdecl] fn__forceRoomForEntity; private delegate* unmanaged[Cdecl] fn__getRoomKeyFromEntity; @@ -29015,44 +29015,44 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__addPickupToInteriorRoomByName; private delegate* unmanaged[Cdecl] fn__pinInteriorInMemory; private delegate* unmanaged[Cdecl] fn__unpinInterior; - private delegate* unmanaged[Cdecl] fn__isInteriorReady; + private delegate* unmanaged[Cdecl] fn__isInteriorReady; private delegate* unmanaged[Cdecl] fn__0x4C2330E61D3DEB56; private delegate* unmanaged[Cdecl] fn__getInteriorAtCoordsWithType; private delegate* unmanaged[Cdecl] fn__getInteriorAtCoordsWithTypehash; private delegate* unmanaged[Cdecl] fn__0x483ACA1176CA93F1; - private delegate* unmanaged[Cdecl] fn__isCollisionMarkedOutside; + private delegate* unmanaged[Cdecl] fn__isCollisionMarkedOutside; private delegate* unmanaged[Cdecl] fn__getInteriorFromCollision; private delegate* unmanaged[Cdecl] fn__0x7ECDF98587E92DEC; private delegate* unmanaged[Cdecl] fn__activateInteriorEntitySet; private delegate* unmanaged[Cdecl] fn__deactivateInteriorEntitySet; - private delegate* unmanaged[Cdecl] fn__isInteriorEntitySetActive; + private delegate* unmanaged[Cdecl] fn__isInteriorEntitySetActive; private delegate* unmanaged[Cdecl] fn__setInteriorEntitySetColor; private delegate* unmanaged[Cdecl] fn__refreshInterior; private delegate* unmanaged[Cdecl] fn__enableExteriorCullModelThisFrame; private delegate* unmanaged[Cdecl] fn__enableScriptCullModelThisFrame; - private delegate* unmanaged[Cdecl] fn__disableInterior; - private delegate* unmanaged[Cdecl] fn__isInteriorDisabled; - private delegate* unmanaged[Cdecl] fn__capInterior; - private delegate* unmanaged[Cdecl] fn__isInteriorCapped; - private delegate* unmanaged[Cdecl] fn__0x9E6542F0CE8E70A3; - private delegate* unmanaged[Cdecl] fn__0x7241CCB7D020DB69; - private delegate* unmanaged[Cdecl] fn__createItemset; + private delegate* unmanaged[Cdecl] fn__disableInterior; + private delegate* unmanaged[Cdecl] fn__isInteriorDisabled; + private delegate* unmanaged[Cdecl] fn__capInterior; + private delegate* unmanaged[Cdecl] fn__isInteriorCapped; + private delegate* unmanaged[Cdecl] fn__0x9E6542F0CE8E70A3; + private delegate* unmanaged[Cdecl] fn__0x7241CCB7D020DB69; + private delegate* unmanaged[Cdecl] fn__createItemset; private delegate* unmanaged[Cdecl] fn__destroyItemset; - private delegate* unmanaged[Cdecl] fn__isItemsetValid; - private delegate* unmanaged[Cdecl] fn__addToItemset; + private delegate* unmanaged[Cdecl] fn__isItemsetValid; + private delegate* unmanaged[Cdecl] fn__addToItemset; private delegate* unmanaged[Cdecl] fn__removeFromItemset; private delegate* unmanaged[Cdecl] fn__getItemsetSize; private delegate* unmanaged[Cdecl] fn__getIndexedItemInItemset; - private delegate* unmanaged[Cdecl] fn__isInItemset; + private delegate* unmanaged[Cdecl] fn__isInItemset; private delegate* unmanaged[Cdecl] fn__cleanItemset; private delegate* unmanaged[Cdecl] fn__0xF2CA003F167E21D2; - private delegate* unmanaged[Cdecl] fn__loadingscreenGetLoadFreemode; - private delegate* unmanaged[Cdecl] fn__loadingscreenSetLoadFreemode; - private delegate* unmanaged[Cdecl] fn__loadingscreenGetLoadFreemodeWithEventName; - private delegate* unmanaged[Cdecl] fn__loadingscreenSetLoadFreemodeWithEventName; - private delegate* unmanaged[Cdecl] fn__loadingscreenIsLoadingFreemode; - private delegate* unmanaged[Cdecl] fn__loadingscreenSetIsLoadingFreemode; - private delegate* unmanaged[Cdecl] fn__0xFA1E0E893D915215; + private delegate* unmanaged[Cdecl] fn__loadingscreenGetLoadFreemode; + private delegate* unmanaged[Cdecl] fn__loadingscreenSetLoadFreemode; + private delegate* unmanaged[Cdecl] fn__loadingscreenGetLoadFreemodeWithEventName; + private delegate* unmanaged[Cdecl] fn__loadingscreenSetLoadFreemodeWithEventName; + private delegate* unmanaged[Cdecl] fn__loadingscreenIsLoadingFreemode; + private delegate* unmanaged[Cdecl] fn__loadingscreenSetIsLoadingFreemode; + private delegate* unmanaged[Cdecl] fn__0xFA1E0E893D915215; private delegate* unmanaged[Cdecl] fn__localizationGetSystemLanguage; private delegate* unmanaged[Cdecl] fn__getCurrentLanguage; private delegate* unmanaged[Cdecl] fn__localizationGetSystemDateFormat; @@ -29060,10 +29060,10 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getNumberOfFreeStacksOfThisSize; private delegate* unmanaged[Cdecl] fn__setRandomSeed; private delegate* unmanaged[Cdecl] fn__setTimeScale; - private delegate* unmanaged[Cdecl] fn__setMissionFlag; - private delegate* unmanaged[Cdecl] fn__getMissionFlag; - private delegate* unmanaged[Cdecl] fn__setRandomEventFlag; - private delegate* unmanaged[Cdecl] fn__getRandomEventFlag; + private delegate* unmanaged[Cdecl] fn__setMissionFlag; + private delegate* unmanaged[Cdecl] fn__getMissionFlag; + private delegate* unmanaged[Cdecl] fn__setRandomEventFlag; + private delegate* unmanaged[Cdecl] fn__getRandomEventFlag; private delegate* unmanaged[Cdecl] fn__getGlobalCharBuffer; private delegate* unmanaged[Cdecl] fn__0x4DCDF92BF64236CD; private delegate* unmanaged[Cdecl] fn__0x31125FD509D9043F; @@ -29074,15 +29074,15 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x703CC7F60CBB2B57; private delegate* unmanaged[Cdecl] fn__0x8951EB9C6906D3C8; private delegate* unmanaged[Cdecl] fn__0xBA4B8D83BDC75551; - private delegate* unmanaged[Cdecl] fn__hasResumedFromSuspend; - private delegate* unmanaged[Cdecl] fn__0x65D2EBB47E1CEC21; - private delegate* unmanaged[Cdecl] fn__0x6F2135B6129620C1; + private delegate* unmanaged[Cdecl] fn__hasResumedFromSuspend; + private delegate* unmanaged[Cdecl] fn__0x65D2EBB47E1CEC21; + private delegate* unmanaged[Cdecl] fn__0x6F2135B6129620C1; private delegate* unmanaged[Cdecl] fn__0x8D74E26F54B4E5C3; - private delegate* unmanaged[Cdecl] fn__getBaseElementMetadata; + private delegate* unmanaged[Cdecl] fn__getBaseElementMetadata; private delegate* unmanaged[Cdecl] fn__getPrevWeatherTypeHashName; private delegate* unmanaged[Cdecl] fn__getNextWeatherTypeHashName; - private delegate* unmanaged[Cdecl] fn__isPrevWeatherType; - private delegate* unmanaged[Cdecl] fn__isNextWeatherType; + private delegate* unmanaged[Cdecl] fn__isPrevWeatherType; + private delegate* unmanaged[Cdecl] fn__isNextWeatherType; private delegate* unmanaged[Cdecl] fn__setWeatherTypePersist; private delegate* unmanaged[Cdecl] fn__setWeatherTypeNowPersist; private delegate* unmanaged[Cdecl] fn__setWeatherTypeNow; @@ -29133,65 +29133,65 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getRandomFloatInRange; private delegate* unmanaged[Cdecl] fn__getRandomIntInRange; private delegate* unmanaged[Cdecl] fn__getRandomIntInRange2; - private delegate* unmanaged[Cdecl] fn__getGroundZFor3dCoord; - private delegate* unmanaged[Cdecl] fn__getGroundZAndNormalFor3dCoord; - private delegate* unmanaged[Cdecl] fn__getGroundZFor3dCoord2; + private delegate* unmanaged[Cdecl] fn__getGroundZFor3dCoord; + private delegate* unmanaged[Cdecl] fn__getGroundZAndNormalFor3dCoord; + private delegate* unmanaged[Cdecl] fn__getGroundZFor3dCoord2; private delegate* unmanaged[Cdecl] fn__asin; private delegate* unmanaged[Cdecl] fn__acos; private delegate* unmanaged[Cdecl] fn__tan; private delegate* unmanaged[Cdecl] fn__atan; private delegate* unmanaged[Cdecl] fn__atan2; - private delegate* unmanaged[Cdecl] fn__getDistanceBetweenCoords; + private delegate* unmanaged[Cdecl] fn__getDistanceBetweenCoords; private delegate* unmanaged[Cdecl] fn__getAngleBetween2dVectors; private delegate* unmanaged[Cdecl] fn__getHeadingFromVector2d; - private delegate* unmanaged[Cdecl] fn__0x7F8F6405F4777AF6; - private delegate* unmanaged[Cdecl] fn__0x21C235BC64831E5A; - private delegate* unmanaged[Cdecl] fn__0xF56DFB7B61BE7276; + private delegate* unmanaged[Cdecl] fn__0x7F8F6405F4777AF6; + private delegate* unmanaged[Cdecl] fn__0x21C235BC64831E5A; + private delegate* unmanaged[Cdecl] fn__0xF56DFB7B61BE7276; private delegate* unmanaged[Cdecl] fn__0xA0AD167E4B39D9A2; private delegate* unmanaged[Cdecl] fn__setBit; private delegate* unmanaged[Cdecl] fn__clearBit; private delegate* unmanaged[Cdecl] fn__getHashKey; private delegate* unmanaged[Cdecl] fn__slerpNearQuaternion; - private delegate* unmanaged[Cdecl] fn__isAreaOccupied; + private delegate* unmanaged[Cdecl] fn__isAreaOccupied; private delegate* unmanaged[Cdecl] fn__0x39455BF4F4F55186; - private delegate* unmanaged[Cdecl] fn__isPositionOccupied; - private delegate* unmanaged[Cdecl] fn__isPointObscuredByAMissionEntity; - private delegate* unmanaged[Cdecl] fn__clearArea; - private delegate* unmanaged[Cdecl] fn__clearAreaLeaveVehicleHealth; - private delegate* unmanaged[Cdecl] fn__clearAreaOfVehicles; - private delegate* unmanaged[Cdecl] fn__clearAngledAreaOfVehicles; + private delegate* unmanaged[Cdecl] fn__isPositionOccupied; + private delegate* unmanaged[Cdecl] fn__isPointObscuredByAMissionEntity; + private delegate* unmanaged[Cdecl] fn__clearArea; + private delegate* unmanaged[Cdecl] fn__clearAreaLeaveVehicleHealth; + private delegate* unmanaged[Cdecl] fn__clearAreaOfVehicles; + private delegate* unmanaged[Cdecl] fn__clearAngledAreaOfVehicles; private delegate* unmanaged[Cdecl] fn__clearAreaOfObjects; private delegate* unmanaged[Cdecl] fn__clearAreaOfPeds; private delegate* unmanaged[Cdecl] fn__clearAreaOfCops; private delegate* unmanaged[Cdecl] fn__clearAreaOfProjectiles; private delegate* unmanaged[Cdecl] fn__0x7EC6F9A478A6A512; - private delegate* unmanaged[Cdecl] fn__setSaveMenuActive; + private delegate* unmanaged[Cdecl] fn__setSaveMenuActive; private delegate* unmanaged[Cdecl] fn__0x397BAA01068BAA96; - private delegate* unmanaged[Cdecl] fn__setCreditsActive; - private delegate* unmanaged[Cdecl] fn__0xB51B9AB9EF81868C; - private delegate* unmanaged[Cdecl] fn__haveCreditsReachedEnd; + private delegate* unmanaged[Cdecl] fn__setCreditsActive; + private delegate* unmanaged[Cdecl] fn__0xB51B9AB9EF81868C; + private delegate* unmanaged[Cdecl] fn__haveCreditsReachedEnd; private delegate* unmanaged[Cdecl] fn__terminateAllScriptsWithThisName; private delegate* unmanaged[Cdecl] fn__networkSetScriptIsSafeForNetworkGame; private delegate* unmanaged[Cdecl] fn__addHospitalRestart; - private delegate* unmanaged[Cdecl] fn__disableHospitalRestart; + private delegate* unmanaged[Cdecl] fn__disableHospitalRestart; private delegate* unmanaged[Cdecl] fn__addPoliceRestart; - private delegate* unmanaged[Cdecl] fn__disablePoliceRestart; + private delegate* unmanaged[Cdecl] fn__disablePoliceRestart; private delegate* unmanaged[Cdecl] fn__setRestartCustomPosition; private delegate* unmanaged[Cdecl] fn__clearRestartCustomPosition; - private delegate* unmanaged[Cdecl] fn__pauseDeathArrestRestart; - private delegate* unmanaged[Cdecl] fn__ignoreNextRestart; - private delegate* unmanaged[Cdecl] fn__setFadeOutAfterDeath; - private delegate* unmanaged[Cdecl] fn__setFadeOutAfterArrest; - private delegate* unmanaged[Cdecl] fn__setFadeInAfterDeathArrest; - private delegate* unmanaged[Cdecl] fn__setFadeInAfterLoad; + private delegate* unmanaged[Cdecl] fn__pauseDeathArrestRestart; + private delegate* unmanaged[Cdecl] fn__ignoreNextRestart; + private delegate* unmanaged[Cdecl] fn__setFadeOutAfterDeath; + private delegate* unmanaged[Cdecl] fn__setFadeOutAfterArrest; + private delegate* unmanaged[Cdecl] fn__setFadeInAfterDeathArrest; + private delegate* unmanaged[Cdecl] fn__setFadeInAfterLoad; private delegate* unmanaged[Cdecl] fn__registerSaveHouse; - private delegate* unmanaged[Cdecl] fn__setSaveHouse; - private delegate* unmanaged[Cdecl] fn__overrideSaveHouse; - private delegate* unmanaged[Cdecl] fn__0xA4A0065E39C9F25C; + private delegate* unmanaged[Cdecl] fn__setSaveHouse; + private delegate* unmanaged[Cdecl] fn__overrideSaveHouse; + private delegate* unmanaged[Cdecl] fn__0xA4A0065E39C9F25C; private delegate* unmanaged[Cdecl] fn__doAutoSave; - private delegate* unmanaged[Cdecl] fn__getIsAutoSaveOff; - private delegate* unmanaged[Cdecl] fn__isAutoSaveInProgress; - private delegate* unmanaged[Cdecl] fn__hasCodeRequestedAutosave; + private delegate* unmanaged[Cdecl] fn__getIsAutoSaveOff; + private delegate* unmanaged[Cdecl] fn__isAutoSaveInProgress; + private delegate* unmanaged[Cdecl] fn__hasCodeRequestedAutosave; private delegate* unmanaged[Cdecl] fn__clearCodeRequestedAutosave; private delegate* unmanaged[Cdecl] fn__beginReplayStats; private delegate* unmanaged[Cdecl] fn__addReplayStatValue; @@ -29202,81 +29202,81 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getReplayStatCount; private delegate* unmanaged[Cdecl] fn__getReplayStatAtIndex; private delegate* unmanaged[Cdecl] fn__clearReplayStats; - private delegate* unmanaged[Cdecl] fn__queueMissionRepeatLoad; - private delegate* unmanaged[Cdecl] fn__queueMissionRepeatSave; + private delegate* unmanaged[Cdecl] fn__queueMissionRepeatLoad; + private delegate* unmanaged[Cdecl] fn__queueMissionRepeatSave; private delegate* unmanaged[Cdecl] fn__0xEB2104E905C6F2E9; private delegate* unmanaged[Cdecl] fn__getStatusOfMissionRepeatSave; - private delegate* unmanaged[Cdecl] fn__isMemoryCardInUse; - private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoords; - private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoordsIgnoreEntity; - private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoordsIgnoreEntityNew; + private delegate* unmanaged[Cdecl] fn__isMemoryCardInUse; + private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoords; + private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoordsIgnoreEntity; + private delegate* unmanaged[Cdecl] fn__shootSingleBulletBetweenCoordsIgnoreEntityNew; private delegate* unmanaged[Cdecl] fn__getModelDimensions; private delegate* unmanaged[Cdecl] fn__setFakeWantedLevel; private delegate* unmanaged[Cdecl] fn__getFakeWantedLevel; - private delegate* unmanaged[Cdecl] fn__isBitSet; - private delegate* unmanaged[Cdecl] fn__usingMissionCreator; - private delegate* unmanaged[Cdecl] fn__allowMissionCreatorWarp; - private delegate* unmanaged[Cdecl] fn__setMinigameInProgress; - private delegate* unmanaged[Cdecl] fn__isMinigameInProgress; - private delegate* unmanaged[Cdecl] fn__isThisAMinigameScript; - private delegate* unmanaged[Cdecl] fn__isSniperInverted; - private delegate* unmanaged[Cdecl] fn__shouldUseMetricMeasurements; + private delegate* unmanaged[Cdecl] fn__isBitSet; + private delegate* unmanaged[Cdecl] fn__usingMissionCreator; + private delegate* unmanaged[Cdecl] fn__allowMissionCreatorWarp; + private delegate* unmanaged[Cdecl] fn__setMinigameInProgress; + private delegate* unmanaged[Cdecl] fn__isMinigameInProgress; + private delegate* unmanaged[Cdecl] fn__isThisAMinigameScript; + private delegate* unmanaged[Cdecl] fn__isSniperInverted; + private delegate* unmanaged[Cdecl] fn__shouldUseMetricMeasurements; private delegate* unmanaged[Cdecl] fn__getProfileSetting; - private delegate* unmanaged[Cdecl] fn__areStringsEqual; - private delegate* unmanaged[Cdecl] fn__compareStrings; + private delegate* unmanaged[Cdecl] fn__areStringsEqual; + private delegate* unmanaged[Cdecl] fn__compareStrings; private delegate* unmanaged[Cdecl] fn__absi; private delegate* unmanaged[Cdecl] fn__absf; - private delegate* unmanaged[Cdecl] fn__isSniperBulletInArea; - private delegate* unmanaged[Cdecl] fn__isProjectileInArea; - private delegate* unmanaged[Cdecl] fn__isProjectileTypeInArea; - private delegate* unmanaged[Cdecl] fn__isProjectileTypeInAngledArea; - private delegate* unmanaged[Cdecl] fn__isProjectileTypeWithinDistance; - private delegate* unmanaged[Cdecl] fn__getCoordsOfProjectileTypeInArea; - private delegate* unmanaged[Cdecl] fn__getCoordsOfProjectileTypeWithinDistance; - private delegate* unmanaged[Cdecl] fn__getProjectileNearPed; - private delegate* unmanaged[Cdecl] fn__isBulletInAngledArea; - private delegate* unmanaged[Cdecl] fn__isBulletInArea; - private delegate* unmanaged[Cdecl] fn__isBulletInBox; - private delegate* unmanaged[Cdecl] fn__hasBulletImpactedInArea; - private delegate* unmanaged[Cdecl] fn__hasBulletImpactedInBox; - private delegate* unmanaged[Cdecl] fn__isOrbisVersion; - private delegate* unmanaged[Cdecl] fn__isDurangoVersion; - private delegate* unmanaged[Cdecl] fn__isXbox360Version; - private delegate* unmanaged[Cdecl] fn__isPs3Version; - private delegate* unmanaged[Cdecl] fn__isPcVersion; - private delegate* unmanaged[Cdecl] fn__isAussieVersion; - private delegate* unmanaged[Cdecl] fn__isStringNull; - private delegate* unmanaged[Cdecl] fn__isStringNullOrEmpty; - private delegate* unmanaged[Cdecl] fn__stringToInt; + private delegate* unmanaged[Cdecl] fn__isSniperBulletInArea; + private delegate* unmanaged[Cdecl] fn__isProjectileInArea; + private delegate* unmanaged[Cdecl] fn__isProjectileTypeInArea; + private delegate* unmanaged[Cdecl] fn__isProjectileTypeInAngledArea; + private delegate* unmanaged[Cdecl] fn__isProjectileTypeWithinDistance; + private delegate* unmanaged[Cdecl] fn__getCoordsOfProjectileTypeInArea; + private delegate* unmanaged[Cdecl] fn__getCoordsOfProjectileTypeWithinDistance; + private delegate* unmanaged[Cdecl] fn__getProjectileNearPed; + private delegate* unmanaged[Cdecl] fn__isBulletInAngledArea; + private delegate* unmanaged[Cdecl] fn__isBulletInArea; + private delegate* unmanaged[Cdecl] fn__isBulletInBox; + private delegate* unmanaged[Cdecl] fn__hasBulletImpactedInArea; + private delegate* unmanaged[Cdecl] fn__hasBulletImpactedInBox; + private delegate* unmanaged[Cdecl] fn__isOrbisVersion; + private delegate* unmanaged[Cdecl] fn__isDurangoVersion; + private delegate* unmanaged[Cdecl] fn__isXbox360Version; + private delegate* unmanaged[Cdecl] fn__isPs3Version; + private delegate* unmanaged[Cdecl] fn__isPcVersion; + private delegate* unmanaged[Cdecl] fn__isAussieVersion; + private delegate* unmanaged[Cdecl] fn__isStringNull; + private delegate* unmanaged[Cdecl] fn__isStringNullOrEmpty; + private delegate* unmanaged[Cdecl] fn__stringToInt; private delegate* unmanaged[Cdecl] fn__setBitsInRange; private delegate* unmanaged[Cdecl] fn__getBitsInRange; private delegate* unmanaged[Cdecl] fn__addStuntJump; private delegate* unmanaged[Cdecl] fn__addStuntJumpAngled; - private delegate* unmanaged[Cdecl] fn__0xFB80AB299D2EE1BD; + private delegate* unmanaged[Cdecl] fn__0xFB80AB299D2EE1BD; private delegate* unmanaged[Cdecl] fn__deleteStuntJump; private delegate* unmanaged[Cdecl] fn__enableStuntJumpSet; private delegate* unmanaged[Cdecl] fn__disableStuntJumpSet; - private delegate* unmanaged[Cdecl] fn__setStuntJumpsCanTrigger; - private delegate* unmanaged[Cdecl] fn__isStuntJumpInProgress; - private delegate* unmanaged[Cdecl] fn__isStuntJumpMessageShowing; + private delegate* unmanaged[Cdecl] fn__setStuntJumpsCanTrigger; + private delegate* unmanaged[Cdecl] fn__isStuntJumpInProgress; + private delegate* unmanaged[Cdecl] fn__isStuntJumpMessageShowing; private delegate* unmanaged[Cdecl] fn__getNumSuccessfulStuntJumps; private delegate* unmanaged[Cdecl] fn__getTotalSuccessfulStuntJumps; private delegate* unmanaged[Cdecl] fn__cancelStuntJump; - private delegate* unmanaged[Cdecl] fn__setGamePaused; - private delegate* unmanaged[Cdecl] fn__setThisScriptCanBePaused; - private delegate* unmanaged[Cdecl] fn__setThisScriptCanRemoveBlipsCreatedByAnyScript; - private delegate* unmanaged[Cdecl] fn__hasButtonCombinationJustBeenEntered; - private delegate* unmanaged[Cdecl] fn__hasCheatStringJustBeenEntered; - private delegate* unmanaged[Cdecl] fn__0xFA3FFB0EEBC288A3; + private delegate* unmanaged[Cdecl] fn__setGamePaused; + private delegate* unmanaged[Cdecl] fn__setThisScriptCanBePaused; + private delegate* unmanaged[Cdecl] fn__setThisScriptCanRemoveBlipsCreatedByAnyScript; + private delegate* unmanaged[Cdecl] fn__hasButtonCombinationJustBeenEntered; + private delegate* unmanaged[Cdecl] fn__hasCheatStringJustBeenEntered; + private delegate* unmanaged[Cdecl] fn__0xFA3FFB0EEBC288A3; private delegate* unmanaged[Cdecl] fn__setInstancePriorityMode; private delegate* unmanaged[Cdecl] fn__setInstancePriorityHint; - private delegate* unmanaged[Cdecl] fn__isFrontendFading; + private delegate* unmanaged[Cdecl] fn__isFrontendFading; private delegate* unmanaged[Cdecl] fn__populateNow; private delegate* unmanaged[Cdecl] fn__getIndexOfCurrentLevel; private delegate* unmanaged[Cdecl] fn__setGravityLevel; - private delegate* unmanaged[Cdecl] fn__startSaveData; + private delegate* unmanaged[Cdecl] fn__startSaveData; private delegate* unmanaged[Cdecl] fn__stopSaveData; - private delegate* unmanaged[Cdecl] fn__getSizeOfSaveData; + private delegate* unmanaged[Cdecl] fn__getSizeOfSaveData; private delegate* unmanaged[Cdecl] fn__registerIntToSave; private delegate* unmanaged[Cdecl] fn__registerInt64ToSave; private delegate* unmanaged[Cdecl] fn__registerEnumToSave; @@ -29292,30 +29292,30 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__startSaveArrayWithSize; private delegate* unmanaged[Cdecl] fn__stopSaveArray; private delegate* unmanaged[Cdecl] fn__copyMemory; - private delegate* unmanaged[Cdecl] fn__enableDispatchService; - private delegate* unmanaged[Cdecl] fn__blockDispatchServiceResourceCreation; + private delegate* unmanaged[Cdecl] fn__enableDispatchService; + private delegate* unmanaged[Cdecl] fn__blockDispatchServiceResourceCreation; private delegate* unmanaged[Cdecl] fn__getNumDispatchedUnitsForPlayer; - private delegate* unmanaged[Cdecl] fn__createIncident; - private delegate* unmanaged[Cdecl] fn__createIncidentWithEntity; + private delegate* unmanaged[Cdecl] fn__createIncident; + private delegate* unmanaged[Cdecl] fn__createIncidentWithEntity; private delegate* unmanaged[Cdecl] fn__deleteIncident; - private delegate* unmanaged[Cdecl] fn__isIncidentValid; + private delegate* unmanaged[Cdecl] fn__isIncidentValid; private delegate* unmanaged[Cdecl] fn__setIncidentRequestedUnits; private delegate* unmanaged[Cdecl] fn__setIncidentUnk; - private delegate* unmanaged[Cdecl] fn__findSpawnPointInDirection; - private delegate* unmanaged[Cdecl] fn__addPopMultiplierArea; - private delegate* unmanaged[Cdecl] fn__doesPopMultiplierAreaExist; - private delegate* unmanaged[Cdecl] fn__removePopMultiplierArea; - private delegate* unmanaged[Cdecl] fn__isPopMultiplierAreaUnk; - private delegate* unmanaged[Cdecl] fn__addPopMultiplierSphere; - private delegate* unmanaged[Cdecl] fn__doesPopMultiplierSphereExist; - private delegate* unmanaged[Cdecl] fn__removePopMultiplierSphere; - private delegate* unmanaged[Cdecl] fn__enableTennisMode; - private delegate* unmanaged[Cdecl] fn__isTennisMode; - private delegate* unmanaged[Cdecl] fn__playTennisSwingAnim; - private delegate* unmanaged[Cdecl] fn__getTennisSwingAnimComplete; - private delegate* unmanaged[Cdecl] fn__0x19BFED045C647C49; - private delegate* unmanaged[Cdecl] fn__0xE95B0C7D5BA3B96B; - private delegate* unmanaged[Cdecl] fn__playTennisDiveAnim; + private delegate* unmanaged[Cdecl] fn__findSpawnPointInDirection; + private delegate* unmanaged[Cdecl] fn__addPopMultiplierArea; + private delegate* unmanaged[Cdecl] fn__doesPopMultiplierAreaExist; + private delegate* unmanaged[Cdecl] fn__removePopMultiplierArea; + private delegate* unmanaged[Cdecl] fn__isPopMultiplierAreaUnk; + private delegate* unmanaged[Cdecl] fn__addPopMultiplierSphere; + private delegate* unmanaged[Cdecl] fn__doesPopMultiplierSphereExist; + private delegate* unmanaged[Cdecl] fn__removePopMultiplierSphere; + private delegate* unmanaged[Cdecl] fn__enableTennisMode; + private delegate* unmanaged[Cdecl] fn__isTennisMode; + private delegate* unmanaged[Cdecl] fn__playTennisSwingAnim; + private delegate* unmanaged[Cdecl] fn__getTennisSwingAnimComplete; + private delegate* unmanaged[Cdecl] fn__0x19BFED045C647C49; + private delegate* unmanaged[Cdecl] fn__0xE95B0C7D5BA3B96B; + private delegate* unmanaged[Cdecl] fn__playTennisDiveAnim; private delegate* unmanaged[Cdecl] fn__0x54F157E0336A3822; private delegate* unmanaged[Cdecl] fn__resetDispatchSpawnLocation; private delegate* unmanaged[Cdecl] fn__setDispatchSpawnLocation; @@ -29332,48 +29332,48 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xE532EC1A63231B4F; private delegate* unmanaged[Cdecl] fn__addTacticalAnalysisPoint; private delegate* unmanaged[Cdecl] fn__clearTacticalAnalysisPoints; - private delegate* unmanaged[Cdecl] fn__setRiotModeEnabled; + private delegate* unmanaged[Cdecl] fn__setRiotModeEnabled; private delegate* unmanaged[Cdecl] fn__displayOnscreenKeyboardWithLongerInitialString; private delegate* unmanaged[Cdecl] fn__displayOnscreenKeyboard; private delegate* unmanaged[Cdecl] fn__updateOnscreenKeyboard; private delegate* unmanaged[Cdecl] fn__getOnscreenKeyboardResult; private delegate* unmanaged[Cdecl] fn__cancelOnscreenKeyboard; private delegate* unmanaged[Cdecl] fn__nextOnscreenKeyboardResultWillDisplayUsingTheseFonts; - private delegate* unmanaged[Cdecl] fn__removeStealthKill; - private delegate* unmanaged[Cdecl] fn__0x1EAE0A6E978894A2; + private delegate* unmanaged[Cdecl] fn__removeStealthKill; + private delegate* unmanaged[Cdecl] fn__0x1EAE0A6E978894A2; private delegate* unmanaged[Cdecl] fn__setExplosiveAmmoThisFrame; private delegate* unmanaged[Cdecl] fn__setFireAmmoThisFrame; private delegate* unmanaged[Cdecl] fn__setExplosiveMeleeThisFrame; private delegate* unmanaged[Cdecl] fn__setSuperJumpThisFrame; private delegate* unmanaged[Cdecl] fn__setBeastModeActive; private delegate* unmanaged[Cdecl] fn__setForcePlayerToJump; - private delegate* unmanaged[Cdecl] fn__0x6FDDF453C0C756EC; + private delegate* unmanaged[Cdecl] fn__0x6FDDF453C0C756EC; private delegate* unmanaged[Cdecl] fn__0xFB00CA71DA386228; - private delegate* unmanaged[Cdecl] fn__areProfileSettingsValid; + private delegate* unmanaged[Cdecl] fn__areProfileSettingsValid; private delegate* unmanaged[Cdecl] fn__0xE3D969D2785FFB5E; private delegate* unmanaged[Cdecl] fn__forceGameStatePlaying; private delegate* unmanaged[Cdecl] fn__scriptRaceInit; private delegate* unmanaged[Cdecl] fn__scriptRaceShutdown; private delegate* unmanaged[Cdecl] fn__0x1BB299305C3E8C13; - private delegate* unmanaged[Cdecl] fn__scriptRaceGetPlayerSplitTime; + private delegate* unmanaged[Cdecl] fn__scriptRaceGetPlayerSplitTime; private delegate* unmanaged[Cdecl] fn__startBenchmarkRecording; private delegate* unmanaged[Cdecl] fn__stopBenchmarkRecording; private delegate* unmanaged[Cdecl] fn__resetBenchmarkRecording; private delegate* unmanaged[Cdecl] fn__saveBenchmarkRecording; - private delegate* unmanaged[Cdecl] fn__uiIsSingleplayerPauseMenuActive; - private delegate* unmanaged[Cdecl] fn__landingMenuIsActive; - private delegate* unmanaged[Cdecl] fn__isCommandLineBenchmarkValueSet; + private delegate* unmanaged[Cdecl] fn__uiIsSingleplayerPauseMenuActive; + private delegate* unmanaged[Cdecl] fn__landingMenuIsActive; + private delegate* unmanaged[Cdecl] fn__isCommandLineBenchmarkValueSet; private delegate* unmanaged[Cdecl] fn__getBenchmarkIterationsFromCommandLine; private delegate* unmanaged[Cdecl] fn__getBenchmarkPassFromCommandLine; private delegate* unmanaged[Cdecl] fn__restartGame; private delegate* unmanaged[Cdecl] fn__forceSocialClubUpdate; - private delegate* unmanaged[Cdecl] fn__hasAsyncInstallFinished; + private delegate* unmanaged[Cdecl] fn__hasAsyncInstallFinished; private delegate* unmanaged[Cdecl] fn__cleanupAsyncInstall; - private delegate* unmanaged[Cdecl] fn__isInPowerSavingMode; + private delegate* unmanaged[Cdecl] fn__isInPowerSavingMode; private delegate* unmanaged[Cdecl] fn__getPowerSavingModeDuration; - private delegate* unmanaged[Cdecl] fn__setPlayerIsInAnimalForm; - private delegate* unmanaged[Cdecl] fn__getIsPlayerInAnimalForm; - private delegate* unmanaged[Cdecl] fn__setPlayerRockstarEditorDisabled; + private delegate* unmanaged[Cdecl] fn__setPlayerIsInAnimalForm; + private delegate* unmanaged[Cdecl] fn__getIsPlayerInAnimalForm; + private delegate* unmanaged[Cdecl] fn__setPlayerRockstarEditorDisabled; private delegate* unmanaged[Cdecl] fn__0x23227DF0B2115469; private delegate* unmanaged[Cdecl] fn__0xD10282B6E3751BA0; private delegate* unmanaged[Cdecl] fn__0x693478ACBD7F18E7; @@ -29384,13 +29384,13 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getMobilePhoneRotation; private delegate* unmanaged[Cdecl] fn__setMobilePhonePosition; private delegate* unmanaged[Cdecl] fn__getMobilePhonePosition; - private delegate* unmanaged[Cdecl] fn__scriptIsMovingMobilePhoneOffscreen; - private delegate* unmanaged[Cdecl] fn__canPhoneBeSeenOnScreen; - private delegate* unmanaged[Cdecl] fn__setMobilePhoneUnk; + private delegate* unmanaged[Cdecl] fn__scriptIsMovingMobilePhoneOffscreen; + private delegate* unmanaged[Cdecl] fn__canPhoneBeSeenOnScreen; + private delegate* unmanaged[Cdecl] fn__setMobilePhoneUnk; private delegate* unmanaged[Cdecl] fn__cellCamMoveFinger; - private delegate* unmanaged[Cdecl] fn__cellCamSetLean; - private delegate* unmanaged[Cdecl] fn__cellCamActivate; - private delegate* unmanaged[Cdecl] fn__cellCamDisableThisFrame; + private delegate* unmanaged[Cdecl] fn__cellCamSetLean; + private delegate* unmanaged[Cdecl] fn__cellCamActivate; + private delegate* unmanaged[Cdecl] fn__cellCamDisableThisFrame; private delegate* unmanaged[Cdecl] fn__0xA2CCBE62CD4C91A4; private delegate* unmanaged[Cdecl] fn__0x1B0B4AEED5B9B41C; private delegate* unmanaged[Cdecl] fn__0x53F4892D18EC90A4; @@ -29400,28 +29400,28 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xD6ADE981781FCA09; private delegate* unmanaged[Cdecl] fn__0xF1E22DC13F5EEBAD; private delegate* unmanaged[Cdecl] fn__0x466DA42C89865553; - private delegate* unmanaged[Cdecl] fn__cellCamIsCharVisibleNoFaceCheck; + private delegate* unmanaged[Cdecl] fn__cellCamIsCharVisibleNoFaceCheck; private delegate* unmanaged[Cdecl] fn__getMobilePhoneRenderId; private delegate* unmanaged[Cdecl] fn__networkInitializeCash; - private delegate* unmanaged[Cdecl] fn__networkDeleteCharacter; + private delegate* unmanaged[Cdecl] fn__networkDeleteCharacter; private delegate* unmanaged[Cdecl] fn__networkManualDeleteCharacter; - private delegate* unmanaged[Cdecl] fn__networkGetIsHighEarner; + private delegate* unmanaged[Cdecl] fn__networkGetIsHighEarner; private delegate* unmanaged[Cdecl] fn__networkClearCharacterWallet; private delegate* unmanaged[Cdecl] fn__networkGivePlayerJobshareCash; private delegate* unmanaged[Cdecl] fn__networkReceivePlayerJobshareCash; - private delegate* unmanaged[Cdecl] fn__networkCanShareJobCash; - private delegate* unmanaged[Cdecl] fn__networkRefundCash; - private delegate* unmanaged[Cdecl] fn__networkDeductCash; - private delegate* unmanaged[Cdecl] fn__networkMoneyCanBet; - private delegate* unmanaged[Cdecl] fn__networkCanBet; - private delegate* unmanaged[Cdecl] fn__networkCasinoCanUseGamblingType; - private delegate* unmanaged[Cdecl] fn__networkCasinoCanPurchaseChipsWithPvc; - private delegate* unmanaged[Cdecl] fn__networkCasinoCanGamble; - private delegate* unmanaged[Cdecl] fn__networkCasinoCanPurchaseChipsWithPvc2; - private delegate* unmanaged[Cdecl] fn__networkCasinoPurchaseChips; - private delegate* unmanaged[Cdecl] fn__networkCasinoSellChips; + private delegate* unmanaged[Cdecl] fn__networkCanShareJobCash; + private delegate* unmanaged[Cdecl] fn__networkRefundCash; + private delegate* unmanaged[Cdecl] fn__networkDeductCash; + private delegate* unmanaged[Cdecl] fn__networkMoneyCanBet; + private delegate* unmanaged[Cdecl] fn__networkCanBet; + private delegate* unmanaged[Cdecl] fn__networkCasinoCanUseGamblingType; + private delegate* unmanaged[Cdecl] fn__networkCasinoCanPurchaseChipsWithPvc; + private delegate* unmanaged[Cdecl] fn__networkCasinoCanGamble; + private delegate* unmanaged[Cdecl] fn__networkCasinoCanPurchaseChipsWithPvc2; + private delegate* unmanaged[Cdecl] fn__networkCasinoPurchaseChips; + private delegate* unmanaged[Cdecl] fn__networkCasinoSellChips; private delegate* unmanaged[Cdecl] fn__0xCD0F5B5D932AE473; - private delegate* unmanaged[Cdecl] fn__canPayGoon; + private delegate* unmanaged[Cdecl] fn__canPayGoon; private delegate* unmanaged[Cdecl] fn__networkEarnFromCashingOut; private delegate* unmanaged[Cdecl] fn__networkEarnFromPickup; private delegate* unmanaged[Cdecl] fn__networkEarnFromGangPickup; @@ -29433,7 +29433,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkEarnFromJobX2; private delegate* unmanaged[Cdecl] fn__networkEarnFromPremiumJob; private delegate* unmanaged[Cdecl] fn__networkEarnFromBendJob; - private delegate* unmanaged[Cdecl] fn__networkEarnFromChallengeWin; + private delegate* unmanaged[Cdecl] fn__networkEarnFromChallengeWin; private delegate* unmanaged[Cdecl] fn__networkEarnFromBounty; private delegate* unmanaged[Cdecl] fn__networkEarnFromImportExport; private delegate* unmanaged[Cdecl] fn__networkEarnFromHoldups; @@ -29467,61 +29467,61 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkEarnFromBusinessHubSell; private delegate* unmanaged[Cdecl] fn__networkEarnFromFmbbBossWork; private delegate* unmanaged[Cdecl] fn__networkEarnFmbbWageBonus; - private delegate* unmanaged[Cdecl] fn__networkCanSpendMoney; - private delegate* unmanaged[Cdecl] fn__networkCanSpendMoney2; - private delegate* unmanaged[Cdecl] fn__networkBuyItem; - private delegate* unmanaged[Cdecl] fn__networkSpentTaxi; - private delegate* unmanaged[Cdecl] fn__networkPayEmployeeWage; - private delegate* unmanaged[Cdecl] fn__networkPayUtilityBill; - private delegate* unmanaged[Cdecl] fn__networkPayMatchEntryFee; - private delegate* unmanaged[Cdecl] fn__networkSpentBetting; + private delegate* unmanaged[Cdecl] fn__networkCanSpendMoney; + private delegate* unmanaged[Cdecl] fn__networkCanSpendMoney2; + private delegate* unmanaged[Cdecl] fn__networkBuyItem; + private delegate* unmanaged[Cdecl] fn__networkSpentTaxi; + private delegate* unmanaged[Cdecl] fn__networkPayEmployeeWage; + private delegate* unmanaged[Cdecl] fn__networkPayUtilityBill; + private delegate* unmanaged[Cdecl] fn__networkPayMatchEntryFee; + private delegate* unmanaged[Cdecl] fn__networkSpentBetting; private delegate* unmanaged[Cdecl] fn__networkSpentWager; - private delegate* unmanaged[Cdecl] fn__networkSpentInStripclub; - private delegate* unmanaged[Cdecl] fn__networkBuyHealthcare; - private delegate* unmanaged[Cdecl] fn__networkBuyAirstrike; - private delegate* unmanaged[Cdecl] fn__networkBuyBackupGang; - private delegate* unmanaged[Cdecl] fn__networkBuyHeliStrike; - private delegate* unmanaged[Cdecl] fn__networkSpentAmmoDrop; - private delegate* unmanaged[Cdecl] fn__networkBuyBounty; - private delegate* unmanaged[Cdecl] fn__networkBuyProperty; - private delegate* unmanaged[Cdecl] fn__networkBuySmokes; - private delegate* unmanaged[Cdecl] fn__networkSpentHeliPickup; - private delegate* unmanaged[Cdecl] fn__networkSpentBoatPickup; - private delegate* unmanaged[Cdecl] fn__networkSpentBullShark; - private delegate* unmanaged[Cdecl] fn__networkSpentCashDrop; - private delegate* unmanaged[Cdecl] fn__networkSpentHireMugger; - private delegate* unmanaged[Cdecl] fn__networkSpentRobbedByMugger; - private delegate* unmanaged[Cdecl] fn__networkSpentHireMercenary; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyWantedlevel; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyOfftheradar; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyRevealPlayers; - private delegate* unmanaged[Cdecl] fn__networkSpentCarwash; - private delegate* unmanaged[Cdecl] fn__networkSpentCinema; - private delegate* unmanaged[Cdecl] fn__networkSpentTelescope; - private delegate* unmanaged[Cdecl] fn__networkSpentHoldups; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyPassiveMode; - private delegate* unmanaged[Cdecl] fn__networkSpentBankInterest; - private delegate* unmanaged[Cdecl] fn__networkSpentProstitutes; - private delegate* unmanaged[Cdecl] fn__networkSpentArrestBail; - private delegate* unmanaged[Cdecl] fn__networkSpentPayVehicleInsurancePremium; - private delegate* unmanaged[Cdecl] fn__networkSpentCallPlayer; - private delegate* unmanaged[Cdecl] fn__networkSpentBounty; - private delegate* unmanaged[Cdecl] fn__networkSpentFromRockstar; + private delegate* unmanaged[Cdecl] fn__networkSpentInStripclub; + private delegate* unmanaged[Cdecl] fn__networkBuyHealthcare; + private delegate* unmanaged[Cdecl] fn__networkBuyAirstrike; + private delegate* unmanaged[Cdecl] fn__networkBuyBackupGang; + private delegate* unmanaged[Cdecl] fn__networkBuyHeliStrike; + private delegate* unmanaged[Cdecl] fn__networkSpentAmmoDrop; + private delegate* unmanaged[Cdecl] fn__networkBuyBounty; + private delegate* unmanaged[Cdecl] fn__networkBuyProperty; + private delegate* unmanaged[Cdecl] fn__networkBuySmokes; + private delegate* unmanaged[Cdecl] fn__networkSpentHeliPickup; + private delegate* unmanaged[Cdecl] fn__networkSpentBoatPickup; + private delegate* unmanaged[Cdecl] fn__networkSpentBullShark; + private delegate* unmanaged[Cdecl] fn__networkSpentCashDrop; + private delegate* unmanaged[Cdecl] fn__networkSpentHireMugger; + private delegate* unmanaged[Cdecl] fn__networkSpentRobbedByMugger; + private delegate* unmanaged[Cdecl] fn__networkSpentHireMercenary; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyWantedlevel; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyOfftheradar; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyRevealPlayers; + private delegate* unmanaged[Cdecl] fn__networkSpentCarwash; + private delegate* unmanaged[Cdecl] fn__networkSpentCinema; + private delegate* unmanaged[Cdecl] fn__networkSpentTelescope; + private delegate* unmanaged[Cdecl] fn__networkSpentHoldups; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyPassiveMode; + private delegate* unmanaged[Cdecl] fn__networkSpentBankInterest; + private delegate* unmanaged[Cdecl] fn__networkSpentProstitutes; + private delegate* unmanaged[Cdecl] fn__networkSpentArrestBail; + private delegate* unmanaged[Cdecl] fn__networkSpentPayVehicleInsurancePremium; + private delegate* unmanaged[Cdecl] fn__networkSpentCallPlayer; + private delegate* unmanaged[Cdecl] fn__networkSpentBounty; + private delegate* unmanaged[Cdecl] fn__networkSpentFromRockstar; private delegate* unmanaged[Cdecl] fn__0x9B5016A6433A68C5; private delegate* unmanaged[Cdecl] fn__processCashGift; - private delegate* unmanaged[Cdecl] fn__networkSpentPlayerHealthcare; - private delegate* unmanaged[Cdecl] fn__networkSpentNoCops; - private delegate* unmanaged[Cdecl] fn__networkSpentRequestJob; - private delegate* unmanaged[Cdecl] fn__networkSpentRequestHeist; - private delegate* unmanaged[Cdecl] fn__networkBuyFairgroundRide; - private delegate* unmanaged[Cdecl] fn__0x7C4FCCD2E4DEB394; - private delegate* unmanaged[Cdecl] fn__networkSpentJobSkip; - private delegate* unmanaged[Cdecl] fn__networkSpentBoss; + private delegate* unmanaged[Cdecl] fn__networkSpentPlayerHealthcare; + private delegate* unmanaged[Cdecl] fn__networkSpentNoCops; + private delegate* unmanaged[Cdecl] fn__networkSpentRequestJob; + private delegate* unmanaged[Cdecl] fn__networkSpentRequestHeist; + private delegate* unmanaged[Cdecl] fn__networkBuyFairgroundRide; + private delegate* unmanaged[Cdecl] fn__0x7C4FCCD2E4DEB394; + private delegate* unmanaged[Cdecl] fn__networkSpentJobSkip; + private delegate* unmanaged[Cdecl] fn__networkSpentBoss; private delegate* unmanaged[Cdecl] fn__networkSpentPayGoon; private delegate* unmanaged[Cdecl] fn__networkSpentPayBoss; - private delegate* unmanaged[Cdecl] fn__networkSpentMoveYacht; + private delegate* unmanaged[Cdecl] fn__networkSpentMoveYacht; private delegate* unmanaged[Cdecl] fn__networkSpentRenameOrganization; - private delegate* unmanaged[Cdecl] fn__networkBuyContraband; + private delegate* unmanaged[Cdecl] fn__networkBuyContraband; private delegate* unmanaged[Cdecl] fn__networkSpentVipUtilityCharges; private delegate* unmanaged[Cdecl] fn__0x112209CE0290C03A; private delegate* unmanaged[Cdecl] fn__0xED5FD7AF10F5E262; @@ -29533,7 +29533,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x8E243837643D9583; private delegate* unmanaged[Cdecl] fn__0xBD0EFB25CCA8F97A; private delegate* unmanaged[Cdecl] fn__0xA95F667A755725DA; - private delegate* unmanaged[Cdecl] fn__networkSpentPurchaseWarehouse; + private delegate* unmanaged[Cdecl] fn__networkSpentPurchaseWarehouse; private delegate* unmanaged[Cdecl] fn__0x4128464231E3CA0B; private delegate* unmanaged[Cdecl] fn__0x2FAB6614CE22E196; private delegate* unmanaged[Cdecl] fn__networkSpentOrderWarehouseVehicle; @@ -29553,14 +29553,14 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkSpentImportExportRepair; private delegate* unmanaged[Cdecl] fn__networkSpentPurchaseHangar; private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeHangar; - private delegate* unmanaged[Cdecl] fn__networkSpentHangarUtilityCharges; - private delegate* unmanaged[Cdecl] fn__networkSpentHangarStaffCharges; + private delegate* unmanaged[Cdecl] fn__networkSpentHangarUtilityCharges; + private delegate* unmanaged[Cdecl] fn__networkSpentHangarStaffCharges; private delegate* unmanaged[Cdecl] fn__networkSpentBuyTruck; private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeTruck; private delegate* unmanaged[Cdecl] fn__networkSpentBuyBunker; private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeBunker; private delegate* unmanaged[Cdecl] fn__networkEarnFromSellBunker; - private delegate* unmanaged[Cdecl] fn__networkSpentBallisticEquipment; + private delegate* unmanaged[Cdecl] fn__networkSpentBallisticEquipment; private delegate* unmanaged[Cdecl] fn__networkEarnFromRdrBonus; private delegate* unmanaged[Cdecl] fn__networkEarnFromWagePayment; private delegate* unmanaged[Cdecl] fn__networkEarnFromWagePaymentBonus; @@ -29581,8 +29581,8 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkEarnFromGangopsAwards; private delegate* unmanaged[Cdecl] fn__networkEarnFromGangopsElite; private delegate* unmanaged[Cdecl] fn__networkRivalDeliveryCompleted; - private delegate* unmanaged[Cdecl] fn__networkSpentGangopsStartStrand; - private delegate* unmanaged[Cdecl] fn__networkSpentGangopsTripSkip; + private delegate* unmanaged[Cdecl] fn__networkSpentGangopsStartStrand; + private delegate* unmanaged[Cdecl] fn__networkSpentGangopsTripSkip; private delegate* unmanaged[Cdecl] fn__networkEarnFromGangopsJobsPrepParticipation; private delegate* unmanaged[Cdecl] fn__networkEarnFromGangopsJobsSetup; private delegate* unmanaged[Cdecl] fn__networkEarnFromGangopsJobsFinale; @@ -29597,29 +29597,29 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x1DC9B749E7AE282B; private delegate* unmanaged[Cdecl] fn__0xC6E74CF8C884C880; private delegate* unmanaged[Cdecl] fn__0x65482BFD0923C8A1; - private delegate* unmanaged[Cdecl] fn__networkSpentRdrhatchetBonus; - private delegate* unmanaged[Cdecl] fn__networkSpentNightclubEntryFee; - private delegate* unmanaged[Cdecl] fn__networkSpentNightclubBarDrink; - private delegate* unmanaged[Cdecl] fn__networkSpentBountyHunterMission; - private delegate* unmanaged[Cdecl] fn__networkSpentRehireDj; - private delegate* unmanaged[Cdecl] fn__networkSpentArenaJoinSpectator; + private delegate* unmanaged[Cdecl] fn__networkSpentRdrhatchetBonus; + private delegate* unmanaged[Cdecl] fn__networkSpentNightclubEntryFee; + private delegate* unmanaged[Cdecl] fn__networkSpentNightclubBarDrink; + private delegate* unmanaged[Cdecl] fn__networkSpentBountyHunterMission; + private delegate* unmanaged[Cdecl] fn__networkSpentRehireDj; + private delegate* unmanaged[Cdecl] fn__networkSpentArenaJoinSpectator; private delegate* unmanaged[Cdecl] fn__networkEarnFromArenaSkillLevelProgression; private delegate* unmanaged[Cdecl] fn__networkEarnFromArenaCareerProgression; - private delegate* unmanaged[Cdecl] fn__networkSpentMakeItRain; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyArena; - private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeArena; - private delegate* unmanaged[Cdecl] fn__networkSpentArenaSpectatorBox; - private delegate* unmanaged[Cdecl] fn__networkSpentSpinTheWheelPayment; + private delegate* unmanaged[Cdecl] fn__networkSpentMakeItRain; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyArena; + private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeArena; + private delegate* unmanaged[Cdecl] fn__networkSpentArenaSpectatorBox; + private delegate* unmanaged[Cdecl] fn__networkSpentSpinTheWheelPayment; private delegate* unmanaged[Cdecl] fn__networkEarnFromSpinTheWheelCash; - private delegate* unmanaged[Cdecl] fn__networkSpentArenaPremium; + private delegate* unmanaged[Cdecl] fn__networkSpentArenaPremium; private delegate* unmanaged[Cdecl] fn__networkEarnFromArenaWar; private delegate* unmanaged[Cdecl] fn__networkEarnFromAssassinateTargetKilled2; private delegate* unmanaged[Cdecl] fn__networkEarnFromBbEventCargo; private delegate* unmanaged[Cdecl] fn__networkEarnFromRcTimeTrial; private delegate* unmanaged[Cdecl] fn__networkEarnFromDailyObjectiveEvent; - private delegate* unmanaged[Cdecl] fn__networkSpentCasinoMembership; - private delegate* unmanaged[Cdecl] fn__networkSpentBuyCasino; - private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeCasino; + private delegate* unmanaged[Cdecl] fn__networkSpentCasinoMembership; + private delegate* unmanaged[Cdecl] fn__networkSpentBuyCasino; + private delegate* unmanaged[Cdecl] fn__networkSpentUpgradeCasino; private delegate* unmanaged[Cdecl] fn__networkSpentCasinoGeneric; private delegate* unmanaged[Cdecl] fn__networkEarnFromTimeTrialWin; private delegate* unmanaged[Cdecl] fn__networkEarnFromCollectablesActionFigures; @@ -29655,7 +29655,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xA51338E0DCCD4065; private delegate* unmanaged[Cdecl] fn__0xE2BB399D90942091; private delegate* unmanaged[Cdecl] fn__networkSpentCarclubMembership; - private delegate* unmanaged[Cdecl] fn__networkSpentCarclub; + private delegate* unmanaged[Cdecl] fn__networkSpentCarclub; private delegate* unmanaged[Cdecl] fn__networkSpentAutoshopModifications; private delegate* unmanaged[Cdecl] fn__networkSpentCarclubTakeover; private delegate* unmanaged[Cdecl] fn__networkSpentBuyAutoshop; @@ -29669,7 +29669,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkEarnFromTunerFinale; private delegate* unmanaged[Cdecl] fn__networkEarnFromUpgradeAutoshopLocation; private delegate* unmanaged[Cdecl] fn__networkSpentImAbility; - private delegate* unmanaged[Cdecl] fn__networkSpentFromBank; + private delegate* unmanaged[Cdecl] fn__networkSpentFromBank; private delegate* unmanaged[Cdecl] fn__networkGetVcBankBalance; private delegate* unmanaged[Cdecl] fn__networkGetVcWalletBalance; private delegate* unmanaged[Cdecl] fn__networkGetVcBalance; @@ -29678,318 +29678,318 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkGetStringWalletBalance; private delegate* unmanaged[Cdecl] fn__networkGetStringBankBalance; private delegate* unmanaged[Cdecl] fn__networkGetStringBankWalletBalance; - private delegate* unmanaged[Cdecl] fn__networkGetVcWalletBalanceIsNotLessThan; - private delegate* unmanaged[Cdecl] fn__networkGetVcBankBalanceIsNotLessThan; - private delegate* unmanaged[Cdecl] fn__networkGetVcBankWalletBalanceIsNotLessThan; + private delegate* unmanaged[Cdecl] fn__networkGetVcWalletBalanceIsNotLessThan; + private delegate* unmanaged[Cdecl] fn__networkGetVcBankBalanceIsNotLessThan; + private delegate* unmanaged[Cdecl] fn__networkGetVcBankWalletBalanceIsNotLessThan; private delegate* unmanaged[Cdecl] fn__networkGetPvcTransferBalance; - private delegate* unmanaged[Cdecl] fn__0x08E8EEADFD0DC4A0; - private delegate* unmanaged[Cdecl] fn__networkCanReceivePlayerCash; + private delegate* unmanaged[Cdecl] fn__0x08E8EEADFD0DC4A0; + private delegate* unmanaged[Cdecl] fn__networkCanReceivePlayerCash; private delegate* unmanaged[Cdecl] fn__networkGetRemainingTransferBalance; private delegate* unmanaged[Cdecl] fn__withdrawVc; - private delegate* unmanaged[Cdecl] fn__depositVc; - private delegate* unmanaged[Cdecl] fn__0xE154B48B68EF72BC; - private delegate* unmanaged[Cdecl] fn__0x6FCF8DDEA146C45B; - private delegate* unmanaged[Cdecl] fn__netGameserverUseServerTransactions; - private delegate* unmanaged[Cdecl] fn__netGameserverCatalogItemExists; - private delegate* unmanaged[Cdecl] fn__netGameserverCatalogItemExistsHash; - private delegate* unmanaged[Cdecl] fn__netGameserverGetPrice; - private delegate* unmanaged[Cdecl] fn__netGameserverCatalogIsReady; - private delegate* unmanaged[Cdecl] fn__netGameserverIsCatalogValid; + private delegate* unmanaged[Cdecl] fn__depositVc; + private delegate* unmanaged[Cdecl] fn__0xE154B48B68EF72BC; + private delegate* unmanaged[Cdecl] fn__0x6FCF8DDEA146C45B; + private delegate* unmanaged[Cdecl] fn__netGameserverUseServerTransactions; + private delegate* unmanaged[Cdecl] fn__netGameserverCatalogItemExists; + private delegate* unmanaged[Cdecl] fn__netGameserverCatalogItemExistsHash; + private delegate* unmanaged[Cdecl] fn__netGameserverGetPrice; + private delegate* unmanaged[Cdecl] fn__netGameserverCatalogIsReady; + private delegate* unmanaged[Cdecl] fn__netGameserverIsCatalogValid; private delegate* unmanaged[Cdecl] fn__0x85F6C9ABA1DE2BCF; private delegate* unmanaged[Cdecl] fn__0x357B152EF96C30B6; - private delegate* unmanaged[Cdecl] fn__netGameserverGetCatalogState; + private delegate* unmanaged[Cdecl] fn__netGameserverGetCatalogState; private delegate* unmanaged[Cdecl] fn__0xE3E5A7C64CA2C6ED; - private delegate* unmanaged[Cdecl] fn__0x0395CB47B022E62C; - private delegate* unmanaged[Cdecl] fn__netGameserverStartSession; - private delegate* unmanaged[Cdecl] fn__0x72EB7BA9B69BF6AB; - private delegate* unmanaged[Cdecl] fn__0x170910093218C8B9; - private delegate* unmanaged[Cdecl] fn__0xC13C38E47EA5DF31; - private delegate* unmanaged[Cdecl] fn__netGameserverIsSessionValid; + private delegate* unmanaged[Cdecl] fn__0x0395CB47B022E62C; + private delegate* unmanaged[Cdecl] fn__netGameserverStartSession; + private delegate* unmanaged[Cdecl] fn__0x72EB7BA9B69BF6AB; + private delegate* unmanaged[Cdecl] fn__0x170910093218C8B9; + private delegate* unmanaged[Cdecl] fn__0xC13C38E47EA5DF31; + private delegate* unmanaged[Cdecl] fn__netGameserverIsSessionValid; private delegate* unmanaged[Cdecl] fn__0x74A0FD0688F1EE45; - private delegate* unmanaged[Cdecl] fn__netGameserverSessionApplyReceivedData; - private delegate* unmanaged[Cdecl] fn__netGameserverIsSessionRefreshPending; - private delegate* unmanaged[Cdecl] fn__netGameserverGetBalance; - private delegate* unmanaged[Cdecl] fn__0x613F125BA3BD2EB9; - private delegate* unmanaged[Cdecl] fn__netGameserverGetTransactionManagerData; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketStart; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketDelete; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketEnd; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketAddItem; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketIsFull; - private delegate* unmanaged[Cdecl] fn__netGameserverBasketApplyServerData; - private delegate* unmanaged[Cdecl] fn__netGameserverCheckoutStart; - private delegate* unmanaged[Cdecl] fn__netGameserverBeginService; - private delegate* unmanaged[Cdecl] fn__netGameserverEndService; - private delegate* unmanaged[Cdecl] fn__netGameserverDeleteCharacterSlot; + private delegate* unmanaged[Cdecl] fn__netGameserverSessionApplyReceivedData; + private delegate* unmanaged[Cdecl] fn__netGameserverIsSessionRefreshPending; + private delegate* unmanaged[Cdecl] fn__netGameserverGetBalance; + private delegate* unmanaged[Cdecl] fn__0x613F125BA3BD2EB9; + private delegate* unmanaged[Cdecl] fn__netGameserverGetTransactionManagerData; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketStart; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketDelete; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketEnd; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketAddItem; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketIsFull; + private delegate* unmanaged[Cdecl] fn__netGameserverBasketApplyServerData; + private delegate* unmanaged[Cdecl] fn__netGameserverCheckoutStart; + private delegate* unmanaged[Cdecl] fn__netGameserverBeginService; + private delegate* unmanaged[Cdecl] fn__netGameserverEndService; + private delegate* unmanaged[Cdecl] fn__netGameserverDeleteCharacterSlot; private delegate* unmanaged[Cdecl] fn__netGameserverDeleteCharacterSlotGetStatus; - private delegate* unmanaged[Cdecl] fn__netGameserverDeleteSetTelemetryNonceSeed; - private delegate* unmanaged[Cdecl] fn__netGameserverTransferBankToWallet; - private delegate* unmanaged[Cdecl] fn__netGameserverTransferWalletToBank; + private delegate* unmanaged[Cdecl] fn__netGameserverDeleteSetTelemetryNonceSeed; + private delegate* unmanaged[Cdecl] fn__netGameserverTransferBankToWallet; + private delegate* unmanaged[Cdecl] fn__netGameserverTransferWalletToBank; private delegate* unmanaged[Cdecl] fn__netGameserverTransferCashGetStatus; private delegate* unmanaged[Cdecl] fn__netGameserverTransferCashGetStatus2; - private delegate* unmanaged[Cdecl] fn__netGameserverTransferCashSetTelemetryNonceSeed; - private delegate* unmanaged[Cdecl] fn__netGameserverSetTelemetryNonceSeed; + private delegate* unmanaged[Cdecl] fn__netGameserverTransferCashSetTelemetryNonceSeed; + private delegate* unmanaged[Cdecl] fn__netGameserverSetTelemetryNonceSeed; private delegate* unmanaged[Cdecl] fn__getOnlineVersion; - private delegate* unmanaged[Cdecl] fn__networkIsSignedIn; - private delegate* unmanaged[Cdecl] fn__networkIsSignedOnline; - private delegate* unmanaged[Cdecl] fn__0xBD545D44CCE70597; + private delegate* unmanaged[Cdecl] fn__networkIsSignedIn; + private delegate* unmanaged[Cdecl] fn__networkIsSignedOnline; + private delegate* unmanaged[Cdecl] fn__0xBD545D44CCE70597; private delegate* unmanaged[Cdecl] fn__0xEBCAB9E5048434F4; private delegate* unmanaged[Cdecl] fn__0x74FB3E29E6D10FA9; private delegate* unmanaged[Cdecl] fn__0x7808619F31FF22DB; private delegate* unmanaged[Cdecl] fn__0xA0FA4EC6A05DA44E; - private delegate* unmanaged[Cdecl] fn__networkHasValidRosCredentials; - private delegate* unmanaged[Cdecl] fn__0x8D11E61A4ABF49CC; - private delegate* unmanaged[Cdecl] fn__networkIsCloudAvailable; - private delegate* unmanaged[Cdecl] fn__networkHasSocialClubAccount; - private delegate* unmanaged[Cdecl] fn__networkAreSocialClubPoliciesCurrent; - private delegate* unmanaged[Cdecl] fn__networkIsHost; - private delegate* unmanaged[Cdecl] fn__0x4237E822315D8BA9; - private delegate* unmanaged[Cdecl] fn__networkHaveOnlinePrivileges; - private delegate* unmanaged[Cdecl] fn__networkHasAgeRestrictedProfile; - private delegate* unmanaged[Cdecl] fn__networkHaveUserContentPrivileges; - private delegate* unmanaged[Cdecl] fn__networkHaveCommunicationPrivileges; - private delegate* unmanaged[Cdecl] fn__0x78321BEA235FD8CD; - private delegate* unmanaged[Cdecl] fn__networkCheckUserContentPrivileges; - private delegate* unmanaged[Cdecl] fn__networkCheckCommunicationPrivileges; + private delegate* unmanaged[Cdecl] fn__networkHasValidRosCredentials; + private delegate* unmanaged[Cdecl] fn__0x8D11E61A4ABF49CC; + private delegate* unmanaged[Cdecl] fn__networkIsCloudAvailable; + private delegate* unmanaged[Cdecl] fn__networkHasSocialClubAccount; + private delegate* unmanaged[Cdecl] fn__networkAreSocialClubPoliciesCurrent; + private delegate* unmanaged[Cdecl] fn__networkIsHost; + private delegate* unmanaged[Cdecl] fn__0x4237E822315D8BA9; + private delegate* unmanaged[Cdecl] fn__networkHaveOnlinePrivileges; + private delegate* unmanaged[Cdecl] fn__networkHasAgeRestrictedProfile; + private delegate* unmanaged[Cdecl] fn__networkHaveUserContentPrivileges; + private delegate* unmanaged[Cdecl] fn__networkHaveCommunicationPrivileges; + private delegate* unmanaged[Cdecl] fn__0x78321BEA235FD8CD; + private delegate* unmanaged[Cdecl] fn__networkCheckUserContentPrivileges; + private delegate* unmanaged[Cdecl] fn__networkCheckCommunicationPrivileges; private delegate* unmanaged[Cdecl] fn__0x07EAB372C8841D99; private delegate* unmanaged[Cdecl] fn__0x906CA41A4B74ECA4; private delegate* unmanaged[Cdecl] fn__0x023ACAB2DC9DC4A4; - private delegate* unmanaged[Cdecl] fn__networkHasSocialNetworkingSharingPriv; + private delegate* unmanaged[Cdecl] fn__networkHasSocialNetworkingSharingPriv; private delegate* unmanaged[Cdecl] fn__networkGetAgeGroup; private delegate* unmanaged[Cdecl] fn__0x0CF6CC51AA18F0F8; - private delegate* unmanaged[Cdecl] fn__0x64E5C4CC82847B73; + private delegate* unmanaged[Cdecl] fn__0x64E5C4CC82847B73; private delegate* unmanaged[Cdecl] fn__0x1F7BC3539F9E0224; - private delegate* unmanaged[Cdecl] fn__networkHaveOnlinePrivilege2; + private delegate* unmanaged[Cdecl] fn__networkHaveOnlinePrivilege2; private delegate* unmanaged[Cdecl] fn__0xA8ACB6459542A8C8; private delegate* unmanaged[Cdecl] fn__0x83FE8D7229593017; private delegate* unmanaged[Cdecl] fn__0x53C10C8BD774F2C9; - private delegate* unmanaged[Cdecl] fn__networkCanBail; + private delegate* unmanaged[Cdecl] fn__networkCanBail; private delegate* unmanaged[Cdecl] fn__networkBail; private delegate* unmanaged[Cdecl] fn__0x283B6062A2C01E9B; private delegate* unmanaged[Cdecl] fn__0x8B4FFC790CA131EF; private delegate* unmanaged[Cdecl] fn__networkTransitionTrack; private delegate* unmanaged[Cdecl] fn__0x04918A41BC9B8157; - private delegate* unmanaged[Cdecl] fn__networkCanAccessMultiplayer; - private delegate* unmanaged[Cdecl] fn__networkIsMultiplayerDisabled; - private delegate* unmanaged[Cdecl] fn__networkCanEnterMultiplayer; + private delegate* unmanaged[Cdecl] fn__networkCanAccessMultiplayer; + private delegate* unmanaged[Cdecl] fn__networkIsMultiplayerDisabled; + private delegate* unmanaged[Cdecl] fn__networkCanEnterMultiplayer; private delegate* unmanaged[Cdecl] fn__networkSessionEnter; - private delegate* unmanaged[Cdecl] fn__networkSessionFriendMatchmaking; - private delegate* unmanaged[Cdecl] fn__networkSessionCrewMatchmaking; - private delegate* unmanaged[Cdecl] fn__networkSessionActivityQuickmatch; - private delegate* unmanaged[Cdecl] fn__networkSessionHost; - private delegate* unmanaged[Cdecl] fn__networkSessionHostClosed; - private delegate* unmanaged[Cdecl] fn__networkSessionHostFriendsOnly; - private delegate* unmanaged[Cdecl] fn__networkSessionIsClosedFriends; - private delegate* unmanaged[Cdecl] fn__networkSessionIsClosedCrew; - private delegate* unmanaged[Cdecl] fn__networkSessionIsSolo; - private delegate* unmanaged[Cdecl] fn__networkSessionIsPrivate; - private delegate* unmanaged[Cdecl] fn__networkSessionEnd; + private delegate* unmanaged[Cdecl] fn__networkSessionFriendMatchmaking; + private delegate* unmanaged[Cdecl] fn__networkSessionCrewMatchmaking; + private delegate* unmanaged[Cdecl] fn__networkSessionActivityQuickmatch; + private delegate* unmanaged[Cdecl] fn__networkSessionHost; + private delegate* unmanaged[Cdecl] fn__networkSessionHostClosed; + private delegate* unmanaged[Cdecl] fn__networkSessionHostFriendsOnly; + private delegate* unmanaged[Cdecl] fn__networkSessionIsClosedFriends; + private delegate* unmanaged[Cdecl] fn__networkSessionIsClosedCrew; + private delegate* unmanaged[Cdecl] fn__networkSessionIsSolo; + private delegate* unmanaged[Cdecl] fn__networkSessionIsPrivate; + private delegate* unmanaged[Cdecl] fn__networkSessionEnd; private delegate* unmanaged[Cdecl] fn__0xB9351A07A0D458B1; private delegate* unmanaged[Cdecl] fn__networkSessionKickPlayer; - private delegate* unmanaged[Cdecl] fn__networkSessionGetKickVote; + private delegate* unmanaged[Cdecl] fn__networkSessionGetKickVote; private delegate* unmanaged[Cdecl] fn__0x041C7F2A6C9894E6; - private delegate* unmanaged[Cdecl] fn__networkJoinPreviouslyFailedSession; - private delegate* unmanaged[Cdecl] fn__networkJoinPreviouslyFailedTransition; + private delegate* unmanaged[Cdecl] fn__networkJoinPreviouslyFailedSession; + private delegate* unmanaged[Cdecl] fn__networkJoinPreviouslyFailedTransition; private delegate* unmanaged[Cdecl] fn__networkSessionSetMatchmakingGroup; private delegate* unmanaged[Cdecl] fn__networkSessionSetMatchmakingGroupMax; private delegate* unmanaged[Cdecl] fn__networkSessionGetMatchmakingGroupFree; private delegate* unmanaged[Cdecl] fn__networkSessionAddActiveMatchmakingGroup; private delegate* unmanaged[Cdecl] fn__0xF49ABC20D8552257; private delegate* unmanaged[Cdecl] fn__0x4811BBAC21C5FCD5; - private delegate* unmanaged[Cdecl] fn__0x5539C3EBF104A53A; + private delegate* unmanaged[Cdecl] fn__0x5539C3EBF104A53A; private delegate* unmanaged[Cdecl] fn__0x702BC4D605522539; - private delegate* unmanaged[Cdecl] fn__networkSessionSetMatchmakingPropertyId; + private delegate* unmanaged[Cdecl] fn__networkSessionSetMatchmakingPropertyId; private delegate* unmanaged[Cdecl] fn__networkSessionSetMatchmakingMentalState; private delegate* unmanaged[Cdecl] fn__0x5ECD378EE64450AB; private delegate* unmanaged[Cdecl] fn__0x59D421683D31835A; private delegate* unmanaged[Cdecl] fn__0x1153FA02A659051C; - private delegate* unmanaged[Cdecl] fn__networkSessionValidateJoin; + private delegate* unmanaged[Cdecl] fn__networkSessionValidateJoin; private delegate* unmanaged[Cdecl] fn__networkAddFollowers; private delegate* unmanaged[Cdecl] fn__networkClearFollowers; private delegate* unmanaged[Cdecl] fn__networkGetGlobalMultiplayerClock; private delegate* unmanaged[Cdecl] fn__0x600F8CB31C7AAB6E; private delegate* unmanaged[Cdecl] fn__networkGetTargetingMode; - private delegate* unmanaged[Cdecl] fn__networkFindGamersInCrew; - private delegate* unmanaged[Cdecl] fn__networkFindMatchedGamers; - private delegate* unmanaged[Cdecl] fn__networkIsFindingGamers; - private delegate* unmanaged[Cdecl] fn__networkDidFindGamersSucceed; + private delegate* unmanaged[Cdecl] fn__networkFindGamersInCrew; + private delegate* unmanaged[Cdecl] fn__networkFindMatchedGamers; + private delegate* unmanaged[Cdecl] fn__networkIsFindingGamers; + private delegate* unmanaged[Cdecl] fn__networkDidFindGamersSucceed; private delegate* unmanaged[Cdecl] fn__networkGetNumFoundGamers; - private delegate* unmanaged[Cdecl] fn__networkGetFoundGamer; + private delegate* unmanaged[Cdecl] fn__networkGetFoundGamer; private delegate* unmanaged[Cdecl] fn__networkClearFoundGamers; - private delegate* unmanaged[Cdecl] fn__networkQueueGamerForStatus; - private delegate* unmanaged[Cdecl] fn__networkGetGamerStatusFromQueue; - private delegate* unmanaged[Cdecl] fn__networkIsGettingGamerStatus; - private delegate* unmanaged[Cdecl] fn__networkDidGetGamerStatusSucceed; - private delegate* unmanaged[Cdecl] fn__networkGetGamerStatusResult; + private delegate* unmanaged[Cdecl] fn__networkQueueGamerForStatus; + private delegate* unmanaged[Cdecl] fn__networkGetGamerStatusFromQueue; + private delegate* unmanaged[Cdecl] fn__networkIsGettingGamerStatus; + private delegate* unmanaged[Cdecl] fn__networkDidGetGamerStatusSucceed; + private delegate* unmanaged[Cdecl] fn__networkGetGamerStatusResult; private delegate* unmanaged[Cdecl] fn__networkClearGetGamerStatus; private delegate* unmanaged[Cdecl] fn__networkSessionJoinInvite; private delegate* unmanaged[Cdecl] fn__networkSessionCancelInvite; private delegate* unmanaged[Cdecl] fn__networkSessionForceCancelInvite; - private delegate* unmanaged[Cdecl] fn__networkHasPendingInvite; - private delegate* unmanaged[Cdecl] fn__0xC42DD763159F3461; - private delegate* unmanaged[Cdecl] fn__networkAcceptInvite; - private delegate* unmanaged[Cdecl] fn__networkSessionWasInvited; + private delegate* unmanaged[Cdecl] fn__networkHasPendingInvite; + private delegate* unmanaged[Cdecl] fn__0xC42DD763159F3461; + private delegate* unmanaged[Cdecl] fn__networkAcceptInvite; + private delegate* unmanaged[Cdecl] fn__networkSessionWasInvited; private delegate* unmanaged[Cdecl] fn__networkSessionGetInviter; - private delegate* unmanaged[Cdecl] fn__0xD313DE83394AF134; - private delegate* unmanaged[Cdecl] fn__0xBDB6F89C729CF388; - private delegate* unmanaged[Cdecl] fn__networkSuppressInvite; - private delegate* unmanaged[Cdecl] fn__networkBlockInvites; - private delegate* unmanaged[Cdecl] fn__networkBlockJoinQueueInvites; + private delegate* unmanaged[Cdecl] fn__0xD313DE83394AF134; + private delegate* unmanaged[Cdecl] fn__0xBDB6F89C729CF388; + private delegate* unmanaged[Cdecl] fn__networkSuppressInvite; + private delegate* unmanaged[Cdecl] fn__networkBlockInvites; + private delegate* unmanaged[Cdecl] fn__networkBlockJoinQueueInvites; private delegate* unmanaged[Cdecl] fn__0xF814FEC6A19FD6E0; - private delegate* unmanaged[Cdecl] fn__networkBlockKickedPlayers; - private delegate* unmanaged[Cdecl] fn__networkSetScriptReadyForEvents; - private delegate* unmanaged[Cdecl] fn__networkIsOfflineInvitePending; + private delegate* unmanaged[Cdecl] fn__networkBlockKickedPlayers; + private delegate* unmanaged[Cdecl] fn__networkSetScriptReadyForEvents; + private delegate* unmanaged[Cdecl] fn__networkIsOfflineInvitePending; private delegate* unmanaged[Cdecl] fn__networkClearOfflineInvitePending; private delegate* unmanaged[Cdecl] fn__networkSessionHostSinglePlayer; private delegate* unmanaged[Cdecl] fn__networkSessionLeaveSinglePlayer; - private delegate* unmanaged[Cdecl] fn__networkIsGameInProgress; - private delegate* unmanaged[Cdecl] fn__networkIsSessionActive; - private delegate* unmanaged[Cdecl] fn__networkIsInSession; - private delegate* unmanaged[Cdecl] fn__networkIsSessionStarted; - private delegate* unmanaged[Cdecl] fn__networkIsSessionBusy; - private delegate* unmanaged[Cdecl] fn__networkCanSessionEnd; + private delegate* unmanaged[Cdecl] fn__networkIsGameInProgress; + private delegate* unmanaged[Cdecl] fn__networkIsSessionActive; + private delegate* unmanaged[Cdecl] fn__networkIsInSession; + private delegate* unmanaged[Cdecl] fn__networkIsSessionStarted; + private delegate* unmanaged[Cdecl] fn__networkIsSessionBusy; + private delegate* unmanaged[Cdecl] fn__networkCanSessionEnd; private delegate* unmanaged[Cdecl] fn__0x4C9034162368E206; - private delegate* unmanaged[Cdecl] fn__networkSessionMarkVisible; - private delegate* unmanaged[Cdecl] fn__networkSessionIsVisible; - private delegate* unmanaged[Cdecl] fn__networkSessionBlockJoinRequests; - private delegate* unmanaged[Cdecl] fn__networkSessionChangeSlots; + private delegate* unmanaged[Cdecl] fn__networkSessionMarkVisible; + private delegate* unmanaged[Cdecl] fn__networkSessionIsVisible; + private delegate* unmanaged[Cdecl] fn__networkSessionBlockJoinRequests; + private delegate* unmanaged[Cdecl] fn__networkSessionChangeSlots; private delegate* unmanaged[Cdecl] fn__networkSessionGetPrivateSlots; private delegate* unmanaged[Cdecl] fn__networkSessionVoiceHost; private delegate* unmanaged[Cdecl] fn__networkSessionVoiceLeave; private delegate* unmanaged[Cdecl] fn__networkSessionVoiceConnectToPlayer; - private delegate* unmanaged[Cdecl] fn__networkSessionVoiceRespondToRequest; + private delegate* unmanaged[Cdecl] fn__networkSessionVoiceRespondToRequest; private delegate* unmanaged[Cdecl] fn__networkSessionVoiceSetTimeout; - private delegate* unmanaged[Cdecl] fn__networkSessionIsInVoiceSession; + private delegate* unmanaged[Cdecl] fn__networkSessionIsInVoiceSession; private delegate* unmanaged[Cdecl] fn__0xB5D3453C98456528; - private delegate* unmanaged[Cdecl] fn__networkSessionIsVoiceSessionBusy; - private delegate* unmanaged[Cdecl] fn__networkSendTextMessage; - private delegate* unmanaged[Cdecl] fn__networkSetActivitySpectator; - private delegate* unmanaged[Cdecl] fn__networkIsActivitySpectator; + private delegate* unmanaged[Cdecl] fn__networkSessionIsVoiceSessionBusy; + private delegate* unmanaged[Cdecl] fn__networkSendTextMessage; + private delegate* unmanaged[Cdecl] fn__networkSetActivitySpectator; + private delegate* unmanaged[Cdecl] fn__networkIsActivitySpectator; private delegate* unmanaged[Cdecl] fn__0x0E4F77F7B9D74D84; private delegate* unmanaged[Cdecl] fn__networkSetActivitySpectatorMax; - private delegate* unmanaged[Cdecl] fn__networkGetActivityPlayerNum; - private delegate* unmanaged[Cdecl] fn__networkIsActivitySpectatorFromHandle; - private delegate* unmanaged[Cdecl] fn__networkHostTransition; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatch; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatchAsync; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatchWithGroup; + private delegate* unmanaged[Cdecl] fn__networkGetActivityPlayerNum; + private delegate* unmanaged[Cdecl] fn__networkIsActivitySpectatorFromHandle; + private delegate* unmanaged[Cdecl] fn__networkHostTransition; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatch; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatchAsync; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionQuickmatchWithGroup; private delegate* unmanaged[Cdecl] fn__networkJoinGroupActivity; private delegate* unmanaged[Cdecl] fn__0x1888694923EF4591; private delegate* unmanaged[Cdecl] fn__0xB13E88E655E5A3BC; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionClosedFriends; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionClosedCrew; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionSolo; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionPrivate; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionClosedFriends; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionClosedCrew; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionSolo; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionPrivate; private delegate* unmanaged[Cdecl] fn__0x617F49C2668E6155; - private delegate* unmanaged[Cdecl] fn__0x261E97AD7BCF3D40; - private delegate* unmanaged[Cdecl] fn__0x39917E1B4CB0F911; + private delegate* unmanaged[Cdecl] fn__0x261E97AD7BCF3D40; + private delegate* unmanaged[Cdecl] fn__0x39917E1B4CB0F911; private delegate* unmanaged[Cdecl] fn__0x2CE9D95E4051AECD; private delegate* unmanaged[Cdecl] fn__networkSetTransitionCreatorHandle; private delegate* unmanaged[Cdecl] fn__networkClearTransitionCreatorHandle; - private delegate* unmanaged[Cdecl] fn__networkInviteGamersToTransition; + private delegate* unmanaged[Cdecl] fn__networkInviteGamersToTransition; private delegate* unmanaged[Cdecl] fn__networkSetGamerInvitedToTransition; - private delegate* unmanaged[Cdecl] fn__networkLeaveTransition; - private delegate* unmanaged[Cdecl] fn__networkLaunchTransition; - private delegate* unmanaged[Cdecl] fn__0xA2E9C1AB8A92E8CD; + private delegate* unmanaged[Cdecl] fn__networkLeaveTransition; + private delegate* unmanaged[Cdecl] fn__networkLaunchTransition; + private delegate* unmanaged[Cdecl] fn__0xA2E9C1AB8A92E8CD; private delegate* unmanaged[Cdecl] fn__networkBailTransition; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionToGame; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionToNewGame; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionToFreemode; - private delegate* unmanaged[Cdecl] fn__networkDoTransitionToNewFreemode; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionToGame; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionToGame; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionToNewGame; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionToFreemode; + private delegate* unmanaged[Cdecl] fn__networkDoTransitionToNewFreemode; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionToGame; private delegate* unmanaged[Cdecl] fn__networkGetTransitionMembers; private delegate* unmanaged[Cdecl] fn__networkApplyTransitionParameter; - private delegate* unmanaged[Cdecl] fn__networkApplyTransitionParameterString; - private delegate* unmanaged[Cdecl] fn__networkSendTransitionGamerInstruction; - private delegate* unmanaged[Cdecl] fn__networkMarkTransitionGamerAsFullyJoined; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionHost; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionHostFromHandle; - private delegate* unmanaged[Cdecl] fn__networkGetTransitionHost; - private delegate* unmanaged[Cdecl] fn__networkIsInTransition; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionStarted; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionBusy; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionMatchmaking; - private delegate* unmanaged[Cdecl] fn__0xC571D0E77D8BBC29; + private delegate* unmanaged[Cdecl] fn__networkApplyTransitionParameterString; + private delegate* unmanaged[Cdecl] fn__networkSendTransitionGamerInstruction; + private delegate* unmanaged[Cdecl] fn__networkMarkTransitionGamerAsFullyJoined; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionHost; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionHostFromHandle; + private delegate* unmanaged[Cdecl] fn__networkGetTransitionHost; + private delegate* unmanaged[Cdecl] fn__networkIsInTransition; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionStarted; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionBusy; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionMatchmaking; + private delegate* unmanaged[Cdecl] fn__0xC571D0E77D8BBC29; private delegate* unmanaged[Cdecl] fn__0x1398582B7F72B3ED; private delegate* unmanaged[Cdecl] fn__0x1F8E00FB18239600; private delegate* unmanaged[Cdecl] fn__0xF6F4383B7C92F11A; private delegate* unmanaged[Cdecl] fn__networkOpenTransitionMatchmaking; private delegate* unmanaged[Cdecl] fn__networkCloseTransitionMatchmaking; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionOpenToMatchmaking; - private delegate* unmanaged[Cdecl] fn__networkSetTransitionVisibilityLock; - private delegate* unmanaged[Cdecl] fn__networkIsTransitionVisibilityLocked; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionOpenToMatchmaking; + private delegate* unmanaged[Cdecl] fn__networkSetTransitionVisibilityLock; + private delegate* unmanaged[Cdecl] fn__networkIsTransitionVisibilityLocked; private delegate* unmanaged[Cdecl] fn__networkSetTransitionActivityId; private delegate* unmanaged[Cdecl] fn__networkChangeTransitionSlots; - private delegate* unmanaged[Cdecl] fn__0x973D76AA760A6CB6; - private delegate* unmanaged[Cdecl] fn__networkHasPlayerStartedTransition; - private delegate* unmanaged[Cdecl] fn__networkAreTransitionDetailsValid; - private delegate* unmanaged[Cdecl] fn__networkJoinTransition; - private delegate* unmanaged[Cdecl] fn__networkHasInvitedGamerToTransition; - private delegate* unmanaged[Cdecl] fn__0x3F9990BF5F22759C; - private delegate* unmanaged[Cdecl] fn__networkIsActivitySession; - private delegate* unmanaged[Cdecl] fn__0x4A9FDE3A5A6D0437; - private delegate* unmanaged[Cdecl] fn__networkSendInviteViaPresence; - private delegate* unmanaged[Cdecl] fn__networkSendPresenceTransitionInvite; - private delegate* unmanaged[Cdecl] fn__0x1171A97A3D3981B6; + private delegate* unmanaged[Cdecl] fn__0x973D76AA760A6CB6; + private delegate* unmanaged[Cdecl] fn__networkHasPlayerStartedTransition; + private delegate* unmanaged[Cdecl] fn__networkAreTransitionDetailsValid; + private delegate* unmanaged[Cdecl] fn__networkJoinTransition; + private delegate* unmanaged[Cdecl] fn__networkHasInvitedGamerToTransition; + private delegate* unmanaged[Cdecl] fn__0x3F9990BF5F22759C; + private delegate* unmanaged[Cdecl] fn__networkIsActivitySession; + private delegate* unmanaged[Cdecl] fn__0x4A9FDE3A5A6D0437; + private delegate* unmanaged[Cdecl] fn__networkSendInviteViaPresence; + private delegate* unmanaged[Cdecl] fn__networkSendPresenceTransitionInvite; + private delegate* unmanaged[Cdecl] fn__0x1171A97A3D3981B6; private delegate* unmanaged[Cdecl] fn__0x742B58F723233ED9; private delegate* unmanaged[Cdecl] fn__networkGetNumPresenceInvites; - private delegate* unmanaged[Cdecl] fn__networkAcceptPresenceInvite; - private delegate* unmanaged[Cdecl] fn__networkRemovePresenceInvite; + private delegate* unmanaged[Cdecl] fn__networkAcceptPresenceInvite; + private delegate* unmanaged[Cdecl] fn__networkRemovePresenceInvite; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteId; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteInviter; - private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteHandle; + private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteHandle; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteSessionId; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteContentId; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInvitePlaylistLength; private delegate* unmanaged[Cdecl] fn__networkGetPresenceInvitePlaylistCurrent; - private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteFromAdmin; - private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteIsTournament; - private delegate* unmanaged[Cdecl] fn__networkHasFollowInvite; + private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteFromAdmin; + private delegate* unmanaged[Cdecl] fn__networkGetPresenceInviteIsTournament; + private delegate* unmanaged[Cdecl] fn__networkHasFollowInvite; private delegate* unmanaged[Cdecl] fn__networkActionFollowInvite; private delegate* unmanaged[Cdecl] fn__networkClearFollowInvite; private delegate* unmanaged[Cdecl] fn__0xEBF8284D8CADEB53; private delegate* unmanaged[Cdecl] fn__networkRemoveTransitionInvite; private delegate* unmanaged[Cdecl] fn__networkRemoveAllTransitionInvite; private delegate* unmanaged[Cdecl] fn__0xF083835B70BA9BFE; - private delegate* unmanaged[Cdecl] fn__networkInviteGamers; - private delegate* unmanaged[Cdecl] fn__networkHasInvitedGamer; - private delegate* unmanaged[Cdecl] fn__0x71DC455F5CD1C2B1; + private delegate* unmanaged[Cdecl] fn__networkInviteGamers; + private delegate* unmanaged[Cdecl] fn__networkHasInvitedGamer; + private delegate* unmanaged[Cdecl] fn__0x71DC455F5CD1C2B1; private delegate* unmanaged[Cdecl] fn__0x3855FB5EB2C5E8B2; - private delegate* unmanaged[Cdecl] fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu; - private delegate* unmanaged[Cdecl] fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu; + private delegate* unmanaged[Cdecl] fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu; + private delegate* unmanaged[Cdecl] fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu; private delegate* unmanaged[Cdecl] fn__networkSetInviteOnCallForInviteMenu; - private delegate* unmanaged[Cdecl] fn__networkCheckDataManagerSucceededForHandle; + private delegate* unmanaged[Cdecl] fn__networkCheckDataManagerSucceededForHandle; private delegate* unmanaged[Cdecl] fn__0x4AD490AE1536933B; private delegate* unmanaged[Cdecl] fn__0x0D77A82DC2D0DA59; - private delegate* unmanaged[Cdecl] fn__filloutPmPlayerList; - private delegate* unmanaged[Cdecl] fn__filloutPmPlayerListWithNames; - private delegate* unmanaged[Cdecl] fn__refreshPlayerListStats; - private delegate* unmanaged[Cdecl] fn__networkSetCurrentDataManagerHandle; - private delegate* unmanaged[Cdecl] fn__networkIsInPlatformParty; + private delegate* unmanaged[Cdecl] fn__filloutPmPlayerList; + private delegate* unmanaged[Cdecl] fn__filloutPmPlayerListWithNames; + private delegate* unmanaged[Cdecl] fn__refreshPlayerListStats; + private delegate* unmanaged[Cdecl] fn__networkSetCurrentDataManagerHandle; + private delegate* unmanaged[Cdecl] fn__networkIsInPlatformParty; private delegate* unmanaged[Cdecl] fn__networkGetPlatformPartyUnk; private delegate* unmanaged[Cdecl] fn__networkGetPlatformPartyMembers; - private delegate* unmanaged[Cdecl] fn__networkIsInPlatformPartyChat; - private delegate* unmanaged[Cdecl] fn__networkIsChattingInPlatformParty; + private delegate* unmanaged[Cdecl] fn__networkIsInPlatformPartyChat; + private delegate* unmanaged[Cdecl] fn__networkIsChattingInPlatformParty; private delegate* unmanaged[Cdecl] fn__0x2BF66D2E7414F686; - private delegate* unmanaged[Cdecl] fn__0x14922ED3E38761F0; + private delegate* unmanaged[Cdecl] fn__0x14922ED3E38761F0; private delegate* unmanaged[Cdecl] fn__0x6CE50E47F5543D0C; private delegate* unmanaged[Cdecl] fn__0xFA2888E3833C8E96; private delegate* unmanaged[Cdecl] fn__0x25D990F8E0E3F13C; private delegate* unmanaged[Cdecl] fn__networkSeedRandomNumberGenerator; private delegate* unmanaged[Cdecl] fn__networkGetRandomInt; private delegate* unmanaged[Cdecl] fn__networkGetRandomIntRanged; - private delegate* unmanaged[Cdecl] fn__networkPlayerIsCheater; + private delegate* unmanaged[Cdecl] fn__networkPlayerIsCheater; private delegate* unmanaged[Cdecl] fn__networkPlayerGetCheaterReason; - private delegate* unmanaged[Cdecl] fn__networkPlayerIsBadsport; - private delegate* unmanaged[Cdecl] fn__triggerScriptCrcCheckOnPlayer; + private delegate* unmanaged[Cdecl] fn__networkPlayerIsBadsport; + private delegate* unmanaged[Cdecl] fn__triggerScriptCrcCheckOnPlayer; private delegate* unmanaged[Cdecl] fn__0xA12D3A5A3753CC23; private delegate* unmanaged[Cdecl] fn__0xF287F506767CC8A9; - private delegate* unmanaged[Cdecl] fn__remoteCheatDetected; - private delegate* unmanaged[Cdecl] fn__badSportPlayerLeftDetected; + private delegate* unmanaged[Cdecl] fn__remoteCheatDetected; + private delegate* unmanaged[Cdecl] fn__badSportPlayerLeftDetected; private delegate* unmanaged[Cdecl] fn__networkApplyPedScarData; - private delegate* unmanaged[Cdecl] fn__networkSetThisScriptIsNetworkScript; - private delegate* unmanaged[Cdecl] fn__networkIsThisScriptMarked; - private delegate* unmanaged[Cdecl] fn__networkGetThisScriptIsNetworkScript; + private delegate* unmanaged[Cdecl] fn__networkSetThisScriptIsNetworkScript; + private delegate* unmanaged[Cdecl] fn__networkIsThisScriptMarked; + private delegate* unmanaged[Cdecl] fn__networkGetThisScriptIsNetworkScript; private delegate* unmanaged[Cdecl] fn__networkGetMaxNumParticipants; private delegate* unmanaged[Cdecl] fn__networkGetNumParticipants; private delegate* unmanaged[Cdecl] fn__networkGetScriptStatus; @@ -29998,27 +29998,27 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xEA8C0DDB10E2822A; private delegate* unmanaged[Cdecl] fn__0xD6D7478CA62B8D41; private delegate* unmanaged[Cdecl] fn__networkFinishBroadcastingData; - private delegate* unmanaged[Cdecl] fn__networkHasReceivedHostBroadcastData; + private delegate* unmanaged[Cdecl] fn__networkHasReceivedHostBroadcastData; private delegate* unmanaged[Cdecl] fn__networkGetPlayerIndex; private delegate* unmanaged[Cdecl] fn__networkGetParticipantIndex; private delegate* unmanaged[Cdecl] fn__networkGetPlayerIndexFromPed; private delegate* unmanaged[Cdecl] fn__networkGetNumConnectedPlayers; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerConnected; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerConnected; private delegate* unmanaged[Cdecl] fn__networkGetTotalNumPlayers; - private delegate* unmanaged[Cdecl] fn__networkIsParticipantActive; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerActive; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerAParticipant; - private delegate* unmanaged[Cdecl] fn__networkIsHostOfThisScript; + private delegate* unmanaged[Cdecl] fn__networkIsParticipantActive; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerActive; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerAParticipant; + private delegate* unmanaged[Cdecl] fn__networkIsHostOfThisScript; private delegate* unmanaged[Cdecl] fn__networkGetHostOfThisScript; private delegate* unmanaged[Cdecl] fn__networkGetHostOfScript; private delegate* unmanaged[Cdecl] fn__networkSetMissionFinished; - private delegate* unmanaged[Cdecl] fn__networkIsScriptActive; - private delegate* unmanaged[Cdecl] fn__networkIsScriptActiveByHash; + private delegate* unmanaged[Cdecl] fn__networkIsScriptActive; + private delegate* unmanaged[Cdecl] fn__networkIsScriptActiveByHash; private delegate* unmanaged[Cdecl] fn__0x560B423D73015E77; private delegate* unmanaged[Cdecl] fn__networkGetNumScriptParticipants; private delegate* unmanaged[Cdecl] fn__networkGetInstanceIdOfThisScript; private delegate* unmanaged[Cdecl] fn__networkGetPositionHashOfThisScript; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerAParticipantOnScript; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerAParticipantOnScript; private delegate* unmanaged[Cdecl] fn__0x2302C0264EA58D31; private delegate* unmanaged[Cdecl] fn__0x741A3D8380319A81; private delegate* unmanaged[Cdecl] fn__participantId; @@ -30027,32 +30027,32 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkGetDestroyerOfNetworkId; private delegate* unmanaged[Cdecl] fn__0xC434133D9BA52777; private delegate* unmanaged[Cdecl] fn__0x83660B734994124D; - private delegate* unmanaged[Cdecl] fn__networkGetDestroyerOfEntity; + private delegate* unmanaged[Cdecl] fn__networkGetDestroyerOfEntity; private delegate* unmanaged[Cdecl] fn__networkGetEntityKillerOfPlayer; - private delegate* unmanaged[Cdecl] fn__networkResurrectLocalPlayer; + private delegate* unmanaged[Cdecl] fn__networkResurrectLocalPlayer; private delegate* unmanaged[Cdecl] fn__networkSetLocalPlayerInvincibleTime; - private delegate* unmanaged[Cdecl] fn__networkIsLocalPlayerInvincible; - private delegate* unmanaged[Cdecl] fn__networkDisableInvincibleFlashing; + private delegate* unmanaged[Cdecl] fn__networkIsLocalPlayerInvincible; + private delegate* unmanaged[Cdecl] fn__networkDisableInvincibleFlashing; private delegate* unmanaged[Cdecl] fn__networkPedForceGameStateUpdate; - private delegate* unmanaged[Cdecl] fn__networkSetLocalPlayerSyncLookAt; - private delegate* unmanaged[Cdecl] fn__networkHasEntityBeenRegisteredWithThisThread; + private delegate* unmanaged[Cdecl] fn__networkSetLocalPlayerSyncLookAt; + private delegate* unmanaged[Cdecl] fn__networkHasEntityBeenRegisteredWithThisThread; private delegate* unmanaged[Cdecl] fn__networkGetNetworkIdFromEntity; private delegate* unmanaged[Cdecl] fn__networkGetEntityFromNetworkId; - private delegate* unmanaged[Cdecl] fn__networkGetEntityIsNetworked; - private delegate* unmanaged[Cdecl] fn__networkGetEntityIsLocal; + private delegate* unmanaged[Cdecl] fn__networkGetEntityIsNetworked; + private delegate* unmanaged[Cdecl] fn__networkGetEntityIsLocal; private delegate* unmanaged[Cdecl] fn__networkRegisterEntityAsNetworked; private delegate* unmanaged[Cdecl] fn__networkUnregisterNetworkedEntity; - private delegate* unmanaged[Cdecl] fn__networkDoesNetworkIdExist; - private delegate* unmanaged[Cdecl] fn__networkDoesEntityExistWithNetworkId; - private delegate* unmanaged[Cdecl] fn__networkRequestControlOfNetworkId; - private delegate* unmanaged[Cdecl] fn__networkHasControlOfNetworkId; - private delegate* unmanaged[Cdecl] fn__networkIsNetworkIdAClone; - private delegate* unmanaged[Cdecl] fn__networkRequestControlOfEntity; - private delegate* unmanaged[Cdecl] fn__networkRequestControlOfDoor; - private delegate* unmanaged[Cdecl] fn__networkHasControlOfEntity; - private delegate* unmanaged[Cdecl] fn__networkHasControlOfPickup; - private delegate* unmanaged[Cdecl] fn__networkHasControlOfDoor; - private delegate* unmanaged[Cdecl] fn__networkIsDoorNetworked; + private delegate* unmanaged[Cdecl] fn__networkDoesNetworkIdExist; + private delegate* unmanaged[Cdecl] fn__networkDoesEntityExistWithNetworkId; + private delegate* unmanaged[Cdecl] fn__networkRequestControlOfNetworkId; + private delegate* unmanaged[Cdecl] fn__networkHasControlOfNetworkId; + private delegate* unmanaged[Cdecl] fn__networkIsNetworkIdAClone; + private delegate* unmanaged[Cdecl] fn__networkRequestControlOfEntity; + private delegate* unmanaged[Cdecl] fn__networkRequestControlOfDoor; + private delegate* unmanaged[Cdecl] fn__networkHasControlOfEntity; + private delegate* unmanaged[Cdecl] fn__networkHasControlOfPickup; + private delegate* unmanaged[Cdecl] fn__networkHasControlOfDoor; + private delegate* unmanaged[Cdecl] fn__networkIsDoorNetworked; private delegate* unmanaged[Cdecl] fn__vehToNet; private delegate* unmanaged[Cdecl] fn__pedToNet; private delegate* unmanaged[Cdecl] fn__objToNet; @@ -30067,85 +30067,85 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkHashFromPlayerHandle; private delegate* unmanaged[Cdecl] fn__networkHashFromGamerHandle; private delegate* unmanaged[Cdecl] fn__networkHandleFromFriend; - private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandleStart; - private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandlePending; - private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandleSucceeded; + private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandleStart; + private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandlePending; + private delegate* unmanaged[Cdecl] fn__networkGamertagFromHandleSucceeded; private delegate* unmanaged[Cdecl] fn__networkGetGamertagFromHandle; private delegate* unmanaged[Cdecl] fn__networkDisplaynamesFromHandlesStart; private delegate* unmanaged[Cdecl] fn__networkGetDisplaynamesFromHandles; - private delegate* unmanaged[Cdecl] fn__networkAreHandlesTheSame; - private delegate* unmanaged[Cdecl] fn__networkIsHandleValid; + private delegate* unmanaged[Cdecl] fn__networkAreHandlesTheSame; + private delegate* unmanaged[Cdecl] fn__networkIsHandleValid; private delegate* unmanaged[Cdecl] fn__networkGetPlayerFromGamerHandle; private delegate* unmanaged[Cdecl] fn__networkMemberIdFromGamerHandle; - private delegate* unmanaged[Cdecl] fn__networkIsGamerInMySession; + private delegate* unmanaged[Cdecl] fn__networkIsGamerInMySession; private delegate* unmanaged[Cdecl] fn__networkShowProfileUi; private delegate* unmanaged[Cdecl] fn__networkPlayerGetName; private delegate* unmanaged[Cdecl] fn__networkPlayerGetUserid; - private delegate* unmanaged[Cdecl] fn__networkPlayerIsRockstarDev; - private delegate* unmanaged[Cdecl] fn__networkPlayerIndexIsCheater; + private delegate* unmanaged[Cdecl] fn__networkPlayerIsRockstarDev; + private delegate* unmanaged[Cdecl] fn__networkPlayerIndexIsCheater; private delegate* unmanaged[Cdecl] fn__networkGetEntityNetScriptId; private delegate* unmanaged[Cdecl] fn__0x37D5F739FD494675; - private delegate* unmanaged[Cdecl] fn__networkIsInactiveProfile; + private delegate* unmanaged[Cdecl] fn__networkIsInactiveProfile; private delegate* unmanaged[Cdecl] fn__networkGetMaxFriends; private delegate* unmanaged[Cdecl] fn__networkGetFriendCount; private delegate* unmanaged[Cdecl] fn__networkGetFriendName; private delegate* unmanaged[Cdecl] fn__networkGetFriendNameFromIndex; - private delegate* unmanaged[Cdecl] fn__networkIsFriendOnline; - private delegate* unmanaged[Cdecl] fn__networkIsFriendHandleOnline; - private delegate* unmanaged[Cdecl] fn__networkIsFriendInSameTitle; - private delegate* unmanaged[Cdecl] fn__networkIsFriendInMultiplayer; - private delegate* unmanaged[Cdecl] fn__networkIsFriend; + private delegate* unmanaged[Cdecl] fn__networkIsFriendOnline; + private delegate* unmanaged[Cdecl] fn__networkIsFriendHandleOnline; + private delegate* unmanaged[Cdecl] fn__networkIsFriendInSameTitle; + private delegate* unmanaged[Cdecl] fn__networkIsFriendInMultiplayer; + private delegate* unmanaged[Cdecl] fn__networkIsFriend; private delegate* unmanaged[Cdecl] fn__networkIsPendingFriend; private delegate* unmanaged[Cdecl] fn__networkIsAddingFriend; - private delegate* unmanaged[Cdecl] fn__networkAddFriend; - private delegate* unmanaged[Cdecl] fn__networkIsFriendIndexOnline; - private delegate* unmanaged[Cdecl] fn__networkSetPlayerIsPassive; - private delegate* unmanaged[Cdecl] fn__networkGetPlayerOwnsWaypoint; - private delegate* unmanaged[Cdecl] fn__networkCanSetWaypoint; + private delegate* unmanaged[Cdecl] fn__networkAddFriend; + private delegate* unmanaged[Cdecl] fn__networkIsFriendIndexOnline; + private delegate* unmanaged[Cdecl] fn__networkSetPlayerIsPassive; + private delegate* unmanaged[Cdecl] fn__networkGetPlayerOwnsWaypoint; + private delegate* unmanaged[Cdecl] fn__networkCanSetWaypoint; private delegate* unmanaged[Cdecl] fn__0x4C2A9FDC22377075; private delegate* unmanaged[Cdecl] fn__0xB309EBEA797E001F; private delegate* unmanaged[Cdecl] fn__0x26F07DD83A5F7F98; - private delegate* unmanaged[Cdecl] fn__networkHasHeadset; - private delegate* unmanaged[Cdecl] fn__0x7D395EA61622E116; - private delegate* unmanaged[Cdecl] fn__networkIsLocalTalking; - private delegate* unmanaged[Cdecl] fn__networkGamerHasHeadset; - private delegate* unmanaged[Cdecl] fn__networkIsGamerTalking; - private delegate* unmanaged[Cdecl] fn__networkCanCommunicateWithGamer2; - private delegate* unmanaged[Cdecl] fn__networkCanCommunicateWithGamer; - private delegate* unmanaged[Cdecl] fn__networkIsGamerMutedByMe; - private delegate* unmanaged[Cdecl] fn__networkAmIMutedByGamer; - private delegate* unmanaged[Cdecl] fn__networkIsGamerBlockedByMe; - private delegate* unmanaged[Cdecl] fn__networkAmIBlockedByGamer; - private delegate* unmanaged[Cdecl] fn__networkCanViewGamerUserContent; - private delegate* unmanaged[Cdecl] fn__networkHasViewGamerUserContentResult; - private delegate* unmanaged[Cdecl] fn__networkCanPlayMultiplayerWithGamer; - private delegate* unmanaged[Cdecl] fn__networkCanGamerPlayMultiplayerWithMe; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerTalking; - private delegate* unmanaged[Cdecl] fn__networkPlayerHasHeadset; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerMutedByMe; - private delegate* unmanaged[Cdecl] fn__networkAmIMutedByPlayer; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerBlockedByMe; - private delegate* unmanaged[Cdecl] fn__networkAmIBlockedByPlayer; + private delegate* unmanaged[Cdecl] fn__networkHasHeadset; + private delegate* unmanaged[Cdecl] fn__0x7D395EA61622E116; + private delegate* unmanaged[Cdecl] fn__networkIsLocalTalking; + private delegate* unmanaged[Cdecl] fn__networkGamerHasHeadset; + private delegate* unmanaged[Cdecl] fn__networkIsGamerTalking; + private delegate* unmanaged[Cdecl] fn__networkCanCommunicateWithGamer2; + private delegate* unmanaged[Cdecl] fn__networkCanCommunicateWithGamer; + private delegate* unmanaged[Cdecl] fn__networkIsGamerMutedByMe; + private delegate* unmanaged[Cdecl] fn__networkAmIMutedByGamer; + private delegate* unmanaged[Cdecl] fn__networkIsGamerBlockedByMe; + private delegate* unmanaged[Cdecl] fn__networkAmIBlockedByGamer; + private delegate* unmanaged[Cdecl] fn__networkCanViewGamerUserContent; + private delegate* unmanaged[Cdecl] fn__networkHasViewGamerUserContentResult; + private delegate* unmanaged[Cdecl] fn__networkCanPlayMultiplayerWithGamer; + private delegate* unmanaged[Cdecl] fn__networkCanGamerPlayMultiplayerWithMe; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerTalking; + private delegate* unmanaged[Cdecl] fn__networkPlayerHasHeadset; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerMutedByMe; + private delegate* unmanaged[Cdecl] fn__networkAmIMutedByPlayer; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerBlockedByMe; + private delegate* unmanaged[Cdecl] fn__networkAmIBlockedByPlayer; private delegate* unmanaged[Cdecl] fn__networkGetPlayerLoudness; private delegate* unmanaged[Cdecl] fn__networkSetTalkerProximity; private delegate* unmanaged[Cdecl] fn__networkGetTalkerProximity; - private delegate* unmanaged[Cdecl] fn__networkSetVoiceActive; - private delegate* unmanaged[Cdecl] fn__0xCFEB46DCD7D8D5EB; - private delegate* unmanaged[Cdecl] fn__networkOverrideTransitionChat; - private delegate* unmanaged[Cdecl] fn__networkSetTeamOnlyChat; + private delegate* unmanaged[Cdecl] fn__networkSetVoiceActive; + private delegate* unmanaged[Cdecl] fn__0xCFEB46DCD7D8D5EB; + private delegate* unmanaged[Cdecl] fn__networkOverrideTransitionChat; + private delegate* unmanaged[Cdecl] fn__networkSetTeamOnlyChat; private delegate* unmanaged[Cdecl] fn__0x265559DA40B3F327; private delegate* unmanaged[Cdecl] fn__0x4348BFDA56023A2F; - private delegate* unmanaged[Cdecl] fn__networkOverrideTeamRestrictions; - private delegate* unmanaged[Cdecl] fn__networkSetOverrideSpectatorMode; - private delegate* unmanaged[Cdecl] fn__0x3C5C1E2C2FF814B1; - private delegate* unmanaged[Cdecl] fn__0x9D7AFCBF21C51712; - private delegate* unmanaged[Cdecl] fn__networkSetNoSpectatorChat; - private delegate* unmanaged[Cdecl] fn__0x6A5D89D7769A40D8; - private delegate* unmanaged[Cdecl] fn__networkOverrideChatRestrictions; - private delegate* unmanaged[Cdecl] fn__networkOverrideSendRestrictions; - private delegate* unmanaged[Cdecl] fn__networkOverrideSendRestrictionsAll; - private delegate* unmanaged[Cdecl] fn__networkOverrideReceiveRestrictions; - private delegate* unmanaged[Cdecl] fn__networkOverrideReceiveRestrictionsAll; + private delegate* unmanaged[Cdecl] fn__networkOverrideTeamRestrictions; + private delegate* unmanaged[Cdecl] fn__networkSetOverrideSpectatorMode; + private delegate* unmanaged[Cdecl] fn__0x3C5C1E2C2FF814B1; + private delegate* unmanaged[Cdecl] fn__0x9D7AFCBF21C51712; + private delegate* unmanaged[Cdecl] fn__networkSetNoSpectatorChat; + private delegate* unmanaged[Cdecl] fn__0x6A5D89D7769A40D8; + private delegate* unmanaged[Cdecl] fn__networkOverrideChatRestrictions; + private delegate* unmanaged[Cdecl] fn__networkOverrideSendRestrictions; + private delegate* unmanaged[Cdecl] fn__networkOverrideSendRestrictionsAll; + private delegate* unmanaged[Cdecl] fn__networkOverrideReceiveRestrictions; + private delegate* unmanaged[Cdecl] fn__networkOverrideReceiveRestrictionsAll; private delegate* unmanaged[Cdecl] fn__networkSetVoiceChannel; private delegate* unmanaged[Cdecl] fn__networkClearVoiceChannel; private delegate* unmanaged[Cdecl] fn__networkApplyVoiceProximityOverride; @@ -30153,98 +30153,98 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x5E3AA4CA2B6FB0EE; private delegate* unmanaged[Cdecl] fn__0xCA575C391FEA25CC; private delegate* unmanaged[Cdecl] fn__0xADB57E5B663CCA8B; - private delegate* unmanaged[Cdecl] fn__0x8EF52ACAECC51D9C; - private delegate* unmanaged[Cdecl] fn__networkIsTextChatActive; + private delegate* unmanaged[Cdecl] fn__0x8EF52ACAECC51D9C; + private delegate* unmanaged[Cdecl] fn__networkIsTextChatActive; private delegate* unmanaged[Cdecl] fn__shutdownAndLaunchSinglePlayerGame; - private delegate* unmanaged[Cdecl] fn__shutdownAndLoadMostRecentSave; - private delegate* unmanaged[Cdecl] fn__networkSetFriendlyFireOption; + private delegate* unmanaged[Cdecl] fn__shutdownAndLoadMostRecentSave; + private delegate* unmanaged[Cdecl] fn__networkSetFriendlyFireOption; private delegate* unmanaged[Cdecl] fn__networkSetRichPresence; private delegate* unmanaged[Cdecl] fn__networkSetRichPresenceString; private delegate* unmanaged[Cdecl] fn__networkGetTimeoutTime; - private delegate* unmanaged[Cdecl] fn__networkLeavePedBehindBeforeWarp; - private delegate* unmanaged[Cdecl] fn__networkLeavePedBehindBeforeCutscene; + private delegate* unmanaged[Cdecl] fn__networkLeavePedBehindBeforeWarp; + private delegate* unmanaged[Cdecl] fn__networkLeavePedBehindBeforeCutscene; private delegate* unmanaged[Cdecl] fn__removeAllStickyBombsFromEntity; private delegate* unmanaged[Cdecl] fn__0x17C9E241111A674D; private delegate* unmanaged[Cdecl] fn__0x2E4C123D1C8A710E; - private delegate* unmanaged[Cdecl] fn__networkClanServiceIsValid; - private delegate* unmanaged[Cdecl] fn__networkClanPlayerIsActive; - private delegate* unmanaged[Cdecl] fn__networkClanPlayerGetDesc; - private delegate* unmanaged[Cdecl] fn__networkClanIsRockstarClan; + private delegate* unmanaged[Cdecl] fn__networkClanServiceIsValid; + private delegate* unmanaged[Cdecl] fn__networkClanPlayerIsActive; + private delegate* unmanaged[Cdecl] fn__networkClanPlayerGetDesc; + private delegate* unmanaged[Cdecl] fn__networkClanIsRockstarClan; private delegate* unmanaged[Cdecl] fn__networkClanGetUiFormattedTag; private delegate* unmanaged[Cdecl] fn__networkClanGetLocalMembershipsCount; - private delegate* unmanaged[Cdecl] fn__networkClanGetMembershipDesc; - private delegate* unmanaged[Cdecl] fn__networkClanDownloadMembership; - private delegate* unmanaged[Cdecl] fn__networkClanDownloadMembershipPending; - private delegate* unmanaged[Cdecl] fn__networkClanAnyDownloadMembershipPending; - private delegate* unmanaged[Cdecl] fn__networkClanRemoteMembershipsAreInCache; + private delegate* unmanaged[Cdecl] fn__networkClanGetMembershipDesc; + private delegate* unmanaged[Cdecl] fn__networkClanDownloadMembership; + private delegate* unmanaged[Cdecl] fn__networkClanDownloadMembershipPending; + private delegate* unmanaged[Cdecl] fn__networkClanAnyDownloadMembershipPending; + private delegate* unmanaged[Cdecl] fn__networkClanRemoteMembershipsAreInCache; private delegate* unmanaged[Cdecl] fn__networkClanGetMembershipCount; - private delegate* unmanaged[Cdecl] fn__networkClanGetMembershipValid; - private delegate* unmanaged[Cdecl] fn__networkClanGetMembership; - private delegate* unmanaged[Cdecl] fn__networkClanJoin; - private delegate* unmanaged[Cdecl] fn__networkClanAnimation; - private delegate* unmanaged[Cdecl] fn__0x2B51EDBEFC301339; + private delegate* unmanaged[Cdecl] fn__networkClanGetMembershipValid; + private delegate* unmanaged[Cdecl] fn__networkClanGetMembership; + private delegate* unmanaged[Cdecl] fn__networkClanJoin; + private delegate* unmanaged[Cdecl] fn__networkClanAnimation; + private delegate* unmanaged[Cdecl] fn__0x2B51EDBEFC301339; private delegate* unmanaged[Cdecl] fn__0xC32EA7A2F6CA7557; - private delegate* unmanaged[Cdecl] fn__networkClanGetEmblemTxdName; - private delegate* unmanaged[Cdecl] fn__networkClanRequestEmblem; - private delegate* unmanaged[Cdecl] fn__networkClanIsEmblemReady; + private delegate* unmanaged[Cdecl] fn__networkClanGetEmblemTxdName; + private delegate* unmanaged[Cdecl] fn__networkClanRequestEmblem; + private delegate* unmanaged[Cdecl] fn__networkClanIsEmblemReady; private delegate* unmanaged[Cdecl] fn__networkClanReleaseEmblem; private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataClear; private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataCancel; - private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataStart; + private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataStart; private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataPending; private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataSuccess; - private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataNew; - private delegate* unmanaged[Cdecl] fn__setNetworkIdCanMigrate; - private delegate* unmanaged[Cdecl] fn__setNetworkIdExistsOnAllMachines; - private delegate* unmanaged[Cdecl] fn__setNetworkIdAlwaysExistsForPlayer; + private delegate* unmanaged[Cdecl] fn__networkGetPrimaryClanDataNew; + private delegate* unmanaged[Cdecl] fn__setNetworkIdCanMigrate; + private delegate* unmanaged[Cdecl] fn__setNetworkIdExistsOnAllMachines; + private delegate* unmanaged[Cdecl] fn__setNetworkIdAlwaysExistsForPlayer; private delegate* unmanaged[Cdecl] fn__0x9D724B400A7E8FFC; - private delegate* unmanaged[Cdecl] fn__networkSetEntityCanBlend; + private delegate* unmanaged[Cdecl] fn__networkSetEntityCanBlend; private delegate* unmanaged[Cdecl] fn__0x0379DAF89BA09AA5; - private delegate* unmanaged[Cdecl] fn__networkSetEntityInvisibleToNetwork; - private delegate* unmanaged[Cdecl] fn__setNetworkIdVisibleInCutscene; + private delegate* unmanaged[Cdecl] fn__networkSetEntityInvisibleToNetwork; + private delegate* unmanaged[Cdecl] fn__setNetworkIdVisibleInCutscene; private delegate* unmanaged[Cdecl] fn__0x32EBD154CB6B8B99; private delegate* unmanaged[Cdecl] fn__0x76B3F29D3F967692; - private delegate* unmanaged[Cdecl] fn__setNetworkCutsceneEntities; - private delegate* unmanaged[Cdecl] fn__0x3FA36981311FA4FF; - private delegate* unmanaged[Cdecl] fn__isNetworkIdOwnedByParticipant; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerVisibleInCutscene; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerInvisibleLocally; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerVisibleLocally; - private delegate* unmanaged[Cdecl] fn__setPlayerInvisibleLocally; - private delegate* unmanaged[Cdecl] fn__setPlayerVisibleLocally; - private delegate* unmanaged[Cdecl] fn__fadeOutLocalPlayer; - private delegate* unmanaged[Cdecl] fn__networkFadeOutEntity; - private delegate* unmanaged[Cdecl] fn__networkFadeInEntity; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerFading; - private delegate* unmanaged[Cdecl] fn__networkIsEntityFading; - private delegate* unmanaged[Cdecl] fn__isPlayerInCutscene; - private delegate* unmanaged[Cdecl] fn__setEntityVisibleInCutscene; + private delegate* unmanaged[Cdecl] fn__setNetworkCutsceneEntities; + private delegate* unmanaged[Cdecl] fn__0x3FA36981311FA4FF; + private delegate* unmanaged[Cdecl] fn__isNetworkIdOwnedByParticipant; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerVisibleInCutscene; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerInvisibleLocally; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerVisibleLocally; + private delegate* unmanaged[Cdecl] fn__setPlayerInvisibleLocally; + private delegate* unmanaged[Cdecl] fn__setPlayerVisibleLocally; + private delegate* unmanaged[Cdecl] fn__fadeOutLocalPlayer; + private delegate* unmanaged[Cdecl] fn__networkFadeOutEntity; + private delegate* unmanaged[Cdecl] fn__networkFadeInEntity; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerFading; + private delegate* unmanaged[Cdecl] fn__networkIsEntityFading; + private delegate* unmanaged[Cdecl] fn__isPlayerInCutscene; + private delegate* unmanaged[Cdecl] fn__setEntityVisibleInCutscene; private delegate* unmanaged[Cdecl] fn__setEntityLocallyInvisible; private delegate* unmanaged[Cdecl] fn__setEntityLocallyVisible; - private delegate* unmanaged[Cdecl] fn__isDamageTrackerActiveOnNetworkId; - private delegate* unmanaged[Cdecl] fn__activateDamageTrackerOnNetworkId; - private delegate* unmanaged[Cdecl] fn__isDamageTrackerActiveOnPlayer; - private delegate* unmanaged[Cdecl] fn__activateDamageTrackerOnPlayer; - private delegate* unmanaged[Cdecl] fn__isSphereVisibleToAnotherMachine; - private delegate* unmanaged[Cdecl] fn__isSphereVisibleToPlayer; + private delegate* unmanaged[Cdecl] fn__isDamageTrackerActiveOnNetworkId; + private delegate* unmanaged[Cdecl] fn__activateDamageTrackerOnNetworkId; + private delegate* unmanaged[Cdecl] fn__isDamageTrackerActiveOnPlayer; + private delegate* unmanaged[Cdecl] fn__activateDamageTrackerOnPlayer; + private delegate* unmanaged[Cdecl] fn__isSphereVisibleToAnotherMachine; + private delegate* unmanaged[Cdecl] fn__isSphereVisibleToPlayer; private delegate* unmanaged[Cdecl] fn__reserveNetworkMissionObjects; private delegate* unmanaged[Cdecl] fn__reserveNetworkMissionPeds; private delegate* unmanaged[Cdecl] fn__reserveNetworkMissionVehicles; private delegate* unmanaged[Cdecl] fn__reserveNetworkLocalObjects; private delegate* unmanaged[Cdecl] fn__reserveNetworkLocalPeds; private delegate* unmanaged[Cdecl] fn__reserveNetworkLocalVehicles; - private delegate* unmanaged[Cdecl] fn__canRegisterMissionObjects; - private delegate* unmanaged[Cdecl] fn__canRegisterMissionPeds; - private delegate* unmanaged[Cdecl] fn__canRegisterMissionVehicles; - private delegate* unmanaged[Cdecl] fn__canRegisterMissionPickups; + private delegate* unmanaged[Cdecl] fn__canRegisterMissionObjects; + private delegate* unmanaged[Cdecl] fn__canRegisterMissionPeds; + private delegate* unmanaged[Cdecl] fn__canRegisterMissionVehicles; + private delegate* unmanaged[Cdecl] fn__canRegisterMissionPickups; private delegate* unmanaged[Cdecl] fn__0xE16AA70CE9BEEDC3; - private delegate* unmanaged[Cdecl] fn__canRegisterMissionEntities; - private delegate* unmanaged[Cdecl] fn__getNumReservedMissionObjects; - private delegate* unmanaged[Cdecl] fn__getNumReservedMissionPeds; - private delegate* unmanaged[Cdecl] fn__getNumReservedMissionVehicles; - private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionObjects; - private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionPeds; - private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionVehicles; + private delegate* unmanaged[Cdecl] fn__canRegisterMissionEntities; + private delegate* unmanaged[Cdecl] fn__getNumReservedMissionObjects; + private delegate* unmanaged[Cdecl] fn__getNumReservedMissionPeds; + private delegate* unmanaged[Cdecl] fn__getNumReservedMissionVehicles; + private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionObjects; + private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionPeds; + private delegate* unmanaged[Cdecl] fn__getNumCreatedMissionVehicles; private delegate* unmanaged[Cdecl] fn__0xE42D626EEC94E5D9; private delegate* unmanaged[Cdecl] fn__getMaxNumNetworkObjects; private delegate* unmanaged[Cdecl] fn__getMaxNumNetworkPeds; @@ -30254,40 +30254,40 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x0F1A4B45B7693B95; private delegate* unmanaged[Cdecl] fn__getNetworkTime; private delegate* unmanaged[Cdecl] fn__getNetworkTimeAccurate; - private delegate* unmanaged[Cdecl] fn__hasNetworkTimeStarted; + private delegate* unmanaged[Cdecl] fn__hasNetworkTimeStarted; private delegate* unmanaged[Cdecl] fn__getTimeOffset; - private delegate* unmanaged[Cdecl] fn__isTimeLessThan; - private delegate* unmanaged[Cdecl] fn__isTimeMoreThan; - private delegate* unmanaged[Cdecl] fn__isTimeEqualTo; + private delegate* unmanaged[Cdecl] fn__isTimeLessThan; + private delegate* unmanaged[Cdecl] fn__isTimeMoreThan; + private delegate* unmanaged[Cdecl] fn__isTimeEqualTo; private delegate* unmanaged[Cdecl] fn__getTimeDifference; private delegate* unmanaged[Cdecl] fn__getTimeAsString; private delegate* unmanaged[Cdecl] fn__getCloudTimeAsString; private delegate* unmanaged[Cdecl] fn__getCloudTimeAsInt; private delegate* unmanaged[Cdecl] fn__convertPosixTime; - private delegate* unmanaged[Cdecl] fn__networkSetInSpectatorMode; - private delegate* unmanaged[Cdecl] fn__networkSetInSpectatorModeExtended; - private delegate* unmanaged[Cdecl] fn__networkSetInFreeCamMode; - private delegate* unmanaged[Cdecl] fn__networkSetChoiceMigrateOptions; - private delegate* unmanaged[Cdecl] fn__networkIsInSpectatorMode; - private delegate* unmanaged[Cdecl] fn__networkSetInMpCutscene; - private delegate* unmanaged[Cdecl] fn__networkIsInMpCutscene; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerInMpCutscene; + private delegate* unmanaged[Cdecl] fn__networkSetInSpectatorMode; + private delegate* unmanaged[Cdecl] fn__networkSetInSpectatorModeExtended; + private delegate* unmanaged[Cdecl] fn__networkSetInFreeCamMode; + private delegate* unmanaged[Cdecl] fn__networkSetChoiceMigrateOptions; + private delegate* unmanaged[Cdecl] fn__networkIsInSpectatorMode; + private delegate* unmanaged[Cdecl] fn__networkSetInMpCutscene; + private delegate* unmanaged[Cdecl] fn__networkIsInMpCutscene; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerInMpCutscene; private delegate* unmanaged[Cdecl] fn__0xFAC18E7356BD3210; private delegate* unmanaged[Cdecl] fn__setNetworkVehicleRespotTimer; - private delegate* unmanaged[Cdecl] fn__setNetworkVehicleAsGhost; + private delegate* unmanaged[Cdecl] fn__setNetworkVehicleAsGhost; private delegate* unmanaged[Cdecl] fn__setNetworkVehiclePositionUpdateMultiplier; - private delegate* unmanaged[Cdecl] fn__setNetworkEnableVehiclePositionCorrection; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerAsGhost; - private delegate* unmanaged[Cdecl] fn__isEntityGhostedToLocalPlayer; - private delegate* unmanaged[Cdecl] fn__0x13F1FCB111B820B0; - private delegate* unmanaged[Cdecl] fn__setRelationshipToPlayer; + private delegate* unmanaged[Cdecl] fn__setNetworkEnableVehiclePositionCorrection; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerAsGhost; + private delegate* unmanaged[Cdecl] fn__isEntityGhostedToLocalPlayer; + private delegate* unmanaged[Cdecl] fn__0x13F1FCB111B820B0; + private delegate* unmanaged[Cdecl] fn__setRelationshipToPlayer; private delegate* unmanaged[Cdecl] fn__setGhostedEntityAlpha; private delegate* unmanaged[Cdecl] fn__resetGhostedEntityAlpha; - private delegate* unmanaged[Cdecl] fn__networkSetEntityGhostedWithOwner; - private delegate* unmanaged[Cdecl] fn__0xD7B6C73CAD419BCF; - private delegate* unmanaged[Cdecl] fn__0x7EF7649B64D7FF10; - private delegate* unmanaged[Cdecl] fn__usePlayerColourInsteadOfTeamColour; - private delegate* unmanaged[Cdecl] fn__networkCreateSynchronisedScene; + private delegate* unmanaged[Cdecl] fn__networkSetEntityGhostedWithOwner; + private delegate* unmanaged[Cdecl] fn__0xD7B6C73CAD419BCF; + private delegate* unmanaged[Cdecl] fn__0x7EF7649B64D7FF10; + private delegate* unmanaged[Cdecl] fn__usePlayerColourInsteadOfTeamColour; + private delegate* unmanaged[Cdecl] fn__networkCreateSynchronisedScene; private delegate* unmanaged[Cdecl] fn__networkAddPedToSynchronisedScene; private delegate* unmanaged[Cdecl] fn__0xA5EAFE473E45C442; private delegate* unmanaged[Cdecl] fn__networkAddEntityToSynchronisedScene; @@ -30300,8 +30300,8 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xC9B43A33D09CADA7; private delegate* unmanaged[Cdecl] fn__0x144DA052257AE7D8; private delegate* unmanaged[Cdecl] fn__0xFB1F9381E80FA13F; - private delegate* unmanaged[Cdecl] fn__networkStartRespawnSearchForPlayer; - private delegate* unmanaged[Cdecl] fn__networkStartRespawnSearchInAngledAreaForPlayer; + private delegate* unmanaged[Cdecl] fn__networkStartRespawnSearchForPlayer; + private delegate* unmanaged[Cdecl] fn__networkStartRespawnSearchInAngledAreaForPlayer; private delegate* unmanaged[Cdecl] fn__networkQueryRespawnResults; private delegate* unmanaged[Cdecl] fn__networkCancelRespawnSearch; private delegate* unmanaged[Cdecl] fn__networkGetRespawnResult; @@ -30309,58 +30309,58 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkStartSoloTutorialSession; private delegate* unmanaged[Cdecl] fn__0xFB680D403909DC70; private delegate* unmanaged[Cdecl] fn__networkEndTutorialSession; - private delegate* unmanaged[Cdecl] fn__networkIsInTutorialSession; - private delegate* unmanaged[Cdecl] fn__0xB37E4E6A2388CA7B; - private delegate* unmanaged[Cdecl] fn__networkIsTutorialSessionChangePending; + private delegate* unmanaged[Cdecl] fn__networkIsInTutorialSession; + private delegate* unmanaged[Cdecl] fn__0xB37E4E6A2388CA7B; + private delegate* unmanaged[Cdecl] fn__networkIsTutorialSessionChangePending; private delegate* unmanaged[Cdecl] fn__networkGetPlayerTutorialSessionInstance; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerEqualToIndex; - private delegate* unmanaged[Cdecl] fn__networkConcealPlayer; - private delegate* unmanaged[Cdecl] fn__networkIsPlayerConcealed; - private delegate* unmanaged[Cdecl] fn__networkConcealEntity; - private delegate* unmanaged[Cdecl] fn__networkIsEntityConcealed; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerEqualToIndex; + private delegate* unmanaged[Cdecl] fn__networkConcealPlayer; + private delegate* unmanaged[Cdecl] fn__networkIsPlayerConcealed; + private delegate* unmanaged[Cdecl] fn__networkConcealEntity; + private delegate* unmanaged[Cdecl] fn__networkIsEntityConcealed; private delegate* unmanaged[Cdecl] fn__networkOverrideClockTime; private delegate* unmanaged[Cdecl] fn__networkOverrideClockMillisecondsPerGameMinute; private delegate* unmanaged[Cdecl] fn__networkClearClockTimeOverride; - private delegate* unmanaged[Cdecl] fn__networkIsClockTimeOverridden; + private delegate* unmanaged[Cdecl] fn__networkIsClockTimeOverridden; private delegate* unmanaged[Cdecl] fn__networkAddEntityArea; private delegate* unmanaged[Cdecl] fn__networkAddEntityAngledArea; private delegate* unmanaged[Cdecl] fn__networkAddEntityDisplayedBoundaries; private delegate* unmanaged[Cdecl] fn__0x2B1C623823DB0D9D; - private delegate* unmanaged[Cdecl] fn__networkRemoveEntityArea; - private delegate* unmanaged[Cdecl] fn__networkEntityAreaDoesExist; - private delegate* unmanaged[Cdecl] fn__0x4DF7CFFF471A7FB1; - private delegate* unmanaged[Cdecl] fn__networkEntityAreaIsOccupied; - private delegate* unmanaged[Cdecl] fn__networkUseHighPrecisionBlending; + private delegate* unmanaged[Cdecl] fn__networkRemoveEntityArea; + private delegate* unmanaged[Cdecl] fn__networkEntityAreaDoesExist; + private delegate* unmanaged[Cdecl] fn__0x4DF7CFFF471A7FB1; + private delegate* unmanaged[Cdecl] fn__networkEntityAreaIsOccupied; + private delegate* unmanaged[Cdecl] fn__networkUseHighPrecisionBlending; private delegate* unmanaged[Cdecl] fn__0xA6FCECCF4721D679; private delegate* unmanaged[Cdecl] fn__0x95BAF97C82464629; - private delegate* unmanaged[Cdecl] fn__networkRequestCloudBackgroundScripts; - private delegate* unmanaged[Cdecl] fn__networkIsCloudBackgroundScriptRequestPending; + private delegate* unmanaged[Cdecl] fn__networkRequestCloudBackgroundScripts; + private delegate* unmanaged[Cdecl] fn__networkIsCloudBackgroundScriptRequestPending; private delegate* unmanaged[Cdecl] fn__networkRequestCloudTunables; - private delegate* unmanaged[Cdecl] fn__networkIsTunableCloudRequestPending; + private delegate* unmanaged[Cdecl] fn__networkIsTunableCloudRequestPending; private delegate* unmanaged[Cdecl] fn__networkGetTunableCloudCrc; - private delegate* unmanaged[Cdecl] fn__networkDoesTunableExist; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableInt; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableFloat; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableBool; - private delegate* unmanaged[Cdecl] fn__networkDoesTunableExistHash; - private delegate* unmanaged[Cdecl] fn__networkAllocateTunablesRegistrationDataMap; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableIntHash; - private delegate* unmanaged[Cdecl] fn__networkRegisterTunableIntHash; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableFloatHash; - private delegate* unmanaged[Cdecl] fn__networkRegisterTunableFloatHash; - private delegate* unmanaged[Cdecl] fn__networkAccessTunableBoolHash; - private delegate* unmanaged[Cdecl] fn__networkRegisterTunableBoolHash; - private delegate* unmanaged[Cdecl] fn__networkTryAccessTunableBoolHash; + private delegate* unmanaged[Cdecl] fn__networkDoesTunableExist; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableInt; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableFloat; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableBool; + private delegate* unmanaged[Cdecl] fn__networkDoesTunableExistHash; + private delegate* unmanaged[Cdecl] fn__networkAllocateTunablesRegistrationDataMap; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableIntHash; + private delegate* unmanaged[Cdecl] fn__networkRegisterTunableIntHash; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableFloatHash; + private delegate* unmanaged[Cdecl] fn__networkRegisterTunableFloatHash; + private delegate* unmanaged[Cdecl] fn__networkAccessTunableBoolHash; + private delegate* unmanaged[Cdecl] fn__networkRegisterTunableBoolHash; + private delegate* unmanaged[Cdecl] fn__networkTryAccessTunableBoolHash; private delegate* unmanaged[Cdecl] fn__networkGetContentModifierListId; private delegate* unmanaged[Cdecl] fn__0x7DB53B37A2F211A0; private delegate* unmanaged[Cdecl] fn__networkResetBodyTracker; private delegate* unmanaged[Cdecl] fn__networkGetNumBodyTrackers; - private delegate* unmanaged[Cdecl] fn__0x2E0BF682CC778D49; - private delegate* unmanaged[Cdecl] fn__0x0EDE326D47CD0F3E; - private delegate* unmanaged[Cdecl] fn__networkSetVehicleWheelsDestructible; - private delegate* unmanaged[Cdecl] fn__0x38B7C51AB1EDC7D8; + private delegate* unmanaged[Cdecl] fn__0x2E0BF682CC778D49; + private delegate* unmanaged[Cdecl] fn__0x0EDE326D47CD0F3E; + private delegate* unmanaged[Cdecl] fn__networkSetVehicleWheelsDestructible; + private delegate* unmanaged[Cdecl] fn__0x38B7C51AB1EDC7D8; private delegate* unmanaged[Cdecl] fn__0x3FC795691834481D; - private delegate* unmanaged[Cdecl] fn__networkExplodeVehicle; + private delegate* unmanaged[Cdecl] fn__networkExplodeVehicle; private delegate* unmanaged[Cdecl] fn__0x2A5E0621DD815A9A; private delegate* unmanaged[Cdecl] fn__networkUseLogarithmicBlendingThisFrame; private delegate* unmanaged[Cdecl] fn__networkOverrideCoordsAndHeading; @@ -30369,67 +30369,67 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__networkSetPropertyId; private delegate* unmanaged[Cdecl] fn__networkClearPropertyId; private delegate* unmanaged[Cdecl] fn__0x367EF5E2F439B4C6; - private delegate* unmanaged[Cdecl] fn__0x94538037EE44F5CF; + private delegate* unmanaged[Cdecl] fn__0x94538037EE44F5CF; private delegate* unmanaged[Cdecl] fn__networkCacheLocalPlayerHeadBlendData; - private delegate* unmanaged[Cdecl] fn__networkHasCachedPlayerHeadBlendData; - private delegate* unmanaged[Cdecl] fn__networkApplyCachedPlayerHeadBlendData; + private delegate* unmanaged[Cdecl] fn__networkHasCachedPlayerHeadBlendData; + private delegate* unmanaged[Cdecl] fn__networkApplyCachedPlayerHeadBlendData; private delegate* unmanaged[Cdecl] fn__getNumCommerceItems; - private delegate* unmanaged[Cdecl] fn__isCommerceDataValid; + private delegate* unmanaged[Cdecl] fn__isCommerceDataValid; private delegate* unmanaged[Cdecl] fn__0xB606E6CC59664972; - private delegate* unmanaged[Cdecl] fn__0x1D4DC17C38FEAFF0; + private delegate* unmanaged[Cdecl] fn__0x1D4DC17C38FEAFF0; private delegate* unmanaged[Cdecl] fn__getCommerceItemId; private delegate* unmanaged[Cdecl] fn__getCommerceItemName; private delegate* unmanaged[Cdecl] fn__getCommerceProductPrice; private delegate* unmanaged[Cdecl] fn__getCommerceItemNumCats; private delegate* unmanaged[Cdecl] fn__getCommerceItemCat; private delegate* unmanaged[Cdecl] fn__openCommerceStore; - private delegate* unmanaged[Cdecl] fn__isCommerceStoreOpen; - private delegate* unmanaged[Cdecl] fn__setStoreEnabled; - private delegate* unmanaged[Cdecl] fn__requestCommerceItemImage; + private delegate* unmanaged[Cdecl] fn__isCommerceStoreOpen; + private delegate* unmanaged[Cdecl] fn__setStoreEnabled; + private delegate* unmanaged[Cdecl] fn__requestCommerceItemImage; private delegate* unmanaged[Cdecl] fn__releaseAllCommerceItemImages; private delegate* unmanaged[Cdecl] fn__getCommerceItemTexturename; - private delegate* unmanaged[Cdecl] fn__isStoreAvailableToUser; + private delegate* unmanaged[Cdecl] fn__isStoreAvailableToUser; private delegate* unmanaged[Cdecl] fn__0x265635150FB0D82E; private delegate* unmanaged[Cdecl] fn__0x444C4525ECE0A4B9; - private delegate* unmanaged[Cdecl] fn__0x59328EB08C5CEB2B; + private delegate* unmanaged[Cdecl] fn__0x59328EB08C5CEB2B; private delegate* unmanaged[Cdecl] fn__0xFAE628F1E9ADB239; private delegate* unmanaged[Cdecl] fn__0x754615490A029508; private delegate* unmanaged[Cdecl] fn__0x155467ACA0F55705; private delegate* unmanaged[Cdecl] fn__cloudDeleteMemberFile; - private delegate* unmanaged[Cdecl] fn__cloudHasRequestCompleted; - private delegate* unmanaged[Cdecl] fn__cloudDidRequestSucceed; + private delegate* unmanaged[Cdecl] fn__cloudHasRequestCompleted; + private delegate* unmanaged[Cdecl] fn__cloudDidRequestSucceed; private delegate* unmanaged[Cdecl] fn__cloudCheckAvailability; - private delegate* unmanaged[Cdecl] fn__cloudIsCheckingAvailability; - private delegate* unmanaged[Cdecl] fn__cloudGetAvailabilityCheckResult; + private delegate* unmanaged[Cdecl] fn__cloudIsCheckingAvailability; + private delegate* unmanaged[Cdecl] fn__cloudGetAvailabilityCheckResult; private delegate* unmanaged[Cdecl] fn__0x8B0C2964BA471961; private delegate* unmanaged[Cdecl] fn__0x88B588B41FF7868E; private delegate* unmanaged[Cdecl] fn__0x67FC09BC554A75E5; private delegate* unmanaged[Cdecl] fn__clearLaunchParams; - private delegate* unmanaged[Cdecl] fn__ugcCopyContent; + private delegate* unmanaged[Cdecl] fn__ugcCopyContent; private delegate* unmanaged[Cdecl] fn__0x9FEDF86898F100E9; - private delegate* unmanaged[Cdecl] fn__ugcHasCreateFinished; + private delegate* unmanaged[Cdecl] fn__ugcHasCreateFinished; private delegate* unmanaged[Cdecl] fn__ugcDidCreateSucceed; private delegate* unmanaged[Cdecl] fn__ugcGetCreateResult; private delegate* unmanaged[Cdecl] fn__ugcGetCreateContentId; private delegate* unmanaged[Cdecl] fn__ugcClearCreateResult; - private delegate* unmanaged[Cdecl] fn__ugcQueryMyContent; - private delegate* unmanaged[Cdecl] fn__0x692D58DF40657E8C; - private delegate* unmanaged[Cdecl] fn__ugcQueryByContentId; - private delegate* unmanaged[Cdecl] fn__ugcQueryByContentIds; - private delegate* unmanaged[Cdecl] fn__ugcQueryRecentlyCreatedContent; - private delegate* unmanaged[Cdecl] fn__ugcGetBookmarkedContent; - private delegate* unmanaged[Cdecl] fn__ugcGetMyContent; - private delegate* unmanaged[Cdecl] fn__ugcGetFriendContent; - private delegate* unmanaged[Cdecl] fn__ugcGetCrewContent; - private delegate* unmanaged[Cdecl] fn__ugcGetGetByCategory; - private delegate* unmanaged[Cdecl] fn__setBalanceAddMachine; - private delegate* unmanaged[Cdecl] fn__setBalanceAddMachines; - private delegate* unmanaged[Cdecl] fn__0xA7862BC5ED1DFD7E; - private delegate* unmanaged[Cdecl] fn__0x97A770BEEF227E2B; - private delegate* unmanaged[Cdecl] fn__0x5324A0E3E4CE3570; + private delegate* unmanaged[Cdecl] fn__ugcQueryMyContent; + private delegate* unmanaged[Cdecl] fn__0x692D58DF40657E8C; + private delegate* unmanaged[Cdecl] fn__ugcQueryByContentId; + private delegate* unmanaged[Cdecl] fn__ugcQueryByContentIds; + private delegate* unmanaged[Cdecl] fn__ugcQueryRecentlyCreatedContent; + private delegate* unmanaged[Cdecl] fn__ugcGetBookmarkedContent; + private delegate* unmanaged[Cdecl] fn__ugcGetMyContent; + private delegate* unmanaged[Cdecl] fn__ugcGetFriendContent; + private delegate* unmanaged[Cdecl] fn__ugcGetCrewContent; + private delegate* unmanaged[Cdecl] fn__ugcGetGetByCategory; + private delegate* unmanaged[Cdecl] fn__setBalanceAddMachine; + private delegate* unmanaged[Cdecl] fn__setBalanceAddMachines; + private delegate* unmanaged[Cdecl] fn__0xA7862BC5ED1DFD7E; + private delegate* unmanaged[Cdecl] fn__0x97A770BEEF227E2B; + private delegate* unmanaged[Cdecl] fn__0x5324A0E3E4CE3570; private delegate* unmanaged[Cdecl] fn__ugcCancelQuery; - private delegate* unmanaged[Cdecl] fn__ugcIsGetting; - private delegate* unmanaged[Cdecl] fn__ugcHasGetFinished; + private delegate* unmanaged[Cdecl] fn__ugcIsGetting; + private delegate* unmanaged[Cdecl] fn__ugcHasGetFinished; private delegate* unmanaged[Cdecl] fn__ugcDidGetSucceed; private delegate* unmanaged[Cdecl] fn__0xC87E740D9F3872CC; private delegate* unmanaged[Cdecl] fn__ugcGetQueryResult; @@ -30438,10 +30438,10 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__ugcGetContentHash; private delegate* unmanaged[Cdecl] fn__ugcClearQueryResults; private delegate* unmanaged[Cdecl] fn__ugcGetContentUserId; - private delegate* unmanaged[Cdecl] fn__0x584770794D758C18; - private delegate* unmanaged[Cdecl] fn__0x8C8D2739BA44AF0F; + private delegate* unmanaged[Cdecl] fn__0x584770794D758C18; + private delegate* unmanaged[Cdecl] fn__0x8C8D2739BA44AF0F; private delegate* unmanaged[Cdecl] fn__ugcGetContentUserName; - private delegate* unmanaged[Cdecl] fn__0xAEAB987727C5A8A4; + private delegate* unmanaged[Cdecl] fn__0xAEAB987727C5A8A4; private delegate* unmanaged[Cdecl] fn__ugcGetContentCategory; private delegate* unmanaged[Cdecl] fn__ugcGetContentId; private delegate* unmanaged[Cdecl] fn__ugcGetRootContentId; @@ -30450,82 +30450,82 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__ugcGetContentPath; private delegate* unmanaged[Cdecl] fn__ugcGetContentUpdatedDate; private delegate* unmanaged[Cdecl] fn__ugcGetContentFileVersion; - private delegate* unmanaged[Cdecl] fn__0x1D610EB0FEA716D9; - private delegate* unmanaged[Cdecl] fn__0x7FCC39C46C3C03BD; + private delegate* unmanaged[Cdecl] fn__0x1D610EB0FEA716D9; + private delegate* unmanaged[Cdecl] fn__0x7FCC39C46C3C03BD; private delegate* unmanaged[Cdecl] fn__ugcGetContentLanguage; - private delegate* unmanaged[Cdecl] fn__ugcGetContentIsPublished; - private delegate* unmanaged[Cdecl] fn__ugcGetContentIsVerified; + private delegate* unmanaged[Cdecl] fn__ugcGetContentIsPublished; + private delegate* unmanaged[Cdecl] fn__ugcGetContentIsVerified; private delegate* unmanaged[Cdecl] fn__ugcGetContentRating; private delegate* unmanaged[Cdecl] fn__ugcGetContentRatingCount; private delegate* unmanaged[Cdecl] fn__ugcGetContentRatingPositiveCount; private delegate* unmanaged[Cdecl] fn__ugcGetContentRatingNegativeCount; - private delegate* unmanaged[Cdecl] fn__ugcGetContentHasPlayerRecord; - private delegate* unmanaged[Cdecl] fn__ugcGetContentHasPlayerBookmarked; + private delegate* unmanaged[Cdecl] fn__ugcGetContentHasPlayerRecord; + private delegate* unmanaged[Cdecl] fn__ugcGetContentHasPlayerBookmarked; private delegate* unmanaged[Cdecl] fn__ugcRequestContentDataFromIndex; private delegate* unmanaged[Cdecl] fn__ugcRequestContentDataFromParams; private delegate* unmanaged[Cdecl] fn__ugcRequestCachedDescription; - private delegate* unmanaged[Cdecl] fn__0x2D5DC831176D0114; - private delegate* unmanaged[Cdecl] fn__0xEBFA8D50ADDC54C4; - private delegate* unmanaged[Cdecl] fn__0x162C23CA83ED0A62; + private delegate* unmanaged[Cdecl] fn__0x2D5DC831176D0114; + private delegate* unmanaged[Cdecl] fn__0xEBFA8D50ADDC54C4; + private delegate* unmanaged[Cdecl] fn__0x162C23CA83ED0A62; private delegate* unmanaged[Cdecl] fn__ugcGetCachedDescription; - private delegate* unmanaged[Cdecl] fn__0x5A34CD9C3C5BEC44; + private delegate* unmanaged[Cdecl] fn__0x5A34CD9C3C5BEC44; private delegate* unmanaged[Cdecl] fn__0x68103E2247887242; - private delegate* unmanaged[Cdecl] fn__ugcPublish; - private delegate* unmanaged[Cdecl] fn__ugcSetBookmarked; - private delegate* unmanaged[Cdecl] fn__ugcSetDeleted; + private delegate* unmanaged[Cdecl] fn__ugcPublish; + private delegate* unmanaged[Cdecl] fn__ugcSetBookmarked; + private delegate* unmanaged[Cdecl] fn__ugcSetDeleted; private delegate* unmanaged[Cdecl] fn__0x45E816772E93A9DB; - private delegate* unmanaged[Cdecl] fn__ugcHasModifyFinished; + private delegate* unmanaged[Cdecl] fn__ugcHasModifyFinished; private delegate* unmanaged[Cdecl] fn__0x793FF272D5B365F4; private delegate* unmanaged[Cdecl] fn__ugcGetModifyResult; private delegate* unmanaged[Cdecl] fn__ugcClearModifyResult; - private delegate* unmanaged[Cdecl] fn__0xB746D20B17F2A229; + private delegate* unmanaged[Cdecl] fn__0xB746D20B17F2A229; private delegate* unmanaged[Cdecl] fn__0x63B406D7884BFA95; private delegate* unmanaged[Cdecl] fn__0x4D02279C83BE69FE; private delegate* unmanaged[Cdecl] fn__ugcGetCreatorNum; - private delegate* unmanaged[Cdecl] fn__ugcPoliciesMakePrivate; + private delegate* unmanaged[Cdecl] fn__ugcPoliciesMakePrivate; private delegate* unmanaged[Cdecl] fn__ugcClearOfflineQuery; - private delegate* unmanaged[Cdecl] fn__ugcSetQueryDataFromOffline; - private delegate* unmanaged[Cdecl] fn__0xFD75DABC0957BF33; - private delegate* unmanaged[Cdecl] fn__ugcIsLanguageSupported; - private delegate* unmanaged[Cdecl] fn__facebookSetHeistComplete; - private delegate* unmanaged[Cdecl] fn__facebookSetCreateCharacterComplete; - private delegate* unmanaged[Cdecl] fn__facebookSetMilestoneComplete; - private delegate* unmanaged[Cdecl] fn__facebookIsSendingData; - private delegate* unmanaged[Cdecl] fn__facebookDoUnkCheck; - private delegate* unmanaged[Cdecl] fn__facebookIsAvailable; - private delegate* unmanaged[Cdecl] fn__textureDownloadRequest; - private delegate* unmanaged[Cdecl] fn__titleTextureDownloadRequest; - private delegate* unmanaged[Cdecl] fn__ugcTextureDownloadRequest; + private delegate* unmanaged[Cdecl] fn__ugcSetQueryDataFromOffline; + private delegate* unmanaged[Cdecl] fn__0xFD75DABC0957BF33; + private delegate* unmanaged[Cdecl] fn__ugcIsLanguageSupported; + private delegate* unmanaged[Cdecl] fn__facebookSetHeistComplete; + private delegate* unmanaged[Cdecl] fn__facebookSetCreateCharacterComplete; + private delegate* unmanaged[Cdecl] fn__facebookSetMilestoneComplete; + private delegate* unmanaged[Cdecl] fn__facebookIsSendingData; + private delegate* unmanaged[Cdecl] fn__facebookDoUnkCheck; + private delegate* unmanaged[Cdecl] fn__facebookIsAvailable; + private delegate* unmanaged[Cdecl] fn__textureDownloadRequest; + private delegate* unmanaged[Cdecl] fn__titleTextureDownloadRequest; + private delegate* unmanaged[Cdecl] fn__ugcTextureDownloadRequest; private delegate* unmanaged[Cdecl] fn__textureDownloadRelease; - private delegate* unmanaged[Cdecl] fn__textureDownloadHasFailed; + private delegate* unmanaged[Cdecl] fn__textureDownloadHasFailed; private delegate* unmanaged[Cdecl] fn__textureDownloadGetName; private delegate* unmanaged[Cdecl] fn__getStatusOfTextureDownload; - private delegate* unmanaged[Cdecl] fn__0x60EDD13EB3AC1FF3; - private delegate* unmanaged[Cdecl] fn__networkShouldShowConnectivityTroubleshooting; - private delegate* unmanaged[Cdecl] fn__networkIsCableConnected; - private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege9; - private delegate* unmanaged[Cdecl] fn__networkHaveRosSocialClubPriv; - private delegate* unmanaged[Cdecl] fn__networkHaveRosBannedPriv; - private delegate* unmanaged[Cdecl] fn__networkHaveRosCreateTicketPriv; - private delegate* unmanaged[Cdecl] fn__networkHaveRosMultiplayerPriv; - private delegate* unmanaged[Cdecl] fn__networkHaveRosLeaderboardWritePriv; - private delegate* unmanaged[Cdecl] fn__networkHasRosPrivilege; - private delegate* unmanaged[Cdecl] fn__networkHasRosPrivilegeEndDate; - private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege24; - private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege25; + private delegate* unmanaged[Cdecl] fn__0x60EDD13EB3AC1FF3; + private delegate* unmanaged[Cdecl] fn__networkShouldShowConnectivityTroubleshooting; + private delegate* unmanaged[Cdecl] fn__networkIsCableConnected; + private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege9; + private delegate* unmanaged[Cdecl] fn__networkHaveRosSocialClubPriv; + private delegate* unmanaged[Cdecl] fn__networkHaveRosBannedPriv; + private delegate* unmanaged[Cdecl] fn__networkHaveRosCreateTicketPriv; + private delegate* unmanaged[Cdecl] fn__networkHaveRosMultiplayerPriv; + private delegate* unmanaged[Cdecl] fn__networkHaveRosLeaderboardWritePriv; + private delegate* unmanaged[Cdecl] fn__networkHasRosPrivilege; + private delegate* unmanaged[Cdecl] fn__networkHasRosPrivilegeEndDate; + private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege24; + private delegate* unmanaged[Cdecl] fn__networkGetRosPrivilege25; private delegate* unmanaged[Cdecl] fn__0x36391F397731595D; private delegate* unmanaged[Cdecl] fn__networkStartUserContentPermissionsCheck; private delegate* unmanaged[Cdecl] fn__0x9465E683B12D3F6B; private delegate* unmanaged[Cdecl] fn__0xCA59CCAE5D01E4CE; - private delegate* unmanaged[Cdecl] fn__networkHasGameBeenAltered; + private delegate* unmanaged[Cdecl] fn__networkHasGameBeenAltered; private delegate* unmanaged[Cdecl] fn__networkUpdatePlayerScars; - private delegate* unmanaged[Cdecl] fn__networkDisableLeaveRemotePedBehind; - private delegate* unmanaged[Cdecl] fn__networkAllowLocalEntityAttachment; + private delegate* unmanaged[Cdecl] fn__networkDisableLeaveRemotePedBehind; + private delegate* unmanaged[Cdecl] fn__networkAllowLocalEntityAttachment; private delegate* unmanaged[Cdecl] fn__0x6BFF5F84102DF80A; private delegate* unmanaged[Cdecl] fn__0x5C497525F803486B; private delegate* unmanaged[Cdecl] fn__0x6FB7BB3607D27FA2; private delegate* unmanaged[Cdecl] fn__0x45A83257ED02D9BC; - private delegate* unmanaged[Cdecl] fn__networkIsConnectionEndpointRelayServer; + private delegate* unmanaged[Cdecl] fn__networkIsConnectionEndpointRelayServer; private delegate* unmanaged[Cdecl] fn__networkGetAverageLatencyForPlayer; private delegate* unmanaged[Cdecl] fn__networkGetAverageLatencyForPlayer2; private delegate* unmanaged[Cdecl] fn__networkGetAveragePacketLossForPlayer; @@ -30542,126 +30542,126 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x6FD992C4A1C1B986; private delegate* unmanaged[Cdecl] fn__0xDB663CC9FF3407A9; private delegate* unmanaged[Cdecl] fn__networkUgcNav; - private delegate* unmanaged[Cdecl] fn__createObject; - private delegate* unmanaged[Cdecl] fn__createObjectNoOffset; + private delegate* unmanaged[Cdecl] fn__createObject; + private delegate* unmanaged[Cdecl] fn__createObjectNoOffset; private delegate* unmanaged[Cdecl] fn__deleteObject; - private delegate* unmanaged[Cdecl] fn__placeObjectOnGroundProperly; - private delegate* unmanaged[Cdecl] fn__placeObjectOnGroundProperly2; - private delegate* unmanaged[Cdecl] fn__0xAFE24E4D29249E4A; - private delegate* unmanaged[Cdecl] fn__slideObject; - private delegate* unmanaged[Cdecl] fn__setObjectTargettable; - private delegate* unmanaged[Cdecl] fn__setObjectForceVehiclesToAvoid; - private delegate* unmanaged[Cdecl] fn__getClosestObjectOfType; - private delegate* unmanaged[Cdecl] fn__hasObjectBeenBroken; - private delegate* unmanaged[Cdecl] fn__hasClosestObjectOfTypeBeenBroken; - private delegate* unmanaged[Cdecl] fn__hasClosestObjectOfTypeBeenCompletelyDestroyed; + private delegate* unmanaged[Cdecl] fn__placeObjectOnGroundProperly; + private delegate* unmanaged[Cdecl] fn__placeObjectOnGroundProperly2; + private delegate* unmanaged[Cdecl] fn__0xAFE24E4D29249E4A; + private delegate* unmanaged[Cdecl] fn__slideObject; + private delegate* unmanaged[Cdecl] fn__setObjectTargettable; + private delegate* unmanaged[Cdecl] fn__setObjectForceVehiclesToAvoid; + private delegate* unmanaged[Cdecl] fn__getClosestObjectOfType; + private delegate* unmanaged[Cdecl] fn__hasObjectBeenBroken; + private delegate* unmanaged[Cdecl] fn__hasClosestObjectOfTypeBeenBroken; + private delegate* unmanaged[Cdecl] fn__hasClosestObjectOfTypeBeenCompletelyDestroyed; private delegate* unmanaged[Cdecl] fn__0x2542269291C6AC84; private delegate* unmanaged[Cdecl] fn__getObjectOffsetFromCoords; private delegate* unmanaged[Cdecl] fn__getCoordsAndRotationOfClosestObjectOfType; - private delegate* unmanaged[Cdecl] fn__setStateOfClosestDoorOfType; - private delegate* unmanaged[Cdecl] fn__getStateOfClosestDoorOfType; - private delegate* unmanaged[Cdecl] fn__doorControl; + private delegate* unmanaged[Cdecl] fn__setStateOfClosestDoorOfType; + private delegate* unmanaged[Cdecl] fn__getStateOfClosestDoorOfType; + private delegate* unmanaged[Cdecl] fn__doorControl; private delegate* unmanaged[Cdecl] fn__0x006E4B040ED37EC3; - private delegate* unmanaged[Cdecl] fn__addDoorToSystem; + private delegate* unmanaged[Cdecl] fn__addDoorToSystem; private delegate* unmanaged[Cdecl] fn__removeDoorFromSystem; - private delegate* unmanaged[Cdecl] fn__doorSystemSetDoorState; + private delegate* unmanaged[Cdecl] fn__doorSystemSetDoorState; private delegate* unmanaged[Cdecl] fn__doorSystemGetDoorState; private delegate* unmanaged[Cdecl] fn__doorSystemGetDoorPendingState; - private delegate* unmanaged[Cdecl] fn__doorSystemSetAutomaticRate; - private delegate* unmanaged[Cdecl] fn__doorSystemSetAutomaticDistance; - private delegate* unmanaged[Cdecl] fn__doorSystemSetOpenRatio; + private delegate* unmanaged[Cdecl] fn__doorSystemSetAutomaticRate; + private delegate* unmanaged[Cdecl] fn__doorSystemSetAutomaticDistance; + private delegate* unmanaged[Cdecl] fn__doorSystemSetOpenRatio; private delegate* unmanaged[Cdecl] fn__0xE851471AEFC3374F; private delegate* unmanaged[Cdecl] fn__doorSystemGetOpenRatio; - private delegate* unmanaged[Cdecl] fn__doorSystemSetSpringRemoved; - private delegate* unmanaged[Cdecl] fn__doorSystemSetHoldOpen; - private delegate* unmanaged[Cdecl] fn__0xA85A21582451E951; - private delegate* unmanaged[Cdecl] fn__isDoorRegisteredWithSystem; - private delegate* unmanaged[Cdecl] fn__isDoorClosed; - private delegate* unmanaged[Cdecl] fn__0xC7F29CA00F46350E; + private delegate* unmanaged[Cdecl] fn__doorSystemSetSpringRemoved; + private delegate* unmanaged[Cdecl] fn__doorSystemSetHoldOpen; + private delegate* unmanaged[Cdecl] fn__0xA85A21582451E951; + private delegate* unmanaged[Cdecl] fn__isDoorRegisteredWithSystem; + private delegate* unmanaged[Cdecl] fn__isDoorClosed; + private delegate* unmanaged[Cdecl] fn__0xC7F29CA00F46350E; private delegate* unmanaged[Cdecl] fn__0x701FDA1E82076BA4; - private delegate* unmanaged[Cdecl] fn__doorSystemGetIsPhysicsLoaded; - private delegate* unmanaged[Cdecl] fn__doorSystemFindExistingDoor; - private delegate* unmanaged[Cdecl] fn__isGarageEmpty; - private delegate* unmanaged[Cdecl] fn__isPlayerEntirelyInsideGarage; - private delegate* unmanaged[Cdecl] fn__isPlayerPartiallyInsideGarage; - private delegate* unmanaged[Cdecl] fn__areEntitiesEntirelyInsideGarage; - private delegate* unmanaged[Cdecl] fn__isAnyEntityEntirelyInsideGarage; - private delegate* unmanaged[Cdecl] fn__isObjectEntirelyInsideGarage; - private delegate* unmanaged[Cdecl] fn__isObjectPartiallyInsideGarage; - private delegate* unmanaged[Cdecl] fn__clearGarageArea; - private delegate* unmanaged[Cdecl] fn__clearObjectsInsideGarage; - private delegate* unmanaged[Cdecl] fn__0x659F9D71F52843F8; - private delegate* unmanaged[Cdecl] fn__enableSavingInGarage; + private delegate* unmanaged[Cdecl] fn__doorSystemGetIsPhysicsLoaded; + private delegate* unmanaged[Cdecl] fn__doorSystemFindExistingDoor; + private delegate* unmanaged[Cdecl] fn__isGarageEmpty; + private delegate* unmanaged[Cdecl] fn__isPlayerEntirelyInsideGarage; + private delegate* unmanaged[Cdecl] fn__isPlayerPartiallyInsideGarage; + private delegate* unmanaged[Cdecl] fn__areEntitiesEntirelyInsideGarage; + private delegate* unmanaged[Cdecl] fn__isAnyEntityEntirelyInsideGarage; + private delegate* unmanaged[Cdecl] fn__isObjectEntirelyInsideGarage; + private delegate* unmanaged[Cdecl] fn__isObjectPartiallyInsideGarage; + private delegate* unmanaged[Cdecl] fn__clearGarageArea; + private delegate* unmanaged[Cdecl] fn__clearObjectsInsideGarage; + private delegate* unmanaged[Cdecl] fn__0x659F9D71F52843F8; + private delegate* unmanaged[Cdecl] fn__enableSavingInGarage; private delegate* unmanaged[Cdecl] fn__0x66A49D021870FE88; - private delegate* unmanaged[Cdecl] fn__doesObjectOfTypeExistAtCoords; - private delegate* unmanaged[Cdecl] fn__isPointInAngledArea; - private delegate* unmanaged[Cdecl] fn__setObjectAllowLowLodBuoyancy; + private delegate* unmanaged[Cdecl] fn__doesObjectOfTypeExistAtCoords; + private delegate* unmanaged[Cdecl] fn__isPointInAngledArea; + private delegate* unmanaged[Cdecl] fn__setObjectAllowLowLodBuoyancy; private delegate* unmanaged[Cdecl] fn__setObjectPhysicsParams; - private delegate* unmanaged[Cdecl] fn__getObjectFragmentDamageHealth; - private delegate* unmanaged[Cdecl] fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen; - private delegate* unmanaged[Cdecl] fn__isAnyObjectNearPoint; - private delegate* unmanaged[Cdecl] fn__isObjectNearPoint; + private delegate* unmanaged[Cdecl] fn__getObjectFragmentDamageHealth; + private delegate* unmanaged[Cdecl] fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen; + private delegate* unmanaged[Cdecl] fn__isAnyObjectNearPoint; + private delegate* unmanaged[Cdecl] fn__isObjectNearPoint; private delegate* unmanaged[Cdecl] fn__removeObjectHighDetailModel; - private delegate* unmanaged[Cdecl] fn__breakObjectFragmentChild; + private delegate* unmanaged[Cdecl] fn__breakObjectFragmentChild; private delegate* unmanaged[Cdecl] fn__0xE05F6AEEFEB0BB02; private delegate* unmanaged[Cdecl] fn__0xF9C1681347C8BD15; private delegate* unmanaged[Cdecl] fn__trackObjectVisibility; - private delegate* unmanaged[Cdecl] fn__isObjectVisible; - private delegate* unmanaged[Cdecl] fn__0xC6033D32241F6FB5; - private delegate* unmanaged[Cdecl] fn__0xEB6F1A9B5510A5D2; - private delegate* unmanaged[Cdecl] fn__setUnkGlobalBoolRelatedToDamage; - private delegate* unmanaged[Cdecl] fn__setCreateWeaponObjectLightSource; + private delegate* unmanaged[Cdecl] fn__isObjectVisible; + private delegate* unmanaged[Cdecl] fn__0xC6033D32241F6FB5; + private delegate* unmanaged[Cdecl] fn__0xEB6F1A9B5510A5D2; + private delegate* unmanaged[Cdecl] fn__setUnkGlobalBoolRelatedToDamage; + private delegate* unmanaged[Cdecl] fn__setCreateWeaponObjectLightSource; private delegate* unmanaged[Cdecl] fn__getRayfireMapObject; private delegate* unmanaged[Cdecl] fn__setStateOfRayfireMapObject; private delegate* unmanaged[Cdecl] fn__getStateOfRayfireMapObject; - private delegate* unmanaged[Cdecl] fn__doesRayfireMapObjectExist; + private delegate* unmanaged[Cdecl] fn__doesRayfireMapObjectExist; private delegate* unmanaged[Cdecl] fn__getRayfireMapObjectAnimPhase; - private delegate* unmanaged[Cdecl] fn__createPickup; - private delegate* unmanaged[Cdecl] fn__createPickupRotate; + private delegate* unmanaged[Cdecl] fn__createPickup; + private delegate* unmanaged[Cdecl] fn__createPickupRotate; private delegate* unmanaged[Cdecl] fn__0x394CD08E31313C28; private delegate* unmanaged[Cdecl] fn__0x826D1EE4D1CAFC78; - private delegate* unmanaged[Cdecl] fn__createAmbientPickup; - private delegate* unmanaged[Cdecl] fn__createNonNetworkedAmbientPickup; + private delegate* unmanaged[Cdecl] fn__createAmbientPickup; + private delegate* unmanaged[Cdecl] fn__createNonNetworkedAmbientPickup; private delegate* unmanaged[Cdecl] fn__0x1E3F1B1B891A2AAA; - private delegate* unmanaged[Cdecl] fn__createPortablePickup; - private delegate* unmanaged[Cdecl] fn__createNonNetworkedPortablePickup; + private delegate* unmanaged[Cdecl] fn__createPortablePickup; + private delegate* unmanaged[Cdecl] fn__createNonNetworkedPortablePickup; private delegate* unmanaged[Cdecl] fn__attachPortablePickupToPed; private delegate* unmanaged[Cdecl] fn__detachPortablePickupFromPed; - private delegate* unmanaged[Cdecl] fn__hidePickup; + private delegate* unmanaged[Cdecl] fn__hidePickup; private delegate* unmanaged[Cdecl] fn__setMaxNumPortablePickupsCarriedByPlayer; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerCanCollectPortablePickups; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerCanCollectPortablePickups; private delegate* unmanaged[Cdecl] fn__getSafePickupCoords; private delegate* unmanaged[Cdecl] fn__0xD4A7A435B3710D05; private delegate* unmanaged[Cdecl] fn__0xB7C6D80FB371659A; private delegate* unmanaged[Cdecl] fn__getPickupCoords; private delegate* unmanaged[Cdecl] fn__0x8DCA505A5C196F05; private delegate* unmanaged[Cdecl] fn__removeAllPickupsOfType; - private delegate* unmanaged[Cdecl] fn__hasPickupBeenCollected; + private delegate* unmanaged[Cdecl] fn__hasPickupBeenCollected; private delegate* unmanaged[Cdecl] fn__removePickup; private delegate* unmanaged[Cdecl] fn__createMoneyPickups; - private delegate* unmanaged[Cdecl] fn__doesPickupExist; - private delegate* unmanaged[Cdecl] fn__doesPickupObjectExist; + private delegate* unmanaged[Cdecl] fn__doesPickupExist; + private delegate* unmanaged[Cdecl] fn__doesPickupObjectExist; private delegate* unmanaged[Cdecl] fn__getPickupObject; - private delegate* unmanaged[Cdecl] fn__isObjectAPortablePickup; - private delegate* unmanaged[Cdecl] fn__isObjectAPickup; - private delegate* unmanaged[Cdecl] fn__doesPickupOfTypeExistInArea; + private delegate* unmanaged[Cdecl] fn__isObjectAPortablePickup; + private delegate* unmanaged[Cdecl] fn__isObjectAPickup; + private delegate* unmanaged[Cdecl] fn__doesPickupOfTypeExistInArea; private delegate* unmanaged[Cdecl] fn__setPickupRegenerationTime; private delegate* unmanaged[Cdecl] fn__forcePickupRegenerate; - private delegate* unmanaged[Cdecl] fn__toggleUsePickupsForPlayer; - private delegate* unmanaged[Cdecl] fn__setLocalPlayerCanUsePickupsWithThisModel; + private delegate* unmanaged[Cdecl] fn__toggleUsePickupsForPlayer; + private delegate* unmanaged[Cdecl] fn__setLocalPlayerCanUsePickupsWithThisModel; private delegate* unmanaged[Cdecl] fn__0xFDC07C58E8AAB715; - private delegate* unmanaged[Cdecl] fn__setTeamPickupObject; - private delegate* unmanaged[Cdecl] fn__preventCollectionOfPortablePickup; + private delegate* unmanaged[Cdecl] fn__setTeamPickupObject; + private delegate* unmanaged[Cdecl] fn__preventCollectionOfPortablePickup; private delegate* unmanaged[Cdecl] fn__0x27F248C3FEBFAAD3; private delegate* unmanaged[Cdecl] fn__0x0596843B34B95CE5; - private delegate* unmanaged[Cdecl] fn__0xA08FE5E49BDC39DD; + private delegate* unmanaged[Cdecl] fn__0xA08FE5E49BDC39DD; private delegate* unmanaged[Cdecl] fn__0x62454A641B41F3C5; private delegate* unmanaged[Cdecl] fn__0x39A5FB7EAF150840; private delegate* unmanaged[Cdecl] fn__0x834344A414C7C85D; private delegate* unmanaged[Cdecl] fn__0xDB41D07A45A6D4B7; private delegate* unmanaged[Cdecl] fn__setPickupGenerationRangeMultiplier; private delegate* unmanaged[Cdecl] fn__getPickupGenerationRangeMultiplier; - private delegate* unmanaged[Cdecl] fn__0x31F924B53EADDF65; + private delegate* unmanaged[Cdecl] fn__0x31F924B53EADDF65; private delegate* unmanaged[Cdecl] fn__setPickupUncollectable; private delegate* unmanaged[Cdecl] fn__0x858EC9FD25DE04AA; private delegate* unmanaged[Cdecl] fn__setPickupHiddenWhenUncollectable; @@ -30669,25 +30669,25 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x8CFF648FBD7330F1; private delegate* unmanaged[Cdecl] fn__0x46F3ADD1E2D5BAF2; private delegate* unmanaged[Cdecl] fn__0x641F272B52E2F0F8; - private delegate* unmanaged[Cdecl] fn__0x4C134B4DF76025D0; - private delegate* unmanaged[Cdecl] fn__0xAA059C615DE9DD03; + private delegate* unmanaged[Cdecl] fn__0x4C134B4DF76025D0; + private delegate* unmanaged[Cdecl] fn__0xAA059C615DE9DD03; private delegate* unmanaged[Cdecl] fn__0xF92099527DB8E2A7; private delegate* unmanaged[Cdecl] fn__0xA2C1F5E92AFE49ED; private delegate* unmanaged[Cdecl] fn__0x762DB2D380B48D04; private delegate* unmanaged[Cdecl] fn__renderFakePickupGlow; private delegate* unmanaged[Cdecl] fn__0x7813E8B8C4AE4799; - private delegate* unmanaged[Cdecl] fn__0xBFFE53AE7E67FCDC; - private delegate* unmanaged[Cdecl] fn__0xD05A3241B9A86F19; - private delegate* unmanaged[Cdecl] fn__0xB2D0BDE54F0E8E5A; + private delegate* unmanaged[Cdecl] fn__0xBFFE53AE7E67FCDC; + private delegate* unmanaged[Cdecl] fn__0xD05A3241B9A86F19; + private delegate* unmanaged[Cdecl] fn__0xB2D0BDE54F0E8E5A; private delegate* unmanaged[Cdecl] fn__getWeaponTypeFromPickupType; private delegate* unmanaged[Cdecl] fn__getPickupHashFromWeapon; - private delegate* unmanaged[Cdecl] fn__isPickupWeaponObjectValid; + private delegate* unmanaged[Cdecl] fn__isPickupWeaponObjectValid; private delegate* unmanaged[Cdecl] fn__getObjectTextureVariation; private delegate* unmanaged[Cdecl] fn__setObjectTextureVariation; - private delegate* unmanaged[Cdecl] fn__setTextureVariationOfClosestObjectOfType; - private delegate* unmanaged[Cdecl] fn__setObjectLightColor; - private delegate* unmanaged[Cdecl] fn__0xADF084FB8F075D06; - private delegate* unmanaged[Cdecl] fn__0x3B2FD68DB5F8331C; + private delegate* unmanaged[Cdecl] fn__setTextureVariationOfClosestObjectOfType; + private delegate* unmanaged[Cdecl] fn__setObjectLightColor; + private delegate* unmanaged[Cdecl] fn__0xADF084FB8F075D06; + private delegate* unmanaged[Cdecl] fn__0x3B2FD68DB5F8331C; private delegate* unmanaged[Cdecl] fn__setObjectStuntPropSpeedup; private delegate* unmanaged[Cdecl] fn__setObjectStuntPropDuration; private delegate* unmanaged[Cdecl] fn__getPickupHash; @@ -30695,38 +30695,38 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__markObjectForDeletion; private delegate* unmanaged[Cdecl] fn__0x8CAAB2BD3EA58BD4; private delegate* unmanaged[Cdecl] fn__0x63ECF581BC70E363; - private delegate* unmanaged[Cdecl] fn__setEnableArenaPropPhysics; - private delegate* unmanaged[Cdecl] fn__setEnableArenaPropPhysicsOnPed; - private delegate* unmanaged[Cdecl] fn__0x734E1714D077DA9A; - private delegate* unmanaged[Cdecl] fn__0x1A6CBB06E2D0D79D; - private delegate* unmanaged[Cdecl] fn__getIsArenaPropPhysicsDisabled; + private delegate* unmanaged[Cdecl] fn__setEnableArenaPropPhysics; + private delegate* unmanaged[Cdecl] fn__setEnableArenaPropPhysicsOnPed; + private delegate* unmanaged[Cdecl] fn__0x734E1714D077DA9A; + private delegate* unmanaged[Cdecl] fn__0x1A6CBB06E2D0D79D; + private delegate* unmanaged[Cdecl] fn__getIsArenaPropPhysicsDisabled; private delegate* unmanaged[Cdecl] fn__0x3BD770D281982DB5; - private delegate* unmanaged[Cdecl] fn__0x1C57C94A6446492A; - private delegate* unmanaged[Cdecl] fn__0xB5B7742424BD4445; - private delegate* unmanaged[Cdecl] fn__isControlEnabled; - private delegate* unmanaged[Cdecl] fn__isControlPressed; - private delegate* unmanaged[Cdecl] fn__isControlReleased; - private delegate* unmanaged[Cdecl] fn__isControlJustPressed; - private delegate* unmanaged[Cdecl] fn__isControlJustReleased; + private delegate* unmanaged[Cdecl] fn__0x1C57C94A6446492A; + private delegate* unmanaged[Cdecl] fn__0xB5B7742424BD4445; + private delegate* unmanaged[Cdecl] fn__isControlEnabled; + private delegate* unmanaged[Cdecl] fn__isControlPressed; + private delegate* unmanaged[Cdecl] fn__isControlReleased; + private delegate* unmanaged[Cdecl] fn__isControlJustPressed; + private delegate* unmanaged[Cdecl] fn__isControlJustReleased; private delegate* unmanaged[Cdecl] fn__getControlValue; private delegate* unmanaged[Cdecl] fn__getControlNormal; - private delegate* unmanaged[Cdecl] fn__0x5B73C77D9EB66E24; + private delegate* unmanaged[Cdecl] fn__0x5B73C77D9EB66E24; private delegate* unmanaged[Cdecl] fn__getControlUnboundNormal; - private delegate* unmanaged[Cdecl] fn__setControlNormal; - private delegate* unmanaged[Cdecl] fn__isDisabledControlPressed; - private delegate* unmanaged[Cdecl] fn__isDisabledControlReleased; - private delegate* unmanaged[Cdecl] fn__isDisabledControlJustPressed; - private delegate* unmanaged[Cdecl] fn__isDisabledControlJustReleased; + private delegate* unmanaged[Cdecl] fn__setControlNormal; + private delegate* unmanaged[Cdecl] fn__isDisabledControlPressed; + private delegate* unmanaged[Cdecl] fn__isDisabledControlReleased; + private delegate* unmanaged[Cdecl] fn__isDisabledControlJustPressed; + private delegate* unmanaged[Cdecl] fn__isDisabledControlJustReleased; private delegate* unmanaged[Cdecl] fn__getDisabledControlNormal; private delegate* unmanaged[Cdecl] fn__getDisabledControlUnboundNormal; private delegate* unmanaged[Cdecl] fn__0xD7D22F5592AED8BA; - private delegate* unmanaged[Cdecl] fn__isUsingKeyboard; - private delegate* unmanaged[Cdecl] fn__isUsingKeyboard2; - private delegate* unmanaged[Cdecl] fn__setCursorLocation; - private delegate* unmanaged[Cdecl] fn__0x23F09EADC01449D6; - private delegate* unmanaged[Cdecl] fn__0x6CD79468A1E595C6; - private delegate* unmanaged[Cdecl] fn__getControlInstructionalButton; - private delegate* unmanaged[Cdecl] fn__getControlGroupInstructionalButton; + private delegate* unmanaged[Cdecl] fn__isUsingKeyboard; + private delegate* unmanaged[Cdecl] fn__isUsingKeyboard2; + private delegate* unmanaged[Cdecl] fn__setCursorLocation; + private delegate* unmanaged[Cdecl] fn__0x23F09EADC01449D6; + private delegate* unmanaged[Cdecl] fn__0x6CD79468A1E595C6; + private delegate* unmanaged[Cdecl] fn__getControlInstructionalButton; + private delegate* unmanaged[Cdecl] fn__getControlGroupInstructionalButton; private delegate* unmanaged[Cdecl] fn__setControlLightEffectColor; private delegate* unmanaged[Cdecl] fn__0xCB0360EFEFB2580D; private delegate* unmanaged[Cdecl] fn__setPadShake; @@ -30734,129 +30734,129 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__stopPadShake; private delegate* unmanaged[Cdecl] fn__setPadShakeSuppressedId; private delegate* unmanaged[Cdecl] fn__0xA0CEFCEA390AAB9B; - private delegate* unmanaged[Cdecl] fn__isLookInverted; - private delegate* unmanaged[Cdecl] fn__0xE1615EC03B3BB4FD; + private delegate* unmanaged[Cdecl] fn__isLookInverted; + private delegate* unmanaged[Cdecl] fn__0xE1615EC03B3BB4FD; private delegate* unmanaged[Cdecl] fn__getLocalPlayerAimState; private delegate* unmanaged[Cdecl] fn__getLocalPlayerAimState2; private delegate* unmanaged[Cdecl] fn__0x25AAA32BDC98F2A3; - private delegate* unmanaged[Cdecl] fn__getIsUsingAlternateDriveby; - private delegate* unmanaged[Cdecl] fn__getAllowMovementWhileZoomed; - private delegate* unmanaged[Cdecl] fn__setPlayerpadShakesWhenControllerDisabled; + private delegate* unmanaged[Cdecl] fn__getIsUsingAlternateDriveby; + private delegate* unmanaged[Cdecl] fn__getAllowMovementWhileZoomed; + private delegate* unmanaged[Cdecl] fn__setPlayerpadShakesWhenControllerDisabled; private delegate* unmanaged[Cdecl] fn__setInputExclusive; - private delegate* unmanaged[Cdecl] fn__disableControlAction; - private delegate* unmanaged[Cdecl] fn__enableControlAction; + private delegate* unmanaged[Cdecl] fn__disableControlAction; + private delegate* unmanaged[Cdecl] fn__enableControlAction; private delegate* unmanaged[Cdecl] fn__disableAllControlActions; private delegate* unmanaged[Cdecl] fn__enableAllControlActions; - private delegate* unmanaged[Cdecl] fn__switchToInputMappingScheme; - private delegate* unmanaged[Cdecl] fn__switchToInputMappingScheme2; + private delegate* unmanaged[Cdecl] fn__switchToInputMappingScheme; + private delegate* unmanaged[Cdecl] fn__switchToInputMappingScheme2; private delegate* unmanaged[Cdecl] fn__resetInputMappingScheme; private delegate* unmanaged[Cdecl] fn__disableInputGroup; - private delegate* unmanaged[Cdecl] fn__setRoadsInArea; - private delegate* unmanaged[Cdecl] fn__setRoadsInAngledArea; - private delegate* unmanaged[Cdecl] fn__setPedPathsInArea; - private delegate* unmanaged[Cdecl] fn__getSafeCoordForPed; - private delegate* unmanaged[Cdecl] fn__getClosestVehicleNode; - private delegate* unmanaged[Cdecl] fn__getClosestMajorVehicleNode; - private delegate* unmanaged[Cdecl] fn__getClosestVehicleNodeWithHeading; - private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNode; + private delegate* unmanaged[Cdecl] fn__setRoadsInArea; + private delegate* unmanaged[Cdecl] fn__setRoadsInAngledArea; + private delegate* unmanaged[Cdecl] fn__setPedPathsInArea; + private delegate* unmanaged[Cdecl] fn__getSafeCoordForPed; + private delegate* unmanaged[Cdecl] fn__getClosestVehicleNode; + private delegate* unmanaged[Cdecl] fn__getClosestMajorVehicleNode; + private delegate* unmanaged[Cdecl] fn__getClosestVehicleNodeWithHeading; + private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNode; private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeId; - private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeWithHeading; + private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeWithHeading; private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeIdWithHeading; - private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeFavourDirection; - private delegate* unmanaged[Cdecl] fn__getVehicleNodeProperties; - private delegate* unmanaged[Cdecl] fn__isVehicleNodeIdValid; + private delegate* unmanaged[Cdecl] fn__getNthClosestVehicleNodeFavourDirection; + private delegate* unmanaged[Cdecl] fn__getVehicleNodeProperties; + private delegate* unmanaged[Cdecl] fn__isVehicleNodeIdValid; private delegate* unmanaged[Cdecl] fn__getVehicleNodePosition; - private delegate* unmanaged[Cdecl] fn__getVehicleNodeIsGpsAllowed; - private delegate* unmanaged[Cdecl] fn__getVehicleNodeIsSwitchedOff; - private delegate* unmanaged[Cdecl] fn__getClosestRoad; - private delegate* unmanaged[Cdecl] fn__setAllPathsCacheBoundingstruct; + private delegate* unmanaged[Cdecl] fn__getVehicleNodeIsGpsAllowed; + private delegate* unmanaged[Cdecl] fn__getVehicleNodeIsSwitchedOff; + private delegate* unmanaged[Cdecl] fn__getClosestRoad; + private delegate* unmanaged[Cdecl] fn__setAllPathsCacheBoundingstruct; private delegate* unmanaged[Cdecl] fn__setAiGlobalPathNodesType; - private delegate* unmanaged[Cdecl] fn__areNodesLoadedForArea; - private delegate* unmanaged[Cdecl] fn__requestPathsPreferAccurateBoundingstruct; + private delegate* unmanaged[Cdecl] fn__areNodesLoadedForArea; + private delegate* unmanaged[Cdecl] fn__requestPathsPreferAccurateBoundingstruct; private delegate* unmanaged[Cdecl] fn__setRoadsBackToOriginal; private delegate* unmanaged[Cdecl] fn__setRoadsBackToOriginalInAngledArea; private delegate* unmanaged[Cdecl] fn__setAmbientPedRangeMultiplierThisFrame; private delegate* unmanaged[Cdecl] fn__0xAA76052DDA9BFC3E; private delegate* unmanaged[Cdecl] fn__setPedPathsBackToOriginal; - private delegate* unmanaged[Cdecl] fn__getRandomVehicleNode; + private delegate* unmanaged[Cdecl] fn__getRandomVehicleNode; private delegate* unmanaged[Cdecl] fn__getStreetNameAtCoord; - private delegate* unmanaged[Cdecl] fn__generateDirectionsToCoord; - private delegate* unmanaged[Cdecl] fn__setIgnoreNoGpsFlag; - private delegate* unmanaged[Cdecl] fn__setIgnoreSecondaryRouteNodes; + private delegate* unmanaged[Cdecl] fn__generateDirectionsToCoord; + private delegate* unmanaged[Cdecl] fn__setIgnoreNoGpsFlag; + private delegate* unmanaged[Cdecl] fn__setIgnoreSecondaryRouteNodes; private delegate* unmanaged[Cdecl] fn__setGpsDisabledZone; private delegate* unmanaged[Cdecl] fn__getGpsBlipRouteLength; private delegate* unmanaged[Cdecl] fn__0xF3162836C28F9DA5; - private delegate* unmanaged[Cdecl] fn__getGpsBlipRouteFound; - private delegate* unmanaged[Cdecl] fn__getRoadSidePointWithHeading; - private delegate* unmanaged[Cdecl] fn__getPointOnRoadSide; - private delegate* unmanaged[Cdecl] fn__isPointOnRoad; + private delegate* unmanaged[Cdecl] fn__getGpsBlipRouteFound; + private delegate* unmanaged[Cdecl] fn__getRoadSidePointWithHeading; + private delegate* unmanaged[Cdecl] fn__getPointOnRoadSide; + private delegate* unmanaged[Cdecl] fn__isPointOnRoad; private delegate* unmanaged[Cdecl] fn__getNextGpsDisabledZoneIndex; private delegate* unmanaged[Cdecl] fn__setGpsDisabledZoneAtIndex; private delegate* unmanaged[Cdecl] fn__clearGpsDisabledZoneAtIndex; private delegate* unmanaged[Cdecl] fn__addNavmeshRequiredRegion; private delegate* unmanaged[Cdecl] fn__removeNavmeshRequiredRegions; - private delegate* unmanaged[Cdecl] fn__isNavmeshRequiredRegionOwnedByAnyThread; + private delegate* unmanaged[Cdecl] fn__isNavmeshRequiredRegionOwnedByAnyThread; private delegate* unmanaged[Cdecl] fn__disableNavmeshInArea; - private delegate* unmanaged[Cdecl] fn__areAllNavmeshRegionsLoaded; - private delegate* unmanaged[Cdecl] fn__isNavmeshLoadedInArea; + private delegate* unmanaged[Cdecl] fn__areAllNavmeshRegionsLoaded; + private delegate* unmanaged[Cdecl] fn__isNavmeshLoadedInArea; private delegate* unmanaged[Cdecl] fn__0x01708E8DD3FF8C65; - private delegate* unmanaged[Cdecl] fn__addNavmeshBlockingObject; + private delegate* unmanaged[Cdecl] fn__addNavmeshBlockingObject; private delegate* unmanaged[Cdecl] fn__updateNavmeshBlockingObject; private delegate* unmanaged[Cdecl] fn__removeNavmeshBlockingObject; - private delegate* unmanaged[Cdecl] fn__doesNavmeshBlockingObjectExist; + private delegate* unmanaged[Cdecl] fn__doesNavmeshBlockingObjectExist; private delegate* unmanaged[Cdecl] fn__getHeightmapTopZForPosition; private delegate* unmanaged[Cdecl] fn__getHeightmapTopZForArea; private delegate* unmanaged[Cdecl] fn__getHeightmapBottomZForPosition; private delegate* unmanaged[Cdecl] fn__getHeightmapBottomZForArea; private delegate* unmanaged[Cdecl] fn__calculateTravelDistanceBetweenPoints; - private delegate* unmanaged[Cdecl] fn__createPed; + private delegate* unmanaged[Cdecl] fn__createPed; private delegate* unmanaged[Cdecl] fn__deletePed; - private delegate* unmanaged[Cdecl] fn__clonePed; - private delegate* unmanaged[Cdecl] fn__clonePedEx; + private delegate* unmanaged[Cdecl] fn__clonePed; + private delegate* unmanaged[Cdecl] fn__clonePedEx; private delegate* unmanaged[Cdecl] fn__clonePedToTarget; - private delegate* unmanaged[Cdecl] fn__clonePedToTargetEx; - private delegate* unmanaged[Cdecl] fn__isPedInVehicle; - private delegate* unmanaged[Cdecl] fn__isPedInModel; - private delegate* unmanaged[Cdecl] fn__isPedInAnyVehicle; - private delegate* unmanaged[Cdecl] fn__isCopPedInArea3d; - private delegate* unmanaged[Cdecl] fn__isPedInjured; - private delegate* unmanaged[Cdecl] fn__isPedHurt; - private delegate* unmanaged[Cdecl] fn__isPedFatallyInjured; - private delegate* unmanaged[Cdecl] fn__isPedDeadOrDying; - private delegate* unmanaged[Cdecl] fn__isConversationPedDead; - private delegate* unmanaged[Cdecl] fn__isPedAimingFromCover; - private delegate* unmanaged[Cdecl] fn__isPedReloading; - private delegate* unmanaged[Cdecl] fn__isPedAPlayer; - private delegate* unmanaged[Cdecl] fn__createPedInsideVehicle; + private delegate* unmanaged[Cdecl] fn__clonePedToTargetEx; + private delegate* unmanaged[Cdecl] fn__isPedInVehicle; + private delegate* unmanaged[Cdecl] fn__isPedInModel; + private delegate* unmanaged[Cdecl] fn__isPedInAnyVehicle; + private delegate* unmanaged[Cdecl] fn__isCopPedInArea3d; + private delegate* unmanaged[Cdecl] fn__isPedInjured; + private delegate* unmanaged[Cdecl] fn__isPedHurt; + private delegate* unmanaged[Cdecl] fn__isPedFatallyInjured; + private delegate* unmanaged[Cdecl] fn__isPedDeadOrDying; + private delegate* unmanaged[Cdecl] fn__isConversationPedDead; + private delegate* unmanaged[Cdecl] fn__isPedAimingFromCover; + private delegate* unmanaged[Cdecl] fn__isPedReloading; + private delegate* unmanaged[Cdecl] fn__isPedAPlayer; + private delegate* unmanaged[Cdecl] fn__createPedInsideVehicle; private delegate* unmanaged[Cdecl] fn__setPedDesiredHeading; private delegate* unmanaged[Cdecl] fn__freezePedCameraRotation; - private delegate* unmanaged[Cdecl] fn__isPedFacingPed; - private delegate* unmanaged[Cdecl] fn__isPedInMeleeCombat; - private delegate* unmanaged[Cdecl] fn__isPedStopped; - private delegate* unmanaged[Cdecl] fn__isPedShootingInArea; - private delegate* unmanaged[Cdecl] fn__isAnyPedShootingInArea; - private delegate* unmanaged[Cdecl] fn__isPedShooting; + private delegate* unmanaged[Cdecl] fn__isPedFacingPed; + private delegate* unmanaged[Cdecl] fn__isPedInMeleeCombat; + private delegate* unmanaged[Cdecl] fn__isPedStopped; + private delegate* unmanaged[Cdecl] fn__isPedShootingInArea; + private delegate* unmanaged[Cdecl] fn__isAnyPedShootingInArea; + private delegate* unmanaged[Cdecl] fn__isPedShooting; private delegate* unmanaged[Cdecl] fn__setPedAccuracy; private delegate* unmanaged[Cdecl] fn__getPedAccuracy; private delegate* unmanaged[Cdecl] fn__0x87DDEB611B329A9C; - private delegate* unmanaged[Cdecl] fn__isPedModel; + private delegate* unmanaged[Cdecl] fn__isPedModel; private delegate* unmanaged[Cdecl] fn__explodePedHead; private delegate* unmanaged[Cdecl] fn__removePedElegantly; private delegate* unmanaged[Cdecl] fn__addArmourToPed; private delegate* unmanaged[Cdecl] fn__setPedArmour; private delegate* unmanaged[Cdecl] fn__setPedIntoVehicle; - private delegate* unmanaged[Cdecl] fn__setPedAllowVehiclesOverride; - private delegate* unmanaged[Cdecl] fn__canCreateRandomPed; + private delegate* unmanaged[Cdecl] fn__setPedAllowVehiclesOverride; + private delegate* unmanaged[Cdecl] fn__canCreateRandomPed; private delegate* unmanaged[Cdecl] fn__createRandomPed; - private delegate* unmanaged[Cdecl] fn__createRandomPedAsDriver; - private delegate* unmanaged[Cdecl] fn__canCreateRandomDriver; - private delegate* unmanaged[Cdecl] fn__canCreateRandomBikeRider; + private delegate* unmanaged[Cdecl] fn__createRandomPedAsDriver; + private delegate* unmanaged[Cdecl] fn__canCreateRandomDriver; + private delegate* unmanaged[Cdecl] fn__canCreateRandomBikeRider; private delegate* unmanaged[Cdecl] fn__setPedMoveAnimsBlendOut; - private delegate* unmanaged[Cdecl] fn__setPedCanBeDraggedOut; - private delegate* unmanaged[Cdecl] fn__0xF2BEBCDFAFDAA19E; - private delegate* unmanaged[Cdecl] fn__isPedMale; - private delegate* unmanaged[Cdecl] fn__isPedHuman; - private delegate* unmanaged[Cdecl] fn__getVehiclePedIsIn; + private delegate* unmanaged[Cdecl] fn__setPedCanBeDraggedOut; + private delegate* unmanaged[Cdecl] fn__0xF2BEBCDFAFDAA19E; + private delegate* unmanaged[Cdecl] fn__isPedMale; + private delegate* unmanaged[Cdecl] fn__isPedHuman; + private delegate* unmanaged[Cdecl] fn__getVehiclePedIsIn; private delegate* unmanaged[Cdecl] fn__resetPedLastVehicle; private delegate* unmanaged[Cdecl] fn__setPedDensityMultiplierThisFrame; private delegate* unmanaged[Cdecl] fn__setScenarioPedDensityMultiplierThisFrame; @@ -30865,68 +30865,68 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPedNonCreationArea; private delegate* unmanaged[Cdecl] fn__clearPedNonCreationArea; private delegate* unmanaged[Cdecl] fn__instantlyFillPedPopulation; - private delegate* unmanaged[Cdecl] fn__isPedOnMount; + private delegate* unmanaged[Cdecl] fn__isPedOnMount; private delegate* unmanaged[Cdecl] fn__getMount; - private delegate* unmanaged[Cdecl] fn__isPedOnVehicle; - private delegate* unmanaged[Cdecl] fn__isPedOnSpecificVehicle; + private delegate* unmanaged[Cdecl] fn__isPedOnVehicle; + private delegate* unmanaged[Cdecl] fn__isPedOnSpecificVehicle; private delegate* unmanaged[Cdecl] fn__setPedMoney; private delegate* unmanaged[Cdecl] fn__getPedMoney; private delegate* unmanaged[Cdecl] fn__0xFF4803BC019852D9; - private delegate* unmanaged[Cdecl] fn__setAmbientPedsDropMoney; - private delegate* unmanaged[Cdecl] fn__0x9911F4A24485F653; - private delegate* unmanaged[Cdecl] fn__setPedSuffersCriticalHits; - private delegate* unmanaged[Cdecl] fn__0xAFC976FD0580C7B3; - private delegate* unmanaged[Cdecl] fn__isPedSittingInVehicle; - private delegate* unmanaged[Cdecl] fn__isPedSittingInAnyVehicle; - private delegate* unmanaged[Cdecl] fn__isPedOnFoot; - private delegate* unmanaged[Cdecl] fn__isPedOnAnyBike; - private delegate* unmanaged[Cdecl] fn__isPedPlantingBomb; + private delegate* unmanaged[Cdecl] fn__setAmbientPedsDropMoney; + private delegate* unmanaged[Cdecl] fn__0x9911F4A24485F653; + private delegate* unmanaged[Cdecl] fn__setPedSuffersCriticalHits; + private delegate* unmanaged[Cdecl] fn__0xAFC976FD0580C7B3; + private delegate* unmanaged[Cdecl] fn__isPedSittingInVehicle; + private delegate* unmanaged[Cdecl] fn__isPedSittingInAnyVehicle; + private delegate* unmanaged[Cdecl] fn__isPedOnFoot; + private delegate* unmanaged[Cdecl] fn__isPedOnAnyBike; + private delegate* unmanaged[Cdecl] fn__isPedPlantingBomb; private delegate* unmanaged[Cdecl] fn__getDeadPedPickupCoords; - private delegate* unmanaged[Cdecl] fn__isPedInAnyBoat; - private delegate* unmanaged[Cdecl] fn__isPedInAnySub; - private delegate* unmanaged[Cdecl] fn__isPedInAnyHeli; - private delegate* unmanaged[Cdecl] fn__isPedInAnyPlane; - private delegate* unmanaged[Cdecl] fn__isPedInFlyingVehicle; - private delegate* unmanaged[Cdecl] fn__setPedDiesInWater; - private delegate* unmanaged[Cdecl] fn__setPedDiesInSinkingVehicle; + private delegate* unmanaged[Cdecl] fn__isPedInAnyBoat; + private delegate* unmanaged[Cdecl] fn__isPedInAnySub; + private delegate* unmanaged[Cdecl] fn__isPedInAnyHeli; + private delegate* unmanaged[Cdecl] fn__isPedInAnyPlane; + private delegate* unmanaged[Cdecl] fn__isPedInFlyingVehicle; + private delegate* unmanaged[Cdecl] fn__setPedDiesInWater; + private delegate* unmanaged[Cdecl] fn__setPedDiesInSinkingVehicle; private delegate* unmanaged[Cdecl] fn__getPedArmour; - private delegate* unmanaged[Cdecl] fn__setPedStayInVehicleWhenJacked; - private delegate* unmanaged[Cdecl] fn__setPedCanBeShotInVehicle; - private delegate* unmanaged[Cdecl] fn__getPedLastDamageBone; + private delegate* unmanaged[Cdecl] fn__setPedStayInVehicleWhenJacked; + private delegate* unmanaged[Cdecl] fn__setPedCanBeShotInVehicle; + private delegate* unmanaged[Cdecl] fn__getPedLastDamageBone; private delegate* unmanaged[Cdecl] fn__clearPedLastDamageBone; private delegate* unmanaged[Cdecl] fn__setAiWeaponDamageModifier; private delegate* unmanaged[Cdecl] fn__resetAiWeaponDamageModifier; private delegate* unmanaged[Cdecl] fn__setAiMeleeWeaponDamageModifier; private delegate* unmanaged[Cdecl] fn__resetAiMeleeWeaponDamageModifier; - private delegate* unmanaged[Cdecl] fn__0x2F3C3D9F50681DE4; - private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetted; - private delegate* unmanaged[Cdecl] fn__setPedCanBeTargettedByTeam; - private delegate* unmanaged[Cdecl] fn__setPedCanBeTargettedByPlayer; - private delegate* unmanaged[Cdecl] fn__0x061CB768363D6424; - private delegate* unmanaged[Cdecl] fn__0xFD325494792302D7; - private delegate* unmanaged[Cdecl] fn__isPedInAnyPoliceVehicle; + private delegate* unmanaged[Cdecl] fn__0x2F3C3D9F50681DE4; + private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetted; + private delegate* unmanaged[Cdecl] fn__setPedCanBeTargettedByTeam; + private delegate* unmanaged[Cdecl] fn__setPedCanBeTargettedByPlayer; + private delegate* unmanaged[Cdecl] fn__0x061CB768363D6424; + private delegate* unmanaged[Cdecl] fn__0xFD325494792302D7; + private delegate* unmanaged[Cdecl] fn__isPedInAnyPoliceVehicle; private delegate* unmanaged[Cdecl] fn__forcePedToOpenParachute; - private delegate* unmanaged[Cdecl] fn__isPedInParachuteFreeFall; - private delegate* unmanaged[Cdecl] fn__isPedFalling; - private delegate* unmanaged[Cdecl] fn__isPedJumping; + private delegate* unmanaged[Cdecl] fn__isPedInParachuteFreeFall; + private delegate* unmanaged[Cdecl] fn__isPedFalling; + private delegate* unmanaged[Cdecl] fn__isPedJumping; private delegate* unmanaged[Cdecl] fn__0x412F1364FA066CFB; private delegate* unmanaged[Cdecl] fn__0x451D05012CCEC234; - private delegate* unmanaged[Cdecl] fn__isPedClimbing; - private delegate* unmanaged[Cdecl] fn__isPedVaulting; - private delegate* unmanaged[Cdecl] fn__isPedDiving; - private delegate* unmanaged[Cdecl] fn__isPedJumpingOutOfVehicle; - private delegate* unmanaged[Cdecl] fn__isPedOpeningADoor; + private delegate* unmanaged[Cdecl] fn__isPedClimbing; + private delegate* unmanaged[Cdecl] fn__isPedVaulting; + private delegate* unmanaged[Cdecl] fn__isPedDiving; + private delegate* unmanaged[Cdecl] fn__isPedJumpingOutOfVehicle; + private delegate* unmanaged[Cdecl] fn__isPedOpeningADoor; private delegate* unmanaged[Cdecl] fn__getPedParachuteState; private delegate* unmanaged[Cdecl] fn__getPedParachuteLandingType; private delegate* unmanaged[Cdecl] fn__setPedParachuteTintIndex; private delegate* unmanaged[Cdecl] fn__getPedParachuteTintIndex; private delegate* unmanaged[Cdecl] fn__setPedReserveParachuteTintIndex; - private delegate* unmanaged[Cdecl] fn__createParachuteBagObject; - private delegate* unmanaged[Cdecl] fn__setPedDucking; - private delegate* unmanaged[Cdecl] fn__isPedDucking; - private delegate* unmanaged[Cdecl] fn__isPedInAnyTaxi; + private delegate* unmanaged[Cdecl] fn__createParachuteBagObject; + private delegate* unmanaged[Cdecl] fn__setPedDucking; + private delegate* unmanaged[Cdecl] fn__isPedDucking; + private delegate* unmanaged[Cdecl] fn__isPedInAnyTaxi; private delegate* unmanaged[Cdecl] fn__setPedIdRange; - private delegate* unmanaged[Cdecl] fn__setPedHighlyPerceptive; + private delegate* unmanaged[Cdecl] fn__setPedHighlyPerceptive; private delegate* unmanaged[Cdecl] fn__0x2F074C904D85129E; private delegate* unmanaged[Cdecl] fn__0xEC4B4B3B9908052A; private delegate* unmanaged[Cdecl] fn__0x733C87D4CE22BEA2; @@ -30939,34 +30939,34 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPedVisualFieldPeripheralRange; private delegate* unmanaged[Cdecl] fn__setPedVisualFieldCenterAngle; private delegate* unmanaged[Cdecl] fn__getPedVisualFieldCenterAngle; - private delegate* unmanaged[Cdecl] fn__setPedStealthMovement; - private delegate* unmanaged[Cdecl] fn__getPedStealthMovement; + private delegate* unmanaged[Cdecl] fn__setPedStealthMovement; + private delegate* unmanaged[Cdecl] fn__getPedStealthMovement; private delegate* unmanaged[Cdecl] fn__createGroup; private delegate* unmanaged[Cdecl] fn__setPedAsGroupLeader; private delegate* unmanaged[Cdecl] fn__setPedAsGroupMember; - private delegate* unmanaged[Cdecl] fn__setPedCanTeleportToGroupLeader; + private delegate* unmanaged[Cdecl] fn__setPedCanTeleportToGroupLeader; private delegate* unmanaged[Cdecl] fn__removeGroup; private delegate* unmanaged[Cdecl] fn__removePedFromGroup; - private delegate* unmanaged[Cdecl] fn__isPedGroupMember; - private delegate* unmanaged[Cdecl] fn__isPedHangingOnToVehicle; + private delegate* unmanaged[Cdecl] fn__isPedGroupMember; + private delegate* unmanaged[Cdecl] fn__isPedHangingOnToVehicle; private delegate* unmanaged[Cdecl] fn__setGroupSeparationRange; private delegate* unmanaged[Cdecl] fn__setPedMinGroundTimeForStungun; - private delegate* unmanaged[Cdecl] fn__isPedProne; - private delegate* unmanaged[Cdecl] fn__isPedInCombat; + private delegate* unmanaged[Cdecl] fn__isPedProne; + private delegate* unmanaged[Cdecl] fn__isPedInCombat; private delegate* unmanaged[Cdecl] fn__getPedTaskCombatTarget; - private delegate* unmanaged[Cdecl] fn__canPedInCombatSeeTarget; - private delegate* unmanaged[Cdecl] fn__isPedDoingDriveby; - private delegate* unmanaged[Cdecl] fn__isPedJacking; - private delegate* unmanaged[Cdecl] fn__isPedBeingJacked; - private delegate* unmanaged[Cdecl] fn__isPedBeingStunned; + private delegate* unmanaged[Cdecl] fn__canPedInCombatSeeTarget; + private delegate* unmanaged[Cdecl] fn__isPedDoingDriveby; + private delegate* unmanaged[Cdecl] fn__isPedJacking; + private delegate* unmanaged[Cdecl] fn__isPedBeingJacked; + private delegate* unmanaged[Cdecl] fn__isPedBeingStunned; private delegate* unmanaged[Cdecl] fn__getPedsJacker; private delegate* unmanaged[Cdecl] fn__getJackTarget; - private delegate* unmanaged[Cdecl] fn__isPedFleeing; - private delegate* unmanaged[Cdecl] fn__isPedInCover; - private delegate* unmanaged[Cdecl] fn__isPedInCoverFacingLeft; - private delegate* unmanaged[Cdecl] fn__isPedInHighCover; - private delegate* unmanaged[Cdecl] fn__isPedGoingIntoCover; - private delegate* unmanaged[Cdecl] fn__setPedPinnedDown; + private delegate* unmanaged[Cdecl] fn__isPedFleeing; + private delegate* unmanaged[Cdecl] fn__isPedInCover; + private delegate* unmanaged[Cdecl] fn__isPedInCoverFacingLeft; + private delegate* unmanaged[Cdecl] fn__isPedInHighCover; + private delegate* unmanaged[Cdecl] fn__isPedGoingIntoCover; + private delegate* unmanaged[Cdecl] fn__setPedPinnedDown; private delegate* unmanaged[Cdecl] fn__getSeatPedIsTryingToEnter; private delegate* unmanaged[Cdecl] fn__getVehiclePedIsTryingToEnter; private delegate* unmanaged[Cdecl] fn__getPedSourceOfDeath; @@ -30980,38 +30980,38 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__clearRelationshipBetweenGroups; private delegate* unmanaged[Cdecl] fn__addRelationshipGroup; private delegate* unmanaged[Cdecl] fn__removeRelationshipGroup; - private delegate* unmanaged[Cdecl] fn__doesRelationshipGroupExist; + private delegate* unmanaged[Cdecl] fn__doesRelationshipGroupExist; private delegate* unmanaged[Cdecl] fn__getRelationshipBetweenPeds; private delegate* unmanaged[Cdecl] fn__getPedRelationshipGroupDefaultHash; private delegate* unmanaged[Cdecl] fn__getPedRelationshipGroupHash; private delegate* unmanaged[Cdecl] fn__getRelationshipBetweenGroups; - private delegate* unmanaged[Cdecl] fn__setRelationshipGroupDontAffectWantedLevel; + private delegate* unmanaged[Cdecl] fn__setRelationshipGroupDontAffectWantedLevel; private delegate* unmanaged[Cdecl] fn__0xAD27D957598E49E9; - private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetedWithoutLos; + private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetedWithoutLos; private delegate* unmanaged[Cdecl] fn__setPedToInformRespectedFriends; - private delegate* unmanaged[Cdecl] fn__isPedRespondingToEvent; - private delegate* unmanaged[Cdecl] fn__getPedEventData; + private delegate* unmanaged[Cdecl] fn__isPedRespondingToEvent; + private delegate* unmanaged[Cdecl] fn__getPedEventData; private delegate* unmanaged[Cdecl] fn__setPedFiringPattern; private delegate* unmanaged[Cdecl] fn__setPedShootRate; private delegate* unmanaged[Cdecl] fn__setCombatFloat; private delegate* unmanaged[Cdecl] fn__getCombatFloat; private delegate* unmanaged[Cdecl] fn__getGroupSize; - private delegate* unmanaged[Cdecl] fn__doesGroupExist; + private delegate* unmanaged[Cdecl] fn__doesGroupExist; private delegate* unmanaged[Cdecl] fn__getPedGroupIndex; - private delegate* unmanaged[Cdecl] fn__isPedInGroup; + private delegate* unmanaged[Cdecl] fn__isPedInGroup; private delegate* unmanaged[Cdecl] fn__getPlayerPedIsFollowing; private delegate* unmanaged[Cdecl] fn__setGroupFormation; private delegate* unmanaged[Cdecl] fn__setGroupFormationSpacing; private delegate* unmanaged[Cdecl] fn__resetGroupFormationDefaultSpacing; private delegate* unmanaged[Cdecl] fn__getVehiclePedIsUsing; private delegate* unmanaged[Cdecl] fn__getVehiclePedIsEntering; - private delegate* unmanaged[Cdecl] fn__setPedGravity; - private delegate* unmanaged[Cdecl] fn__applyDamageToPed; + private delegate* unmanaged[Cdecl] fn__setPedGravity; + private delegate* unmanaged[Cdecl] fn__applyDamageToPed; private delegate* unmanaged[Cdecl] fn__getTimeOfLastPedWeaponDamage; - private delegate* unmanaged[Cdecl] fn__setPedAllowedToDuck; - private delegate* unmanaged[Cdecl] fn__setPedNeverLeavesGroup; + private delegate* unmanaged[Cdecl] fn__setPedAllowedToDuck; + private delegate* unmanaged[Cdecl] fn__setPedNeverLeavesGroup; private delegate* unmanaged[Cdecl] fn__getPedType; - private delegate* unmanaged[Cdecl] fn__setPedAsCop; + private delegate* unmanaged[Cdecl] fn__setPedAsCop; private delegate* unmanaged[Cdecl] fn__setPedMaxHealth; private delegate* unmanaged[Cdecl] fn__getPedMaxHealth; private delegate* unmanaged[Cdecl] fn__setPedMaxTimeInWater; @@ -31021,33 +31021,33 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__clearAllPedVehicleForcedSeatUsage; private delegate* unmanaged[Cdecl] fn__0xB282749D5E028163; private delegate* unmanaged[Cdecl] fn__setPedCanBeKnockedOffVehicle; - private delegate* unmanaged[Cdecl] fn__canKnockPedOffVehicle; + private delegate* unmanaged[Cdecl] fn__canKnockPedOffVehicle; private delegate* unmanaged[Cdecl] fn__knockPedOffVehicle; private delegate* unmanaged[Cdecl] fn__setPedCoordsNoGang; private delegate* unmanaged[Cdecl] fn__getPedAsGroupMember; private delegate* unmanaged[Cdecl] fn__getPedAsGroupLeader; - private delegate* unmanaged[Cdecl] fn__setPedKeepTask; - private delegate* unmanaged[Cdecl] fn__0x49E50BDB8BA4DAB2; - private delegate* unmanaged[Cdecl] fn__isPedSwimming; - private delegate* unmanaged[Cdecl] fn__isPedSwimmingUnderWater; + private delegate* unmanaged[Cdecl] fn__setPedKeepTask; + private delegate* unmanaged[Cdecl] fn__0x49E50BDB8BA4DAB2; + private delegate* unmanaged[Cdecl] fn__isPedSwimming; + private delegate* unmanaged[Cdecl] fn__isPedSwimmingUnderWater; private delegate* unmanaged[Cdecl] fn__setPedCoordsKeepVehicle; - private delegate* unmanaged[Cdecl] fn__setPedDiesInVehicle; - private delegate* unmanaged[Cdecl] fn__setCreateRandomCops; - private delegate* unmanaged[Cdecl] fn__setCreateRandomCopsNotOnScenarios; - private delegate* unmanaged[Cdecl] fn__setCreateRandomCopsOnScenarios; - private delegate* unmanaged[Cdecl] fn__canCreateRandomCops; - private delegate* unmanaged[Cdecl] fn__setPedAsEnemy; - private delegate* unmanaged[Cdecl] fn__setPedCanSmashGlass; - private delegate* unmanaged[Cdecl] fn__isPedInAnyTrain; - private delegate* unmanaged[Cdecl] fn__isPedGettingIntoAVehicle; - private delegate* unmanaged[Cdecl] fn__isPedTryingToEnterALockedVehicle; - private delegate* unmanaged[Cdecl] fn__setEnableHandcuffs; - private delegate* unmanaged[Cdecl] fn__setEnableBoundAnkles; - private delegate* unmanaged[Cdecl] fn__setEnableScuba; - private delegate* unmanaged[Cdecl] fn__setCanAttackFriendly; + private delegate* unmanaged[Cdecl] fn__setPedDiesInVehicle; + private delegate* unmanaged[Cdecl] fn__setCreateRandomCops; + private delegate* unmanaged[Cdecl] fn__setCreateRandomCopsNotOnScenarios; + private delegate* unmanaged[Cdecl] fn__setCreateRandomCopsOnScenarios; + private delegate* unmanaged[Cdecl] fn__canCreateRandomCops; + private delegate* unmanaged[Cdecl] fn__setPedAsEnemy; + private delegate* unmanaged[Cdecl] fn__setPedCanSmashGlass; + private delegate* unmanaged[Cdecl] fn__isPedInAnyTrain; + private delegate* unmanaged[Cdecl] fn__isPedGettingIntoAVehicle; + private delegate* unmanaged[Cdecl] fn__isPedTryingToEnterALockedVehicle; + private delegate* unmanaged[Cdecl] fn__setEnableHandcuffs; + private delegate* unmanaged[Cdecl] fn__setEnableBoundAnkles; + private delegate* unmanaged[Cdecl] fn__setEnableScuba; + private delegate* unmanaged[Cdecl] fn__setCanAttackFriendly; private delegate* unmanaged[Cdecl] fn__getPedAlertness; private delegate* unmanaged[Cdecl] fn__setPedAlertness; - private delegate* unmanaged[Cdecl] fn__setPedGetOutUpsideDownVehicle; + private delegate* unmanaged[Cdecl] fn__setPedGetOutUpsideDownVehicle; private delegate* unmanaged[Cdecl] fn__setPedMovementClipset; private delegate* unmanaged[Cdecl] fn__resetPedMovementClipset; private delegate* unmanaged[Cdecl] fn__setPedStrafeClipset; @@ -31061,10 +31061,10 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x80054D7FCC70EEC6; private delegate* unmanaged[Cdecl] fn__setPedInVehicleContext; private delegate* unmanaged[Cdecl] fn__resetPedInVehicleContext; - private delegate* unmanaged[Cdecl] fn__isScriptedScenarioPedUsingConditionalAnim; - private delegate* unmanaged[Cdecl] fn__setPedAlternateWalkAnim; + private delegate* unmanaged[Cdecl] fn__isScriptedScenarioPedUsingConditionalAnim; + private delegate* unmanaged[Cdecl] fn__setPedAlternateWalkAnim; private delegate* unmanaged[Cdecl] fn__clearPedAlternateWalkAnim; - private delegate* unmanaged[Cdecl] fn__setPedAlternateMovementAnim; + private delegate* unmanaged[Cdecl] fn__setPedAlternateMovementAnim; private delegate* unmanaged[Cdecl] fn__clearPedAlternateMovementAnim; private delegate* unmanaged[Cdecl] fn__setPedGestureGroup; private delegate* unmanaged[Cdecl] fn__getAnimInitialOffsetPosition; @@ -31076,17 +31076,17 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getNumberOfPedPropDrawableVariations; private delegate* unmanaged[Cdecl] fn__getNumberOfPedPropTextureVariations; private delegate* unmanaged[Cdecl] fn__getPedPaletteVariation; - private delegate* unmanaged[Cdecl] fn__0x9E30E91FB03A2CAF; + private delegate* unmanaged[Cdecl] fn__0x9E30E91FB03A2CAF; private delegate* unmanaged[Cdecl] fn__0x1E77FA7A62EE6C4C; private delegate* unmanaged[Cdecl] fn__0xF033419D1B81FAE8; - private delegate* unmanaged[Cdecl] fn__isPedComponentVariationValid; + private delegate* unmanaged[Cdecl] fn__isPedComponentVariationValid; private delegate* unmanaged[Cdecl] fn__setPedComponentVariation; private delegate* unmanaged[Cdecl] fn__setPedRandomComponentVariation; private delegate* unmanaged[Cdecl] fn__setPedRandomProps; private delegate* unmanaged[Cdecl] fn__setPedDefaultComponentVariation; private delegate* unmanaged[Cdecl] fn__setPedBlendFromParents; - private delegate* unmanaged[Cdecl] fn__setPedHeadBlendData; - private delegate* unmanaged[Cdecl] fn__getPedHeadBlendData; + private delegate* unmanaged[Cdecl] fn__setPedHeadBlendData; + private delegate* unmanaged[Cdecl] fn__getPedHeadBlendData; private delegate* unmanaged[Cdecl] fn__updatePedHeadBlendData; private delegate* unmanaged[Cdecl] fn__setPedEyeColor; private delegate* unmanaged[Cdecl] fn__getPedEyeColor; @@ -31099,32 +31099,32 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getNumMakeupColors; private delegate* unmanaged[Cdecl] fn__getPedHairRgbColor; private delegate* unmanaged[Cdecl] fn__getPedMakeupRgbColor; - private delegate* unmanaged[Cdecl] fn__isPedHairColorValid2; + private delegate* unmanaged[Cdecl] fn__isPedHairColorValid2; private delegate* unmanaged[Cdecl] fn__0xEA9960D07DADCF10; - private delegate* unmanaged[Cdecl] fn__isPedLipstickColorValid2; - private delegate* unmanaged[Cdecl] fn__isPedBlushColorValid2; - private delegate* unmanaged[Cdecl] fn__isPedHairColorValid; + private delegate* unmanaged[Cdecl] fn__isPedLipstickColorValid2; + private delegate* unmanaged[Cdecl] fn__isPedBlushColorValid2; + private delegate* unmanaged[Cdecl] fn__isPedHairColorValid; private delegate* unmanaged[Cdecl] fn__0xAAA6A3698A69E048; - private delegate* unmanaged[Cdecl] fn__isPedLipstickColorValid; - private delegate* unmanaged[Cdecl] fn__isPedBlushColorValid; - private delegate* unmanaged[Cdecl] fn__isPedBodyBlemishValid; + private delegate* unmanaged[Cdecl] fn__isPedLipstickColorValid; + private delegate* unmanaged[Cdecl] fn__isPedBlushColorValid; + private delegate* unmanaged[Cdecl] fn__isPedBodyBlemishValid; private delegate* unmanaged[Cdecl] fn__0xC56FBF2F228E1DAC; private delegate* unmanaged[Cdecl] fn__setPedFaceFeature; - private delegate* unmanaged[Cdecl] fn__hasPedHeadBlendFinished; + private delegate* unmanaged[Cdecl] fn__hasPedHeadBlendFinished; private delegate* unmanaged[Cdecl] fn__finalizeHeadBlend; private delegate* unmanaged[Cdecl] fn__setHeadBlendPaletteColor; private delegate* unmanaged[Cdecl] fn__disableHeadBlendPaletteColor; private delegate* unmanaged[Cdecl] fn__getPedHeadBlendFirstIndex; private delegate* unmanaged[Cdecl] fn__getPedHeadBlendNumHeads; private delegate* unmanaged[Cdecl] fn__setPedPreloadVariationData; - private delegate* unmanaged[Cdecl] fn__hasPedPreloadVariationDataFinished; + private delegate* unmanaged[Cdecl] fn__hasPedPreloadVariationDataFinished; private delegate* unmanaged[Cdecl] fn__releasePedPreloadVariationData; - private delegate* unmanaged[Cdecl] fn__setPedPreloadPropData; - private delegate* unmanaged[Cdecl] fn__hasPedPreloadPropDataFinished; + private delegate* unmanaged[Cdecl] fn__setPedPreloadPropData; + private delegate* unmanaged[Cdecl] fn__hasPedPreloadPropDataFinished; private delegate* unmanaged[Cdecl] fn__releasePedPreloadPropData; private delegate* unmanaged[Cdecl] fn__getPedPropIndex; - private delegate* unmanaged[Cdecl] fn__setPedPropIndex; - private delegate* unmanaged[Cdecl] fn__knockOffPedProp; + private delegate* unmanaged[Cdecl] fn__setPedPropIndex; + private delegate* unmanaged[Cdecl] fn__knockOffPedProp; private delegate* unmanaged[Cdecl] fn__clearPedProp; private delegate* unmanaged[Cdecl] fn__clearAllPedProps; private delegate* unmanaged[Cdecl] fn__dropAmbientProp; @@ -31132,63 +31132,63 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__clearPedParachutePackVariation; private delegate* unmanaged[Cdecl] fn__setPedScubaGearVariation; private delegate* unmanaged[Cdecl] fn__clearPedScubaGearVariation; - private delegate* unmanaged[Cdecl] fn__0xFEC9A3B1820F3331; - private delegate* unmanaged[Cdecl] fn__setBlockingOfNonTemporaryEvents; + private delegate* unmanaged[Cdecl] fn__0xFEC9A3B1820F3331; + private delegate* unmanaged[Cdecl] fn__setBlockingOfNonTemporaryEvents; private delegate* unmanaged[Cdecl] fn__setPedBoundsOrientation; private delegate* unmanaged[Cdecl] fn__registerTarget; private delegate* unmanaged[Cdecl] fn__registerHatedTargetsAroundPed; private delegate* unmanaged[Cdecl] fn__getRandomPedAtCoord; - private delegate* unmanaged[Cdecl] fn__getClosestPed; - private delegate* unmanaged[Cdecl] fn__setScenarioPedsToBeReturnedByNextCommand; - private delegate* unmanaged[Cdecl] fn__0x03EA03AF85A85CB7; + private delegate* unmanaged[Cdecl] fn__getClosestPed; + private delegate* unmanaged[Cdecl] fn__setScenarioPedsToBeReturnedByNextCommand; + private delegate* unmanaged[Cdecl] fn__0x03EA03AF85A85CB7; private delegate* unmanaged[Cdecl] fn__setDriverRacingModifier; private delegate* unmanaged[Cdecl] fn__setDriverAbility; private delegate* unmanaged[Cdecl] fn__setDriverAggressiveness; - private delegate* unmanaged[Cdecl] fn__canPedRagdoll; - private delegate* unmanaged[Cdecl] fn__setPedToRagdoll; - private delegate* unmanaged[Cdecl] fn__setPedToRagdollWithFall; - private delegate* unmanaged[Cdecl] fn__setPedRagdollOnCollision; - private delegate* unmanaged[Cdecl] fn__isPedRagdoll; - private delegate* unmanaged[Cdecl] fn__isPedRunningRagdollTask; + private delegate* unmanaged[Cdecl] fn__canPedRagdoll; + private delegate* unmanaged[Cdecl] fn__setPedToRagdoll; + private delegate* unmanaged[Cdecl] fn__setPedToRagdollWithFall; + private delegate* unmanaged[Cdecl] fn__setPedRagdollOnCollision; + private delegate* unmanaged[Cdecl] fn__isPedRagdoll; + private delegate* unmanaged[Cdecl] fn__isPedRunningRagdollTask; private delegate* unmanaged[Cdecl] fn__setPedRagdollForceFall; private delegate* unmanaged[Cdecl] fn__resetPedRagdollTimer; - private delegate* unmanaged[Cdecl] fn__setPedCanRagdoll; - private delegate* unmanaged[Cdecl] fn__isPedRunningMeleeTask; - private delegate* unmanaged[Cdecl] fn__isPedRunningMobilePhoneTask; - private delegate* unmanaged[Cdecl] fn__isMobilePhoneToPedEar; + private delegate* unmanaged[Cdecl] fn__setPedCanRagdoll; + private delegate* unmanaged[Cdecl] fn__isPedRunningMeleeTask; + private delegate* unmanaged[Cdecl] fn__isPedRunningMobilePhoneTask; + private delegate* unmanaged[Cdecl] fn__isMobilePhoneToPedEar; private delegate* unmanaged[Cdecl] fn__setRagdollBlockingFlags; private delegate* unmanaged[Cdecl] fn__clearRagdollBlockingFlags; - private delegate* unmanaged[Cdecl] fn__setPedAngledDefensiveArea; - private delegate* unmanaged[Cdecl] fn__setPedSphereDefensiveArea; - private delegate* unmanaged[Cdecl] fn__setPedDefensiveSphereAttachedToPed; - private delegate* unmanaged[Cdecl] fn__setPedDefensiveSphereAttachedToVehicle; - private delegate* unmanaged[Cdecl] fn__setPedDefensiveAreaAttachedToPed; - private delegate* unmanaged[Cdecl] fn__setPedDefensiveAreaDirection; - private delegate* unmanaged[Cdecl] fn__removePedDefensiveArea; - private delegate* unmanaged[Cdecl] fn__getPedDefensiveAreaPosition; - private delegate* unmanaged[Cdecl] fn__isPedDefensiveAreaActive; + private delegate* unmanaged[Cdecl] fn__setPedAngledDefensiveArea; + private delegate* unmanaged[Cdecl] fn__setPedSphereDefensiveArea; + private delegate* unmanaged[Cdecl] fn__setPedDefensiveSphereAttachedToPed; + private delegate* unmanaged[Cdecl] fn__setPedDefensiveSphereAttachedToVehicle; + private delegate* unmanaged[Cdecl] fn__setPedDefensiveAreaAttachedToPed; + private delegate* unmanaged[Cdecl] fn__setPedDefensiveAreaDirection; + private delegate* unmanaged[Cdecl] fn__removePedDefensiveArea; + private delegate* unmanaged[Cdecl] fn__getPedDefensiveAreaPosition; + private delegate* unmanaged[Cdecl] fn__isPedDefensiveAreaActive; private delegate* unmanaged[Cdecl] fn__setPedPreferredCoverSet; private delegate* unmanaged[Cdecl] fn__removePedPreferredCoverSet; private delegate* unmanaged[Cdecl] fn__reviveInjuredPed; private delegate* unmanaged[Cdecl] fn__resurrectPed; private delegate* unmanaged[Cdecl] fn__setPedNameDebug; - private delegate* unmanaged[Cdecl] fn__getPedExtractedDisplacement; - private delegate* unmanaged[Cdecl] fn__setPedDiesWhenInjured; - private delegate* unmanaged[Cdecl] fn__setPedEnableWeaponBlocking; - private delegate* unmanaged[Cdecl] fn__0xF9ACF4A08098EA25; + private delegate* unmanaged[Cdecl] fn__getPedExtractedDisplacement; + private delegate* unmanaged[Cdecl] fn__setPedDiesWhenInjured; + private delegate* unmanaged[Cdecl] fn__setPedEnableWeaponBlocking; + private delegate* unmanaged[Cdecl] fn__0xF9ACF4A08098EA25; private delegate* unmanaged[Cdecl] fn__resetPedVisibleDamage; private delegate* unmanaged[Cdecl] fn__applyPedBloodDamageByZone; private delegate* unmanaged[Cdecl] fn__applyPedBlood; private delegate* unmanaged[Cdecl] fn__applyPedBloodByZone; private delegate* unmanaged[Cdecl] fn__applyPedBloodSpecific; - private delegate* unmanaged[Cdecl] fn__applyPedDamageDecal; + private delegate* unmanaged[Cdecl] fn__applyPedDamageDecal; private delegate* unmanaged[Cdecl] fn__applyPedDamagePack; private delegate* unmanaged[Cdecl] fn__clearPedBloodDamage; private delegate* unmanaged[Cdecl] fn__clearPedBloodDamageByZone; - private delegate* unmanaged[Cdecl] fn__hidePedBloodDamageByZone; + private delegate* unmanaged[Cdecl] fn__hidePedBloodDamageByZone; private delegate* unmanaged[Cdecl] fn__clearPedDamageDecalByZone; private delegate* unmanaged[Cdecl] fn__getPedDecorationsState; - private delegate* unmanaged[Cdecl] fn__0x2B694AFCF64E6994; + private delegate* unmanaged[Cdecl] fn__0x2B694AFCF64E6994; private delegate* unmanaged[Cdecl] fn__clearPedWetness; private delegate* unmanaged[Cdecl] fn__setPedWetnessHeight; private delegate* unmanaged[Cdecl] fn__setPedWetnessEnabledThisFrame; @@ -31199,88 +31199,88 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getPedDecorationZoneFromHashes; private delegate* unmanaged[Cdecl] fn__clearPedDecorations; private delegate* unmanaged[Cdecl] fn__clearPedDecorationsLeaveScars; - private delegate* unmanaged[Cdecl] fn__wasPedSkeletonUpdated; + private delegate* unmanaged[Cdecl] fn__wasPedSkeletonUpdated; private delegate* unmanaged[Cdecl] fn__getPedBoneCoords; - private delegate* unmanaged[Cdecl] fn__createNmMessage; + private delegate* unmanaged[Cdecl] fn__createNmMessage; private delegate* unmanaged[Cdecl] fn__givePedNmMessage; - private delegate* unmanaged[Cdecl] fn__addScenarioBlockingArea; + private delegate* unmanaged[Cdecl] fn__addScenarioBlockingArea; private delegate* unmanaged[Cdecl] fn__removeScenarioBlockingAreas; - private delegate* unmanaged[Cdecl] fn__removeScenarioBlockingArea; + private delegate* unmanaged[Cdecl] fn__removeScenarioBlockingArea; private delegate* unmanaged[Cdecl] fn__setScenarioPedsSpawnInSphereArea; - private delegate* unmanaged[Cdecl] fn__doesScenarioBlockingAreaExist; - private delegate* unmanaged[Cdecl] fn__isPedUsingScenario; - private delegate* unmanaged[Cdecl] fn__isPedUsingAnyScenario; + private delegate* unmanaged[Cdecl] fn__doesScenarioBlockingAreaExist; + private delegate* unmanaged[Cdecl] fn__isPedUsingScenario; + private delegate* unmanaged[Cdecl] fn__isPedUsingAnyScenario; private delegate* unmanaged[Cdecl] fn__setPedPanicExitScenario; - private delegate* unmanaged[Cdecl] fn__0x9A77DFD295E29B09; + private delegate* unmanaged[Cdecl] fn__0x9A77DFD295E29B09; private delegate* unmanaged[Cdecl] fn__0x25361A96E0F7E419; private delegate* unmanaged[Cdecl] fn__setPedShouldPlayDirectedScenarioExit; private delegate* unmanaged[Cdecl] fn__setPedShouldPlayNormalScenarioExit; private delegate* unmanaged[Cdecl] fn__setPedShouldPlayImmediateScenarioExit; private delegate* unmanaged[Cdecl] fn__setPedShouldPlayFleeScenarioExit; - private delegate* unmanaged[Cdecl] fn__0x425AECF167663F48; - private delegate* unmanaged[Cdecl] fn__0x5B6010B3CBC29095; - private delegate* unmanaged[Cdecl] fn__0xCEDA60A74219D064; + private delegate* unmanaged[Cdecl] fn__0x425AECF167663F48; + private delegate* unmanaged[Cdecl] fn__0x5B6010B3CBC29095; + private delegate* unmanaged[Cdecl] fn__0xCEDA60A74219D064; private delegate* unmanaged[Cdecl] fn__0xC30BDAEE47256C13; private delegate* unmanaged[Cdecl] fn__playFacialAnim; private delegate* unmanaged[Cdecl] fn__setFacialClipsetOverride; private delegate* unmanaged[Cdecl] fn__setFacialIdleAnimOverride; private delegate* unmanaged[Cdecl] fn__clearFacialIdleAnimOverride; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayGestureAnims; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayVisemeAnims; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayInjuredAnims; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientAnims; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientBaseAnims; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayGestureAnims; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayVisemeAnims; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayInjuredAnims; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientAnims; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientBaseAnims; private delegate* unmanaged[Cdecl] fn__0xC2EE020F5FB4DB53; - private delegate* unmanaged[Cdecl] fn__setPedCanArmIk; - private delegate* unmanaged[Cdecl] fn__setPedCanHeadIk; - private delegate* unmanaged[Cdecl] fn__setPedCanLegIk; - private delegate* unmanaged[Cdecl] fn__setPedCanTorsoIk; - private delegate* unmanaged[Cdecl] fn__setPedCanTorsoReactIk; - private delegate* unmanaged[Cdecl] fn__0x6647C5F6F5792496; - private delegate* unmanaged[Cdecl] fn__setPedCanUseAutoConversationLookat; - private delegate* unmanaged[Cdecl] fn__isPedHeadtrackingPed; - private delegate* unmanaged[Cdecl] fn__isPedHeadtrackingEntity; + private delegate* unmanaged[Cdecl] fn__setPedCanArmIk; + private delegate* unmanaged[Cdecl] fn__setPedCanHeadIk; + private delegate* unmanaged[Cdecl] fn__setPedCanLegIk; + private delegate* unmanaged[Cdecl] fn__setPedCanTorsoIk; + private delegate* unmanaged[Cdecl] fn__setPedCanTorsoReactIk; + private delegate* unmanaged[Cdecl] fn__0x6647C5F6F5792496; + private delegate* unmanaged[Cdecl] fn__setPedCanUseAutoConversationLookat; + private delegate* unmanaged[Cdecl] fn__isPedHeadtrackingPed; + private delegate* unmanaged[Cdecl] fn__isPedHeadtrackingEntity; private delegate* unmanaged[Cdecl] fn__setPedPrimaryLookat; private delegate* unmanaged[Cdecl] fn__setPedClothPackageIndex; private delegate* unmanaged[Cdecl] fn__setPedClothProne; - private delegate* unmanaged[Cdecl] fn__0xA660FAF550EB37E5; - private delegate* unmanaged[Cdecl] fn__setPedConfigFlag; - private delegate* unmanaged[Cdecl] fn__setPedResetFlag; - private delegate* unmanaged[Cdecl] fn__getPedConfigFlag; - private delegate* unmanaged[Cdecl] fn__getPedResetFlag; + private delegate* unmanaged[Cdecl] fn__0xA660FAF550EB37E5; + private delegate* unmanaged[Cdecl] fn__setPedConfigFlag; + private delegate* unmanaged[Cdecl] fn__setPedResetFlag; + private delegate* unmanaged[Cdecl] fn__getPedConfigFlag; + private delegate* unmanaged[Cdecl] fn__getPedResetFlag; private delegate* unmanaged[Cdecl] fn__setPedGroupMemberPassengerIndex; - private delegate* unmanaged[Cdecl] fn__setPedCanEvasiveDive; - private delegate* unmanaged[Cdecl] fn__isPedEvasiveDiving; - private delegate* unmanaged[Cdecl] fn__setPedShootsAtCoord; - private delegate* unmanaged[Cdecl] fn__setPedModelIsSuppressed; + private delegate* unmanaged[Cdecl] fn__setPedCanEvasiveDive; + private delegate* unmanaged[Cdecl] fn__isPedEvasiveDiving; + private delegate* unmanaged[Cdecl] fn__setPedShootsAtCoord; + private delegate* unmanaged[Cdecl] fn__setPedModelIsSuppressed; private delegate* unmanaged[Cdecl] fn__stopAnyPedModelBeingSuppressed; - private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetedWhenInjured; - private delegate* unmanaged[Cdecl] fn__setPedGeneratesDeadBodyEvents; - private delegate* unmanaged[Cdecl] fn__blockPedDeadBodyShockingEvents; + private delegate* unmanaged[Cdecl] fn__setPedCanBeTargetedWhenInjured; + private delegate* unmanaged[Cdecl] fn__setPedGeneratesDeadBodyEvents; + private delegate* unmanaged[Cdecl] fn__blockPedDeadBodyShockingEvents; private delegate* unmanaged[Cdecl] fn__0x3E9679C1DFCF422C; - private delegate* unmanaged[Cdecl] fn__setPedCanRagdollFromPlayerImpact; - private delegate* unmanaged[Cdecl] fn__givePedHelmet; - private delegate* unmanaged[Cdecl] fn__removePedHelmet; - private delegate* unmanaged[Cdecl] fn__isPedTakingOffHelmet; - private delegate* unmanaged[Cdecl] fn__setPedHelmet; + private delegate* unmanaged[Cdecl] fn__setPedCanRagdollFromPlayerImpact; + private delegate* unmanaged[Cdecl] fn__givePedHelmet; + private delegate* unmanaged[Cdecl] fn__removePedHelmet; + private delegate* unmanaged[Cdecl] fn__isPedTakingOffHelmet; + private delegate* unmanaged[Cdecl] fn__setPedHelmet; private delegate* unmanaged[Cdecl] fn__setPedHelmetFlag; - private delegate* unmanaged[Cdecl] fn__setPedHelmetPropIndex; - private delegate* unmanaged[Cdecl] fn__setPedHelmetUnk; - private delegate* unmanaged[Cdecl] fn__isPedHelmetUnk; + private delegate* unmanaged[Cdecl] fn__setPedHelmetPropIndex; + private delegate* unmanaged[Cdecl] fn__setPedHelmetUnk; + private delegate* unmanaged[Cdecl] fn__isPedHelmetUnk; private delegate* unmanaged[Cdecl] fn__setPedHelmetTextureIndex; - private delegate* unmanaged[Cdecl] fn__isPedWearingHelmet; + private delegate* unmanaged[Cdecl] fn__isPedWearingHelmet; private delegate* unmanaged[Cdecl] fn__clearPedStoredHatProp; private delegate* unmanaged[Cdecl] fn__getPedHelmetStoredHatPropIndex; private delegate* unmanaged[Cdecl] fn__getPedHelmetStoredHatTexIndex; - private delegate* unmanaged[Cdecl] fn__0xF2385935BFFD4D92; - private delegate* unmanaged[Cdecl] fn__setPedToLoadCover; - private delegate* unmanaged[Cdecl] fn__setPedCanCowerInCover; - private delegate* unmanaged[Cdecl] fn__setPedCanPeekInCover; - private delegate* unmanaged[Cdecl] fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle; + private delegate* unmanaged[Cdecl] fn__0xF2385935BFFD4D92; + private delegate* unmanaged[Cdecl] fn__setPedToLoadCover; + private delegate* unmanaged[Cdecl] fn__setPedCanCowerInCover; + private delegate* unmanaged[Cdecl] fn__setPedCanPeekInCover; + private delegate* unmanaged[Cdecl] fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle; private delegate* unmanaged[Cdecl] fn__setPedLegIkMode; - private delegate* unmanaged[Cdecl] fn__setPedMotionBlur; - private delegate* unmanaged[Cdecl] fn__setPedCanSwitchWeapon; - private delegate* unmanaged[Cdecl] fn__setPedDiesInstantlyInWater; + private delegate* unmanaged[Cdecl] fn__setPedMotionBlur; + private delegate* unmanaged[Cdecl] fn__setPedCanSwitchWeapon; + private delegate* unmanaged[Cdecl] fn__setPedDiesInstantlyInWater; private delegate* unmanaged[Cdecl] fn__0x1A330D297AAC6BC1; private delegate* unmanaged[Cdecl] fn__stopPedWeaponFiringWhenDropped; private delegate* unmanaged[Cdecl] fn__setScriptedAnimSeatOffset; @@ -31289,150 +31289,150 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPedCombatAbility; private delegate* unmanaged[Cdecl] fn__setPedCombatRange; private delegate* unmanaged[Cdecl] fn__getPedCombatRange; - private delegate* unmanaged[Cdecl] fn__setPedCombatAttributes; + private delegate* unmanaged[Cdecl] fn__setPedCombatAttributes; private delegate* unmanaged[Cdecl] fn__setPedTargetLossResponse; - private delegate* unmanaged[Cdecl] fn__isPedPerformingMeleeAction; - private delegate* unmanaged[Cdecl] fn__isPedPerformingStealthKill; - private delegate* unmanaged[Cdecl] fn__isPedPerformingDependentComboLimit; - private delegate* unmanaged[Cdecl] fn__isPedBeingStealthKilled; + private delegate* unmanaged[Cdecl] fn__isPedPerformingMeleeAction; + private delegate* unmanaged[Cdecl] fn__isPedPerformingStealthKill; + private delegate* unmanaged[Cdecl] fn__isPedPerformingDependentComboLimit; + private delegate* unmanaged[Cdecl] fn__isPedBeingStealthKilled; private delegate* unmanaged[Cdecl] fn__getMeleeTargetForPed; - private delegate* unmanaged[Cdecl] fn__wasPedKilledByStealth; - private delegate* unmanaged[Cdecl] fn__wasPedKilledByTakedown; - private delegate* unmanaged[Cdecl] fn__wasPedKnockedOut; - private delegate* unmanaged[Cdecl] fn__setPedFleeAttributes; + private delegate* unmanaged[Cdecl] fn__wasPedKilledByStealth; + private delegate* unmanaged[Cdecl] fn__wasPedKilledByTakedown; + private delegate* unmanaged[Cdecl] fn__wasPedKnockedOut; + private delegate* unmanaged[Cdecl] fn__setPedFleeAttributes; private delegate* unmanaged[Cdecl] fn__setPedCowerHash; - private delegate* unmanaged[Cdecl] fn__0x2016C603D6B8987C; - private delegate* unmanaged[Cdecl] fn__setPedSteersAroundPeds; - private delegate* unmanaged[Cdecl] fn__setPedSteersAroundObjects; - private delegate* unmanaged[Cdecl] fn__setPedSteersAroundVehicles; - private delegate* unmanaged[Cdecl] fn__0xA9B61A329BFDCBEA; + private delegate* unmanaged[Cdecl] fn__0x2016C603D6B8987C; + private delegate* unmanaged[Cdecl] fn__setPedSteersAroundPeds; + private delegate* unmanaged[Cdecl] fn__setPedSteersAroundObjects; + private delegate* unmanaged[Cdecl] fn__setPedSteersAroundVehicles; + private delegate* unmanaged[Cdecl] fn__0xA9B61A329BFDCBEA; private delegate* unmanaged[Cdecl] fn__setPedIncreasedAvoidanceRadius; - private delegate* unmanaged[Cdecl] fn__setPedBlocksPathingWhenDead; + private delegate* unmanaged[Cdecl] fn__setPedBlocksPathingWhenDead; private delegate* unmanaged[Cdecl] fn__0xA52D5247A4227E14; - private delegate* unmanaged[Cdecl] fn__isAnyPedNearPoint; - private delegate* unmanaged[Cdecl] fn__forcePedAiAndAnimationUpdate; - private delegate* unmanaged[Cdecl] fn__isPedHeadingTowardsPosition; + private delegate* unmanaged[Cdecl] fn__isAnyPedNearPoint; + private delegate* unmanaged[Cdecl] fn__forcePedAiAndAnimationUpdate; + private delegate* unmanaged[Cdecl] fn__isPedHeadingTowardsPosition; private delegate* unmanaged[Cdecl] fn__requestPedVisibilityTracking; - private delegate* unmanaged[Cdecl] fn__requestPedVehicleVisibilityTracking; - private delegate* unmanaged[Cdecl] fn__0xCD018C591F94CB43; - private delegate* unmanaged[Cdecl] fn__0x75BA1CB3B7D40CAF; - private delegate* unmanaged[Cdecl] fn__isTrackedPedVisible; + private delegate* unmanaged[Cdecl] fn__requestPedVehicleVisibilityTracking; + private delegate* unmanaged[Cdecl] fn__0xCD018C591F94CB43; + private delegate* unmanaged[Cdecl] fn__0x75BA1CB3B7D40CAF; + private delegate* unmanaged[Cdecl] fn__isTrackedPedVisible; private delegate* unmanaged[Cdecl] fn__0x511F1A683387C7E2; - private delegate* unmanaged[Cdecl] fn__isPedTracked; - private delegate* unmanaged[Cdecl] fn__hasPedReceivedEvent; - private delegate* unmanaged[Cdecl] fn__canPedSeeHatedPed; - private delegate* unmanaged[Cdecl] fn__0x9C6A6C19B6C0C496; - private delegate* unmanaged[Cdecl] fn__0x2DFC81C9B9608549; + private delegate* unmanaged[Cdecl] fn__isPedTracked; + private delegate* unmanaged[Cdecl] fn__hasPedReceivedEvent; + private delegate* unmanaged[Cdecl] fn__canPedSeeHatedPed; + private delegate* unmanaged[Cdecl] fn__0x9C6A6C19B6C0C496; + private delegate* unmanaged[Cdecl] fn__0x2DFC81C9B9608549; private delegate* unmanaged[Cdecl] fn__getPedBoneIndex; private delegate* unmanaged[Cdecl] fn__getPedRagdollBoneIndex; private delegate* unmanaged[Cdecl] fn__setPedEnveffScale; private delegate* unmanaged[Cdecl] fn__getPedEnveffScale; - private delegate* unmanaged[Cdecl] fn__setEnablePedEnveffScale; + private delegate* unmanaged[Cdecl] fn__setEnablePedEnveffScale; private delegate* unmanaged[Cdecl] fn__0x110F526AB784111F; private delegate* unmanaged[Cdecl] fn__setPedEnveffColorModulator; private delegate* unmanaged[Cdecl] fn__setPedEmissiveIntensity; private delegate* unmanaged[Cdecl] fn__getPedEmissiveIntensity; - private delegate* unmanaged[Cdecl] fn__isPedShaderEffectValid; + private delegate* unmanaged[Cdecl] fn__isPedShaderEffectValid; private delegate* unmanaged[Cdecl] fn__0xE906EC930F5FE7C8; private delegate* unmanaged[Cdecl] fn__0x1216E0BFA72CC703; - private delegate* unmanaged[Cdecl] fn__setPedAoBlobRendering; - private delegate* unmanaged[Cdecl] fn__0xB8B52E498014F5B0; + private delegate* unmanaged[Cdecl] fn__setPedAoBlobRendering; + private delegate* unmanaged[Cdecl] fn__0xB8B52E498014F5B0; private delegate* unmanaged[Cdecl] fn__createSynchronizedScene; private delegate* unmanaged[Cdecl] fn__createSynchronizedScene2; - private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneRunning; - private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneOrigin; + private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneRunning; + private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneOrigin; private delegate* unmanaged[Cdecl] fn__setSynchronizedScenePhase; private delegate* unmanaged[Cdecl] fn__getSynchronizedScenePhase; private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneRate; private delegate* unmanaged[Cdecl] fn__getSynchronizedSceneRate; - private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneLooped; - private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneLooped; - private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneHoldLastFrame; - private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneHoldLastFrame; + private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneLooped; + private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneLooped; + private delegate* unmanaged[Cdecl] fn__setSynchronizedSceneHoldLastFrame; + private delegate* unmanaged[Cdecl] fn__isSynchronizedSceneHoldLastFrame; private delegate* unmanaged[Cdecl] fn__attachSynchronizedSceneToEntity; private delegate* unmanaged[Cdecl] fn__detachSynchronizedScene; private delegate* unmanaged[Cdecl] fn__disposeSynchronizedScene; - private delegate* unmanaged[Cdecl] fn__forcePedMotionState; - private delegate* unmanaged[Cdecl] fn__getPedCurrentMovementSpeed; + private delegate* unmanaged[Cdecl] fn__forcePedMotionState; + private delegate* unmanaged[Cdecl] fn__getPedCurrentMovementSpeed; private delegate* unmanaged[Cdecl] fn__setPedMaxMoveBlendRatio; private delegate* unmanaged[Cdecl] fn__setPedMinMoveBlendRatio; private delegate* unmanaged[Cdecl] fn__setPedMoveRateOverride; private delegate* unmanaged[Cdecl] fn__0x0B3E35AC043707D9; - private delegate* unmanaged[Cdecl] fn__0x46B05BCAE43856B0; + private delegate* unmanaged[Cdecl] fn__0x46B05BCAE43856B0; private delegate* unmanaged[Cdecl] fn__getPedNearbyVehicles; private delegate* unmanaged[Cdecl] fn__getPedNearbyPeds; - private delegate* unmanaged[Cdecl] fn__haveAllStreamingRequestsCompleted; - private delegate* unmanaged[Cdecl] fn__isPedUsingActionMode; - private delegate* unmanaged[Cdecl] fn__setPedUsingActionMode; + private delegate* unmanaged[Cdecl] fn__haveAllStreamingRequestsCompleted; + private delegate* unmanaged[Cdecl] fn__isPedUsingActionMode; + private delegate* unmanaged[Cdecl] fn__setPedUsingActionMode; private delegate* unmanaged[Cdecl] fn__setMovementModeOverride; private delegate* unmanaged[Cdecl] fn__setPedCapsule; private delegate* unmanaged[Cdecl] fn__registerPedheadshot; private delegate* unmanaged[Cdecl] fn__registerPedheadshot3; private delegate* unmanaged[Cdecl] fn__registerPedheadshotTransparent; private delegate* unmanaged[Cdecl] fn__unregisterPedheadshot; - private delegate* unmanaged[Cdecl] fn__isPedheadshotValid; - private delegate* unmanaged[Cdecl] fn__isPedheadshotReady; + private delegate* unmanaged[Cdecl] fn__isPedheadshotValid; + private delegate* unmanaged[Cdecl] fn__isPedheadshotReady; private delegate* unmanaged[Cdecl] fn__getPedheadshotTxdString; - private delegate* unmanaged[Cdecl] fn__requestPedheadshotImgUpload; + private delegate* unmanaged[Cdecl] fn__requestPedheadshotImgUpload; private delegate* unmanaged[Cdecl] fn__releasePedheadshotImgUpload; - private delegate* unmanaged[Cdecl] fn__isPedheadshotImgUploadAvailable; - private delegate* unmanaged[Cdecl] fn__hasPedheadshotImgUploadFailed; - private delegate* unmanaged[Cdecl] fn__hasPedheadshotImgUploadSucceeded; + private delegate* unmanaged[Cdecl] fn__isPedheadshotImgUploadAvailable; + private delegate* unmanaged[Cdecl] fn__hasPedheadshotImgUploadFailed; + private delegate* unmanaged[Cdecl] fn__hasPedheadshotImgUploadSucceeded; private delegate* unmanaged[Cdecl] fn__setPedHeatscaleOverride; private delegate* unmanaged[Cdecl] fn__disablePedHeatscaleOverride; private delegate* unmanaged[Cdecl] fn__spawnpointsStartSearch; private delegate* unmanaged[Cdecl] fn__spawnpointsStartSearchInAngledArea; private delegate* unmanaged[Cdecl] fn__spawnpointsCancelSearch; - private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchActive; - private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchComplete; - private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchFailed; + private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchActive; + private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchComplete; + private delegate* unmanaged[Cdecl] fn__spawnpointsIsSearchFailed; private delegate* unmanaged[Cdecl] fn__spawnpointsGetNumSearchResults; private delegate* unmanaged[Cdecl] fn__spawnpointsGetSearchResult; private delegate* unmanaged[Cdecl] fn__spawnpointsGetSearchResultFlags; private delegate* unmanaged[Cdecl] fn__setIkTarget; private delegate* unmanaged[Cdecl] fn__0xED3C76ADFA6D07C4; private delegate* unmanaged[Cdecl] fn__requestActionModeAsset; - private delegate* unmanaged[Cdecl] fn__hasActionModeAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasActionModeAssetLoaded; private delegate* unmanaged[Cdecl] fn__removeActionModeAsset; private delegate* unmanaged[Cdecl] fn__requestStealthModeAsset; - private delegate* unmanaged[Cdecl] fn__hasStealthModeAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasStealthModeAssetLoaded; private delegate* unmanaged[Cdecl] fn__removeStealthModeAsset; private delegate* unmanaged[Cdecl] fn__setPedLodMultiplier; - private delegate* unmanaged[Cdecl] fn__setPedCanLosePropsOnDamage; - private delegate* unmanaged[Cdecl] fn__setForceFootstepUpdate; - private delegate* unmanaged[Cdecl] fn__setForceStepType; - private delegate* unmanaged[Cdecl] fn__isAnyHostilePedNearPoint; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayInCarIdles; - private delegate* unmanaged[Cdecl] fn__isTargetPedInPerceptionArea; + private delegate* unmanaged[Cdecl] fn__setPedCanLosePropsOnDamage; + private delegate* unmanaged[Cdecl] fn__setForceFootstepUpdate; + private delegate* unmanaged[Cdecl] fn__setForceStepType; + private delegate* unmanaged[Cdecl] fn__isAnyHostilePedNearPoint; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayInCarIdles; + private delegate* unmanaged[Cdecl] fn__isTargetPedInPerceptionArea; private delegate* unmanaged[Cdecl] fn__setPopControlSphereThisFrame; private delegate* unmanaged[Cdecl] fn__0xD33DAA36272177C4; private delegate* unmanaged[Cdecl] fn__0x711794453CFD692B; private delegate* unmanaged[Cdecl] fn__0x83A169EABCDB10A2; private delegate* unmanaged[Cdecl] fn__0x288DF530C92DAD6F; - private delegate* unmanaged[Cdecl] fn__isPedSwappingWeapon; + private delegate* unmanaged[Cdecl] fn__isPedSwappingWeapon; private delegate* unmanaged[Cdecl] fn__0x0F62619393661D6E; private delegate* unmanaged[Cdecl] fn__0xDFE68C4B787E1BFB; - private delegate* unmanaged[Cdecl] fn__setEnableScubaGearLight; - private delegate* unmanaged[Cdecl] fn__isScubaGearLightEnabled; + private delegate* unmanaged[Cdecl] fn__setEnableScubaGearLight; + private delegate* unmanaged[Cdecl] fn__isScubaGearLightEnabled; private delegate* unmanaged[Cdecl] fn__clearFacialClipsetOverride; - private delegate* unmanaged[Cdecl] fn__0xFAB944D4D481ACCB; - private delegate* unmanaged[Cdecl] fn__addRope; + private delegate* unmanaged[Cdecl] fn__0xFAB944D4D481ACCB; + private delegate* unmanaged[Cdecl] fn__addRope; private delegate* unmanaged[Cdecl] fn__deleteRope; private delegate* unmanaged[Cdecl] fn__deleteChildRope; - private delegate* unmanaged[Cdecl] fn__doesRopeExist; - private delegate* unmanaged[Cdecl] fn__0xA1AE736541B0FCA3; - private delegate* unmanaged[Cdecl] fn__ropeDrawShadowEnabled; + private delegate* unmanaged[Cdecl] fn__doesRopeExist; + private delegate* unmanaged[Cdecl] fn__0xA1AE736541B0FCA3; + private delegate* unmanaged[Cdecl] fn__ropeDrawShadowEnabled; private delegate* unmanaged[Cdecl] fn__loadRopeData; private delegate* unmanaged[Cdecl] fn__pinRopeVertex; private delegate* unmanaged[Cdecl] fn__unpinRopeVertex; private delegate* unmanaged[Cdecl] fn__getRopeVertexCount; - private delegate* unmanaged[Cdecl] fn__attachEntitiesToRope; - private delegate* unmanaged[Cdecl] fn__attachRopeToEntity; + private delegate* unmanaged[Cdecl] fn__attachEntitiesToRope; + private delegate* unmanaged[Cdecl] fn__attachRopeToEntity; private delegate* unmanaged[Cdecl] fn__detachRopeFromEntity; private delegate* unmanaged[Cdecl] fn__ropeSetUpdatePinverts; private delegate* unmanaged[Cdecl] fn__ropeSetUpdateOrder; - private delegate* unmanaged[Cdecl] fn__0x36CCB9BE67B970FD; - private delegate* unmanaged[Cdecl] fn__0x84DE3B5FB3E666F0; + private delegate* unmanaged[Cdecl] fn__0x36CCB9BE67B970FD; + private delegate* unmanaged[Cdecl] fn__0x84DE3B5FB3E666F0; private delegate* unmanaged[Cdecl] fn__getRopeLastVertexCoord; private delegate* unmanaged[Cdecl] fn__getRopeVertexCoord; private delegate* unmanaged[Cdecl] fn__startRopeWinding; @@ -31441,11 +31441,11 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__stopRopeUnwindingFront; private delegate* unmanaged[Cdecl] fn__ropeConvertToSimple; private delegate* unmanaged[Cdecl] fn__ropeLoadTextures; - private delegate* unmanaged[Cdecl] fn__ropeAreTexturesLoaded; + private delegate* unmanaged[Cdecl] fn__ropeAreTexturesLoaded; private delegate* unmanaged[Cdecl] fn__ropeUnloadTextures; - private delegate* unmanaged[Cdecl] fn__doesRopeBelongToThisScript; + private delegate* unmanaged[Cdecl] fn__doesRopeBelongToThisScript; private delegate* unmanaged[Cdecl] fn__0xBC0CE682D4D05650; - private delegate* unmanaged[Cdecl] fn__0xB1B6216CA2E7B55E; + private delegate* unmanaged[Cdecl] fn__0xB1B6216CA2E7B55E; private delegate* unmanaged[Cdecl] fn__0xB743F735C03D7810; private delegate* unmanaged[Cdecl] fn__ropeGetDistanceBetweenEnds; private delegate* unmanaged[Cdecl] fn__ropeForceLength; @@ -31456,18 +31456,18 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setCgoffset; private delegate* unmanaged[Cdecl] fn__getCgoffset; private delegate* unmanaged[Cdecl] fn__setCgAtBoundcenter; - private delegate* unmanaged[Cdecl] fn__breakEntityGlass; - private delegate* unmanaged[Cdecl] fn__getHasObjectFragInst; - private delegate* unmanaged[Cdecl] fn__setDisableBreaking; + private delegate* unmanaged[Cdecl] fn__breakEntityGlass; + private delegate* unmanaged[Cdecl] fn__getHasObjectFragInst; + private delegate* unmanaged[Cdecl] fn__setDisableBreaking; private delegate* unmanaged[Cdecl] fn__0xCC6E963682533882; - private delegate* unmanaged[Cdecl] fn__setDisableFragDamage; - private delegate* unmanaged[Cdecl] fn__setEntityProofUnk; - private delegate* unmanaged[Cdecl] fn__0x9EBD751E5787BAF2; - private delegate* unmanaged[Cdecl] fn__setLaunchControlEnabled; + private delegate* unmanaged[Cdecl] fn__setDisableFragDamage; + private delegate* unmanaged[Cdecl] fn__setEntityProofUnk; + private delegate* unmanaged[Cdecl] fn__0x9EBD751E5787BAF2; + private delegate* unmanaged[Cdecl] fn__setLaunchControlEnabled; private delegate* unmanaged[Cdecl] fn__getPlayerPed; private delegate* unmanaged[Cdecl] fn__getPlayerPedScriptIndex; private delegate* unmanaged[Cdecl] fn__setPlayerModel; - private delegate* unmanaged[Cdecl] fn__changePlayerPed; + private delegate* unmanaged[Cdecl] fn__changePlayerPed; private delegate* unmanaged[Cdecl] fn__getPlayerRgbColour; private delegate* unmanaged[Cdecl] fn__getNumberOfPlayers; private delegate* unmanaged[Cdecl] fn__getPlayerTeam; @@ -31476,32 +31476,32 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getPlayerName; private delegate* unmanaged[Cdecl] fn__getWantedLevelRadius; private delegate* unmanaged[Cdecl] fn__getPlayerWantedCentrePosition; - private delegate* unmanaged[Cdecl] fn__setPlayerWantedCentrePosition; + private delegate* unmanaged[Cdecl] fn__setPlayerWantedCentrePosition; private delegate* unmanaged[Cdecl] fn__getWantedLevelThreshold; - private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevel; - private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevelNoDrop; - private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevelNow; - private delegate* unmanaged[Cdecl] fn__arePlayerFlashingStarsAboutToDrop; - private delegate* unmanaged[Cdecl] fn__arePlayerStarsGreyedOut; + private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevel; + private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevelNoDrop; + private delegate* unmanaged[Cdecl] fn__setPlayerWantedLevelNow; + private delegate* unmanaged[Cdecl] fn__arePlayerFlashingStarsAboutToDrop; + private delegate* unmanaged[Cdecl] fn__arePlayerStarsGreyedOut; private delegate* unmanaged[Cdecl] fn__0x7E07C78925D5FD96; - private delegate* unmanaged[Cdecl] fn__setDispatchCopsForPlayer; - private delegate* unmanaged[Cdecl] fn__isPlayerWantedLevelGreater; + private delegate* unmanaged[Cdecl] fn__setDispatchCopsForPlayer; + private delegate* unmanaged[Cdecl] fn__isPlayerWantedLevelGreater; private delegate* unmanaged[Cdecl] fn__clearPlayerWantedLevel; - private delegate* unmanaged[Cdecl] fn__isPlayerDead; - private delegate* unmanaged[Cdecl] fn__isPlayerPressingHorn; - private delegate* unmanaged[Cdecl] fn__setPlayerControl; + private delegate* unmanaged[Cdecl] fn__isPlayerDead; + private delegate* unmanaged[Cdecl] fn__isPlayerPressingHorn; + private delegate* unmanaged[Cdecl] fn__setPlayerControl; private delegate* unmanaged[Cdecl] fn__getPlayerWantedLevel; private delegate* unmanaged[Cdecl] fn__setMaxWantedLevel; - private delegate* unmanaged[Cdecl] fn__setPoliceRadarBlips; - private delegate* unmanaged[Cdecl] fn__setPoliceIgnorePlayer; - private delegate* unmanaged[Cdecl] fn__isPlayerPlaying; - private delegate* unmanaged[Cdecl] fn__setEveryoneIgnorePlayer; - private delegate* unmanaged[Cdecl] fn__setAllRandomPedsFlee; + private delegate* unmanaged[Cdecl] fn__setPoliceRadarBlips; + private delegate* unmanaged[Cdecl] fn__setPoliceIgnorePlayer; + private delegate* unmanaged[Cdecl] fn__isPlayerPlaying; + private delegate* unmanaged[Cdecl] fn__setEveryoneIgnorePlayer; + private delegate* unmanaged[Cdecl] fn__setAllRandomPedsFlee; private delegate* unmanaged[Cdecl] fn__setAllRandomPedsFleeThisFrame; - private delegate* unmanaged[Cdecl] fn__0xDE45D1A1EF45EE61; + private delegate* unmanaged[Cdecl] fn__0xDE45D1A1EF45EE61; private delegate* unmanaged[Cdecl] fn__0xC3376F42B1FACCC6; private delegate* unmanaged[Cdecl] fn__0xFAC75988A7D078D3; - private delegate* unmanaged[Cdecl] fn__setIgnoreLowPriorityShockingEvents; + private delegate* unmanaged[Cdecl] fn__setIgnoreLowPriorityShockingEvents; private delegate* unmanaged[Cdecl] fn__setWantedLevelMultiplier; private delegate* unmanaged[Cdecl] fn__setWantedLevelDifficulty; private delegate* unmanaged[Cdecl] fn__resetWantedLevelDifficulty; @@ -31519,20 +31519,20 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__reportPoliceSpottedPlayer; private delegate* unmanaged[Cdecl] fn__0xB45EFF719D8427A6; private delegate* unmanaged[Cdecl] fn__0x0032A6DBA562C518; - private delegate* unmanaged[Cdecl] fn__canPlayerStartMission; - private delegate* unmanaged[Cdecl] fn__isPlayerReadyForCutscene; - private delegate* unmanaged[Cdecl] fn__isPlayerTargettingEntity; - private delegate* unmanaged[Cdecl] fn__getPlayerTargetEntity; - private delegate* unmanaged[Cdecl] fn__isPlayerFreeAiming; - private delegate* unmanaged[Cdecl] fn__isPlayerFreeAimingAtEntity; - private delegate* unmanaged[Cdecl] fn__getEntityPlayerIsFreeAimingAt; + private delegate* unmanaged[Cdecl] fn__canPlayerStartMission; + private delegate* unmanaged[Cdecl] fn__isPlayerReadyForCutscene; + private delegate* unmanaged[Cdecl] fn__isPlayerTargettingEntity; + private delegate* unmanaged[Cdecl] fn__getPlayerTargetEntity; + private delegate* unmanaged[Cdecl] fn__isPlayerFreeAiming; + private delegate* unmanaged[Cdecl] fn__isPlayerFreeAimingAtEntity; + private delegate* unmanaged[Cdecl] fn__getEntityPlayerIsFreeAimingAt; private delegate* unmanaged[Cdecl] fn__setPlayerLockonRangeOverride; - private delegate* unmanaged[Cdecl] fn__setPlayerCanDoDriveBy; - private delegate* unmanaged[Cdecl] fn__setPlayerCanBeHassledByGangs; - private delegate* unmanaged[Cdecl] fn__setPlayerCanUseCover; + private delegate* unmanaged[Cdecl] fn__setPlayerCanDoDriveBy; + private delegate* unmanaged[Cdecl] fn__setPlayerCanBeHassledByGangs; + private delegate* unmanaged[Cdecl] fn__setPlayerCanUseCover; private delegate* unmanaged[Cdecl] fn__getMaxWantedLevel; - private delegate* unmanaged[Cdecl] fn__isPlayerTargettingAnything; - private delegate* unmanaged[Cdecl] fn__setPlayerSprint; + private delegate* unmanaged[Cdecl] fn__isPlayerTargettingAnything; + private delegate* unmanaged[Cdecl] fn__setPlayerSprint; private delegate* unmanaged[Cdecl] fn__resetPlayerStamina; private delegate* unmanaged[Cdecl] fn__restorePlayerStamina; private delegate* unmanaged[Cdecl] fn__getPlayerSprintStaminaRemaining; @@ -31541,11 +31541,11 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPlayerUnderwaterTimeRemaining; private delegate* unmanaged[Cdecl] fn__getPlayerGroup; private delegate* unmanaged[Cdecl] fn__getPlayerMaxArmour; - private delegate* unmanaged[Cdecl] fn__isPlayerControlOn; - private delegate* unmanaged[Cdecl] fn__isPlayerCamControlDisabled; - private delegate* unmanaged[Cdecl] fn__isPlayerScriptControlOn; - private delegate* unmanaged[Cdecl] fn__isPlayerClimbing; - private delegate* unmanaged[Cdecl] fn__isPlayerBeingArrested; + private delegate* unmanaged[Cdecl] fn__isPlayerControlOn; + private delegate* unmanaged[Cdecl] fn__isPlayerCamControlDisabled; + private delegate* unmanaged[Cdecl] fn__isPlayerScriptControlOn; + private delegate* unmanaged[Cdecl] fn__isPlayerClimbing; + private delegate* unmanaged[Cdecl] fn__isPlayerBeingArrested; private delegate* unmanaged[Cdecl] fn__resetPlayerArrestState; private delegate* unmanaged[Cdecl] fn__getPlayersLastVehicle; private delegate* unmanaged[Cdecl] fn__getPlayerIndex; @@ -31555,41 +31555,41 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getTimeSincePlayerHitPed; private delegate* unmanaged[Cdecl] fn__getTimeSincePlayerDroveOnPavement; private delegate* unmanaged[Cdecl] fn__getTimeSincePlayerDroveAgainstTraffic; - private delegate* unmanaged[Cdecl] fn__isPlayerFreeForAmbientTask; + private delegate* unmanaged[Cdecl] fn__isPlayerFreeForAmbientTask; private delegate* unmanaged[Cdecl] fn__playerId; private delegate* unmanaged[Cdecl] fn__playerPedId; private delegate* unmanaged[Cdecl] fn__networkPlayerIdToInt; - private delegate* unmanaged[Cdecl] fn__hasForceCleanupOccurred; + private delegate* unmanaged[Cdecl] fn__hasForceCleanupOccurred; private delegate* unmanaged[Cdecl] fn__forceCleanup; private delegate* unmanaged[Cdecl] fn__forceCleanupForAllThreadsWithThisName; private delegate* unmanaged[Cdecl] fn__forceCleanupForThreadWithThisId; private delegate* unmanaged[Cdecl] fn__getCauseOfMostRecentForceCleanup; private delegate* unmanaged[Cdecl] fn__setPlayerMayOnlyEnterThisVehicle; private delegate* unmanaged[Cdecl] fn__setPlayerMayNotEnterAnyVehicle; - private delegate* unmanaged[Cdecl] fn__giveAchievementToPlayer; - private delegate* unmanaged[Cdecl] fn__setAchievementProgress; + private delegate* unmanaged[Cdecl] fn__giveAchievementToPlayer; + private delegate* unmanaged[Cdecl] fn__setAchievementProgress; private delegate* unmanaged[Cdecl] fn__getAchievementProgress; - private delegate* unmanaged[Cdecl] fn__hasAchievementBeenPassed; - private delegate* unmanaged[Cdecl] fn__isPlayerOnline; - private delegate* unmanaged[Cdecl] fn__isPlayerLoggingInNp; - private delegate* unmanaged[Cdecl] fn__displaySystemSigninUi; - private delegate* unmanaged[Cdecl] fn__isSystemUiBeingDisplayed; - private delegate* unmanaged[Cdecl] fn__setPlayerInvincible; - private delegate* unmanaged[Cdecl] fn__getPlayerInvincible; - private delegate* unmanaged[Cdecl] fn__0xDCC07526B8EC45AF; - private delegate* unmanaged[Cdecl] fn__setPlayerInvincibleKeepRagdollEnabled; - private delegate* unmanaged[Cdecl] fn__0xCAC57395B151135F; - private delegate* unmanaged[Cdecl] fn__removePlayerHelmet; - private delegate* unmanaged[Cdecl] fn__givePlayerRagdollControl; - private delegate* unmanaged[Cdecl] fn__setPlayerLockon; + private delegate* unmanaged[Cdecl] fn__hasAchievementBeenPassed; + private delegate* unmanaged[Cdecl] fn__isPlayerOnline; + private delegate* unmanaged[Cdecl] fn__isPlayerLoggingInNp; + private delegate* unmanaged[Cdecl] fn__displaySystemSigninUi; + private delegate* unmanaged[Cdecl] fn__isSystemUiBeingDisplayed; + private delegate* unmanaged[Cdecl] fn__setPlayerInvincible; + private delegate* unmanaged[Cdecl] fn__getPlayerInvincible; + private delegate* unmanaged[Cdecl] fn__0xDCC07526B8EC45AF; + private delegate* unmanaged[Cdecl] fn__setPlayerInvincibleKeepRagdollEnabled; + private delegate* unmanaged[Cdecl] fn__0xCAC57395B151135F; + private delegate* unmanaged[Cdecl] fn__removePlayerHelmet; + private delegate* unmanaged[Cdecl] fn__givePlayerRagdollControl; + private delegate* unmanaged[Cdecl] fn__setPlayerLockon; private delegate* unmanaged[Cdecl] fn__setPlayerTargetingMode; private delegate* unmanaged[Cdecl] fn__setPlayerTargetLevel; - private delegate* unmanaged[Cdecl] fn__0xB9CF1F793A9F1BF1; - private delegate* unmanaged[Cdecl] fn__0xCB645E85E97EA48B; + private delegate* unmanaged[Cdecl] fn__0xB9CF1F793A9F1BF1; + private delegate* unmanaged[Cdecl] fn__0xCB645E85E97EA48B; private delegate* unmanaged[Cdecl] fn__clearPlayerHasDamagedAtLeastOnePed; - private delegate* unmanaged[Cdecl] fn__hasPlayerDamagedAtLeastOnePed; + private delegate* unmanaged[Cdecl] fn__hasPlayerDamagedAtLeastOnePed; private delegate* unmanaged[Cdecl] fn__clearPlayerHasDamagedAtLeastOneNonAnimalPed; - private delegate* unmanaged[Cdecl] fn__hasPlayerDamagedAtLeastOneNonAnimalPed; + private delegate* unmanaged[Cdecl] fn__hasPlayerDamagedAtLeastOneNonAnimalPed; private delegate* unmanaged[Cdecl] fn__setAirDragMultiplierForPlayersVehicle; private delegate* unmanaged[Cdecl] fn__setSwimMultiplierForPlayer; private delegate* unmanaged[Cdecl] fn__setRunSprintMultiplierForPlayer; @@ -31597,12 +31597,12 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getTimeSinceLastDeath; private delegate* unmanaged[Cdecl] fn__assistedMovementCloseRoute; private delegate* unmanaged[Cdecl] fn__assistedMovementFlushRoute; - private delegate* unmanaged[Cdecl] fn__setPlayerForcedAim; - private delegate* unmanaged[Cdecl] fn__setPlayerForcedZoom; - private delegate* unmanaged[Cdecl] fn__setPlayerForceSkipAimIntro; - private delegate* unmanaged[Cdecl] fn__disablePlayerFiring; + private delegate* unmanaged[Cdecl] fn__setPlayerForcedAim; + private delegate* unmanaged[Cdecl] fn__setPlayerForcedZoom; + private delegate* unmanaged[Cdecl] fn__setPlayerForceSkipAimIntro; + private delegate* unmanaged[Cdecl] fn__disablePlayerFiring; private delegate* unmanaged[Cdecl] fn__0xB885852C39CC265D; - private delegate* unmanaged[Cdecl] fn__setDisableAmbientMeleeMove; + private delegate* unmanaged[Cdecl] fn__setDisableAmbientMeleeMove; private delegate* unmanaged[Cdecl] fn__setPlayerMaxArmour; private delegate* unmanaged[Cdecl] fn__specialAbilityActivate; private delegate* unmanaged[Cdecl] fn__setSpecialAbility; @@ -31611,30 +31611,30 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__specialAbilityDeactivateFast; private delegate* unmanaged[Cdecl] fn__specialAbilityReset; private delegate* unmanaged[Cdecl] fn__specialAbilityChargeOnMissionFailed; - private delegate* unmanaged[Cdecl] fn__specialAbilityChargeSmall; - private delegate* unmanaged[Cdecl] fn__specialAbilityChargeMedium; - private delegate* unmanaged[Cdecl] fn__specialAbilityChargeLarge; + private delegate* unmanaged[Cdecl] fn__specialAbilityChargeSmall; + private delegate* unmanaged[Cdecl] fn__specialAbilityChargeMedium; + private delegate* unmanaged[Cdecl] fn__specialAbilityChargeLarge; private delegate* unmanaged[Cdecl] fn__specialAbilityChargeContinuous; - private delegate* unmanaged[Cdecl] fn__specialAbilityChargeAbsolute; - private delegate* unmanaged[Cdecl] fn__specialAbilityChargeNormalized; - private delegate* unmanaged[Cdecl] fn__specialAbilityFillMeter; - private delegate* unmanaged[Cdecl] fn__specialAbilityDepleteMeter; + private delegate* unmanaged[Cdecl] fn__specialAbilityChargeAbsolute; + private delegate* unmanaged[Cdecl] fn__specialAbilityChargeNormalized; + private delegate* unmanaged[Cdecl] fn__specialAbilityFillMeter; + private delegate* unmanaged[Cdecl] fn__specialAbilityDepleteMeter; private delegate* unmanaged[Cdecl] fn__specialAbilityLock; private delegate* unmanaged[Cdecl] fn__specialAbilityUnlock; - private delegate* unmanaged[Cdecl] fn__isSpecialAbilityUnlocked; - private delegate* unmanaged[Cdecl] fn__isSpecialAbilityActive; - private delegate* unmanaged[Cdecl] fn__isSpecialAbilityMeterFull; - private delegate* unmanaged[Cdecl] fn__enableSpecialAbility; - private delegate* unmanaged[Cdecl] fn__isSpecialAbilityEnabled; + private delegate* unmanaged[Cdecl] fn__isSpecialAbilityUnlocked; + private delegate* unmanaged[Cdecl] fn__isSpecialAbilityActive; + private delegate* unmanaged[Cdecl] fn__isSpecialAbilityMeterFull; + private delegate* unmanaged[Cdecl] fn__enableSpecialAbility; + private delegate* unmanaged[Cdecl] fn__isSpecialAbilityEnabled; private delegate* unmanaged[Cdecl] fn__setSpecialAbilityMultiplier; private delegate* unmanaged[Cdecl] fn__0xFFEE8FA29AB9A18E; - private delegate* unmanaged[Cdecl] fn__0x5FC472C501CCADB3; - private delegate* unmanaged[Cdecl] fn__0xF10B44FD479D69F3; - private delegate* unmanaged[Cdecl] fn__0xDD2620B7B9D16FF1; - private delegate* unmanaged[Cdecl] fn__startPlayerTeleport; - private delegate* unmanaged[Cdecl] fn__updatePlayerTeleport; + private delegate* unmanaged[Cdecl] fn__0x5FC472C501CCADB3; + private delegate* unmanaged[Cdecl] fn__0xF10B44FD479D69F3; + private delegate* unmanaged[Cdecl] fn__0xDD2620B7B9D16FF1; + private delegate* unmanaged[Cdecl] fn__startPlayerTeleport; + private delegate* unmanaged[Cdecl] fn__updatePlayerTeleport; private delegate* unmanaged[Cdecl] fn__stopPlayerTeleport; - private delegate* unmanaged[Cdecl] fn__isPlayerTeleportActive; + private delegate* unmanaged[Cdecl] fn__isPlayerTeleportActive; private delegate* unmanaged[Cdecl] fn__getPlayerCurrentStealthNoise; private delegate* unmanaged[Cdecl] fn__setPlayerHealthRechargeMultiplier; private delegate* unmanaged[Cdecl] fn__getPlayerHealthRechargeLimit; @@ -31643,7 +31643,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPlayerWeaponDamageModifier; private delegate* unmanaged[Cdecl] fn__setPlayerWeaponDefenseModifier; private delegate* unmanaged[Cdecl] fn__setPlayerWeaponDefenseModifier2; - private delegate* unmanaged[Cdecl] fn__setPlayerMeleeWeaponDamageModifier; + private delegate* unmanaged[Cdecl] fn__setPlayerMeleeWeaponDamageModifier; private delegate* unmanaged[Cdecl] fn__setPlayerMeleeWeaponDefenseModifier; private delegate* unmanaged[Cdecl] fn__setPlayerVehicleDamageModifier; private delegate* unmanaged[Cdecl] fn__setPlayerVehicleDefenseModifier; @@ -31657,36 +31657,36 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPlayerParachutePackTintIndex; private delegate* unmanaged[Cdecl] fn__getPlayerParachutePackTintIndex; private delegate* unmanaged[Cdecl] fn__setPlayerHasReserveParachute; - private delegate* unmanaged[Cdecl] fn__getPlayerHasReserveParachute; - private delegate* unmanaged[Cdecl] fn__setPlayerCanLeaveParachuteSmokeTrail; + private delegate* unmanaged[Cdecl] fn__getPlayerHasReserveParachute; + private delegate* unmanaged[Cdecl] fn__setPlayerCanLeaveParachuteSmokeTrail; private delegate* unmanaged[Cdecl] fn__setPlayerParachuteSmokeTrailColor; private delegate* unmanaged[Cdecl] fn__getPlayerParachuteSmokeTrailColor; private delegate* unmanaged[Cdecl] fn__setPlayerResetFlagPreferRearSeats; private delegate* unmanaged[Cdecl] fn__setPlayerNoiseMultiplier; private delegate* unmanaged[Cdecl] fn__setPlayerSneakingNoiseMultiplier; - private delegate* unmanaged[Cdecl] fn__canPedHearPlayer; - private delegate* unmanaged[Cdecl] fn__simulatePlayerInputGait; + private delegate* unmanaged[Cdecl] fn__canPedHearPlayer; + private delegate* unmanaged[Cdecl] fn__simulatePlayerInputGait; private delegate* unmanaged[Cdecl] fn__resetPlayerInputGait; - private delegate* unmanaged[Cdecl] fn__setAutoGiveParachuteWhenEnterPlane; - private delegate* unmanaged[Cdecl] fn__setAutoGiveScubaGearWhenExitVehicle; + private delegate* unmanaged[Cdecl] fn__setAutoGiveParachuteWhenEnterPlane; + private delegate* unmanaged[Cdecl] fn__setAutoGiveScubaGearWhenExitVehicle; private delegate* unmanaged[Cdecl] fn__setPlayerStealthPerceptionModifier; - private delegate* unmanaged[Cdecl] fn__0x690A61A6D13583F6; + private delegate* unmanaged[Cdecl] fn__0x690A61A6D13583F6; private delegate* unmanaged[Cdecl] fn__0x9EDD76E87D5D51BA; - private delegate* unmanaged[Cdecl] fn__setPlayerSimulateAiming; + private delegate* unmanaged[Cdecl] fn__setPlayerSimulateAiming; private delegate* unmanaged[Cdecl] fn__setPlayerClothPinFrames; private delegate* unmanaged[Cdecl] fn__setPlayerClothPackageIndex; private delegate* unmanaged[Cdecl] fn__setPlayerClothLockCounter; private delegate* unmanaged[Cdecl] fn__playerAttachVirtualBound; private delegate* unmanaged[Cdecl] fn__playerDetachVirtualBound; - private delegate* unmanaged[Cdecl] fn__hasPlayerBeenSpottedInStolenVehicle; - private delegate* unmanaged[Cdecl] fn__isPlayerBattleAware; - private delegate* unmanaged[Cdecl] fn__0xBC0753C9CA14B506; + private delegate* unmanaged[Cdecl] fn__hasPlayerBeenSpottedInStolenVehicle; + private delegate* unmanaged[Cdecl] fn__isPlayerBattleAware; + private delegate* unmanaged[Cdecl] fn__0xBC0753C9CA14B506; private delegate* unmanaged[Cdecl] fn__extendWorldBoundaryForPlayer; private delegate* unmanaged[Cdecl] fn__resetWorldBoundaryForPlayer; - private delegate* unmanaged[Cdecl] fn__isPlayerRidingTrain; - private delegate* unmanaged[Cdecl] fn__hasPlayerLeftTheWorld; - private delegate* unmanaged[Cdecl] fn__setPlayerLeavePedBehind; - private delegate* unmanaged[Cdecl] fn__setPlayerParachuteVariationOverride; + private delegate* unmanaged[Cdecl] fn__isPlayerRidingTrain; + private delegate* unmanaged[Cdecl] fn__hasPlayerLeftTheWorld; + private delegate* unmanaged[Cdecl] fn__setPlayerLeavePedBehind; + private delegate* unmanaged[Cdecl] fn__setPlayerParachuteVariationOverride; private delegate* unmanaged[Cdecl] fn__clearPlayerParachuteVariationOverride; private delegate* unmanaged[Cdecl] fn__setPlayerParachuteModelOverride; private delegate* unmanaged[Cdecl] fn__setPlayerReserveParachuteModelOverride; @@ -31697,9 +31697,9 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPlayerParachutePackModelOverride; private delegate* unmanaged[Cdecl] fn__clearPlayerParachutePackModelOverride; private delegate* unmanaged[Cdecl] fn__disablePlayerVehicleRewards; - private delegate* unmanaged[Cdecl] fn__0x2F7CEB6520288061; - private delegate* unmanaged[Cdecl] fn__setPlayerBluetoothState; - private delegate* unmanaged[Cdecl] fn__isPlayerBluetoothEnable; + private delegate* unmanaged[Cdecl] fn__0x2F7CEB6520288061; + private delegate* unmanaged[Cdecl] fn__setPlayerBluetoothState; + private delegate* unmanaged[Cdecl] fn__isPlayerBluetoothEnable; private delegate* unmanaged[Cdecl] fn__0x5501B7A5CDB79D37; private delegate* unmanaged[Cdecl] fn__getPlayerFakeWantedLevel; private delegate* unmanaged[Cdecl] fn__0x55FCC0C390620314; @@ -31724,27 +31724,27 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__startRecording; private delegate* unmanaged[Cdecl] fn__stopRecordingAndSaveClip; private delegate* unmanaged[Cdecl] fn__stopRecordingAndDiscardClip; - private delegate* unmanaged[Cdecl] fn__saveRecordingClip; - private delegate* unmanaged[Cdecl] fn__isRecording; + private delegate* unmanaged[Cdecl] fn__saveRecordingClip; + private delegate* unmanaged[Cdecl] fn__isRecording; private delegate* unmanaged[Cdecl] fn__0xDF4B952F7D381B95; private delegate* unmanaged[Cdecl] fn__0x4282E08174868BE3; - private delegate* unmanaged[Cdecl] fn__0x33D47E85B476ABCD; - private delegate* unmanaged[Cdecl] fn__0x7E2BD3EF6C205F09; - private delegate* unmanaged[Cdecl] fn__isInteriorRenderingDisabled; + private delegate* unmanaged[Cdecl] fn__0x33D47E85B476ABCD; + private delegate* unmanaged[Cdecl] fn__0x7E2BD3EF6C205F09; + private delegate* unmanaged[Cdecl] fn__isInteriorRenderingDisabled; private delegate* unmanaged[Cdecl] fn__0x5AD3932DAEB1E5D3; - private delegate* unmanaged[Cdecl] fn__0xE058175F8EAFE79A; + private delegate* unmanaged[Cdecl] fn__0xE058175F8EAFE79A; private delegate* unmanaged[Cdecl] fn__resetEditorValues; private delegate* unmanaged[Cdecl] fn__activateRockstarEditor; private delegate* unmanaged[Cdecl] fn__requestScript; private delegate* unmanaged[Cdecl] fn__setScriptAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__hasScriptLoaded; - private delegate* unmanaged[Cdecl] fn__doesScriptExist; + private delegate* unmanaged[Cdecl] fn__hasScriptLoaded; + private delegate* unmanaged[Cdecl] fn__doesScriptExist; private delegate* unmanaged[Cdecl] fn__requestScriptWithNameHash; private delegate* unmanaged[Cdecl] fn__setScriptWithNameHashAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__hasScriptWithNameHashLoaded; - private delegate* unmanaged[Cdecl] fn__doesScriptWithNameHashExist; + private delegate* unmanaged[Cdecl] fn__hasScriptWithNameHashLoaded; + private delegate* unmanaged[Cdecl] fn__doesScriptWithNameHashExist; private delegate* unmanaged[Cdecl] fn__terminateThread; - private delegate* unmanaged[Cdecl] fn__isThreadActive; + private delegate* unmanaged[Cdecl] fn__isThreadActive; private delegate* unmanaged[Cdecl] fn__getNameOfThread; private delegate* unmanaged[Cdecl] fn__scriptThreadIteratorReset; private delegate* unmanaged[Cdecl] fn__scriptThreadIteratorGetNextThreadId; @@ -31754,21 +31754,21 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getThisScriptName; private delegate* unmanaged[Cdecl] fn__getHashOfThisScriptName; private delegate* unmanaged[Cdecl] fn__getNumberOfEvents; - private delegate* unmanaged[Cdecl] fn__getEventExists; + private delegate* unmanaged[Cdecl] fn__getEventExists; private delegate* unmanaged[Cdecl] fn__getEventAtIndex; - private delegate* unmanaged[Cdecl] fn__getEventData; + private delegate* unmanaged[Cdecl] fn__getEventData; private delegate* unmanaged[Cdecl] fn__triggerScriptEvent; private delegate* unmanaged[Cdecl] fn__shutdownLoadingScreen; - private delegate* unmanaged[Cdecl] fn__setNoLoadingScreen; - private delegate* unmanaged[Cdecl] fn__getNoLoadingScreen; + private delegate* unmanaged[Cdecl] fn__setNoLoadingScreen; + private delegate* unmanaged[Cdecl] fn__getNoLoadingScreen; private delegate* unmanaged[Cdecl] fn__0xB1577667C3708F9B; - private delegate* unmanaged[Cdecl] fn__0x836B62713E0534CA; + private delegate* unmanaged[Cdecl] fn__0x836B62713E0534CA; private delegate* unmanaged[Cdecl] fn__0x760910B49D2B98EA; private delegate* unmanaged[Cdecl] fn__bgStartContextHash; private delegate* unmanaged[Cdecl] fn__bgEndContextHash; private delegate* unmanaged[Cdecl] fn__bgStartContext; private delegate* unmanaged[Cdecl] fn__bgEndContext; - private delegate* unmanaged[Cdecl] fn__0x0F6F1EBBC4E1D5E6; + private delegate* unmanaged[Cdecl] fn__0x0F6F1EBBC4E1D5E6; private delegate* unmanaged[Cdecl] fn__0x22E21FBCFC88C149; private delegate* unmanaged[Cdecl] fn__0x829CD22E043A2577; private delegate* unmanaged[Cdecl] fn__startShapeTestLosProbe; @@ -31779,134 +31779,134 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__startShapeTestCapsule; private delegate* unmanaged[Cdecl] fn__startShapeTestSweptSphere; private delegate* unmanaged[Cdecl] fn__startShapeTestSurroundingCoords; - private delegate* unmanaged[Cdecl] fn__getShapeTestResult; - private delegate* unmanaged[Cdecl] fn__getShapeTestResultIncludingMaterial; + private delegate* unmanaged[Cdecl] fn__getShapeTestResult; + private delegate* unmanaged[Cdecl] fn__getShapeTestResultIncludingMaterial; private delegate* unmanaged[Cdecl] fn__releaseScriptGuidFromEntity; private delegate* unmanaged[Cdecl] fn__scInboxGetTotalNumMessages; private delegate* unmanaged[Cdecl] fn__scInboxGetMessageTypeAtIndex; - private delegate* unmanaged[Cdecl] fn__scInboxGetMessageIsReadAtIndex; - private delegate* unmanaged[Cdecl] fn__scInboxMessagePop; - private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataInt; - private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataBool; - private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataString; - private delegate* unmanaged[Cdecl] fn__scInboxMessageDoApply; + private delegate* unmanaged[Cdecl] fn__scInboxGetMessageIsReadAtIndex; + private delegate* unmanaged[Cdecl] fn__scInboxMessagePop; + private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataInt; + private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataBool; + private delegate* unmanaged[Cdecl] fn__scInboxMessageGetDataString; + private delegate* unmanaged[Cdecl] fn__scInboxMessageDoApply; private delegate* unmanaged[Cdecl] fn__scInboxMessageGetString; private delegate* unmanaged[Cdecl] fn__scInboxMessagePushGamerToEventRecipList; private delegate* unmanaged[Cdecl] fn__scInboxMessageSendUgcStatUpdateEvent; - private delegate* unmanaged[Cdecl] fn__scInboxMessageGetUgcdata; - private delegate* unmanaged[Cdecl] fn__scInboxMessageSendBountyPresenceEvent; - private delegate* unmanaged[Cdecl] fn__scInboxMessageGetBountyData; + private delegate* unmanaged[Cdecl] fn__scInboxMessageGetUgcdata; + private delegate* unmanaged[Cdecl] fn__scInboxMessageSendBountyPresenceEvent; + private delegate* unmanaged[Cdecl] fn__scInboxMessageGetBountyData; private delegate* unmanaged[Cdecl] fn__scInboxGetEmails; private delegate* unmanaged[Cdecl] fn__0x16DA8172459434AA; private delegate* unmanaged[Cdecl] fn__0x7DB18CA8CAD5B098; - private delegate* unmanaged[Cdecl] fn__0x4737980E8A283806; + private delegate* unmanaged[Cdecl] fn__0x4737980E8A283806; private delegate* unmanaged[Cdecl] fn__0x44ACA259D67651DB; private delegate* unmanaged[Cdecl] fn__scEmailMessagePushGamerToRecipList; private delegate* unmanaged[Cdecl] fn__scEmailMessageClearRecipList; private delegate* unmanaged[Cdecl] fn__0x116FB94DC4B79F17; private delegate* unmanaged[Cdecl] fn__0x07DBD622D9533857; - private delegate* unmanaged[Cdecl] fn__setHandleRockstarMessageViaScript; - private delegate* unmanaged[Cdecl] fn__isRockstarMessageReadyForScript; + private delegate* unmanaged[Cdecl] fn__setHandleRockstarMessageViaScript; + private delegate* unmanaged[Cdecl] fn__isRockstarMessageReadyForScript; private delegate* unmanaged[Cdecl] fn__rockstarMessageGetString; - private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetInt; - private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetFloat; - private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetString; - private delegate* unmanaged[Cdecl] fn__0x487912FD248EFDDF; + private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetInt; + private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetFloat; + private delegate* unmanaged[Cdecl] fn__scPresenceAttrSetString; + private delegate* unmanaged[Cdecl] fn__0x487912FD248EFDDF; private delegate* unmanaged[Cdecl] fn__0xC85A7127E7AD02AA; private delegate* unmanaged[Cdecl] fn__0xA770C8EEC6FB2AC5; - private delegate* unmanaged[Cdecl] fn__scGetIsProfileAttributeSet; + private delegate* unmanaged[Cdecl] fn__scGetIsProfileAttributeSet; private delegate* unmanaged[Cdecl] fn__0x7FFCBFEE44ECFABF; private delegate* unmanaged[Cdecl] fn__0x2D874D4AE612A65F; - private delegate* unmanaged[Cdecl] fn__scProfanityCheckString; - private delegate* unmanaged[Cdecl] fn__scProfanityCheckUgcString; - private delegate* unmanaged[Cdecl] fn__scProfanityGetCheckIsValid; - private delegate* unmanaged[Cdecl] fn__scProfanityGetCheckIsPending; - private delegate* unmanaged[Cdecl] fn__scProfanityGetStringPassed; + private delegate* unmanaged[Cdecl] fn__scProfanityCheckString; + private delegate* unmanaged[Cdecl] fn__scProfanityCheckUgcString; + private delegate* unmanaged[Cdecl] fn__scProfanityGetCheckIsValid; + private delegate* unmanaged[Cdecl] fn__scProfanityGetCheckIsPending; + private delegate* unmanaged[Cdecl] fn__scProfanityGetStringPassed; private delegate* unmanaged[Cdecl] fn__scProfanityGetStringStatus; - private delegate* unmanaged[Cdecl] fn__0xF6BAAAF762E1BF40; - private delegate* unmanaged[Cdecl] fn__0xF22CA0FD74B80E7A; + private delegate* unmanaged[Cdecl] fn__0xF6BAAAF762E1BF40; + private delegate* unmanaged[Cdecl] fn__0xF22CA0FD74B80E7A; private delegate* unmanaged[Cdecl] fn__0x9237E334F6E43156; private delegate* unmanaged[Cdecl] fn__0x700569DBA175A77C; private delegate* unmanaged[Cdecl] fn__0x1D4446A62D35B0D0; private delegate* unmanaged[Cdecl] fn__0x2E89990DDFF670C3; - private delegate* unmanaged[Cdecl] fn__0xD0EE05FE193646EA; - private delegate* unmanaged[Cdecl] fn__0x1989C6E6F67E76A8; + private delegate* unmanaged[Cdecl] fn__0xD0EE05FE193646EA; + private delegate* unmanaged[Cdecl] fn__0x1989C6E6F67E76A8; private delegate* unmanaged[Cdecl] fn__0x07C61676E5BB52CD; private delegate* unmanaged[Cdecl] fn__0x8147FFF6A718E1AD; - private delegate* unmanaged[Cdecl] fn__0x0F73393BAC7E6730; + private delegate* unmanaged[Cdecl] fn__0x0F73393BAC7E6730; private delegate* unmanaged[Cdecl] fn__0xD302E99EDF0449CF; private delegate* unmanaged[Cdecl] fn__0x5C4EBFFA98BDB41C; - private delegate* unmanaged[Cdecl] fn__0xFF8F3A92B75ED67A; + private delegate* unmanaged[Cdecl] fn__0xFF8F3A92B75ED67A; private delegate* unmanaged[Cdecl] fn__0x4ED9C8D6DA297639; - private delegate* unmanaged[Cdecl] fn__0x710BCDA8071EDED1; - private delegate* unmanaged[Cdecl] fn__0x50A8A36201DBF83E; - private delegate* unmanaged[Cdecl] fn__0x9DE5D2F723575ED0; - private delegate* unmanaged[Cdecl] fn__0xC2C97EA97711D1AE; - private delegate* unmanaged[Cdecl] fn__0x450819D8CF90C416; + private delegate* unmanaged[Cdecl] fn__0x710BCDA8071EDED1; + private delegate* unmanaged[Cdecl] fn__0x50A8A36201DBF83E; + private delegate* unmanaged[Cdecl] fn__0x9DE5D2F723575ED0; + private delegate* unmanaged[Cdecl] fn__0xC2C97EA97711D1AE; + private delegate* unmanaged[Cdecl] fn__0x450819D8CF90C416; private delegate* unmanaged[Cdecl] fn__0x4A7D6E727F941747; - private delegate* unmanaged[Cdecl] fn__0xE75A4A2E5E316D86; - private delegate* unmanaged[Cdecl] fn__0x2570E26BE63964E3; - private delegate* unmanaged[Cdecl] fn__0x1D12A56FC95BE92E; - private delegate* unmanaged[Cdecl] fn__0x33DF47CC0642061B; - private delegate* unmanaged[Cdecl] fn__0xA468E0BE12B12C70; - private delegate* unmanaged[Cdecl] fn__0x8CC469AB4D349B7C; - private delegate* unmanaged[Cdecl] fn__0xC5A35C73B68F3C49; - private delegate* unmanaged[Cdecl] fn__0x699E4A5C8C893A18; - private delegate* unmanaged[Cdecl] fn__0x19853B5B17D77BCA; - private delegate* unmanaged[Cdecl] fn__0x6BFB12CE158E3DD4; - private delegate* unmanaged[Cdecl] fn__0xFE4C1D0D3B9CC17E; + private delegate* unmanaged[Cdecl] fn__0xE75A4A2E5E316D86; + private delegate* unmanaged[Cdecl] fn__0x2570E26BE63964E3; + private delegate* unmanaged[Cdecl] fn__0x1D12A56FC95BE92E; + private delegate* unmanaged[Cdecl] fn__0x33DF47CC0642061B; + private delegate* unmanaged[Cdecl] fn__0xA468E0BE12B12C70; + private delegate* unmanaged[Cdecl] fn__0x8CC469AB4D349B7C; + private delegate* unmanaged[Cdecl] fn__0xC5A35C73B68F3C49; + private delegate* unmanaged[Cdecl] fn__0x699E4A5C8C893A18; + private delegate* unmanaged[Cdecl] fn__0x19853B5B17D77BCA; + private delegate* unmanaged[Cdecl] fn__0x6BFB12CE158E3DD4; + private delegate* unmanaged[Cdecl] fn__0xFE4C1D0D3B9CC17E; private delegate* unmanaged[Cdecl] fn__0xD8122C407663B995; - private delegate* unmanaged[Cdecl] fn__0x3001BEF2FECA3680; - private delegate* unmanaged[Cdecl] fn__0x92DA6E70EF249BD1; + private delegate* unmanaged[Cdecl] fn__0x3001BEF2FECA3680; + private delegate* unmanaged[Cdecl] fn__0x92DA6E70EF249BD1; private delegate* unmanaged[Cdecl] fn__0x675721C9F644D161; private delegate* unmanaged[Cdecl] fn__0xE4F6E8D07A2F0F51; - private delegate* unmanaged[Cdecl] fn__0x8A4416C0DB05FA66; + private delegate* unmanaged[Cdecl] fn__0x8A4416C0DB05FA66; private delegate* unmanaged[Cdecl] fn__0xEA95C0853A27888E; private delegate* unmanaged[Cdecl] fn__scGetNickname; - private delegate* unmanaged[Cdecl] fn__0x225798743970412B; - private delegate* unmanaged[Cdecl] fn__scGetHasAchievementBeenPassed; + private delegate* unmanaged[Cdecl] fn__0x225798743970412B; + private delegate* unmanaged[Cdecl] fn__scGetHasAchievementBeenPassed; private delegate* unmanaged[Cdecl] fn__statClearSlotForReload; - private delegate* unmanaged[Cdecl] fn__statLoad; - private delegate* unmanaged[Cdecl] fn__statSave; + private delegate* unmanaged[Cdecl] fn__statLoad; + private delegate* unmanaged[Cdecl] fn__statSave; private delegate* unmanaged[Cdecl] fn__0x5688585E6D563CD8; - private delegate* unmanaged[Cdecl] fn__statLoadPending; - private delegate* unmanaged[Cdecl] fn__statSavePending; - private delegate* unmanaged[Cdecl] fn__statSavePendingOrRequested; + private delegate* unmanaged[Cdecl] fn__statLoadPending; + private delegate* unmanaged[Cdecl] fn__statSavePending; + private delegate* unmanaged[Cdecl] fn__statSavePendingOrRequested; private delegate* unmanaged[Cdecl] fn__statDeleteSlot; - private delegate* unmanaged[Cdecl] fn__statSlotIsLoaded; - private delegate* unmanaged[Cdecl] fn__0x7F2C4CDF2E82DF4C; + private delegate* unmanaged[Cdecl] fn__statSlotIsLoaded; + private delegate* unmanaged[Cdecl] fn__0x7F2C4CDF2E82DF4C; private delegate* unmanaged[Cdecl] fn__0xE496A53BA5F50A56; - private delegate* unmanaged[Cdecl] fn__statSetBlockSaves; - private delegate* unmanaged[Cdecl] fn__0x6A7F19756F1A9016; - private delegate* unmanaged[Cdecl] fn__0x7E6946F68A38B74F; + private delegate* unmanaged[Cdecl] fn__statSetBlockSaves; + private delegate* unmanaged[Cdecl] fn__0x6A7F19756F1A9016; + private delegate* unmanaged[Cdecl] fn__0x7E6946F68A38B74F; private delegate* unmanaged[Cdecl] fn__0xA8733668D1047B51; - private delegate* unmanaged[Cdecl] fn__0xECB41AC6AB754401; + private delegate* unmanaged[Cdecl] fn__0xECB41AC6AB754401; private delegate* unmanaged[Cdecl] fn__0x9B4BD21D69B1E609; private delegate* unmanaged[Cdecl] fn__0xC0E0D686DDFC6EAE; - private delegate* unmanaged[Cdecl] fn__statSetInt; - private delegate* unmanaged[Cdecl] fn__statSetFloat; - private delegate* unmanaged[Cdecl] fn__statSetBool; - private delegate* unmanaged[Cdecl] fn__statSetGxtLabel; - private delegate* unmanaged[Cdecl] fn__statSetDate; - private delegate* unmanaged[Cdecl] fn__statSetString; - private delegate* unmanaged[Cdecl] fn__statSetPos; - private delegate* unmanaged[Cdecl] fn__statSetMaskedInt; - private delegate* unmanaged[Cdecl] fn__statSetUserId; - private delegate* unmanaged[Cdecl] fn__statSetCurrentPosixTime; - private delegate* unmanaged[Cdecl] fn__statGetInt; - private delegate* unmanaged[Cdecl] fn__statGetFloat; - private delegate* unmanaged[Cdecl] fn__statGetBool; - private delegate* unmanaged[Cdecl] fn__statGetDate; + private delegate* unmanaged[Cdecl] fn__statSetInt; + private delegate* unmanaged[Cdecl] fn__statSetFloat; + private delegate* unmanaged[Cdecl] fn__statSetBool; + private delegate* unmanaged[Cdecl] fn__statSetGxtLabel; + private delegate* unmanaged[Cdecl] fn__statSetDate; + private delegate* unmanaged[Cdecl] fn__statSetString; + private delegate* unmanaged[Cdecl] fn__statSetPos; + private delegate* unmanaged[Cdecl] fn__statSetMaskedInt; + private delegate* unmanaged[Cdecl] fn__statSetUserId; + private delegate* unmanaged[Cdecl] fn__statSetCurrentPosixTime; + private delegate* unmanaged[Cdecl] fn__statGetInt; + private delegate* unmanaged[Cdecl] fn__statGetFloat; + private delegate* unmanaged[Cdecl] fn__statGetBool; + private delegate* unmanaged[Cdecl] fn__statGetDate; private delegate* unmanaged[Cdecl] fn__statGetString; - private delegate* unmanaged[Cdecl] fn__statGetPos; - private delegate* unmanaged[Cdecl] fn__statGetMaskedInt; + private delegate* unmanaged[Cdecl] fn__statGetPos; + private delegate* unmanaged[Cdecl] fn__statGetMaskedInt; private delegate* unmanaged[Cdecl] fn__statGetUserId; private delegate* unmanaged[Cdecl] fn__statGetLicensePlate; - private delegate* unmanaged[Cdecl] fn__statSetLicensePlate; + private delegate* unmanaged[Cdecl] fn__statSetLicensePlate; private delegate* unmanaged[Cdecl] fn__statIncrement; - private delegate* unmanaged[Cdecl] fn__0x5A556B229A169402; - private delegate* unmanaged[Cdecl] fn__0xB1D2BB1E1631F5B1; - private delegate* unmanaged[Cdecl] fn__0xBED9F5693F34ED17; + private delegate* unmanaged[Cdecl] fn__0x5A556B229A169402; + private delegate* unmanaged[Cdecl] fn__0xB1D2BB1E1631F5B1; + private delegate* unmanaged[Cdecl] fn__0xBED9F5693F34ED17; private delegate* unmanaged[Cdecl] fn__0x26D7399B9587FE89; private delegate* unmanaged[Cdecl] fn__0xA78B8FA58200DA56; private delegate* unmanaged[Cdecl] fn__statGetNumberOfDays; @@ -31917,14 +31917,14 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xC01D2470F22CDE5A; private delegate* unmanaged[Cdecl] fn__statGetPackedBoolMask; private delegate* unmanaged[Cdecl] fn__statGetPackedIntMask; - private delegate* unmanaged[Cdecl] fn__getPackedBoolStatKey; - private delegate* unmanaged[Cdecl] fn__getPackedIntStatKey; - private delegate* unmanaged[Cdecl] fn__getPackedTuBoolStatKey; - private delegate* unmanaged[Cdecl] fn__getPackedTuIntStatKey; - private delegate* unmanaged[Cdecl] fn__getNgstatBoolHash; - private delegate* unmanaged[Cdecl] fn__getNgstatIntHash; - private delegate* unmanaged[Cdecl] fn__statGetBoolMasked; - private delegate* unmanaged[Cdecl] fn__statSetBoolMasked; + private delegate* unmanaged[Cdecl] fn__getPackedBoolStatKey; + private delegate* unmanaged[Cdecl] fn__getPackedIntStatKey; + private delegate* unmanaged[Cdecl] fn__getPackedTuBoolStatKey; + private delegate* unmanaged[Cdecl] fn__getPackedTuIntStatKey; + private delegate* unmanaged[Cdecl] fn__getNgstatBoolHash; + private delegate* unmanaged[Cdecl] fn__getNgstatIntHash; + private delegate* unmanaged[Cdecl] fn__statGetBoolMasked; + private delegate* unmanaged[Cdecl] fn__statSetBoolMasked; private delegate* unmanaged[Cdecl] fn__playstatsBackgroundScriptAction; private delegate* unmanaged[Cdecl] fn__playstatsNpcInvite; private delegate* unmanaged[Cdecl] fn__playstatsAwardXp; @@ -31932,13 +31932,13 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__playstatsStartOfflineMode; private delegate* unmanaged[Cdecl] fn__playstatsActivityDone; private delegate* unmanaged[Cdecl] fn__playstatsLeaveJobChain; - private delegate* unmanaged[Cdecl] fn__playstatsMissionStarted; - private delegate* unmanaged[Cdecl] fn__playstatsMissionOver; + private delegate* unmanaged[Cdecl] fn__playstatsMissionStarted; + private delegate* unmanaged[Cdecl] fn__playstatsMissionOver; private delegate* unmanaged[Cdecl] fn__playstatsMissionCheckpoint; private delegate* unmanaged[Cdecl] fn__playstatsRandomMissionDone; private delegate* unmanaged[Cdecl] fn__playstatsRosBet; private delegate* unmanaged[Cdecl] fn__playstatsRaceCheckpoint; - private delegate* unmanaged[Cdecl] fn__0x6DEE77AFF8C21BD1; + private delegate* unmanaged[Cdecl] fn__0x6DEE77AFF8C21BD1; private delegate* unmanaged[Cdecl] fn__playstatsMatchStarted; private delegate* unmanaged[Cdecl] fn__playstatsShopItem; private delegate* unmanaged[Cdecl] fn__playstatsCrateDropMissionDone; @@ -31984,37 +31984,37 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__leaderboardsGetColumnType; private delegate* unmanaged[Cdecl] fn__leaderboardsReadClearAll; private delegate* unmanaged[Cdecl] fn__leaderboardsReadClear; - private delegate* unmanaged[Cdecl] fn__leaderboardsReadPending; - private delegate* unmanaged[Cdecl] fn__leaderboardsReadAnyPending; - private delegate* unmanaged[Cdecl] fn__leaderboardsReadSuccessful; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadFriendsByRow; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByHandle; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRow; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRank; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRadius; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByScoreInt; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByScoreFloat; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadRankPrediction; - private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByPlatform; - private delegate* unmanaged[Cdecl] fn__0xA0F93D5465B3094D; + private delegate* unmanaged[Cdecl] fn__leaderboardsReadPending; + private delegate* unmanaged[Cdecl] fn__leaderboardsReadAnyPending; + private delegate* unmanaged[Cdecl] fn__leaderboardsReadSuccessful; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadFriendsByRow; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByHandle; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRow; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRank; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByRadius; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByScoreInt; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByScoreFloat; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadRankPrediction; + private delegate* unmanaged[Cdecl] fn__leaderboards2ReadByPlatform; + private delegate* unmanaged[Cdecl] fn__0xA0F93D5465B3094D; private delegate* unmanaged[Cdecl] fn__0x71B008056E5692D6; - private delegate* unmanaged[Cdecl] fn__0x34770B9CE0E03B91; + private delegate* unmanaged[Cdecl] fn__0x34770B9CE0E03B91; private delegate* unmanaged[Cdecl] fn__0x88578F6EC36B4A3A; private delegate* unmanaged[Cdecl] fn__0x38491439B6BA7F7D; - private delegate* unmanaged[Cdecl] fn__leaderboards2WriteData; + private delegate* unmanaged[Cdecl] fn__leaderboards2WriteData; private delegate* unmanaged[Cdecl] fn__leaderboardsWriteAddColumn; private delegate* unmanaged[Cdecl] fn__leaderboardsWriteAddColumnLong; - private delegate* unmanaged[Cdecl] fn__leaderboardsCacheDataRow; + private delegate* unmanaged[Cdecl] fn__leaderboardsCacheDataRow; private delegate* unmanaged[Cdecl] fn__leaderboardsClearCacheData; private delegate* unmanaged[Cdecl] fn__0x8EC74CEB042E7CFF; - private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheExists; + private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheExists; private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheTime; private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheNumberOfRows; - private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheDataRow; + private delegate* unmanaged[Cdecl] fn__leaderboardsGetCacheDataRow; private delegate* unmanaged[Cdecl] fn__updateStatInt; private delegate* unmanaged[Cdecl] fn__updateStatFloat; private delegate* unmanaged[Cdecl] fn__0x6483C25849031C4F; - private delegate* unmanaged[Cdecl] fn__0x5EAD2BF6484852E4; + private delegate* unmanaged[Cdecl] fn__0x5EAD2BF6484852E4; private delegate* unmanaged[Cdecl] fn__0xC141B8917E0017EC; private delegate* unmanaged[Cdecl] fn__setProfileSettingPrologueComplete; private delegate* unmanaged[Cdecl] fn__0xC67E2DA1CBE759E2; @@ -32025,19 +32025,19 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x0D01D20616FC73FB; private delegate* unmanaged[Cdecl] fn__0x428EAF89E24F6C36; private delegate* unmanaged[Cdecl] fn__statSetCheatIsActive; - private delegate* unmanaged[Cdecl] fn__leaderboards2WriteDataForEventType; + private delegate* unmanaged[Cdecl] fn__leaderboards2WriteDataForEventType; private delegate* unmanaged[Cdecl] fn__0x6F361B8889A792A3; private delegate* unmanaged[Cdecl] fn__0xC847B43F369AC0B5; - private delegate* unmanaged[Cdecl] fn__statMigrateSave; + private delegate* unmanaged[Cdecl] fn__statMigrateSave; private delegate* unmanaged[Cdecl] fn__0x9A62EC95AE10E011; private delegate* unmanaged[Cdecl] fn__0x4C89FE2BDEB3F169; private delegate* unmanaged[Cdecl] fn__0xC6E0E2616A7576BB; private delegate* unmanaged[Cdecl] fn__0x5BD5F255321C4AAF; private delegate* unmanaged[Cdecl] fn__0xDEAAF77EB3687E97; private delegate* unmanaged[Cdecl] fn__statGetSaveMigrationStatus; - private delegate* unmanaged[Cdecl] fn__statSaveMigrationCancel; + private delegate* unmanaged[Cdecl] fn__statSaveMigrationCancel; private delegate* unmanaged[Cdecl] fn__statGetCancelSaveMigrationStatus; - private delegate* unmanaged[Cdecl] fn__statSaveMigrationConsumeContentUnlock; + private delegate* unmanaged[Cdecl] fn__statSaveMigrationConsumeContentUnlock; private delegate* unmanaged[Cdecl] fn__statGetSaveMigrationConsumeContentUnlockStatus; private delegate* unmanaged[Cdecl] fn__0x98E2BC1CA26287C3; private delegate* unmanaged[Cdecl] fn__0x629526ABA383BCAA; @@ -32058,7 +32058,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x1A8EA222F9C67DBB; private delegate* unmanaged[Cdecl] fn__0xF9F2922717B819EC; private delegate* unmanaged[Cdecl] fn__0x0B8B7F74BF061C6D; - private delegate* unmanaged[Cdecl] fn__0xB3DA2606774A8E2D; + private delegate* unmanaged[Cdecl] fn__0xB3DA2606774A8E2D; private delegate* unmanaged[Cdecl] fn__setHasContentUnlocksFlags; private delegate* unmanaged[Cdecl] fn__setSaveMigrationTransactionId; private delegate* unmanaged[Cdecl] fn__0x6BC0ACD0673ACEBE; @@ -32130,7 +32130,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__playstatsSpectatorWheelSpin; private delegate* unmanaged[Cdecl] fn__playstatsArenaWarSpectator; private delegate* unmanaged[Cdecl] fn__playstatsArenaWarsEnded; - private delegate* unmanaged[Cdecl] fn__playstatsPassiveMode; + private delegate* unmanaged[Cdecl] fn__playstatsPassiveMode; private delegate* unmanaged[Cdecl] fn__playstatsCollectible; private delegate* unmanaged[Cdecl] fn__playstatsCasinoStoryMissionEnded; private delegate* unmanaged[Cdecl] fn__playstatsCasinoChip; @@ -32174,74 +32174,74 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__playstatsCarclubPrize; private delegate* unmanaged[Cdecl] fn__loadAllObjectsNow; private delegate* unmanaged[Cdecl] fn__loadScene; - private delegate* unmanaged[Cdecl] fn__networkUpdateLoadScene; - private delegate* unmanaged[Cdecl] fn__isNetworkLoadingScene; - private delegate* unmanaged[Cdecl] fn__setInteriorActive; + private delegate* unmanaged[Cdecl] fn__networkUpdateLoadScene; + private delegate* unmanaged[Cdecl] fn__isNetworkLoadingScene; + private delegate* unmanaged[Cdecl] fn__setInteriorActive; private delegate* unmanaged[Cdecl] fn__requestModel; private delegate* unmanaged[Cdecl] fn__requestMenuPedModel; - private delegate* unmanaged[Cdecl] fn__hasModelLoaded; + private delegate* unmanaged[Cdecl] fn__hasModelLoaded; private delegate* unmanaged[Cdecl] fn__requestModelsInRoom; private delegate* unmanaged[Cdecl] fn__setModelAsNoLongerNeeded; - private delegate* unmanaged[Cdecl] fn__isModelInCdimage; - private delegate* unmanaged[Cdecl] fn__isModelValid; - private delegate* unmanaged[Cdecl] fn__isModelAPed; - private delegate* unmanaged[Cdecl] fn__isModelAVehicle; + private delegate* unmanaged[Cdecl] fn__isModelInCdimage; + private delegate* unmanaged[Cdecl] fn__isModelValid; + private delegate* unmanaged[Cdecl] fn__isModelAPed; + private delegate* unmanaged[Cdecl] fn__isModelAVehicle; private delegate* unmanaged[Cdecl] fn__requestCollisionAtCoord; private delegate* unmanaged[Cdecl] fn__requestCollisionForModel; - private delegate* unmanaged[Cdecl] fn__hasCollisionForModelLoaded; + private delegate* unmanaged[Cdecl] fn__hasCollisionForModelLoaded; private delegate* unmanaged[Cdecl] fn__requestAdditionalCollisionAtCoord; - private delegate* unmanaged[Cdecl] fn__doesAnimDictExist; + private delegate* unmanaged[Cdecl] fn__doesAnimDictExist; private delegate* unmanaged[Cdecl] fn__requestAnimDict; - private delegate* unmanaged[Cdecl] fn__hasAnimDictLoaded; + private delegate* unmanaged[Cdecl] fn__hasAnimDictLoaded; private delegate* unmanaged[Cdecl] fn__removeAnimDict; private delegate* unmanaged[Cdecl] fn__requestAnimSet; - private delegate* unmanaged[Cdecl] fn__hasAnimSetLoaded; + private delegate* unmanaged[Cdecl] fn__hasAnimSetLoaded; private delegate* unmanaged[Cdecl] fn__removeAnimSet; private delegate* unmanaged[Cdecl] fn__requestClipSet; - private delegate* unmanaged[Cdecl] fn__hasClipSetLoaded; + private delegate* unmanaged[Cdecl] fn__hasClipSetLoaded; private delegate* unmanaged[Cdecl] fn__removeClipSet; private delegate* unmanaged[Cdecl] fn__requestIpl; private delegate* unmanaged[Cdecl] fn__removeIpl; - private delegate* unmanaged[Cdecl] fn__isIplActive; - private delegate* unmanaged[Cdecl] fn__setStreaming; + private delegate* unmanaged[Cdecl] fn__isIplActive; + private delegate* unmanaged[Cdecl] fn__setStreaming; private delegate* unmanaged[Cdecl] fn__loadGlobalWaterType; private delegate* unmanaged[Cdecl] fn__getGlobalWaterType; - private delegate* unmanaged[Cdecl] fn__setGamePausesForStreaming; - private delegate* unmanaged[Cdecl] fn__setReducePedModelBudget; - private delegate* unmanaged[Cdecl] fn__setReduceVehicleModelBudget; - private delegate* unmanaged[Cdecl] fn__setDitchPoliceModels; + private delegate* unmanaged[Cdecl] fn__setGamePausesForStreaming; + private delegate* unmanaged[Cdecl] fn__setReducePedModelBudget; + private delegate* unmanaged[Cdecl] fn__setReduceVehicleModelBudget; + private delegate* unmanaged[Cdecl] fn__setDitchPoliceModels; private delegate* unmanaged[Cdecl] fn__getNumberOfStreamingRequests; private delegate* unmanaged[Cdecl] fn__requestPtfxAsset; - private delegate* unmanaged[Cdecl] fn__hasPtfxAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasPtfxAssetLoaded; private delegate* unmanaged[Cdecl] fn__removePtfxAsset; private delegate* unmanaged[Cdecl] fn__requestNamedPtfxAsset; - private delegate* unmanaged[Cdecl] fn__hasNamedPtfxAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasNamedPtfxAssetLoaded; private delegate* unmanaged[Cdecl] fn__removeNamedPtfxAsset; private delegate* unmanaged[Cdecl] fn__setVehiclePopulationBudget; private delegate* unmanaged[Cdecl] fn__setPedPopulationBudget; private delegate* unmanaged[Cdecl] fn__clearFocus; private delegate* unmanaged[Cdecl] fn__setFocusPosAndVel; private delegate* unmanaged[Cdecl] fn__setFocusEntity; - private delegate* unmanaged[Cdecl] fn__isEntityFocus; + private delegate* unmanaged[Cdecl] fn__isEntityFocus; private delegate* unmanaged[Cdecl] fn__0x0811381EF5062FEC; - private delegate* unmanaged[Cdecl] fn__setMapdatacullboxEnabled; + private delegate* unmanaged[Cdecl] fn__setMapdatacullboxEnabled; private delegate* unmanaged[Cdecl] fn__0x4E52E752C76E7E7A; private delegate* unmanaged[Cdecl] fn__streamvolCreateSphere; private delegate* unmanaged[Cdecl] fn__streamvolCreateFrustum; private delegate* unmanaged[Cdecl] fn__streamvolCreateLine; private delegate* unmanaged[Cdecl] fn__streamvolDelete; - private delegate* unmanaged[Cdecl] fn__streamvolHasLoaded; - private delegate* unmanaged[Cdecl] fn__streamvolIsValid; - private delegate* unmanaged[Cdecl] fn__isStreamvolActive; - private delegate* unmanaged[Cdecl] fn__newLoadSceneStart; - private delegate* unmanaged[Cdecl] fn__newLoadSceneStartSphere; + private delegate* unmanaged[Cdecl] fn__streamvolHasLoaded; + private delegate* unmanaged[Cdecl] fn__streamvolIsValid; + private delegate* unmanaged[Cdecl] fn__isStreamvolActive; + private delegate* unmanaged[Cdecl] fn__newLoadSceneStart; + private delegate* unmanaged[Cdecl] fn__newLoadSceneStartSphere; private delegate* unmanaged[Cdecl] fn__newLoadSceneStop; - private delegate* unmanaged[Cdecl] fn__isNewLoadSceneActive; - private delegate* unmanaged[Cdecl] fn__isNewLoadSceneLoaded; + private delegate* unmanaged[Cdecl] fn__isNewLoadSceneActive; + private delegate* unmanaged[Cdecl] fn__isNewLoadSceneLoaded; private delegate* unmanaged[Cdecl] fn__0x71E7B2E657449AAD; private delegate* unmanaged[Cdecl] fn__startPlayerSwitch; private delegate* unmanaged[Cdecl] fn__stopPlayerSwitch; - private delegate* unmanaged[Cdecl] fn__isPlayerSwitchInProgress; + private delegate* unmanaged[Cdecl] fn__isPlayerSwitchInProgress; private delegate* unmanaged[Cdecl] fn__getPlayerSwitchType; private delegate* unmanaged[Cdecl] fn__getIdealPlayerSwitchType; private delegate* unmanaged[Cdecl] fn__getPlayerSwitchState; @@ -32254,56 +32254,56 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__allowPlayerSwitchOutro; private delegate* unmanaged[Cdecl] fn__allowPlayerSwitchAscent; private delegate* unmanaged[Cdecl] fn__allowPlayerSwitchDescent; - private delegate* unmanaged[Cdecl] fn__isSwitchReadyForDescent; + private delegate* unmanaged[Cdecl] fn__isSwitchReadyForDescent; private delegate* unmanaged[Cdecl] fn__enableSwitchPauseBeforeDescent; private delegate* unmanaged[Cdecl] fn__disableSwitchOutroFx; private delegate* unmanaged[Cdecl] fn__switchOutPlayer; private delegate* unmanaged[Cdecl] fn__switchInPlayer; - private delegate* unmanaged[Cdecl] fn__0x933BBEEB8C61B5F4; + private delegate* unmanaged[Cdecl] fn__0x933BBEEB8C61B5F4; private delegate* unmanaged[Cdecl] fn__getPlayerSwitchInterpOutDuration; private delegate* unmanaged[Cdecl] fn__getPlayerSwitchInterpOutCurrentTime; - private delegate* unmanaged[Cdecl] fn__isSwitchSkippingDescent; + private delegate* unmanaged[Cdecl] fn__isSwitchSkippingDescent; private delegate* unmanaged[Cdecl] fn__0x1E9057A74FD73E23; private delegate* unmanaged[Cdecl] fn__getLodscale; private delegate* unmanaged[Cdecl] fn__overrideLodscaleThisFrame; private delegate* unmanaged[Cdecl] fn__0xBED8CA5FF5E04113; private delegate* unmanaged[Cdecl] fn__0x472397322E92A856; - private delegate* unmanaged[Cdecl] fn__setRenderHdOnly; + private delegate* unmanaged[Cdecl] fn__setRenderHdOnly; private delegate* unmanaged[Cdecl] fn__0x03F1A106BDA7DD3E; private delegate* unmanaged[Cdecl] fn__0x95A7DABDDBB78AE7; private delegate* unmanaged[Cdecl] fn__0x63EB2B972A218CAC; - private delegate* unmanaged[Cdecl] fn__0xFB199266061F820A; + private delegate* unmanaged[Cdecl] fn__0xFB199266061F820A; private delegate* unmanaged[Cdecl] fn__0xF4A0DADB70F57FA6; private delegate* unmanaged[Cdecl] fn__0x5068F488DDB54DD8; private delegate* unmanaged[Cdecl] fn__prefetchSrl; - private delegate* unmanaged[Cdecl] fn__isSrlLoaded; + private delegate* unmanaged[Cdecl] fn__isSrlLoaded; private delegate* unmanaged[Cdecl] fn__beginSrl; private delegate* unmanaged[Cdecl] fn__endSrl; private delegate* unmanaged[Cdecl] fn__setSrlTime; private delegate* unmanaged[Cdecl] fn__0xEF39EE20C537E98C; private delegate* unmanaged[Cdecl] fn__0xBEB2D9A1D9A8F55A; - private delegate* unmanaged[Cdecl] fn__0x20C6C7E4EB082A7F; + private delegate* unmanaged[Cdecl] fn__0x20C6C7E4EB082A7F; private delegate* unmanaged[Cdecl] fn__0xF8155A7F03DDFC8E; private delegate* unmanaged[Cdecl] fn__setHdArea; private delegate* unmanaged[Cdecl] fn__clearHdArea; private delegate* unmanaged[Cdecl] fn__initCreatorBudget; private delegate* unmanaged[Cdecl] fn__shutdownCreatorBudget; - private delegate* unmanaged[Cdecl] fn__addModelToCreatorBudget; + private delegate* unmanaged[Cdecl] fn__addModelToCreatorBudget; private delegate* unmanaged[Cdecl] fn__removeModelFromCreatorBudget; private delegate* unmanaged[Cdecl] fn__getUsedCreatorModelMemoryPercentage; - private delegate* unmanaged[Cdecl] fn__setIslandHopperEnabled; + private delegate* unmanaged[Cdecl] fn__setIslandHopperEnabled; private delegate* unmanaged[Cdecl] fn__taskPause; private delegate* unmanaged[Cdecl] fn__taskStandStill; - private delegate* unmanaged[Cdecl] fn__taskJump; + private delegate* unmanaged[Cdecl] fn__taskJump; private delegate* unmanaged[Cdecl] fn__taskCower; - private delegate* unmanaged[Cdecl] fn__taskHandsUp; + private delegate* unmanaged[Cdecl] fn__taskHandsUp; private delegate* unmanaged[Cdecl] fn__updateTaskHandsUpDuration; private delegate* unmanaged[Cdecl] fn__taskOpenVehicleDoor; private delegate* unmanaged[Cdecl] fn__taskEnterVehicle; private delegate* unmanaged[Cdecl] fn__taskLeaveVehicle; private delegate* unmanaged[Cdecl] fn__taskGetOffBoat; - private delegate* unmanaged[Cdecl] fn__taskSkyDive; - private delegate* unmanaged[Cdecl] fn__taskParachute; + private delegate* unmanaged[Cdecl] fn__taskSkyDive; + private delegate* unmanaged[Cdecl] fn__taskParachute; private delegate* unmanaged[Cdecl] fn__taskParachuteToTarget; private delegate* unmanaged[Cdecl] fn__setParachuteTaskTarget; private delegate* unmanaged[Cdecl] fn__setParachuteTaskThrust; @@ -32311,7 +32311,7 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskVehicleDriveToCoord; private delegate* unmanaged[Cdecl] fn__taskVehicleDriveToCoordLongrange; private delegate* unmanaged[Cdecl] fn__taskVehicleDriveWander; - private delegate* unmanaged[Cdecl] fn__taskFollowToOffsetOfEntity; + private delegate* unmanaged[Cdecl] fn__taskFollowToOffsetOfEntity; private delegate* unmanaged[Cdecl] fn__taskGoStraightToCoord; private delegate* unmanaged[Cdecl] fn__taskGoStraightToCoordRelativeToEntity; private delegate* unmanaged[Cdecl] fn__taskAchieveHeading; @@ -32319,45 +32319,45 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskExtendRoute; private delegate* unmanaged[Cdecl] fn__taskFollowPointRoute; private delegate* unmanaged[Cdecl] fn__taskGoToEntity; - private delegate* unmanaged[Cdecl] fn__taskSmartFleeCoord; - private delegate* unmanaged[Cdecl] fn__taskSmartFleePed; + private delegate* unmanaged[Cdecl] fn__taskSmartFleeCoord; + private delegate* unmanaged[Cdecl] fn__taskSmartFleePed; private delegate* unmanaged[Cdecl] fn__taskReactAndFleePed; private delegate* unmanaged[Cdecl] fn__taskShockingEventReact; private delegate* unmanaged[Cdecl] fn__taskWanderInArea; private delegate* unmanaged[Cdecl] fn__taskWanderStandard; private delegate* unmanaged[Cdecl] fn__taskWanderSpecific; - private delegate* unmanaged[Cdecl] fn__taskVehiclePark; + private delegate* unmanaged[Cdecl] fn__taskVehiclePark; private delegate* unmanaged[Cdecl] fn__taskStealthKill; private delegate* unmanaged[Cdecl] fn__taskPlantBomb; - private delegate* unmanaged[Cdecl] fn__taskFollowNavMeshToCoord; + private delegate* unmanaged[Cdecl] fn__taskFollowNavMeshToCoord; private delegate* unmanaged[Cdecl] fn__taskFollowNavMeshToCoordAdvanced; - private delegate* unmanaged[Cdecl] fn__setPedPathCanUseClimbovers; - private delegate* unmanaged[Cdecl] fn__setPedPathCanUseLadders; - private delegate* unmanaged[Cdecl] fn__setPedPathCanDropFromHeight; + private delegate* unmanaged[Cdecl] fn__setPedPathCanUseClimbovers; + private delegate* unmanaged[Cdecl] fn__setPedPathCanUseLadders; + private delegate* unmanaged[Cdecl] fn__setPedPathCanDropFromHeight; private delegate* unmanaged[Cdecl] fn__setPedPathClimbCostModifier; - private delegate* unmanaged[Cdecl] fn__setPedPathMayEnterWater; - private delegate* unmanaged[Cdecl] fn__setPedPathPreferToAvoidWater; - private delegate* unmanaged[Cdecl] fn__setPedPathAvoidFire; + private delegate* unmanaged[Cdecl] fn__setPedPathMayEnterWater; + private delegate* unmanaged[Cdecl] fn__setPedPathPreferToAvoidWater; + private delegate* unmanaged[Cdecl] fn__setPedPathAvoidFire; private delegate* unmanaged[Cdecl] fn__setGlobalMinBirdFlightHeight; - private delegate* unmanaged[Cdecl] fn__getNavmeshRouteDistanceRemaining; + private delegate* unmanaged[Cdecl] fn__getNavmeshRouteDistanceRemaining; private delegate* unmanaged[Cdecl] fn__getNavmeshRouteResult; - private delegate* unmanaged[Cdecl] fn__0x3E38E28A1D80DDF6; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeans; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeansExtraParams; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed; - private delegate* unmanaged[Cdecl] fn__taskPlayAnim; + private delegate* unmanaged[Cdecl] fn__0x3E38E28A1D80DDF6; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeans; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeansExtraParams; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed; + private delegate* unmanaged[Cdecl] fn__taskPlayAnim; private delegate* unmanaged[Cdecl] fn__taskPlayAnimAdvanced; private delegate* unmanaged[Cdecl] fn__stopAnimTask; private delegate* unmanaged[Cdecl] fn__taskScriptedAnimation; private delegate* unmanaged[Cdecl] fn__playEntityScriptedAnim; - private delegate* unmanaged[Cdecl] fn__stopAnimPlayback; - private delegate* unmanaged[Cdecl] fn__setAnimWeight; - private delegate* unmanaged[Cdecl] fn__setAnimPlaybackTime; - private delegate* unmanaged[Cdecl] fn__setAnimRate; - private delegate* unmanaged[Cdecl] fn__setAnimLooped; - private delegate* unmanaged[Cdecl] fn__taskPlayPhoneGestureAnimation; + private delegate* unmanaged[Cdecl] fn__stopAnimPlayback; + private delegate* unmanaged[Cdecl] fn__setAnimWeight; + private delegate* unmanaged[Cdecl] fn__setAnimPlaybackTime; + private delegate* unmanaged[Cdecl] fn__setAnimRate; + private delegate* unmanaged[Cdecl] fn__setAnimLooped; + private delegate* unmanaged[Cdecl] fn__taskPlayPhoneGestureAnimation; private delegate* unmanaged[Cdecl] fn__taskStopPhoneGestureAnimation; - private delegate* unmanaged[Cdecl] fn__isPlayingPhoneGestureAnim; + private delegate* unmanaged[Cdecl] fn__isPlayingPhoneGestureAnim; private delegate* unmanaged[Cdecl] fn__getPhoneGestureAnimCurrentTime; private delegate* unmanaged[Cdecl] fn__getPhoneGestureAnimTotalTime; private delegate* unmanaged[Cdecl] fn__taskVehiclePlayAnim; @@ -32369,36 +32369,36 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskPerformSequence; private delegate* unmanaged[Cdecl] fn__taskPerformSequenceLocally; private delegate* unmanaged[Cdecl] fn__clearSequenceTask; - private delegate* unmanaged[Cdecl] fn__setSequenceToRepeat; + private delegate* unmanaged[Cdecl] fn__setSequenceToRepeat; private delegate* unmanaged[Cdecl] fn__getSequenceProgress; - private delegate* unmanaged[Cdecl] fn__getIsTaskActive; + private delegate* unmanaged[Cdecl] fn__getIsTaskActive; private delegate* unmanaged[Cdecl] fn__getScriptTaskStatus; private delegate* unmanaged[Cdecl] fn__getActiveVehicleMissionType; private delegate* unmanaged[Cdecl] fn__taskLeaveAnyVehicle; - private delegate* unmanaged[Cdecl] fn__taskAimGunScripted; - private delegate* unmanaged[Cdecl] fn__taskAimGunScriptedWithTarget; - private delegate* unmanaged[Cdecl] fn__updateTaskAimGunScriptedTarget; + private delegate* unmanaged[Cdecl] fn__taskAimGunScripted; + private delegate* unmanaged[Cdecl] fn__taskAimGunScriptedWithTarget; + private delegate* unmanaged[Cdecl] fn__updateTaskAimGunScriptedTarget; private delegate* unmanaged[Cdecl] fn__getClipSetForScriptedGunTask; - private delegate* unmanaged[Cdecl] fn__taskAimGunAtEntity; + private delegate* unmanaged[Cdecl] fn__taskAimGunAtEntity; private delegate* unmanaged[Cdecl] fn__taskTurnPedToFaceEntity; - private delegate* unmanaged[Cdecl] fn__taskAimGunAtCoord; + private delegate* unmanaged[Cdecl] fn__taskAimGunAtCoord; private delegate* unmanaged[Cdecl] fn__taskShootAtCoord; private delegate* unmanaged[Cdecl] fn__taskShuffleToNextVehicleSeat; private delegate* unmanaged[Cdecl] fn__clearPedTasks; private delegate* unmanaged[Cdecl] fn__clearPedSecondaryTask; private delegate* unmanaged[Cdecl] fn__taskEveryoneLeaveVehicle; private delegate* unmanaged[Cdecl] fn__taskGotoEntityOffset; - private delegate* unmanaged[Cdecl] fn__taskGotoEntityOffsetXy; + private delegate* unmanaged[Cdecl] fn__taskGotoEntityOffsetXy; private delegate* unmanaged[Cdecl] fn__taskTurnPedToFaceCoord; private delegate* unmanaged[Cdecl] fn__taskVehicleTempAction; - private delegate* unmanaged[Cdecl] fn__taskVehicleMission; - private delegate* unmanaged[Cdecl] fn__taskVehicleMissionPedTarget; - private delegate* unmanaged[Cdecl] fn__taskVehicleMissionCoorsTarget; + private delegate* unmanaged[Cdecl] fn__taskVehicleMission; + private delegate* unmanaged[Cdecl] fn__taskVehicleMissionPedTarget; + private delegate* unmanaged[Cdecl] fn__taskVehicleMissionCoorsTarget; private delegate* unmanaged[Cdecl] fn__taskVehicleEscort; private delegate* unmanaged[Cdecl] fn__taskVehicleFollow; private delegate* unmanaged[Cdecl] fn__taskVehicleChase; private delegate* unmanaged[Cdecl] fn__taskVehicleHeliProtect; - private delegate* unmanaged[Cdecl] fn__setTaskVehicleChaseBehaviorFlag; + private delegate* unmanaged[Cdecl] fn__setTaskVehicleChaseBehaviorFlag; private delegate* unmanaged[Cdecl] fn__setTaskVehicleChaseIdealPursuitDistance; private delegate* unmanaged[Cdecl] fn__taskHeliChase; private delegate* unmanaged[Cdecl] fn__taskPlaneChase; @@ -32413,19 +32413,19 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskPlaneMission; private delegate* unmanaged[Cdecl] fn__taskPlaneTaxi; private delegate* unmanaged[Cdecl] fn__taskBoatMission; - private delegate* unmanaged[Cdecl] fn__taskDriveBy; + private delegate* unmanaged[Cdecl] fn__taskDriveBy; private delegate* unmanaged[Cdecl] fn__setDrivebyTaskTarget; private delegate* unmanaged[Cdecl] fn__clearDrivebyTaskUnderneathDrivingTask; - private delegate* unmanaged[Cdecl] fn__isDrivebyTaskUnderneathDrivingTask; - private delegate* unmanaged[Cdecl] fn__controlMountedWeapon; + private delegate* unmanaged[Cdecl] fn__isDrivebyTaskUnderneathDrivingTask; + private delegate* unmanaged[Cdecl] fn__controlMountedWeapon; private delegate* unmanaged[Cdecl] fn__setMountedWeaponTarget; - private delegate* unmanaged[Cdecl] fn__isMountedWeaponTaskUnderneathDrivingTask; + private delegate* unmanaged[Cdecl] fn__isMountedWeaponTaskUnderneathDrivingTask; private delegate* unmanaged[Cdecl] fn__taskUseMobilePhone; private delegate* unmanaged[Cdecl] fn__taskUseMobilePhoneTimed; private delegate* unmanaged[Cdecl] fn__taskChatToPed; private delegate* unmanaged[Cdecl] fn__taskWarpPedIntoVehicle; private delegate* unmanaged[Cdecl] fn__taskShootAtEntity; - private delegate* unmanaged[Cdecl] fn__taskClimb; + private delegate* unmanaged[Cdecl] fn__taskClimb; private delegate* unmanaged[Cdecl] fn__taskClimbLadder; private delegate* unmanaged[Cdecl] fn__taskRappelDownWall; private delegate* unmanaged[Cdecl] fn__0x9D252648778160DF; @@ -32440,70 +32440,70 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskClearDefensiveArea; private delegate* unmanaged[Cdecl] fn__taskPedSlideToCoord; private delegate* unmanaged[Cdecl] fn__taskPedSlideToCoordHdgRate; - private delegate* unmanaged[Cdecl] fn__addCoverPoint; + private delegate* unmanaged[Cdecl] fn__addCoverPoint; private delegate* unmanaged[Cdecl] fn__removeCoverPoint; - private delegate* unmanaged[Cdecl] fn__doesScriptedCoverPointExistAtCoords; + private delegate* unmanaged[Cdecl] fn__doesScriptedCoverPointExistAtCoords; private delegate* unmanaged[Cdecl] fn__getScriptedCoverPointCoords; private delegate* unmanaged[Cdecl] fn__taskCombatPed; private delegate* unmanaged[Cdecl] fn__taskCombatPedTimed; - private delegate* unmanaged[Cdecl] fn__taskSeekCoverFromPos; - private delegate* unmanaged[Cdecl] fn__taskSeekCoverFromPed; - private delegate* unmanaged[Cdecl] fn__taskSeekCoverToCoverPoint; - private delegate* unmanaged[Cdecl] fn__taskSeekCoverToCoords; - private delegate* unmanaged[Cdecl] fn__taskPutPedDirectlyIntoCover; + private delegate* unmanaged[Cdecl] fn__taskSeekCoverFromPos; + private delegate* unmanaged[Cdecl] fn__taskSeekCoverFromPed; + private delegate* unmanaged[Cdecl] fn__taskSeekCoverToCoverPoint; + private delegate* unmanaged[Cdecl] fn__taskSeekCoverToCoords; + private delegate* unmanaged[Cdecl] fn__taskPutPedDirectlyIntoCover; private delegate* unmanaged[Cdecl] fn__taskExitCover; - private delegate* unmanaged[Cdecl] fn__taskPutPedDirectlyIntoMelee; - private delegate* unmanaged[Cdecl] fn__taskToggleDuck; - private delegate* unmanaged[Cdecl] fn__taskGuardCurrentPosition; + private delegate* unmanaged[Cdecl] fn__taskPutPedDirectlyIntoMelee; + private delegate* unmanaged[Cdecl] fn__taskToggleDuck; + private delegate* unmanaged[Cdecl] fn__taskGuardCurrentPosition; private delegate* unmanaged[Cdecl] fn__taskGuardAssignedDefensiveArea; private delegate* unmanaged[Cdecl] fn__taskGuardSphereDefensiveArea; private delegate* unmanaged[Cdecl] fn__taskStandGuard; private delegate* unmanaged[Cdecl] fn__setDriveTaskCruiseSpeed; private delegate* unmanaged[Cdecl] fn__setDriveTaskMaxCruiseSpeed; private delegate* unmanaged[Cdecl] fn__setDriveTaskDrivingStyle; - private delegate* unmanaged[Cdecl] fn__addCoverBlockingArea; + private delegate* unmanaged[Cdecl] fn__addCoverBlockingArea; private delegate* unmanaged[Cdecl] fn__removeAllCoverBlockingAreas; private delegate* unmanaged[Cdecl] fn__0xFA83CA6776038F64; private delegate* unmanaged[Cdecl] fn__0x1F351CF1C6475734; - private delegate* unmanaged[Cdecl] fn__taskStartScenarioInPlace; - private delegate* unmanaged[Cdecl] fn__taskStartScenarioAtPosition; + private delegate* unmanaged[Cdecl] fn__taskStartScenarioInPlace; + private delegate* unmanaged[Cdecl] fn__taskStartScenarioAtPosition; private delegate* unmanaged[Cdecl] fn__taskUseNearestScenarioToCoord; private delegate* unmanaged[Cdecl] fn__taskUseNearestScenarioToCoordWarp; private delegate* unmanaged[Cdecl] fn__taskUseNearestScenarioChainToCoord; private delegate* unmanaged[Cdecl] fn__taskUseNearestScenarioChainToCoordWarp; - private delegate* unmanaged[Cdecl] fn__doesScenarioExistInArea; - private delegate* unmanaged[Cdecl] fn__doesScenarioOfTypeExistInArea; - private delegate* unmanaged[Cdecl] fn__isScenarioOccupied; - private delegate* unmanaged[Cdecl] fn__pedHasUseScenarioTask; + private delegate* unmanaged[Cdecl] fn__doesScenarioExistInArea; + private delegate* unmanaged[Cdecl] fn__doesScenarioOfTypeExistInArea; + private delegate* unmanaged[Cdecl] fn__isScenarioOccupied; + private delegate* unmanaged[Cdecl] fn__pedHasUseScenarioTask; private delegate* unmanaged[Cdecl] fn__playAnimOnRunningScenario; - private delegate* unmanaged[Cdecl] fn__doesScenarioGroupExist; - private delegate* unmanaged[Cdecl] fn__isScenarioGroupEnabled; - private delegate* unmanaged[Cdecl] fn__setScenarioGroupEnabled; + private delegate* unmanaged[Cdecl] fn__doesScenarioGroupExist; + private delegate* unmanaged[Cdecl] fn__isScenarioGroupEnabled; + private delegate* unmanaged[Cdecl] fn__setScenarioGroupEnabled; private delegate* unmanaged[Cdecl] fn__resetScenarioGroupsEnabled; private delegate* unmanaged[Cdecl] fn__setExclusiveScenarioGroup; private delegate* unmanaged[Cdecl] fn__resetExclusiveScenarioGroup; - private delegate* unmanaged[Cdecl] fn__isScenarioTypeEnabled; - private delegate* unmanaged[Cdecl] fn__setScenarioTypeEnabled; + private delegate* unmanaged[Cdecl] fn__isScenarioTypeEnabled; + private delegate* unmanaged[Cdecl] fn__setScenarioTypeEnabled; private delegate* unmanaged[Cdecl] fn__resetScenarioTypesEnabled; - private delegate* unmanaged[Cdecl] fn__isPedActiveInScenario; - private delegate* unmanaged[Cdecl] fn__isPedPlayingBaseClipInScenario; - private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientIdles; + private delegate* unmanaged[Cdecl] fn__isPedActiveInScenario; + private delegate* unmanaged[Cdecl] fn__isPedPlayingBaseClipInScenario; + private delegate* unmanaged[Cdecl] fn__setPedCanPlayAmbientIdles; private delegate* unmanaged[Cdecl] fn__taskCombatHatedTargetsInArea; private delegate* unmanaged[Cdecl] fn__taskCombatHatedTargetsAroundPed; private delegate* unmanaged[Cdecl] fn__taskCombatHatedTargetsAroundPedTimed; private delegate* unmanaged[Cdecl] fn__taskThrowProjectile; - private delegate* unmanaged[Cdecl] fn__taskSwapWeapon; - private delegate* unmanaged[Cdecl] fn__taskReloadWeapon; - private delegate* unmanaged[Cdecl] fn__isPedGettingUp; + private delegate* unmanaged[Cdecl] fn__taskSwapWeapon; + private delegate* unmanaged[Cdecl] fn__taskReloadWeapon; + private delegate* unmanaged[Cdecl] fn__isPedGettingUp; private delegate* unmanaged[Cdecl] fn__taskWrithe; - private delegate* unmanaged[Cdecl] fn__isPedInWrithe; + private delegate* unmanaged[Cdecl] fn__isPedInWrithe; private delegate* unmanaged[Cdecl] fn__openPatrolRoute; private delegate* unmanaged[Cdecl] fn__closePatrolRoute; private delegate* unmanaged[Cdecl] fn__addPatrolRouteNode; private delegate* unmanaged[Cdecl] fn__addPatrolRouteLink; private delegate* unmanaged[Cdecl] fn__createPatrolRoute; private delegate* unmanaged[Cdecl] fn__deletePatrolRoute; - private delegate* unmanaged[Cdecl] fn__taskPatrol; + private delegate* unmanaged[Cdecl] fn__taskPatrol; private delegate* unmanaged[Cdecl] fn__taskStayInCover; private delegate* unmanaged[Cdecl] fn__addVehicleSubtaskAttackCoord; private delegate* unmanaged[Cdecl] fn__addVehicleSubtaskAttackPed; @@ -32512,78 +32512,78 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskVehicleShootAtCoord; private delegate* unmanaged[Cdecl] fn__taskVehicleAimAtCoord; private delegate* unmanaged[Cdecl] fn__taskVehicleGotoNavmesh; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordWhileAimingAtCoord; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordWhileAimingAtEntity; - private delegate* unmanaged[Cdecl] fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord; - private delegate* unmanaged[Cdecl] fn__taskGoToEntityWhileAimingAtCoord; - private delegate* unmanaged[Cdecl] fn__taskGoToEntityWhileAimingAtEntity; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordWhileAimingAtCoord; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordWhileAimingAtEntity; + private delegate* unmanaged[Cdecl] fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord; + private delegate* unmanaged[Cdecl] fn__taskGoToEntityWhileAimingAtCoord; + private delegate* unmanaged[Cdecl] fn__taskGoToEntityWhileAimingAtEntity; private delegate* unmanaged[Cdecl] fn__setHighFallTask; private delegate* unmanaged[Cdecl] fn__requestWaypointRecording; - private delegate* unmanaged[Cdecl] fn__getIsWaypointRecordingLoaded; + private delegate* unmanaged[Cdecl] fn__getIsWaypointRecordingLoaded; private delegate* unmanaged[Cdecl] fn__removeWaypointRecording; - private delegate* unmanaged[Cdecl] fn__waypointRecordingGetNumPoints; - private delegate* unmanaged[Cdecl] fn__waypointRecordingGetCoord; + private delegate* unmanaged[Cdecl] fn__waypointRecordingGetNumPoints; + private delegate* unmanaged[Cdecl] fn__waypointRecordingGetCoord; private delegate* unmanaged[Cdecl] fn__waypointRecordingGetSpeedAtPoint; - private delegate* unmanaged[Cdecl] fn__waypointRecordingGetClosestWaypoint; + private delegate* unmanaged[Cdecl] fn__waypointRecordingGetClosestWaypoint; private delegate* unmanaged[Cdecl] fn__taskFollowWaypointRecording; - private delegate* unmanaged[Cdecl] fn__isWaypointPlaybackGoingOnForPed; + private delegate* unmanaged[Cdecl] fn__isWaypointPlaybackGoingOnForPed; private delegate* unmanaged[Cdecl] fn__getPedWaypointProgress; private delegate* unmanaged[Cdecl] fn__getPedWaypointDistance; private delegate* unmanaged[Cdecl] fn__setPedWaypointRouteOffset; private delegate* unmanaged[Cdecl] fn__getWaypointDistanceAlongRoute; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackGetIsPaused; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackPause; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackResume; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackOverrideSpeed; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackGetIsPaused; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackPause; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackResume; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackOverrideSpeed; private delegate* unmanaged[Cdecl] fn__waypointPlaybackUseDefaultSpeed; - private delegate* unmanaged[Cdecl] fn__useWaypointRecordingAsAssistedMovementRoute; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartAimingAtPed; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartAimingAtCoord; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartShootingAtPed; - private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartShootingAtCoord; + private delegate* unmanaged[Cdecl] fn__useWaypointRecordingAsAssistedMovementRoute; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartAimingAtPed; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartAimingAtCoord; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartShootingAtPed; + private delegate* unmanaged[Cdecl] fn__waypointPlaybackStartShootingAtCoord; private delegate* unmanaged[Cdecl] fn__waypointPlaybackStopAimingOrShooting; private delegate* unmanaged[Cdecl] fn__assistedMovementRequestRoute; private delegate* unmanaged[Cdecl] fn__assistedMovementRemoveRoute; - private delegate* unmanaged[Cdecl] fn__assistedMovementIsRouteLoaded; + private delegate* unmanaged[Cdecl] fn__assistedMovementIsRouteLoaded; private delegate* unmanaged[Cdecl] fn__assistedMovementSetRouteProperties; private delegate* unmanaged[Cdecl] fn__assistedMovementOverrideLoadDistanceThisFrame; - private delegate* unmanaged[Cdecl] fn__taskVehicleFollowWaypointRecording; - private delegate* unmanaged[Cdecl] fn__isWaypointPlaybackGoingOnForVehicle; + private delegate* unmanaged[Cdecl] fn__taskVehicleFollowWaypointRecording; + private delegate* unmanaged[Cdecl] fn__isWaypointPlaybackGoingOnForVehicle; private delegate* unmanaged[Cdecl] fn__getVehicleWaypointProgress; private delegate* unmanaged[Cdecl] fn__getVehicleWaypointTargetPoint; private delegate* unmanaged[Cdecl] fn__vehicleWaypointPlaybackPause; private delegate* unmanaged[Cdecl] fn__vehicleWaypointPlaybackResume; private delegate* unmanaged[Cdecl] fn__vehicleWaypointPlaybackUseDefaultSpeed; private delegate* unmanaged[Cdecl] fn__vehicleWaypointPlaybackOverrideSpeed; - private delegate* unmanaged[Cdecl] fn__taskSetBlockingOfNonTemporaryEvents; - private delegate* unmanaged[Cdecl] fn__taskForceMotionState; - private delegate* unmanaged[Cdecl] fn__taskMoveNetworkByName; - private delegate* unmanaged[Cdecl] fn__taskMoveNetworkAdvancedByName; - private delegate* unmanaged[Cdecl] fn__taskMoveNetworkByNameWithInitParams; + private delegate* unmanaged[Cdecl] fn__taskSetBlockingOfNonTemporaryEvents; + private delegate* unmanaged[Cdecl] fn__taskForceMotionState; + private delegate* unmanaged[Cdecl] fn__taskMoveNetworkByName; + private delegate* unmanaged[Cdecl] fn__taskMoveNetworkAdvancedByName; + private delegate* unmanaged[Cdecl] fn__taskMoveNetworkByNameWithInitParams; private delegate* unmanaged[Cdecl] fn__0x29682E2CCF21E9B5; - private delegate* unmanaged[Cdecl] fn__isTaskMoveNetworkActive; - private delegate* unmanaged[Cdecl] fn__isTaskMoveNetworkReadyForTransition; - private delegate* unmanaged[Cdecl] fn__requestTaskMoveNetworkStateTransition; + private delegate* unmanaged[Cdecl] fn__isTaskMoveNetworkActive; + private delegate* unmanaged[Cdecl] fn__isTaskMoveNetworkReadyForTransition; + private delegate* unmanaged[Cdecl] fn__requestTaskMoveNetworkStateTransition; private delegate* unmanaged[Cdecl] fn__0xAB13A5565480B6D9; private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkState; private delegate* unmanaged[Cdecl] fn__0x8423541E8B3A1589; private delegate* unmanaged[Cdecl] fn__setTaskMoveNetworkSignalFloat; private delegate* unmanaged[Cdecl] fn__setTaskMoveNetworkSignalFloat2; private delegate* unmanaged[Cdecl] fn__0x8634CEF2522D987B; - private delegate* unmanaged[Cdecl] fn__setTaskMoveNetworkSignalBool; + private delegate* unmanaged[Cdecl] fn__setTaskMoveNetworkSignalBool; private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkSignalFloat; - private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkSignalBool; - private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkEvent; - private delegate* unmanaged[Cdecl] fn__0x0FFB3C758E8C07B9; - private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioStill; - private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioWalking; - private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioRunning; - private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioSprinting; - private delegate* unmanaged[Cdecl] fn__isPedStill; - private delegate* unmanaged[Cdecl] fn__isPedWalking; - private delegate* unmanaged[Cdecl] fn__isPedRunning; - private delegate* unmanaged[Cdecl] fn__isPedSprinting; - private delegate* unmanaged[Cdecl] fn__isPedStrafing; + private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkSignalBool; + private delegate* unmanaged[Cdecl] fn__getTaskMoveNetworkEvent; + private delegate* unmanaged[Cdecl] fn__0x0FFB3C758E8C07B9; + private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioStill; + private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioWalking; + private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioRunning; + private delegate* unmanaged[Cdecl] fn__isMoveBlendRatioSprinting; + private delegate* unmanaged[Cdecl] fn__isPedStill; + private delegate* unmanaged[Cdecl] fn__isPedWalking; + private delegate* unmanaged[Cdecl] fn__isPedRunning; + private delegate* unmanaged[Cdecl] fn__isPedSprinting; + private delegate* unmanaged[Cdecl] fn__isPedStrafing; private delegate* unmanaged[Cdecl] fn__taskSynchronizedScene; private delegate* unmanaged[Cdecl] fn__taskAgitatedAction; private delegate* unmanaged[Cdecl] fn__taskSweepAimEntity; @@ -32591,137 +32591,137 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__taskSweepAimPosition; private delegate* unmanaged[Cdecl] fn__updateTaskSweepAimPosition; private delegate* unmanaged[Cdecl] fn__taskArrestPed; - private delegate* unmanaged[Cdecl] fn__isPedRunningArrestTask; - private delegate* unmanaged[Cdecl] fn__isPedBeingArrested; + private delegate* unmanaged[Cdecl] fn__isPedRunningArrestTask; + private delegate* unmanaged[Cdecl] fn__isPedBeingArrested; private delegate* unmanaged[Cdecl] fn__uncuffPed; - private delegate* unmanaged[Cdecl] fn__isPedCuffed; - private delegate* unmanaged[Cdecl] fn__createVehicle; + private delegate* unmanaged[Cdecl] fn__isPedCuffed; + private delegate* unmanaged[Cdecl] fn__createVehicle; private delegate* unmanaged[Cdecl] fn__deleteVehicle; - private delegate* unmanaged[Cdecl] fn__0x7D6F9A3EF26136A0; - private delegate* unmanaged[Cdecl] fn__setVehicleCanBeLockedOn; - private delegate* unmanaged[Cdecl] fn__setVehicleAllowNoPassengersLockon; + private delegate* unmanaged[Cdecl] fn__0x7D6F9A3EF26136A0; + private delegate* unmanaged[Cdecl] fn__setVehicleCanBeLockedOn; + private delegate* unmanaged[Cdecl] fn__setVehicleAllowNoPassengersLockon; private delegate* unmanaged[Cdecl] fn__getVehicleHomingLockonState; private delegate* unmanaged[Cdecl] fn__0x6EAAEFC76ACC311F; private delegate* unmanaged[Cdecl] fn__0x407DC5E97DB1A4D3; - private delegate* unmanaged[Cdecl] fn__isVehicleModel; - private delegate* unmanaged[Cdecl] fn__doesScriptVehicleGeneratorExist; - private delegate* unmanaged[Cdecl] fn__createScriptVehicleGenerator; + private delegate* unmanaged[Cdecl] fn__isVehicleModel; + private delegate* unmanaged[Cdecl] fn__doesScriptVehicleGeneratorExist; + private delegate* unmanaged[Cdecl] fn__createScriptVehicleGenerator; private delegate* unmanaged[Cdecl] fn__deleteScriptVehicleGenerator; - private delegate* unmanaged[Cdecl] fn__setScriptVehicleGenerator; - private delegate* unmanaged[Cdecl] fn__setAllVehicleGeneratorsActiveInArea; + private delegate* unmanaged[Cdecl] fn__setScriptVehicleGenerator; + private delegate* unmanaged[Cdecl] fn__setAllVehicleGeneratorsActiveInArea; private delegate* unmanaged[Cdecl] fn__setAllVehicleGeneratorsActive; - private delegate* unmanaged[Cdecl] fn__setAllLowPriorityVehicleGeneratorsActive; + private delegate* unmanaged[Cdecl] fn__setAllLowPriorityVehicleGeneratorsActive; private delegate* unmanaged[Cdecl] fn__0x9A75585FB2E54FAD; private delegate* unmanaged[Cdecl] fn__0x0A436B8643716D14; - private delegate* unmanaged[Cdecl] fn__setVehicleOnGroundProperly; - private delegate* unmanaged[Cdecl] fn__setVehicleUseCutsceneWheelCompression; - private delegate* unmanaged[Cdecl] fn__isVehicleStuckOnRoof; + private delegate* unmanaged[Cdecl] fn__setVehicleOnGroundProperly; + private delegate* unmanaged[Cdecl] fn__setVehicleUseCutsceneWheelCompression; + private delegate* unmanaged[Cdecl] fn__isVehicleStuckOnRoof; private delegate* unmanaged[Cdecl] fn__addVehicleUpsidedownCheck; private delegate* unmanaged[Cdecl] fn__removeVehicleUpsidedownCheck; - private delegate* unmanaged[Cdecl] fn__isVehicleStopped; + private delegate* unmanaged[Cdecl] fn__isVehicleStopped; private delegate* unmanaged[Cdecl] fn__getVehicleNumberOfPassengers; private delegate* unmanaged[Cdecl] fn__getVehicleMaxNumberOfPassengers; private delegate* unmanaged[Cdecl] fn__getVehicleModelNumberOfSeats; - private delegate* unmanaged[Cdecl] fn__isSeatWarpOnly; - private delegate* unmanaged[Cdecl] fn__isTurretSeat; - private delegate* unmanaged[Cdecl] fn__doesVehicleAllowRappel; + private delegate* unmanaged[Cdecl] fn__isSeatWarpOnly; + private delegate* unmanaged[Cdecl] fn__isTurretSeat; + private delegate* unmanaged[Cdecl] fn__doesVehicleAllowRappel; private delegate* unmanaged[Cdecl] fn__setVehicleDensityMultiplierThisFrame; private delegate* unmanaged[Cdecl] fn__setRandomVehicleDensityMultiplierThisFrame; private delegate* unmanaged[Cdecl] fn__setParkedVehicleDensityMultiplierThisFrame; - private delegate* unmanaged[Cdecl] fn__setDisableRandomTrainsThisFrame; + private delegate* unmanaged[Cdecl] fn__setDisableRandomTrainsThisFrame; private delegate* unmanaged[Cdecl] fn__setAmbientVehicleRangeMultiplierThisFrame; - private delegate* unmanaged[Cdecl] fn__setFarDrawVehicles; + private delegate* unmanaged[Cdecl] fn__setFarDrawVehicles; private delegate* unmanaged[Cdecl] fn__setNumberOfParkedVehicles; private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLocked; private delegate* unmanaged[Cdecl] fn__setVehicleIndividualDoorsLocked; - private delegate* unmanaged[Cdecl] fn__setVehicleHasMutedSirens; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForPlayer; - private delegate* unmanaged[Cdecl] fn__getVehicleDoorsLockedForPlayer; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForAllPlayers; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForNonScriptPlayers; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForTeam; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForUnk; + private delegate* unmanaged[Cdecl] fn__setVehicleHasMutedSirens; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForPlayer; + private delegate* unmanaged[Cdecl] fn__getVehicleDoorsLockedForPlayer; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForAllPlayers; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForNonScriptPlayers; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForTeam; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsLockedForUnk; private delegate* unmanaged[Cdecl] fn__0x76D26A22750E849E; - private delegate* unmanaged[Cdecl] fn__explodeVehicle; - private delegate* unmanaged[Cdecl] fn__setVehicleOutOfControl; - private delegate* unmanaged[Cdecl] fn__setVehicleTimedExplosion; + private delegate* unmanaged[Cdecl] fn__explodeVehicle; + private delegate* unmanaged[Cdecl] fn__setVehicleOutOfControl; + private delegate* unmanaged[Cdecl] fn__setVehicleTimedExplosion; private delegate* unmanaged[Cdecl] fn__addVehiclePhoneExplosiveDevice; private delegate* unmanaged[Cdecl] fn__clearVehiclePhoneExplosiveDevice; - private delegate* unmanaged[Cdecl] fn__hasVehiclePhoneExplosiveDevice; + private delegate* unmanaged[Cdecl] fn__hasVehiclePhoneExplosiveDevice; private delegate* unmanaged[Cdecl] fn__detonateVehiclePhoneExplosiveDevice; - private delegate* unmanaged[Cdecl] fn__setTaxiLights; - private delegate* unmanaged[Cdecl] fn__isTaxiLightOn; - private delegate* unmanaged[Cdecl] fn__isVehicleInGarageArea; + private delegate* unmanaged[Cdecl] fn__setTaxiLights; + private delegate* unmanaged[Cdecl] fn__isTaxiLightOn; + private delegate* unmanaged[Cdecl] fn__isVehicleInGarageArea; private delegate* unmanaged[Cdecl] fn__setVehicleColours; - private delegate* unmanaged[Cdecl] fn__setVehicleFullbeam; - private delegate* unmanaged[Cdecl] fn__setVehicleIsRacing; + private delegate* unmanaged[Cdecl] fn__setVehicleFullbeam; + private delegate* unmanaged[Cdecl] fn__setVehicleIsRacing; private delegate* unmanaged[Cdecl] fn__setVehicleCustomPrimaryColour; private delegate* unmanaged[Cdecl] fn__getVehicleCustomPrimaryColour; private delegate* unmanaged[Cdecl] fn__clearVehicleCustomPrimaryColour; - private delegate* unmanaged[Cdecl] fn__getIsVehiclePrimaryColourCustom; + private delegate* unmanaged[Cdecl] fn__getIsVehiclePrimaryColourCustom; private delegate* unmanaged[Cdecl] fn__setVehicleCustomSecondaryColour; private delegate* unmanaged[Cdecl] fn__getVehicleCustomSecondaryColour; private delegate* unmanaged[Cdecl] fn__clearVehicleCustomSecondaryColour; - private delegate* unmanaged[Cdecl] fn__getIsVehicleSecondaryColourCustom; + private delegate* unmanaged[Cdecl] fn__getIsVehicleSecondaryColourCustom; private delegate* unmanaged[Cdecl] fn__setVehicleEnveffScale; private delegate* unmanaged[Cdecl] fn__getVehicleEnveffScale; - private delegate* unmanaged[Cdecl] fn__setCanResprayVehicle; + private delegate* unmanaged[Cdecl] fn__setCanResprayVehicle; private delegate* unmanaged[Cdecl] fn__0xAB31EF4DE6800CE9; - private delegate* unmanaged[Cdecl] fn__0x1B212B26DD3C04DF; - private delegate* unmanaged[Cdecl] fn__forceSubmarineSurfaceMode; + private delegate* unmanaged[Cdecl] fn__0x1B212B26DD3C04DF; + private delegate* unmanaged[Cdecl] fn__forceSubmarineSurfaceMode; private delegate* unmanaged[Cdecl] fn__0xC67DB108A9ADE3BE; - private delegate* unmanaged[Cdecl] fn__setSubmarineCrushDepths; - private delegate* unmanaged[Cdecl] fn__getSubmarineIsBelowFirstCrushDepth; + private delegate* unmanaged[Cdecl] fn__setSubmarineCrushDepths; + private delegate* unmanaged[Cdecl] fn__getSubmarineIsBelowFirstCrushDepth; private delegate* unmanaged[Cdecl] fn__getSubmarineCrushDepthWarningState; private delegate* unmanaged[Cdecl] fn__0xED5EDE9E676643C9; - private delegate* unmanaged[Cdecl] fn__setBoatAnchor; - private delegate* unmanaged[Cdecl] fn__canAnchorBoatHere; - private delegate* unmanaged[Cdecl] fn__canAnchorBoatHere2; - private delegate* unmanaged[Cdecl] fn__setBoatFrozenWhenAnchored; - private delegate* unmanaged[Cdecl] fn__0xB28B1FE5BFADD7F5; + private delegate* unmanaged[Cdecl] fn__setBoatAnchor; + private delegate* unmanaged[Cdecl] fn__canAnchorBoatHere; + private delegate* unmanaged[Cdecl] fn__canAnchorBoatHere2; + private delegate* unmanaged[Cdecl] fn__setBoatFrozenWhenAnchored; + private delegate* unmanaged[Cdecl] fn__0xB28B1FE5BFADD7F5; private delegate* unmanaged[Cdecl] fn__setBoatMovementResistance; - private delegate* unmanaged[Cdecl] fn__isBoatAnchoredAndFrozen; - private delegate* unmanaged[Cdecl] fn__setBoatSinksWhenWrecked; + private delegate* unmanaged[Cdecl] fn__isBoatAnchoredAndFrozen; + private delegate* unmanaged[Cdecl] fn__setBoatSinksWhenWrecked; private delegate* unmanaged[Cdecl] fn__setBoatIsSinking; - private delegate* unmanaged[Cdecl] fn__setVehicleSiren; - private delegate* unmanaged[Cdecl] fn__isVehicleSirenOn; - private delegate* unmanaged[Cdecl] fn__isVehicleSirenAudioOn; - private delegate* unmanaged[Cdecl] fn__setVehicleStrong; + private delegate* unmanaged[Cdecl] fn__setVehicleSiren; + private delegate* unmanaged[Cdecl] fn__isVehicleSirenOn; + private delegate* unmanaged[Cdecl] fn__isVehicleSirenAudioOn; + private delegate* unmanaged[Cdecl] fn__setVehicleStrong; private delegate* unmanaged[Cdecl] fn__removeVehicleStuckCheck; private delegate* unmanaged[Cdecl] fn__getVehicleColours; - private delegate* unmanaged[Cdecl] fn__isVehicleSeatFree; - private delegate* unmanaged[Cdecl] fn__getPedInVehicleSeat; + private delegate* unmanaged[Cdecl] fn__isVehicleSeatFree; + private delegate* unmanaged[Cdecl] fn__getPedInVehicleSeat; private delegate* unmanaged[Cdecl] fn__getLastPedInVehicleSeat; - private delegate* unmanaged[Cdecl] fn__getVehicleLightsState; - private delegate* unmanaged[Cdecl] fn__isVehicleTyreBurst; + private delegate* unmanaged[Cdecl] fn__getVehicleLightsState; + private delegate* unmanaged[Cdecl] fn__isVehicleTyreBurst; private delegate* unmanaged[Cdecl] fn__setVehicleForwardSpeed; private delegate* unmanaged[Cdecl] fn__0x6501129C9E0FFA05; - private delegate* unmanaged[Cdecl] fn__bringVehicleToHalt; + private delegate* unmanaged[Cdecl] fn__bringVehicleToHalt; private delegate* unmanaged[Cdecl] fn__0xDCE97BDF8A0EABC8; - private delegate* unmanaged[Cdecl] fn__0x9849DE24FCF23CCC; + private delegate* unmanaged[Cdecl] fn__0x9849DE24FCF23CCC; private delegate* unmanaged[Cdecl] fn__0x8664170EF165C4A6; private delegate* unmanaged[Cdecl] fn__stopBringVehicleToHalt; - private delegate* unmanaged[Cdecl] fn__isVehicleBeingHalted; + private delegate* unmanaged[Cdecl] fn__isVehicleBeingHalted; private delegate* unmanaged[Cdecl] fn__setForkliftForkHeight; - private delegate* unmanaged[Cdecl] fn__isEntityAttachedToHandlerFrame; - private delegate* unmanaged[Cdecl] fn__isAnyEntityAttachedToHandlerFrame; + private delegate* unmanaged[Cdecl] fn__isEntityAttachedToHandlerFrame; + private delegate* unmanaged[Cdecl] fn__isAnyEntityAttachedToHandlerFrame; private delegate* unmanaged[Cdecl] fn__findVehicleCarryingThisEntity; - private delegate* unmanaged[Cdecl] fn__isHandlerFrameAboveContainer; + private delegate* unmanaged[Cdecl] fn__isHandlerFrameAboveContainer; private delegate* unmanaged[Cdecl] fn__0x6A98C2ECF57FA5D4; private delegate* unmanaged[Cdecl] fn__detachContainerFromHandlerFrame; - private delegate* unmanaged[Cdecl] fn__0x8AA9180DE2FEDD45; - private delegate* unmanaged[Cdecl] fn__setBoatDisableAvoidance; - private delegate* unmanaged[Cdecl] fn__isHeliLandingAreaBlocked; + private delegate* unmanaged[Cdecl] fn__0x8AA9180DE2FEDD45; + private delegate* unmanaged[Cdecl] fn__setBoatDisableAvoidance; + private delegate* unmanaged[Cdecl] fn__isHeliLandingAreaBlocked; private delegate* unmanaged[Cdecl] fn__0x107A473D7A6647A9; private delegate* unmanaged[Cdecl] fn__setHeliTurbulenceScalar; private delegate* unmanaged[Cdecl] fn__setCarBootOpen; - private delegate* unmanaged[Cdecl] fn__setVehicleTyreBurst; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorsShut; - private delegate* unmanaged[Cdecl] fn__setVehicleTyresCanBurst; - private delegate* unmanaged[Cdecl] fn__getVehicleTyresCanBurst; - private delegate* unmanaged[Cdecl] fn__setVehicleWheelsCanBreak; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorOpen; - private delegate* unmanaged[Cdecl] fn__0x3B458DDB57038F08; + private delegate* unmanaged[Cdecl] fn__setVehicleTyreBurst; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorsShut; + private delegate* unmanaged[Cdecl] fn__setVehicleTyresCanBurst; + private delegate* unmanaged[Cdecl] fn__getVehicleTyresCanBurst; + private delegate* unmanaged[Cdecl] fn__setVehicleWheelsCanBreak; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorOpen; + private delegate* unmanaged[Cdecl] fn__0x3B458DDB57038F08; private delegate* unmanaged[Cdecl] fn__0xA247F9EF01D8082E; private delegate* unmanaged[Cdecl] fn__removeVehicleWindow; private delegate* unmanaged[Cdecl] fn__rollDownWindows; @@ -32732,19 +32732,19 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__popOutVehicleWindscreen; private delegate* unmanaged[Cdecl] fn__ejectJb700Roof; private delegate* unmanaged[Cdecl] fn__setVehicleLights; - private delegate* unmanaged[Cdecl] fn__setVehicleUsePlayerLightSettings; + private delegate* unmanaged[Cdecl] fn__setVehicleUsePlayerLightSettings; private delegate* unmanaged[Cdecl] fn__setVehicleLightsMode; - private delegate* unmanaged[Cdecl] fn__setVehicleAlarm; + private delegate* unmanaged[Cdecl] fn__setVehicleAlarm; private delegate* unmanaged[Cdecl] fn__startVehicleAlarm; - private delegate* unmanaged[Cdecl] fn__isVehicleAlarmActivated; - private delegate* unmanaged[Cdecl] fn__setVehicleInteriorlight; - private delegate* unmanaged[Cdecl] fn__0x8821196D91FA2DE5; + private delegate* unmanaged[Cdecl] fn__isVehicleAlarmActivated; + private delegate* unmanaged[Cdecl] fn__setVehicleInteriorlight; + private delegate* unmanaged[Cdecl] fn__0x8821196D91FA2DE5; private delegate* unmanaged[Cdecl] fn__setVehicleLightMultiplier; private delegate* unmanaged[Cdecl] fn__attachVehicleToTrailer; private delegate* unmanaged[Cdecl] fn__attachVehicleOnToTrailer; private delegate* unmanaged[Cdecl] fn__stabiliseEntityAttachedToHeli; private delegate* unmanaged[Cdecl] fn__detachVehicleFromTrailer; - private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToTrailer; + private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToTrailer; private delegate* unmanaged[Cdecl] fn__setTrailerInverseMassScale; private delegate* unmanaged[Cdecl] fn__setTrailerLegsRaised; private delegate* unmanaged[Cdecl] fn__setTrailerLegsLowered; @@ -32754,21 +32754,21 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getNumberOfVehicleNumberPlates; private delegate* unmanaged[Cdecl] fn__setVehicleNumberPlateTextIndex; private delegate* unmanaged[Cdecl] fn__getVehicleNumberPlateTextIndex; - private delegate* unmanaged[Cdecl] fn__setRandomTrains; - private delegate* unmanaged[Cdecl] fn__createMissionTrain; - private delegate* unmanaged[Cdecl] fn__switchTrainTrack; + private delegate* unmanaged[Cdecl] fn__setRandomTrains; + private delegate* unmanaged[Cdecl] fn__createMissionTrain; + private delegate* unmanaged[Cdecl] fn__switchTrainTrack; private delegate* unmanaged[Cdecl] fn__setTrainTrackSpawnFrequency; private delegate* unmanaged[Cdecl] fn__0x2310A8F9421EBF43; private delegate* unmanaged[Cdecl] fn__deleteAllTrains; private delegate* unmanaged[Cdecl] fn__setTrainSpeed; private delegate* unmanaged[Cdecl] fn__setTrainCruiseSpeed; - private delegate* unmanaged[Cdecl] fn__setRandomBoats; - private delegate* unmanaged[Cdecl] fn__setRandomBoatsInMp; - private delegate* unmanaged[Cdecl] fn__setGarbageTrucks; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveStuckVehicleCheck; + private delegate* unmanaged[Cdecl] fn__setRandomBoats; + private delegate* unmanaged[Cdecl] fn__setRandomBoatsInMp; + private delegate* unmanaged[Cdecl] fn__setGarbageTrucks; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveStuckVehicleCheck; private delegate* unmanaged[Cdecl] fn__getVehicleRecordingId; private delegate* unmanaged[Cdecl] fn__requestVehicleRecording; - private delegate* unmanaged[Cdecl] fn__hasVehicleRecordingBeenLoaded; + private delegate* unmanaged[Cdecl] fn__hasVehicleRecordingBeenLoaded; private delegate* unmanaged[Cdecl] fn__removeVehicleRecording; private delegate* unmanaged[Cdecl] fn__getPositionOfVehicleRecordingIdAtTime; private delegate* unmanaged[Cdecl] fn__getPositionOfVehicleRecordingAtTime; @@ -32778,99 +32778,99 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getTotalDurationOfVehicleRecording; private delegate* unmanaged[Cdecl] fn__getPositionInRecording; private delegate* unmanaged[Cdecl] fn__getTimePositionInRecording; - private delegate* unmanaged[Cdecl] fn__startPlaybackRecordedVehicle; + private delegate* unmanaged[Cdecl] fn__startPlaybackRecordedVehicle; private delegate* unmanaged[Cdecl] fn__startPlaybackRecordedVehicleWithFlags; - private delegate* unmanaged[Cdecl] fn__forcePlaybackRecordedVehicleUpdate; + private delegate* unmanaged[Cdecl] fn__forcePlaybackRecordedVehicleUpdate; private delegate* unmanaged[Cdecl] fn__stopPlaybackRecordedVehicle; private delegate* unmanaged[Cdecl] fn__pausePlaybackRecordedVehicle; private delegate* unmanaged[Cdecl] fn__unpausePlaybackRecordedVehicle; - private delegate* unmanaged[Cdecl] fn__isPlaybackGoingOnForVehicle; - private delegate* unmanaged[Cdecl] fn__isPlaybackUsingAiGoingOnForVehicle; + private delegate* unmanaged[Cdecl] fn__isPlaybackGoingOnForVehicle; + private delegate* unmanaged[Cdecl] fn__isPlaybackUsingAiGoingOnForVehicle; private delegate* unmanaged[Cdecl] fn__getCurrentPlaybackForVehicle; private delegate* unmanaged[Cdecl] fn__skipToEndAndStopPlaybackRecordedVehicle; private delegate* unmanaged[Cdecl] fn__setPlaybackSpeed; private delegate* unmanaged[Cdecl] fn__startPlaybackRecordedVehicleUsingAi; private delegate* unmanaged[Cdecl] fn__skipTimeInPlaybackRecordedVehicle; private delegate* unmanaged[Cdecl] fn__setPlaybackToUseAi; - private delegate* unmanaged[Cdecl] fn__setPlaybackToUseAiTryToRevertBackLater; + private delegate* unmanaged[Cdecl] fn__setPlaybackToUseAiTryToRevertBackLater; private delegate* unmanaged[Cdecl] fn__0x5845066D8A1EA7F7; private delegate* unmanaged[Cdecl] fn__0x796A877E459B99EA; private delegate* unmanaged[Cdecl] fn__0xFAF2A78061FD9EF4; - private delegate* unmanaged[Cdecl] fn__0x063AE2B2CC273588; - private delegate* unmanaged[Cdecl] fn__explodeVehicleInCutscene; - private delegate* unmanaged[Cdecl] fn__addVehicleStuckCheckWithWarp; - private delegate* unmanaged[Cdecl] fn__setVehicleModelIsSuppressed; + private delegate* unmanaged[Cdecl] fn__0x063AE2B2CC273588; + private delegate* unmanaged[Cdecl] fn__explodeVehicleInCutscene; + private delegate* unmanaged[Cdecl] fn__addVehicleStuckCheckWithWarp; + private delegate* unmanaged[Cdecl] fn__setVehicleModelIsSuppressed; private delegate* unmanaged[Cdecl] fn__getRandomVehicleInSphere; private delegate* unmanaged[Cdecl] fn__getRandomVehicleFrontBumperInSphere; private delegate* unmanaged[Cdecl] fn__getRandomVehicleBackBumperInSphere; private delegate* unmanaged[Cdecl] fn__getClosestVehicle; private delegate* unmanaged[Cdecl] fn__getTrainCarriage; - private delegate* unmanaged[Cdecl] fn__isMissionTrain; + private delegate* unmanaged[Cdecl] fn__isMissionTrain; private delegate* unmanaged[Cdecl] fn__deleteMissionTrain; - private delegate* unmanaged[Cdecl] fn__setMissionTrainAsNoLongerNeeded; + private delegate* unmanaged[Cdecl] fn__setMissionTrainAsNoLongerNeeded; private delegate* unmanaged[Cdecl] fn__setMissionTrainCoords; - private delegate* unmanaged[Cdecl] fn__isThisModelABoat; - private delegate* unmanaged[Cdecl] fn__isThisModelAJetski; - private delegate* unmanaged[Cdecl] fn__isThisModelAPlane; - private delegate* unmanaged[Cdecl] fn__isThisModelAHeli; - private delegate* unmanaged[Cdecl] fn__isThisModelACar; - private delegate* unmanaged[Cdecl] fn__isThisModelATrain; - private delegate* unmanaged[Cdecl] fn__isThisModelABike; - private delegate* unmanaged[Cdecl] fn__isThisModelABicycle; - private delegate* unmanaged[Cdecl] fn__isThisModelAQuadbike; - private delegate* unmanaged[Cdecl] fn__isThisModelAnAmphibiousCar; - private delegate* unmanaged[Cdecl] fn__isThisModelAnAmphibiousQuadbike; + private delegate* unmanaged[Cdecl] fn__isThisModelABoat; + private delegate* unmanaged[Cdecl] fn__isThisModelAJetski; + private delegate* unmanaged[Cdecl] fn__isThisModelAPlane; + private delegate* unmanaged[Cdecl] fn__isThisModelAHeli; + private delegate* unmanaged[Cdecl] fn__isThisModelACar; + private delegate* unmanaged[Cdecl] fn__isThisModelATrain; + private delegate* unmanaged[Cdecl] fn__isThisModelABike; + private delegate* unmanaged[Cdecl] fn__isThisModelABicycle; + private delegate* unmanaged[Cdecl] fn__isThisModelAQuadbike; + private delegate* unmanaged[Cdecl] fn__isThisModelAnAmphibiousCar; + private delegate* unmanaged[Cdecl] fn__isThisModelAnAmphibiousQuadbike; private delegate* unmanaged[Cdecl] fn__setHeliBladesFullSpeed; private delegate* unmanaged[Cdecl] fn__setHeliBladesSpeed; private delegate* unmanaged[Cdecl] fn__0x99CAD8E7AFDB60FA; - private delegate* unmanaged[Cdecl] fn__setVehicleCanBeTargetted; - private delegate* unmanaged[Cdecl] fn__0xDBC631F109350B8C; - private delegate* unmanaged[Cdecl] fn__setVehicleCanBeVisiblyDamaged; - private delegate* unmanaged[Cdecl] fn__setVehicleHasUnbreakableLights; - private delegate* unmanaged[Cdecl] fn__0x2311DD7159F00582; + private delegate* unmanaged[Cdecl] fn__setVehicleCanBeTargetted; + private delegate* unmanaged[Cdecl] fn__0xDBC631F109350B8C; + private delegate* unmanaged[Cdecl] fn__setVehicleCanBeVisiblyDamaged; + private delegate* unmanaged[Cdecl] fn__setVehicleHasUnbreakableLights; + private delegate* unmanaged[Cdecl] fn__0x2311DD7159F00582; private delegate* unmanaged[Cdecl] fn__0x065D03A9D6B2C6B5; private delegate* unmanaged[Cdecl] fn__getVehicleDirtLevel; private delegate* unmanaged[Cdecl] fn__setVehicleDirtLevel; - private delegate* unmanaged[Cdecl] fn__isVehicleDamaged; - private delegate* unmanaged[Cdecl] fn__isVehicleDoorFullyOpen; - private delegate* unmanaged[Cdecl] fn__setVehicleEngineOn; - private delegate* unmanaged[Cdecl] fn__setVehicleUndriveable; - private delegate* unmanaged[Cdecl] fn__setVehicleProvidesCover; + private delegate* unmanaged[Cdecl] fn__isVehicleDamaged; + private delegate* unmanaged[Cdecl] fn__isVehicleDoorFullyOpen; + private delegate* unmanaged[Cdecl] fn__setVehicleEngineOn; + private delegate* unmanaged[Cdecl] fn__setVehicleUndriveable; + private delegate* unmanaged[Cdecl] fn__setVehicleProvidesCover; private delegate* unmanaged[Cdecl] fn__setVehicleDoorControl; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorLatched; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorLatched; private delegate* unmanaged[Cdecl] fn__getVehicleDoorAngleRatio; private delegate* unmanaged[Cdecl] fn__getPedUsingVehicleDoor; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorShut; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorBroken; - private delegate* unmanaged[Cdecl] fn__setVehicleCanBreak; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveRoof; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorShut; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorBroken; + private delegate* unmanaged[Cdecl] fn__setVehicleCanBreak; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveRoof; private delegate* unmanaged[Cdecl] fn__0xC4B3347BD68BD609; private delegate* unmanaged[Cdecl] fn__0xD3301660A57C9272; private delegate* unmanaged[Cdecl] fn__0xB9562064627FF9DB; - private delegate* unmanaged[Cdecl] fn__isBigVehicle; + private delegate* unmanaged[Cdecl] fn__isBigVehicle; private delegate* unmanaged[Cdecl] fn__getNumberOfVehicleColours; private delegate* unmanaged[Cdecl] fn__setVehicleColourCombination; private delegate* unmanaged[Cdecl] fn__getVehicleColourCombination; private delegate* unmanaged[Cdecl] fn__setVehicleXenonLightsColor; private delegate* unmanaged[Cdecl] fn__getVehicleXenonLightsColor; - private delegate* unmanaged[Cdecl] fn__setVehicleIsConsideredByPlayer; - private delegate* unmanaged[Cdecl] fn__0xBE5C1255A1830FF5; - private delegate* unmanaged[Cdecl] fn__0x9BECD4B9FEF3F8A6; - private delegate* unmanaged[Cdecl] fn__0x88BC673CA9E0AE99; - private delegate* unmanaged[Cdecl] fn__0xE851E480B814D4BA; - private delegate* unmanaged[Cdecl] fn__getRandomVehicleModelInMemory; + private delegate* unmanaged[Cdecl] fn__setVehicleIsConsideredByPlayer; + private delegate* unmanaged[Cdecl] fn__0xBE5C1255A1830FF5; + private delegate* unmanaged[Cdecl] fn__0x9BECD4B9FEF3F8A6; + private delegate* unmanaged[Cdecl] fn__0x88BC673CA9E0AE99; + private delegate* unmanaged[Cdecl] fn__0xE851E480B814D4BA; + private delegate* unmanaged[Cdecl] fn__getRandomVehicleModelInMemory; private delegate* unmanaged[Cdecl] fn__getVehicleDoorLockStatus; private delegate* unmanaged[Cdecl] fn__getVehicleDoorDestroyType; - private delegate* unmanaged[Cdecl] fn__isVehicleDoorDamaged; - private delegate* unmanaged[Cdecl] fn__setVehicleDoorCanBreak; - private delegate* unmanaged[Cdecl] fn__isVehicleBumperBouncing; - private delegate* unmanaged[Cdecl] fn__isVehicleBumperBrokenOff; - private delegate* unmanaged[Cdecl] fn__isCopVehicleInArea3d; - private delegate* unmanaged[Cdecl] fn__isVehicleOnAllWheels; + private delegate* unmanaged[Cdecl] fn__isVehicleDoorDamaged; + private delegate* unmanaged[Cdecl] fn__setVehicleDoorCanBreak; + private delegate* unmanaged[Cdecl] fn__isVehicleBumperBouncing; + private delegate* unmanaged[Cdecl] fn__isVehicleBumperBrokenOff; + private delegate* unmanaged[Cdecl] fn__isCopVehicleInArea3d; + private delegate* unmanaged[Cdecl] fn__isVehicleOnAllWheels; private delegate* unmanaged[Cdecl] fn__getVehicleModelMonetaryValue; private delegate* unmanaged[Cdecl] fn__getVehicleLayoutHash; private delegate* unmanaged[Cdecl] fn__0xA01BC64DD4BFBBAC; - private delegate* unmanaged[Cdecl] fn__setRenderTrainAsDerailed; + private delegate* unmanaged[Cdecl] fn__setRenderTrainAsDerailed; private delegate* unmanaged[Cdecl] fn__setVehicleExtraColours; private delegate* unmanaged[Cdecl] fn__getVehicleExtraColours; private delegate* unmanaged[Cdecl] fn__setVehicleInteriorColor; @@ -32880,47 +32880,47 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__stopAllGarageActivity; private delegate* unmanaged[Cdecl] fn__setVehicleFixed; private delegate* unmanaged[Cdecl] fn__setVehicleDeformationFixed; - private delegate* unmanaged[Cdecl] fn__setVehicleCanEngineOperateOnFire; - private delegate* unmanaged[Cdecl] fn__setVehicleCanLeakOil; - private delegate* unmanaged[Cdecl] fn__setVehicleCanLeakPetrol; - private delegate* unmanaged[Cdecl] fn__setDisableVehiclePetrolTankFires; - private delegate* unmanaged[Cdecl] fn__setDisableVehiclePetrolTankDamage; - private delegate* unmanaged[Cdecl] fn__setDisableVehicleEngineFires; - private delegate* unmanaged[Cdecl] fn__0xC50CE861B55EAB8B; - private delegate* unmanaged[Cdecl] fn__0x6EBFB22D646FFC18; - private delegate* unmanaged[Cdecl] fn__setDisablePretendOccupants; + private delegate* unmanaged[Cdecl] fn__setVehicleCanEngineOperateOnFire; + private delegate* unmanaged[Cdecl] fn__setVehicleCanLeakOil; + private delegate* unmanaged[Cdecl] fn__setVehicleCanLeakPetrol; + private delegate* unmanaged[Cdecl] fn__setDisableVehiclePetrolTankFires; + private delegate* unmanaged[Cdecl] fn__setDisableVehiclePetrolTankDamage; + private delegate* unmanaged[Cdecl] fn__setDisableVehicleEngineFires; + private delegate* unmanaged[Cdecl] fn__0xC50CE861B55EAB8B; + private delegate* unmanaged[Cdecl] fn__0x6EBFB22D646FFC18; + private delegate* unmanaged[Cdecl] fn__setDisablePretendOccupants; private delegate* unmanaged[Cdecl] fn__removeVehiclesFromGeneratorsInArea; private delegate* unmanaged[Cdecl] fn__setVehicleSteerBias; - private delegate* unmanaged[Cdecl] fn__isVehicleExtraTurnedOn; - private delegate* unmanaged[Cdecl] fn__setVehicleExtra; - private delegate* unmanaged[Cdecl] fn__doesExtraExist; - private delegate* unmanaged[Cdecl] fn__doesVehicleTyreExist; - private delegate* unmanaged[Cdecl] fn__setConvertibleRoof; - private delegate* unmanaged[Cdecl] fn__lowerConvertibleRoof; - private delegate* unmanaged[Cdecl] fn__raiseConvertibleRoof; + private delegate* unmanaged[Cdecl] fn__isVehicleExtraTurnedOn; + private delegate* unmanaged[Cdecl] fn__setVehicleExtra; + private delegate* unmanaged[Cdecl] fn__doesExtraExist; + private delegate* unmanaged[Cdecl] fn__doesVehicleTyreExist; + private delegate* unmanaged[Cdecl] fn__setConvertibleRoof; + private delegate* unmanaged[Cdecl] fn__lowerConvertibleRoof; + private delegate* unmanaged[Cdecl] fn__raiseConvertibleRoof; private delegate* unmanaged[Cdecl] fn__getConvertibleRoofState; - private delegate* unmanaged[Cdecl] fn__isVehicleAConvertible; - private delegate* unmanaged[Cdecl] fn__transformVehicleToSubmarine; - private delegate* unmanaged[Cdecl] fn__transformSubmarineToVehicle; - private delegate* unmanaged[Cdecl] fn__getIsSubmarineVehicleTransformed; - private delegate* unmanaged[Cdecl] fn__isVehicleStoppedAtTrafficLights; - private delegate* unmanaged[Cdecl] fn__setVehicleDamage; + private delegate* unmanaged[Cdecl] fn__isVehicleAConvertible; + private delegate* unmanaged[Cdecl] fn__transformVehicleToSubmarine; + private delegate* unmanaged[Cdecl] fn__transformSubmarineToVehicle; + private delegate* unmanaged[Cdecl] fn__getIsSubmarineVehicleTransformed; + private delegate* unmanaged[Cdecl] fn__isVehicleStoppedAtTrafficLights; + private delegate* unmanaged[Cdecl] fn__setVehicleDamage; private delegate* unmanaged[Cdecl] fn__0x35BB21DE06784373; private delegate* unmanaged[Cdecl] fn__getVehicleEngineHealth; private delegate* unmanaged[Cdecl] fn__setVehicleEngineHealth; private delegate* unmanaged[Cdecl] fn__setPlaneEngineHealth; private delegate* unmanaged[Cdecl] fn__getVehiclePetrolTankHealth; private delegate* unmanaged[Cdecl] fn__setVehiclePetrolTankHealth; - private delegate* unmanaged[Cdecl] fn__isVehicleStuckTimerUp; + private delegate* unmanaged[Cdecl] fn__isVehicleStuckTimerUp; private delegate* unmanaged[Cdecl] fn__resetVehicleStuckTimer; - private delegate* unmanaged[Cdecl] fn__isVehicleDriveable; - private delegate* unmanaged[Cdecl] fn__setVehicleHasBeenOwnedByPlayer; - private delegate* unmanaged[Cdecl] fn__setVehicleNeedsToBeHotwired; - private delegate* unmanaged[Cdecl] fn__0x9F3F689B814F2599; - private delegate* unmanaged[Cdecl] fn__0x4E74E62E0A97E901; - private delegate* unmanaged[Cdecl] fn__startVehicleHorn; - private delegate* unmanaged[Cdecl] fn__setVehicleSilent; - private delegate* unmanaged[Cdecl] fn__setVehicleHasStrongAxles; + private delegate* unmanaged[Cdecl] fn__isVehicleDriveable; + private delegate* unmanaged[Cdecl] fn__setVehicleHasBeenOwnedByPlayer; + private delegate* unmanaged[Cdecl] fn__setVehicleNeedsToBeHotwired; + private delegate* unmanaged[Cdecl] fn__0x9F3F689B814F2599; + private delegate* unmanaged[Cdecl] fn__0x4E74E62E0A97E901; + private delegate* unmanaged[Cdecl] fn__startVehicleHorn; + private delegate* unmanaged[Cdecl] fn__setVehicleSilent; + private delegate* unmanaged[Cdecl] fn__setVehicleHasStrongAxles; private delegate* unmanaged[Cdecl] fn__getDisplayNameFromVehicleModel; private delegate* unmanaged[Cdecl] fn__getMakeNameFromVehicleModel; private delegate* unmanaged[Cdecl] fn__getVehicleDeformationAtPos; @@ -32930,41 +32930,41 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setVehicleRoofLivery; private delegate* unmanaged[Cdecl] fn__getVehicleRoofLivery; private delegate* unmanaged[Cdecl] fn__getVehicleRoofLiveryCount; - private delegate* unmanaged[Cdecl] fn__isVehicleWindowIntact; - private delegate* unmanaged[Cdecl] fn__areAllVehicleWindowsIntact; - private delegate* unmanaged[Cdecl] fn__areAnyVehicleSeatsFree; - private delegate* unmanaged[Cdecl] fn__resetVehicleWheels; - private delegate* unmanaged[Cdecl] fn__isHeliPartBroken; + private delegate* unmanaged[Cdecl] fn__isVehicleWindowIntact; + private delegate* unmanaged[Cdecl] fn__areAllVehicleWindowsIntact; + private delegate* unmanaged[Cdecl] fn__areAnyVehicleSeatsFree; + private delegate* unmanaged[Cdecl] fn__resetVehicleWheels; + private delegate* unmanaged[Cdecl] fn__isHeliPartBroken; private delegate* unmanaged[Cdecl] fn__getHeliMainRotorHealth; private delegate* unmanaged[Cdecl] fn__getHeliTailRotorHealth; private delegate* unmanaged[Cdecl] fn__getHeliTailBoomHealth; private delegate* unmanaged[Cdecl] fn__setHeliMainRotorHealth; private delegate* unmanaged[Cdecl] fn__setHeliTailRotorHealth; - private delegate* unmanaged[Cdecl] fn__setHeliTailExplodeThrowDashboard; + private delegate* unmanaged[Cdecl] fn__setHeliTailExplodeThrowDashboard; private delegate* unmanaged[Cdecl] fn__setVehicleNameDebug; - private delegate* unmanaged[Cdecl] fn__setVehicleExplodesOnHighExplosionDamage; + private delegate* unmanaged[Cdecl] fn__setVehicleExplodesOnHighExplosionDamage; private delegate* unmanaged[Cdecl] fn__0xD565F438137F0E10; - private delegate* unmanaged[Cdecl] fn__0x3441CAD2F2231923; - private delegate* unmanaged[Cdecl] fn__setVehicleDisableTowing; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveLandingGear; + private delegate* unmanaged[Cdecl] fn__0x3441CAD2F2231923; + private delegate* unmanaged[Cdecl] fn__setVehicleDisableTowing; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveLandingGear; private delegate* unmanaged[Cdecl] fn__controlLandingGear; private delegate* unmanaged[Cdecl] fn__getLandingGearState; - private delegate* unmanaged[Cdecl] fn__isAnyVehicleNearPoint; + private delegate* unmanaged[Cdecl] fn__isAnyVehicleNearPoint; private delegate* unmanaged[Cdecl] fn__requestVehicleHighDetailModel; private delegate* unmanaged[Cdecl] fn__removeVehicleHighDetailModel; - private delegate* unmanaged[Cdecl] fn__isVehicleHighDetail; + private delegate* unmanaged[Cdecl] fn__isVehicleHighDetail; private delegate* unmanaged[Cdecl] fn__requestVehicleAsset; - private delegate* unmanaged[Cdecl] fn__hasVehicleAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasVehicleAssetLoaded; private delegate* unmanaged[Cdecl] fn__removeVehicleAsset; private delegate* unmanaged[Cdecl] fn__setVehicleTowTruckArmPosition; - private delegate* unmanaged[Cdecl] fn__attachVehicleToTowTruck; + private delegate* unmanaged[Cdecl] fn__attachVehicleToTowTruck; private delegate* unmanaged[Cdecl] fn__detachVehicleFromTowTruck; - private delegate* unmanaged[Cdecl] fn__detachVehicleFromAnyTowTruck; - private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToTowTruck; + private delegate* unmanaged[Cdecl] fn__detachVehicleFromAnyTowTruck; + private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToTowTruck; private delegate* unmanaged[Cdecl] fn__getEntityAttachedToTowTruck; - private delegate* unmanaged[Cdecl] fn__setVehicleAutomaticallyAttaches; - private delegate* unmanaged[Cdecl] fn__setVehicleBulldozerArmPosition; - private delegate* unmanaged[Cdecl] fn__setVehicleTankTurretPosition; + private delegate* unmanaged[Cdecl] fn__setVehicleAutomaticallyAttaches; + private delegate* unmanaged[Cdecl] fn__setVehicleBulldozerArmPosition; + private delegate* unmanaged[Cdecl] fn__setVehicleTankTurretPosition; private delegate* unmanaged[Cdecl] fn__0x0581730AB9380412; private delegate* unmanaged[Cdecl] fn__0x737E398138550FFF; private delegate* unmanaged[Cdecl] fn__setVehicleTurretSpeedThisFrame; @@ -32972,24 +32972,24 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setVehicleFlightNozzlePosition; private delegate* unmanaged[Cdecl] fn__setVehicleFlightNozzlePositionImmediate; private delegate* unmanaged[Cdecl] fn__getVehicleFlightNozzlePosition; - private delegate* unmanaged[Cdecl] fn__setDisableVehicleFlightNozzlePosition; - private delegate* unmanaged[Cdecl] fn__0xA4822F1CF23F4810; - private delegate* unmanaged[Cdecl] fn__setVehicleBurnout; - private delegate* unmanaged[Cdecl] fn__isVehicleInBurnout; - private delegate* unmanaged[Cdecl] fn__setVehicleReduceGrip; + private delegate* unmanaged[Cdecl] fn__setDisableVehicleFlightNozzlePosition; + private delegate* unmanaged[Cdecl] fn__0xA4822F1CF23F4810; + private delegate* unmanaged[Cdecl] fn__setVehicleBurnout; + private delegate* unmanaged[Cdecl] fn__isVehicleInBurnout; + private delegate* unmanaged[Cdecl] fn__setVehicleReduceGrip; private delegate* unmanaged[Cdecl] fn__setVehicleReduceTraction; - private delegate* unmanaged[Cdecl] fn__setVehicleIndicatorLights; - private delegate* unmanaged[Cdecl] fn__setVehicleBrakeLights; - private delegate* unmanaged[Cdecl] fn__setVehicleHandbrake; - private delegate* unmanaged[Cdecl] fn__setVehicleBrake; + private delegate* unmanaged[Cdecl] fn__setVehicleIndicatorLights; + private delegate* unmanaged[Cdecl] fn__setVehicleBrakeLights; + private delegate* unmanaged[Cdecl] fn__setVehicleHandbrake; + private delegate* unmanaged[Cdecl] fn__setVehicleBrake; private delegate* unmanaged[Cdecl] fn__instantlyFillVehiclePopulation; - private delegate* unmanaged[Cdecl] fn__hasFilledVehiclePopulation; - private delegate* unmanaged[Cdecl] fn__0x51DB102F4A3BA5E0; + private delegate* unmanaged[Cdecl] fn__hasFilledVehiclePopulation; + private delegate* unmanaged[Cdecl] fn__0x51DB102F4A3BA5E0; private delegate* unmanaged[Cdecl] fn__0xA4A9A4C40E615885; - private delegate* unmanaged[Cdecl] fn__getVehicleTrailerVehicle; - private delegate* unmanaged[Cdecl] fn__setVehicleUsesLargeRearRamp; - private delegate* unmanaged[Cdecl] fn__setVehicleRudderBroken; - private delegate* unmanaged[Cdecl] fn__setConvertibleRoofLatchState; + private delegate* unmanaged[Cdecl] fn__getVehicleTrailerVehicle; + private delegate* unmanaged[Cdecl] fn__setVehicleUsesLargeRearRamp; + private delegate* unmanaged[Cdecl] fn__setVehicleRudderBroken; + private delegate* unmanaged[Cdecl] fn__setConvertibleRoofLatchState; private delegate* unmanaged[Cdecl] fn__getVehicleEstimatedMaxSpeed; private delegate* unmanaged[Cdecl] fn__getVehicleMaxBraking; private delegate* unmanaged[Cdecl] fn__getVehicleMaxTraction; @@ -33007,45 +33007,45 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getVehicleClassMaxAgility; private delegate* unmanaged[Cdecl] fn__getVehicleClassMaxAcceleration; private delegate* unmanaged[Cdecl] fn__getVehicleClassMaxBraking; - private delegate* unmanaged[Cdecl] fn__addRoadNodeSpeedZone; - private delegate* unmanaged[Cdecl] fn__removeRoadNodeSpeedZone; + private delegate* unmanaged[Cdecl] fn__addRoadNodeSpeedZone; + private delegate* unmanaged[Cdecl] fn__removeRoadNodeSpeedZone; private delegate* unmanaged[Cdecl] fn__openBombBayDoors; private delegate* unmanaged[Cdecl] fn__closeBombBayDoors; - private delegate* unmanaged[Cdecl] fn__areBombBayDoorsOpen; - private delegate* unmanaged[Cdecl] fn__isVehicleSearchlightOn; - private delegate* unmanaged[Cdecl] fn__setVehicleSearchlight; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveSearchlight; - private delegate* unmanaged[Cdecl] fn__isVehicleSeatAccessible; + private delegate* unmanaged[Cdecl] fn__areBombBayDoorsOpen; + private delegate* unmanaged[Cdecl] fn__isVehicleSearchlightOn; + private delegate* unmanaged[Cdecl] fn__setVehicleSearchlight; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveSearchlight; + private delegate* unmanaged[Cdecl] fn__isVehicleSeatAccessible; private delegate* unmanaged[Cdecl] fn__getEntryPositionOfDoor; - private delegate* unmanaged[Cdecl] fn__canShuffleSeat; + private delegate* unmanaged[Cdecl] fn__canShuffleSeat; private delegate* unmanaged[Cdecl] fn__getNumModKits; private delegate* unmanaged[Cdecl] fn__setVehicleModKit; private delegate* unmanaged[Cdecl] fn__getVehicleModKit; private delegate* unmanaged[Cdecl] fn__getVehicleModKitType; private delegate* unmanaged[Cdecl] fn__getVehicleWheelType; private delegate* unmanaged[Cdecl] fn__setVehicleWheelType; - private delegate* unmanaged[Cdecl] fn__getNumModColors; + private delegate* unmanaged[Cdecl] fn__getNumModColors; private delegate* unmanaged[Cdecl] fn__setVehicleModColor1; private delegate* unmanaged[Cdecl] fn__setVehicleModColor2; private delegate* unmanaged[Cdecl] fn__getVehicleModColor1; private delegate* unmanaged[Cdecl] fn__getVehicleModColor2; - private delegate* unmanaged[Cdecl] fn__getVehicleModColor1Name; + private delegate* unmanaged[Cdecl] fn__getVehicleModColor1Name; private delegate* unmanaged[Cdecl] fn__getVehicleModColor2Name; - private delegate* unmanaged[Cdecl] fn__haveVehicleModsStreamedIn; - private delegate* unmanaged[Cdecl] fn__setVehicleMod; + private delegate* unmanaged[Cdecl] fn__haveVehicleModsStreamedIn; + private delegate* unmanaged[Cdecl] fn__setVehicleMod; private delegate* unmanaged[Cdecl] fn__getVehicleMod; - private delegate* unmanaged[Cdecl] fn__getVehicleModVariation; + private delegate* unmanaged[Cdecl] fn__getVehicleModVariation; private delegate* unmanaged[Cdecl] fn__getNumVehicleMods; private delegate* unmanaged[Cdecl] fn__removeVehicleMod; - private delegate* unmanaged[Cdecl] fn__toggleVehicleMod; - private delegate* unmanaged[Cdecl] fn__isToggleModOn; + private delegate* unmanaged[Cdecl] fn__toggleVehicleMod; + private delegate* unmanaged[Cdecl] fn__isToggleModOn; private delegate* unmanaged[Cdecl] fn__getModTextLabel; private delegate* unmanaged[Cdecl] fn__getModSlotName; private delegate* unmanaged[Cdecl] fn__getLiveryName; private delegate* unmanaged[Cdecl] fn__getVehicleModModifierValue; private delegate* unmanaged[Cdecl] fn__getVehicleModIdentifierHash; private delegate* unmanaged[Cdecl] fn__preloadVehicleMod; - private delegate* unmanaged[Cdecl] fn__hasPreloadModsFinished; + private delegate* unmanaged[Cdecl] fn__hasPreloadModsFinished; private delegate* unmanaged[Cdecl] fn__releasePreloadMods; private delegate* unmanaged[Cdecl] fn__setVehicleTyreSmokeColor; private delegate* unmanaged[Cdecl] fn__getVehicleTyreSmokeColor; @@ -33056,92 +33056,92 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xEEBFC7A7EFDC35B4; private delegate* unmanaged[Cdecl] fn__getVehicleCauseOfDestruction; private delegate* unmanaged[Cdecl] fn__0x5EE5632F47AE9695; - private delegate* unmanaged[Cdecl] fn__getIsLeftVehicleHeadlightDamaged; - private delegate* unmanaged[Cdecl] fn__getIsRightVehicleHeadlightDamaged; - private delegate* unmanaged[Cdecl] fn__isVehicleEngineOnFire; + private delegate* unmanaged[Cdecl] fn__getIsLeftVehicleHeadlightDamaged; + private delegate* unmanaged[Cdecl] fn__getIsRightVehicleHeadlightDamaged; + private delegate* unmanaged[Cdecl] fn__isVehicleEngineOnFire; private delegate* unmanaged[Cdecl] fn__modifyVehicleTopSpeed; private delegate* unmanaged[Cdecl] fn__setVehicleMaxSpeed; - private delegate* unmanaged[Cdecl] fn__0x1CF38D529D7441D9; - private delegate* unmanaged[Cdecl] fn__0x1F9FB66F3A3842D2; - private delegate* unmanaged[Cdecl] fn__0x59C3757B3B7408E8; + private delegate* unmanaged[Cdecl] fn__0x1CF38D529D7441D9; + private delegate* unmanaged[Cdecl] fn__0x1F9FB66F3A3842D2; + private delegate* unmanaged[Cdecl] fn__0x59C3757B3B7408E8; private delegate* unmanaged[Cdecl] fn__addVehicleCombatAngledAvoidanceArea; private delegate* unmanaged[Cdecl] fn__removeVehicleCombatAvoidanceArea; - private delegate* unmanaged[Cdecl] fn__isAnyPedRappellingFromHeli; + private delegate* unmanaged[Cdecl] fn__isAnyPedRappellingFromHeli; private delegate* unmanaged[Cdecl] fn__setVehicleCheatPowerIncrease; - private delegate* unmanaged[Cdecl] fn__0x0AD9E8F87FF7C16F; - private delegate* unmanaged[Cdecl] fn__setVehicleIsWanted; + private delegate* unmanaged[Cdecl] fn__0x0AD9E8F87FF7C16F; + private delegate* unmanaged[Cdecl] fn__setVehicleIsWanted; private delegate* unmanaged[Cdecl] fn__setBoatBoomPositionRatio; - private delegate* unmanaged[Cdecl] fn__getBoatBoomPositionRatio2; - private delegate* unmanaged[Cdecl] fn__getBoatBoomPositionRatio3; + private delegate* unmanaged[Cdecl] fn__getBoatBoomPositionRatio2; + private delegate* unmanaged[Cdecl] fn__getBoatBoomPositionRatio3; private delegate* unmanaged[Cdecl] fn__getBoatBoomPositionRatio; - private delegate* unmanaged[Cdecl] fn__disablePlaneAileron; - private delegate* unmanaged[Cdecl] fn__getIsVehicleEngineRunning; - private delegate* unmanaged[Cdecl] fn__setVehicleUseAlternateHandling; + private delegate* unmanaged[Cdecl] fn__disablePlaneAileron; + private delegate* unmanaged[Cdecl] fn__getIsVehicleEngineRunning; + private delegate* unmanaged[Cdecl] fn__setVehicleUseAlternateHandling; private delegate* unmanaged[Cdecl] fn__setBikeOnStand; - private delegate* unmanaged[Cdecl] fn__0xAB04325045427AAE; + private delegate* unmanaged[Cdecl] fn__0xAB04325045427AAE; private delegate* unmanaged[Cdecl] fn__0xCFD778E7904C255E; private delegate* unmanaged[Cdecl] fn__setLastDrivenVehicle; private delegate* unmanaged[Cdecl] fn__getLastDrivenVehicle; private delegate* unmanaged[Cdecl] fn__clearLastDrivenVehicle; - private delegate* unmanaged[Cdecl] fn__setVehicleHasBeenDrivenFlag; + private delegate* unmanaged[Cdecl] fn__setVehicleHasBeenDrivenFlag; private delegate* unmanaged[Cdecl] fn__setTaskVehicleGotoPlaneMinHeightAboveTerrain; private delegate* unmanaged[Cdecl] fn__setVehicleLodMultiplier; - private delegate* unmanaged[Cdecl] fn__setVehicleCanSaveInGarage; + private delegate* unmanaged[Cdecl] fn__setVehicleCanSaveInGarage; private delegate* unmanaged[Cdecl] fn__getVehicleNumberOfBrokenOffBones; private delegate* unmanaged[Cdecl] fn__getVehicleNumberOfBrokenBones; - private delegate* unmanaged[Cdecl] fn__0x4D9D109F63FEE1D4; - private delegate* unmanaged[Cdecl] fn__setVehicleGeneratesEngineShockingEvents; + private delegate* unmanaged[Cdecl] fn__0x4D9D109F63FEE1D4; + private delegate* unmanaged[Cdecl] fn__setVehicleGeneratesEngineShockingEvents; private delegate* unmanaged[Cdecl] fn__copyVehicleDamages; private delegate* unmanaged[Cdecl] fn__0xF25E02CB9C5818F8; private delegate* unmanaged[Cdecl] fn__setLightsCutoffDistanceTweak; private delegate* unmanaged[Cdecl] fn__setVehicleShootAtTarget; - private delegate* unmanaged[Cdecl] fn__getVehicleLockOnTarget; - private delegate* unmanaged[Cdecl] fn__setForceHdVehicle; + private delegate* unmanaged[Cdecl] fn__getVehicleLockOnTarget; + private delegate* unmanaged[Cdecl] fn__setForceHdVehicle; private delegate* unmanaged[Cdecl] fn__0x182F266C2D9E2BEB; private delegate* unmanaged[Cdecl] fn__getVehiclePlateType; private delegate* unmanaged[Cdecl] fn__trackVehicleVisibility; - private delegate* unmanaged[Cdecl] fn__isVehicleVisible; - private delegate* unmanaged[Cdecl] fn__setVehicleGravity; - private delegate* unmanaged[Cdecl] fn__setEnableVehicleSlipstreaming; + private delegate* unmanaged[Cdecl] fn__isVehicleVisible; + private delegate* unmanaged[Cdecl] fn__setVehicleGravity; + private delegate* unmanaged[Cdecl] fn__setEnableVehicleSlipstreaming; private delegate* unmanaged[Cdecl] fn__0xF051D9BFB6BA39C0; private delegate* unmanaged[Cdecl] fn__getVehicleCurrentSlipstreamDraft; - private delegate* unmanaged[Cdecl] fn__isVehicleSlipstreamLeader; - private delegate* unmanaged[Cdecl] fn__setVehicleInactiveDuringPlayback; - private delegate* unmanaged[Cdecl] fn__setVehicleActiveDuringPlayback; - private delegate* unmanaged[Cdecl] fn__isVehicleSprayable; - private delegate* unmanaged[Cdecl] fn__setVehicleEngineCanDegrade; + private delegate* unmanaged[Cdecl] fn__isVehicleSlipstreamLeader; + private delegate* unmanaged[Cdecl] fn__setVehicleInactiveDuringPlayback; + private delegate* unmanaged[Cdecl] fn__setVehicleActiveDuringPlayback; + private delegate* unmanaged[Cdecl] fn__isVehicleSprayable; + private delegate* unmanaged[Cdecl] fn__setVehicleEngineCanDegrade; private delegate* unmanaged[Cdecl] fn__setVehicleShadowEffect; private delegate* unmanaged[Cdecl] fn__removeVehicleShadowEffect; - private delegate* unmanaged[Cdecl] fn__isPlaneLandingGearIntact; - private delegate* unmanaged[Cdecl] fn__arePlanePropellersIntact; + private delegate* unmanaged[Cdecl] fn__isPlaneLandingGearIntact; + private delegate* unmanaged[Cdecl] fn__arePlanePropellersIntact; private delegate* unmanaged[Cdecl] fn__setPlanePropellersHealth; - private delegate* unmanaged[Cdecl] fn__setVehicleCanDeformWheels; - private delegate* unmanaged[Cdecl] fn__isVehicleStolen; - private delegate* unmanaged[Cdecl] fn__setVehicleIsStolen; + private delegate* unmanaged[Cdecl] fn__setVehicleCanDeformWheels; + private delegate* unmanaged[Cdecl] fn__isVehicleStolen; + private delegate* unmanaged[Cdecl] fn__setVehicleIsStolen; private delegate* unmanaged[Cdecl] fn__setPlaneTurbulenceMultiplier; - private delegate* unmanaged[Cdecl] fn__arePlaneWingsIntact; + private delegate* unmanaged[Cdecl] fn__arePlaneWingsIntact; private delegate* unmanaged[Cdecl] fn__0xB264C4D2F2B0A78B; private delegate* unmanaged[Cdecl] fn__detachVehicleFromCargobob; - private delegate* unmanaged[Cdecl] fn__detachVehicleFromAnyCargobob; + private delegate* unmanaged[Cdecl] fn__detachVehicleFromAnyCargobob; private delegate* unmanaged[Cdecl] fn__detachEntityFromCargobob; - private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToCargobob; + private delegate* unmanaged[Cdecl] fn__isVehicleAttachedToCargobob; private delegate* unmanaged[Cdecl] fn__getVehicleAttachedToCargobob; private delegate* unmanaged[Cdecl] fn__getEntityAttachedToCargobob; private delegate* unmanaged[Cdecl] fn__attachVehicleToCargobob; private delegate* unmanaged[Cdecl] fn__attachEntityToCargobob; - private delegate* unmanaged[Cdecl] fn__setCargobobHookCanDetach; + private delegate* unmanaged[Cdecl] fn__setCargobobHookCanDetach; private delegate* unmanaged[Cdecl] fn__0x1F34B0626C594380; private delegate* unmanaged[Cdecl] fn__0x2C1D8B3B19E517CC; private delegate* unmanaged[Cdecl] fn__getCargobobHookPosition; - private delegate* unmanaged[Cdecl] fn__doesCargobobHavePickUpRope; + private delegate* unmanaged[Cdecl] fn__doesCargobobHavePickUpRope; private delegate* unmanaged[Cdecl] fn__createPickUpRopeForCargobob; private delegate* unmanaged[Cdecl] fn__removePickUpRopeForCargobob; - private delegate* unmanaged[Cdecl] fn__setPickupRopeLengthForCargobob; + private delegate* unmanaged[Cdecl] fn__setPickupRopeLengthForCargobob; private delegate* unmanaged[Cdecl] fn__0xC0ED6438E6D39BA8; private delegate* unmanaged[Cdecl] fn__setCargobobPickupRopeDampingMultiplier; private delegate* unmanaged[Cdecl] fn__setCargobobPickupRopeType; - private delegate* unmanaged[Cdecl] fn__doesCargobobHavePickupMagnet; - private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetActive; + private delegate* unmanaged[Cdecl] fn__doesCargobobHavePickupMagnet; + private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetActive; private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetStrength; private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetEffectRadius; private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetReducedFalloff; @@ -33149,52 +33149,52 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetPullStrength; private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetFalloff; private delegate* unmanaged[Cdecl] fn__setCargobobPickupMagnetReducedStrength; - private delegate* unmanaged[Cdecl] fn__0x9BDDC73CC6A115D4; - private delegate* unmanaged[Cdecl] fn__0x56EB5E94318D3FB6; - private delegate* unmanaged[Cdecl] fn__doesVehicleHaveWeapons; - private delegate* unmanaged[Cdecl] fn__0x2C4A1590ABF43E8B; - private delegate* unmanaged[Cdecl] fn__disableVehicleWeapon; - private delegate* unmanaged[Cdecl] fn__isVehicleWeaponDisabled; - private delegate* unmanaged[Cdecl] fn__0xE05DD0E9707003A3; - private delegate* unmanaged[Cdecl] fn__setVehicleActiveForPedNavigation; + private delegate* unmanaged[Cdecl] fn__0x9BDDC73CC6A115D4; + private delegate* unmanaged[Cdecl] fn__0x56EB5E94318D3FB6; + private delegate* unmanaged[Cdecl] fn__doesVehicleHaveWeapons; + private delegate* unmanaged[Cdecl] fn__0x2C4A1590ABF43E8B; + private delegate* unmanaged[Cdecl] fn__disableVehicleWeapon; + private delegate* unmanaged[Cdecl] fn__isVehicleWeaponDisabled; + private delegate* unmanaged[Cdecl] fn__0xE05DD0E9707003A3; + private delegate* unmanaged[Cdecl] fn__setVehicleActiveForPedNavigation; private delegate* unmanaged[Cdecl] fn__getVehicleClass; private delegate* unmanaged[Cdecl] fn__getVehicleClassFromName; private delegate* unmanaged[Cdecl] fn__setPlayersLastVehicle; - private delegate* unmanaged[Cdecl] fn__setVehicleCanBeUsedByFleeingPeds; + private delegate* unmanaged[Cdecl] fn__setVehicleCanBeUsedByFleeingPeds; private delegate* unmanaged[Cdecl] fn__0xE5810AC70602F2F5; - private delegate* unmanaged[Cdecl] fn__setVehicleDropsMoneyWhenBlownUp; - private delegate* unmanaged[Cdecl] fn__setVehicleJetEngineOn; + private delegate* unmanaged[Cdecl] fn__setVehicleDropsMoneyWhenBlownUp; + private delegate* unmanaged[Cdecl] fn__setVehicleJetEngineOn; private delegate* unmanaged[Cdecl] fn__0x6A973569BA094650; private delegate* unmanaged[Cdecl] fn__setVehicleHandlingHashForAi; private delegate* unmanaged[Cdecl] fn__setVehicleExtendedRemovalRange; private delegate* unmanaged[Cdecl] fn__setVehicleSteeringBiasScalar; private delegate* unmanaged[Cdecl] fn__setHelicopterRollPitchYawMult; private delegate* unmanaged[Cdecl] fn__setVehicleFrictionOverride; - private delegate* unmanaged[Cdecl] fn__setVehicleWheelsCanBreakOffWhenBlowUp; - private delegate* unmanaged[Cdecl] fn__0xF78F94D60248C737; + private delegate* unmanaged[Cdecl] fn__setVehicleWheelsCanBreakOffWhenBlowUp; + private delegate* unmanaged[Cdecl] fn__0xF78F94D60248C737; private delegate* unmanaged[Cdecl] fn__setVehicleCeilingHeight; - private delegate* unmanaged[Cdecl] fn__0x5E569EC46EC21CAE; + private delegate* unmanaged[Cdecl] fn__0x5E569EC46EC21CAE; private delegate* unmanaged[Cdecl] fn__clearVehicleRouteHistory; - private delegate* unmanaged[Cdecl] fn__doesVehicleExistWithDecorator; - private delegate* unmanaged[Cdecl] fn__0x41062318F23ED854; + private delegate* unmanaged[Cdecl] fn__doesVehicleExistWithDecorator; + private delegate* unmanaged[Cdecl] fn__0x41062318F23ED854; private delegate* unmanaged[Cdecl] fn__setVehicleExclusiveDriver; - private delegate* unmanaged[Cdecl] fn__isPedExclusiveDriverOfVehicle; + private delegate* unmanaged[Cdecl] fn__isPedExclusiveDriverOfVehicle; private delegate* unmanaged[Cdecl] fn__disableIndividualPlanePropeller; - private delegate* unmanaged[Cdecl] fn__setVehicleForceAfterburner; - private delegate* unmanaged[Cdecl] fn__setDisableVehicleWindowCollisions; - private delegate* unmanaged[Cdecl] fn__0x4AD280EB48B2D8E6; - private delegate* unmanaged[Cdecl] fn__0xB68CFAF83A02768D; + private delegate* unmanaged[Cdecl] fn__setVehicleForceAfterburner; + private delegate* unmanaged[Cdecl] fn__setDisableVehicleWindowCollisions; + private delegate* unmanaged[Cdecl] fn__0x4AD280EB48B2D8E6; + private delegate* unmanaged[Cdecl] fn__0xB68CFAF83A02768D; private delegate* unmanaged[Cdecl] fn__0x0205F5365292D2EB; private delegate* unmanaged[Cdecl] fn__0xCF9159024555488C; - private delegate* unmanaged[Cdecl] fn__setDistantCarsEnabled; + private delegate* unmanaged[Cdecl] fn__setDistantCarsEnabled; private delegate* unmanaged[Cdecl] fn__setVehicleNeonLightsColour; private delegate* unmanaged[Cdecl] fn__0xB93B2867F7B479D1; private delegate* unmanaged[Cdecl] fn__getVehicleNeonLightsColour; - private delegate* unmanaged[Cdecl] fn__setVehicleNeonLightEnabled; - private delegate* unmanaged[Cdecl] fn__isVehicleNeonLightEnabled; - private delegate* unmanaged[Cdecl] fn__0x35E0654F4BAD7971; - private delegate* unmanaged[Cdecl] fn__disableVehicleNeonLights; - private delegate* unmanaged[Cdecl] fn__setDisableSuperdummyMode; + private delegate* unmanaged[Cdecl] fn__setVehicleNeonLightEnabled; + private delegate* unmanaged[Cdecl] fn__isVehicleNeonLightEnabled; + private delegate* unmanaged[Cdecl] fn__0x35E0654F4BAD7971; + private delegate* unmanaged[Cdecl] fn__disableVehicleNeonLights; + private delegate* unmanaged[Cdecl] fn__setDisableSuperdummyMode; private delegate* unmanaged[Cdecl] fn__requestVehicleDashboardScaleformMovie; private delegate* unmanaged[Cdecl] fn__getVehicleBodyHealth; private delegate* unmanaged[Cdecl] fn__setVehicleBodyHealth; @@ -33203,13 +33203,13 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setCarHighSpeedBumpSeverityMultiplier; private delegate* unmanaged[Cdecl] fn__getNumberOfVehicleDoors; private delegate* unmanaged[Cdecl] fn__setHydraulicRaised; - private delegate* unmanaged[Cdecl] fn__0xA7DCDF4DED40A8F4; + private delegate* unmanaged[Cdecl] fn__0xA7DCDF4DED40A8F4; private delegate* unmanaged[Cdecl] fn__getVehicleBodyHealth2; - private delegate* unmanaged[Cdecl] fn__0xD4C4642CB7F50B5D; - private delegate* unmanaged[Cdecl] fn__0xC361AA040D6637A8; - private delegate* unmanaged[Cdecl] fn__setVehicleKersAllowed; - private delegate* unmanaged[Cdecl] fn__getVehicleHasKers; - private delegate* unmanaged[Cdecl] fn__0xE16142B94664DEFD; + private delegate* unmanaged[Cdecl] fn__0xD4C4642CB7F50B5D; + private delegate* unmanaged[Cdecl] fn__0xC361AA040D6637A8; + private delegate* unmanaged[Cdecl] fn__setVehicleKersAllowed; + private delegate* unmanaged[Cdecl] fn__getVehicleHasKers; + private delegate* unmanaged[Cdecl] fn__0xE16142B94664DEFD; private delegate* unmanaged[Cdecl] fn__0x26D99D5A82FD18E8; private delegate* unmanaged[Cdecl] fn__setHydraulicWheelValue; private delegate* unmanaged[Cdecl] fn__getHydraulicWheelValue; @@ -33225,33 +33225,33 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0xD4196117AF7BB974; private delegate* unmanaged[Cdecl] fn__0xBB2333BB87DDD87F; private delegate* unmanaged[Cdecl] fn__0x73561D4425A021A2; - private delegate* unmanaged[Cdecl] fn__setVehicleControlsInverted; + private delegate* unmanaged[Cdecl] fn__setVehicleControlsInverted; private delegate* unmanaged[Cdecl] fn__0x7BBE7FF626A591FE; private delegate* unmanaged[Cdecl] fn__0x65B080555EA48149; private delegate* unmanaged[Cdecl] fn__0x428AD3E26C8D9EB0; private delegate* unmanaged[Cdecl] fn__0xE2F53F172B45EDE1; - private delegate* unmanaged[Cdecl] fn__0xBA91D045575699AD; + private delegate* unmanaged[Cdecl] fn__0xBA91D045575699AD; private delegate* unmanaged[Cdecl] fn__0x80E3357FDEF45C21; private delegate* unmanaged[Cdecl] fn__setVehicleRampLaunchModifier; - private delegate* unmanaged[Cdecl] fn__getIsDoorValid; + private delegate* unmanaged[Cdecl] fn__getIsDoorValid; private delegate* unmanaged[Cdecl] fn__setVehicleRocketBoostRefillTime; - private delegate* unmanaged[Cdecl] fn__getHasRocketBoost; - private delegate* unmanaged[Cdecl] fn__isVehicleRocketBoostActive; - private delegate* unmanaged[Cdecl] fn__setVehicleRocketBoostActive; - private delegate* unmanaged[Cdecl] fn__getHasRetractableWheels; - private delegate* unmanaged[Cdecl] fn__getIsWheelsLoweredStateActive; + private delegate* unmanaged[Cdecl] fn__getHasRocketBoost; + private delegate* unmanaged[Cdecl] fn__isVehicleRocketBoostActive; + private delegate* unmanaged[Cdecl] fn__setVehicleRocketBoostActive; + private delegate* unmanaged[Cdecl] fn__getHasRetractableWheels; + private delegate* unmanaged[Cdecl] fn__getIsWheelsLoweredStateActive; private delegate* unmanaged[Cdecl] fn__raiseRetractableWheels; private delegate* unmanaged[Cdecl] fn__lowerRetractableWheels; - private delegate* unmanaged[Cdecl] fn__getCanVehicleJump; - private delegate* unmanaged[Cdecl] fn__setUseHigherVehicleJumpForce; - private delegate* unmanaged[Cdecl] fn__0xB2E0C0D6922D31F2; + private delegate* unmanaged[Cdecl] fn__getCanVehicleJump; + private delegate* unmanaged[Cdecl] fn__setUseHigherVehicleJumpForce; + private delegate* unmanaged[Cdecl] fn__0xB2E0C0D6922D31F2; private delegate* unmanaged[Cdecl] fn__setVehicleWeaponCapacity; private delegate* unmanaged[Cdecl] fn__getVehicleWeaponCapacity; - private delegate* unmanaged[Cdecl] fn__getVehicleHasParachute; - private delegate* unmanaged[Cdecl] fn__getVehicleCanActivateParachute; - private delegate* unmanaged[Cdecl] fn__setVehicleParachuteActive; + private delegate* unmanaged[Cdecl] fn__getVehicleHasParachute; + private delegate* unmanaged[Cdecl] fn__getVehicleCanActivateParachute; + private delegate* unmanaged[Cdecl] fn__setVehicleParachuteActive; private delegate* unmanaged[Cdecl] fn__0x3DE51E9C80B116CF; - private delegate* unmanaged[Cdecl] fn__setVehicleReceivesRampDamage; + private delegate* unmanaged[Cdecl] fn__setVehicleReceivesRampDamage; private delegate* unmanaged[Cdecl] fn__setVehicleRampSidewaysLaunchMotion; private delegate* unmanaged[Cdecl] fn__setVehicleRampUpwardsLaunchMotion; private delegate* unmanaged[Cdecl] fn__0x9D30687C57BAA0BB; @@ -33270,67 +33270,67 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__0x26E13D440E7F6064; private delegate* unmanaged[Cdecl] fn__0x2FA2494B47FDD009; private delegate* unmanaged[Cdecl] fn__setVehicleRocketBoostPercentage; - private delegate* unmanaged[Cdecl] fn__setOppressorTransformState; + private delegate* unmanaged[Cdecl] fn__setOppressorTransformState; private delegate* unmanaged[Cdecl] fn__0x78CEEE41F49F421F; private delegate* unmanaged[Cdecl] fn__0xAF60E6A2936F982A; private delegate* unmanaged[Cdecl] fn__0x430A7631A84C9BE7; private delegate* unmanaged[Cdecl] fn__disableVehicleWorldCollision; - private delegate* unmanaged[Cdecl] fn__0x8235F1BEAD557629; + private delegate* unmanaged[Cdecl] fn__0x8235F1BEAD557629; private delegate* unmanaged[Cdecl] fn__0x9640E30A7F395E4B; private delegate* unmanaged[Cdecl] fn__0x0BBB9A7A8FFE931B; - private delegate* unmanaged[Cdecl] fn__setCargobobHookCanAttach; + private delegate* unmanaged[Cdecl] fn__setCargobobHookCanAttach; private delegate* unmanaged[Cdecl] fn__setVehicleBombCount; private delegate* unmanaged[Cdecl] fn__getVehicleBombCount; private delegate* unmanaged[Cdecl] fn__setVehicleCountermeasureCount; private delegate* unmanaged[Cdecl] fn__getVehicleCountermeasureCount; private delegate* unmanaged[Cdecl] fn__0x0A3F820A9A9A9AC5; - private delegate* unmanaged[Cdecl] fn__0x51F30DB60626A20E; - private delegate* unmanaged[Cdecl] fn__0x97841634EF7DF1D6; + private delegate* unmanaged[Cdecl] fn__0x51F30DB60626A20E; + private delegate* unmanaged[Cdecl] fn__0x97841634EF7DF1D6; private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformRatio; private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformPercentage; - private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformEnabled; - private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformActive; + private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformEnabled; + private delegate* unmanaged[Cdecl] fn__setVehicleHoverTransformActive; private delegate* unmanaged[Cdecl] fn__0x3A9128352EAC9E85; private delegate* unmanaged[Cdecl] fn__findRandomPointInSpace; - private delegate* unmanaged[Cdecl] fn__setDeployHeliStubWings; - private delegate* unmanaged[Cdecl] fn__areHeliStubWingsDeployed; - private delegate* unmanaged[Cdecl] fn__0xAA653AE61924B0A0; - private delegate* unmanaged[Cdecl] fn__setVehicleTurretUnk; + private delegate* unmanaged[Cdecl] fn__setDeployHeliStubWings; + private delegate* unmanaged[Cdecl] fn__areHeliStubWingsDeployed; + private delegate* unmanaged[Cdecl] fn__0xAA653AE61924B0A0; + private delegate* unmanaged[Cdecl] fn__setVehicleTurretUnk; private delegate* unmanaged[Cdecl] fn__setSpecialflightWingRatio; private delegate* unmanaged[Cdecl] fn__setDisableTurretMovementThisFrame; private delegate* unmanaged[Cdecl] fn__0x887FA38787DE8C72; private delegate* unmanaged[Cdecl] fn__setUnkFloat0x104ForSubmarineVehicleTask; - private delegate* unmanaged[Cdecl] fn__setUnkBool0x102ForSubmarineVehicleTask; - private delegate* unmanaged[Cdecl] fn__0x36DE109527A2C0C4; - private delegate* unmanaged[Cdecl] fn__0x82E0AC411E41A5B4; - private delegate* unmanaged[Cdecl] fn__0x99A05839C46CE316; - private delegate* unmanaged[Cdecl] fn__getIsVehicleShuntBoostActive; - private delegate* unmanaged[Cdecl] fn__0xE8718FAF591FD224; + private delegate* unmanaged[Cdecl] fn__setUnkBool0x102ForSubmarineVehicleTask; + private delegate* unmanaged[Cdecl] fn__0x36DE109527A2C0C4; + private delegate* unmanaged[Cdecl] fn__0x82E0AC411E41A5B4; + private delegate* unmanaged[Cdecl] fn__0x99A05839C46CE316; + private delegate* unmanaged[Cdecl] fn__getIsVehicleShuntBoostActive; + private delegate* unmanaged[Cdecl] fn__0xE8718FAF591FD224; private delegate* unmanaged[Cdecl] fn__getLastRammedVehicle; - private delegate* unmanaged[Cdecl] fn__setDisableVehicleUnk; - private delegate* unmanaged[Cdecl] fn__setVehicleNitroEnabled; - private delegate* unmanaged[Cdecl] fn__setVehicleWheelsDealDamage; - private delegate* unmanaged[Cdecl] fn__setDisableVehicleUnk2; - private delegate* unmanaged[Cdecl] fn__0x5BBCF35BF6E456F7; - private delegate* unmanaged[Cdecl] fn__getDoesVehicleHaveTombstone; - private delegate* unmanaged[Cdecl] fn__hideVehicleTombstone; - private delegate* unmanaged[Cdecl] fn__getIsVehicleEmpDisabled; - private delegate* unmanaged[Cdecl] fn__0x8F0D5BA1C2CC91D7; + private delegate* unmanaged[Cdecl] fn__setDisableVehicleUnk; + private delegate* unmanaged[Cdecl] fn__setVehicleNitroEnabled; + private delegate* unmanaged[Cdecl] fn__setVehicleWheelsDealDamage; + private delegate* unmanaged[Cdecl] fn__setDisableVehicleUnk2; + private delegate* unmanaged[Cdecl] fn__0x5BBCF35BF6E456F7; + private delegate* unmanaged[Cdecl] fn__getDoesVehicleHaveTombstone; + private delegate* unmanaged[Cdecl] fn__hideVehicleTombstone; + private delegate* unmanaged[Cdecl] fn__getIsVehicleEmpDisabled; + private delegate* unmanaged[Cdecl] fn__0x8F0D5BA1C2CC91D7; private delegate* unmanaged[Cdecl] fn__getTyreHealth; private delegate* unmanaged[Cdecl] fn__setTyreHealth; private delegate* unmanaged[Cdecl] fn__getTyreWearMultiplier; private delegate* unmanaged[Cdecl] fn__setTyreWearMultiplier; private delegate* unmanaged[Cdecl] fn__setTyreTractionLossMultiplier; private delegate* unmanaged[Cdecl] fn__0xF8B49F5BA7F850E7; - private delegate* unmanaged[Cdecl] fn__setReduceDriftVehicleSuspension; - private delegate* unmanaged[Cdecl] fn__setDriftTyresEnabled; - private delegate* unmanaged[Cdecl] fn__getDriftTyresEnabled; - private delegate* unmanaged[Cdecl] fn__networkUseHighPrecisionVehicleBlending; - private delegate* unmanaged[Cdecl] fn__getWaterHeight; - private delegate* unmanaged[Cdecl] fn__getWaterHeightNoWaves; - private delegate* unmanaged[Cdecl] fn__testProbeAgainstWater; - private delegate* unmanaged[Cdecl] fn__testProbeAgainstAllWater; - private delegate* unmanaged[Cdecl] fn__testVerticalProbeAgainstAllWater; + private delegate* unmanaged[Cdecl] fn__setReduceDriftVehicleSuspension; + private delegate* unmanaged[Cdecl] fn__setDriftTyresEnabled; + private delegate* unmanaged[Cdecl] fn__getDriftTyresEnabled; + private delegate* unmanaged[Cdecl] fn__networkUseHighPrecisionVehicleBlending; + private delegate* unmanaged[Cdecl] fn__getWaterHeight; + private delegate* unmanaged[Cdecl] fn__getWaterHeightNoWaves; + private delegate* unmanaged[Cdecl] fn__testProbeAgainstWater; + private delegate* unmanaged[Cdecl] fn__testProbeAgainstAllWater; + private delegate* unmanaged[Cdecl] fn__testVerticalProbeAgainstAllWater; private delegate* unmanaged[Cdecl] fn__modifyWater; private delegate* unmanaged[Cdecl] fn__addCurrentRise; private delegate* unmanaged[Cdecl] fn__removeCurrentRise; @@ -33338,49 +33338,49 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getDeepOceanScaler; private delegate* unmanaged[Cdecl] fn__0x547237AA71AB44DE; private delegate* unmanaged[Cdecl] fn__resetDeepOceanScaler; - private delegate* unmanaged[Cdecl] fn__enableLaserSightRendering; + private delegate* unmanaged[Cdecl] fn__enableLaserSightRendering; private delegate* unmanaged[Cdecl] fn__getWeaponComponentTypeModel; private delegate* unmanaged[Cdecl] fn__getWeapontypeModel; private delegate* unmanaged[Cdecl] fn__getWeapontypeSlot; private delegate* unmanaged[Cdecl] fn__getWeapontypeGroup; private delegate* unmanaged[Cdecl] fn__getWeaponComponentVariantExtraComponentCount; private delegate* unmanaged[Cdecl] fn__getWeaponComponentVariantExtraComponentModel; - private delegate* unmanaged[Cdecl] fn__setCurrentPedWeapon; - private delegate* unmanaged[Cdecl] fn__getCurrentPedWeapon; + private delegate* unmanaged[Cdecl] fn__setCurrentPedWeapon; + private delegate* unmanaged[Cdecl] fn__getCurrentPedWeapon; private delegate* unmanaged[Cdecl] fn__getCurrentPedWeaponEntityIndex; - private delegate* unmanaged[Cdecl] fn__getBestPedWeapon; - private delegate* unmanaged[Cdecl] fn__setCurrentPedVehicleWeapon; - private delegate* unmanaged[Cdecl] fn__getCurrentPedVehicleWeapon; + private delegate* unmanaged[Cdecl] fn__getBestPedWeapon; + private delegate* unmanaged[Cdecl] fn__setCurrentPedVehicleWeapon; + private delegate* unmanaged[Cdecl] fn__getCurrentPedVehicleWeapon; private delegate* unmanaged[Cdecl] fn__0x50276EF8172F5F12; - private delegate* unmanaged[Cdecl] fn__isPedArmed; - private delegate* unmanaged[Cdecl] fn__isWeaponValid; - private delegate* unmanaged[Cdecl] fn__hasPedGotWeapon; - private delegate* unmanaged[Cdecl] fn__isPedWeaponReadyToShoot; + private delegate* unmanaged[Cdecl] fn__isPedArmed; + private delegate* unmanaged[Cdecl] fn__isWeaponValid; + private delegate* unmanaged[Cdecl] fn__hasPedGotWeapon; + private delegate* unmanaged[Cdecl] fn__isPedWeaponReadyToShoot; private delegate* unmanaged[Cdecl] fn__getPedWeapontypeInSlot; private delegate* unmanaged[Cdecl] fn__getAmmoInPedWeapon; private delegate* unmanaged[Cdecl] fn__addAmmoToPed; - private delegate* unmanaged[Cdecl] fn__setPedAmmo; - private delegate* unmanaged[Cdecl] fn__setPedInfiniteAmmo; - private delegate* unmanaged[Cdecl] fn__setPedInfiniteAmmoClip; + private delegate* unmanaged[Cdecl] fn__setPedAmmo; + private delegate* unmanaged[Cdecl] fn__setPedInfiniteAmmo; + private delegate* unmanaged[Cdecl] fn__setPedInfiniteAmmoClip; private delegate* unmanaged[Cdecl] fn__0x24C024BA8379A70A; - private delegate* unmanaged[Cdecl] fn__giveWeaponToPed; - private delegate* unmanaged[Cdecl] fn__giveDelayedWeaponToPed; - private delegate* unmanaged[Cdecl] fn__removeAllPedWeapons; + private delegate* unmanaged[Cdecl] fn__giveWeaponToPed; + private delegate* unmanaged[Cdecl] fn__giveDelayedWeaponToPed; + private delegate* unmanaged[Cdecl] fn__removeAllPedWeapons; private delegate* unmanaged[Cdecl] fn__removeWeaponFromPed; - private delegate* unmanaged[Cdecl] fn__hidePedWeaponForScriptedCutscene; - private delegate* unmanaged[Cdecl] fn__setPedCurrentWeaponVisible; - private delegate* unmanaged[Cdecl] fn__setPedDropsWeaponsWhenDead; - private delegate* unmanaged[Cdecl] fn__hasPedBeenDamagedByWeapon; + private delegate* unmanaged[Cdecl] fn__hidePedWeaponForScriptedCutscene; + private delegate* unmanaged[Cdecl] fn__setPedCurrentWeaponVisible; + private delegate* unmanaged[Cdecl] fn__setPedDropsWeaponsWhenDead; + private delegate* unmanaged[Cdecl] fn__hasPedBeenDamagedByWeapon; private delegate* unmanaged[Cdecl] fn__clearPedLastWeaponDamage; - private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByWeapon; + private delegate* unmanaged[Cdecl] fn__hasEntityBeenDamagedByWeapon; private delegate* unmanaged[Cdecl] fn__clearEntityLastWeaponDamage; private delegate* unmanaged[Cdecl] fn__setPedDropsWeapon; private delegate* unmanaged[Cdecl] fn__setPedDropsInventoryWeapon; - private delegate* unmanaged[Cdecl] fn__getMaxAmmoInClip; - private delegate* unmanaged[Cdecl] fn__getAmmoInClip; - private delegate* unmanaged[Cdecl] fn__setAmmoInClip; - private delegate* unmanaged[Cdecl] fn__getMaxAmmo; - private delegate* unmanaged[Cdecl] fn__getMaxAmmoByType; + private delegate* unmanaged[Cdecl] fn__getMaxAmmoInClip; + private delegate* unmanaged[Cdecl] fn__getAmmoInClip; + private delegate* unmanaged[Cdecl] fn__setAmmoInClip; + private delegate* unmanaged[Cdecl] fn__getMaxAmmo; + private delegate* unmanaged[Cdecl] fn__getMaxAmmoByType; private delegate* unmanaged[Cdecl] fn__addAmmoToPedByType; private delegate* unmanaged[Cdecl] fn__setPedAmmoByType; private delegate* unmanaged[Cdecl] fn__getPedAmmoByType; @@ -33388,31 +33388,31 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setPickupAmmoAmountScaler; private delegate* unmanaged[Cdecl] fn__getPedAmmoTypeFromWeapon; private delegate* unmanaged[Cdecl] fn__getPedAmmoTypeFromWeapon2; - private delegate* unmanaged[Cdecl] fn__getPedLastWeaponImpactCoord; - private delegate* unmanaged[Cdecl] fn__setPedGadget; - private delegate* unmanaged[Cdecl] fn__getIsPedGadgetEquipped; + private delegate* unmanaged[Cdecl] fn__getPedLastWeaponImpactCoord; + private delegate* unmanaged[Cdecl] fn__setPedGadget; + private delegate* unmanaged[Cdecl] fn__getIsPedGadgetEquipped; private delegate* unmanaged[Cdecl] fn__getSelectedPedWeapon; - private delegate* unmanaged[Cdecl] fn__explodeProjectiles; - private delegate* unmanaged[Cdecl] fn__removeAllProjectilesOfType; + private delegate* unmanaged[Cdecl] fn__explodeProjectiles; + private delegate* unmanaged[Cdecl] fn__removeAllProjectilesOfType; private delegate* unmanaged[Cdecl] fn__getLockonDistanceOfCurrentPedWeapon; private delegate* unmanaged[Cdecl] fn__getMaxRangeOfCurrentPedWeapon; - private delegate* unmanaged[Cdecl] fn__hasVehicleGotProjectileAttached; + private delegate* unmanaged[Cdecl] fn__hasVehicleGotProjectileAttached; private delegate* unmanaged[Cdecl] fn__giveWeaponComponentToPed; private delegate* unmanaged[Cdecl] fn__removeWeaponComponentFromPed; - private delegate* unmanaged[Cdecl] fn__hasPedGotWeaponComponent; - private delegate* unmanaged[Cdecl] fn__isPedWeaponComponentActive; - private delegate* unmanaged[Cdecl] fn__refillAmmoInstantly; - private delegate* unmanaged[Cdecl] fn__makePedReload; + private delegate* unmanaged[Cdecl] fn__hasPedGotWeaponComponent; + private delegate* unmanaged[Cdecl] fn__isPedWeaponComponentActive; + private delegate* unmanaged[Cdecl] fn__refillAmmoInstantly; + private delegate* unmanaged[Cdecl] fn__makePedReload; private delegate* unmanaged[Cdecl] fn__requestWeaponAsset; - private delegate* unmanaged[Cdecl] fn__hasWeaponAssetLoaded; + private delegate* unmanaged[Cdecl] fn__hasWeaponAssetLoaded; private delegate* unmanaged[Cdecl] fn__removeWeaponAsset; - private delegate* unmanaged[Cdecl] fn__createWeaponObject; + private delegate* unmanaged[Cdecl] fn__createWeaponObject; private delegate* unmanaged[Cdecl] fn__giveWeaponComponentToWeaponObject; private delegate* unmanaged[Cdecl] fn__removeWeaponComponentFromWeaponObject; - private delegate* unmanaged[Cdecl] fn__hasWeaponGotWeaponComponent; + private delegate* unmanaged[Cdecl] fn__hasWeaponGotWeaponComponent; private delegate* unmanaged[Cdecl] fn__giveWeaponObjectToPed; - private delegate* unmanaged[Cdecl] fn__doesWeaponTakeWeaponComponent; - private delegate* unmanaged[Cdecl] fn__getWeaponObjectFromPed; + private delegate* unmanaged[Cdecl] fn__doesWeaponTakeWeaponComponent; + private delegate* unmanaged[Cdecl] fn__getWeaponObjectFromPed; private delegate* unmanaged[Cdecl] fn__giveLoadoutToPed; private delegate* unmanaged[Cdecl] fn__setPedWeaponTintIndex; private delegate* unmanaged[Cdecl] fn__getPedWeaponTintIndex; @@ -33425,8 +33425,8 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__getWeaponObjectLiveryColor; private delegate* unmanaged[Cdecl] fn__0xA2C9AC24B4061285; private delegate* unmanaged[Cdecl] fn__0x977CA98939E82E4B; - private delegate* unmanaged[Cdecl] fn__getWeaponHudStats; - private delegate* unmanaged[Cdecl] fn__getWeaponComponentHudStats; + private delegate* unmanaged[Cdecl] fn__getWeaponHudStats; + private delegate* unmanaged[Cdecl] fn__getWeaponComponentHudStats; private delegate* unmanaged[Cdecl] fn__getWeaponDamage; private delegate* unmanaged[Cdecl] fn__getWeaponClipSize; private delegate* unmanaged[Cdecl] fn__getWeaponTimeBetweenShots; @@ -33436,29 +33436,29 @@ public unsafe class Natives : INatives private delegate* unmanaged[Cdecl] fn__setWeaponDamageModifierThisFrame; private delegate* unmanaged[Cdecl] fn__setWeaponExplosionRadiusMultiplier; private delegate* unmanaged[Cdecl] fn__0xE6D2CEDD370FF98E; - private delegate* unmanaged[Cdecl] fn__isPedCurrentWeaponSilenced; - private delegate* unmanaged[Cdecl] fn__isFlashLightOn; + private delegate* unmanaged[Cdecl] fn__isPedCurrentWeaponSilenced; + private delegate* unmanaged[Cdecl] fn__isFlashLightOn; private delegate* unmanaged[Cdecl] fn__setFlashLightFadeDistance; - private delegate* unmanaged[Cdecl] fn__setFlashLightEnabled; + private delegate* unmanaged[Cdecl] fn__setFlashLightEnabled; private delegate* unmanaged[Cdecl] fn__setWeaponAnimationOverride; private delegate* unmanaged[Cdecl] fn__getWeaponDamageType; private delegate* unmanaged[Cdecl] fn__0xE4DCEC7FD5B739A5; - private delegate* unmanaged[Cdecl] fn__canUseWeaponOnParachute; + private delegate* unmanaged[Cdecl] fn__canUseWeaponOnParachute; private delegate* unmanaged[Cdecl] fn__createAirDefenseSphere; private delegate* unmanaged[Cdecl] fn__createAirDefenseArea; - private delegate* unmanaged[Cdecl] fn__removeAirDefenseZone; + private delegate* unmanaged[Cdecl] fn__removeAirDefenseZone; private delegate* unmanaged[Cdecl] fn__removeAllAirDefenseZones; - private delegate* unmanaged[Cdecl] fn__setPlayerAirDefenseZoneFlag; - private delegate* unmanaged[Cdecl] fn__isAnyAirDefenseZoneInsideSphere; + private delegate* unmanaged[Cdecl] fn__setPlayerAirDefenseZoneFlag; + private delegate* unmanaged[Cdecl] fn__isAnyAirDefenseZoneInsideSphere; private delegate* unmanaged[Cdecl] fn__fireAirDefenseWeapon; - private delegate* unmanaged[Cdecl] fn__doesAirDefenseZoneExist; - private delegate* unmanaged[Cdecl] fn__setCanPedEquipWeapon; - private delegate* unmanaged[Cdecl] fn__setCanPedEquipAllWeapons; + private delegate* unmanaged[Cdecl] fn__doesAirDefenseZoneExist; + private delegate* unmanaged[Cdecl] fn__setCanPedEquipWeapon; + private delegate* unmanaged[Cdecl] fn__setCanPedEquipAllWeapons; private delegate* unmanaged[Cdecl] fn__getZoneAtCoords; private delegate* unmanaged[Cdecl] fn__getZoneFromNameId; private delegate* unmanaged[Cdecl] fn__getZonePopschedule; private delegate* unmanaged[Cdecl] fn__getNameOfZone; - private delegate* unmanaged[Cdecl] fn__setZoneEnabled; + private delegate* unmanaged[Cdecl] fn__setZoneEnabled; private delegate* unmanaged[Cdecl] fn__getZoneScumminess; private delegate* unmanaged[Cdecl] fn__overridePopscheduleVehicleModel; private delegate* unmanaged[Cdecl] fn__clearPopscheduleOverrideVehicleModel; @@ -33764,11 +33764,11 @@ public void SetThreadPriority(int _priority) public bool AppDataValid() { unsafe { - if (fn__appDataValid == null) fn__appDataValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appDataValid"); + if (fn__appDataValid == null) fn__appDataValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appDataValid"); var success = false; var result = fn__appDataValid(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -33908,24 +33908,24 @@ public void AppCloseBlock() public bool AppHasLinkedSocialClubAccount() { unsafe { - if (fn__appHasLinkedSocialClubAccount == null) fn__appHasLinkedSocialClubAccount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appHasLinkedSocialClubAccount"); + if (fn__appHasLinkedSocialClubAccount == null) fn__appHasLinkedSocialClubAccount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appHasLinkedSocialClubAccount"); var success = false; var result = fn__appHasLinkedSocialClubAccount(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool AppHasSyncedData(string _appName) { unsafe { - if (fn__appHasSyncedData == null) fn__appHasSyncedData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appHasSyncedData"); + if (fn__appHasSyncedData == null) fn__appHasSyncedData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appHasSyncedData"); var success = false; var ptr_appName = MemoryUtils.StringToHGlobalUtf8(_appName); var result = fn__appHasSyncedData(&success, ptr_appName); Marshal.FreeHGlobal(ptr_appName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -33953,22 +33953,22 @@ public int AppGetDeletedFileStatus() public bool AppDeleteAppData(string _appName) { unsafe { - if (fn__appDeleteAppData == null) fn__appDeleteAppData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appDeleteAppData"); + if (fn__appDeleteAppData == null) fn__appDeleteAppData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_appDeleteAppData"); var success = false; var ptr_appName = MemoryUtils.StringToHGlobalUtf8(_appName); var result = fn__appDeleteAppData(&success, ptr_appName); Marshal.FreeHGlobal(ptr_appName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetDebugLinesAndSpheresDrawingActive(bool _enabled) { unsafe { - if (fn__setDebugLinesAndSpheresDrawingActive == null) fn__setDebugLinesAndSpheresDrawingActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDebugLinesAndSpheresDrawingActive"); + if (fn__setDebugLinesAndSpheresDrawingActive == null) fn__setDebugLinesAndSpheresDrawingActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDebugLinesAndSpheresDrawingActive"); var success = false; - fn__setDebugLinesAndSpheresDrawingActive(&success, _enabled); + fn__setDebugLinesAndSpheresDrawingActive(&success, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34108,9 +34108,9 @@ public void DrawBox(float _x1, float _y1, float _z1, float _x2, float _y2, float public void SetBackfaceculling(bool _toggle) { unsafe { - if (fn__setBackfaceculling == null) fn__setBackfaceculling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBackfaceculling"); + if (fn__setBackfaceculling == null) fn__setBackfaceculling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBackfaceculling"); var success = false; - fn__setBackfaceculling(&success, _toggle); + fn__setBackfaceculling(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34160,13 +34160,13 @@ public void FreeMemoryForMissionCreatorPhoto() public bool LoadMissionCreatorPhoto(ref int _p0, int _p1, int _p2, int _p3) { unsafe { - if (fn__loadMissionCreatorPhoto == null) fn__loadMissionCreatorPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadMissionCreatorPhoto"); + if (fn__loadMissionCreatorPhoto == null) fn__loadMissionCreatorPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadMissionCreatorPhoto"); var success = false; var ref_p0 = _p0; var result = fn__loadMissionCreatorPhoto(&success, &ref_p0, _p1, _p2, _p3); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -34218,11 +34218,11 @@ public void _0x346EF3ECAAAB149E() public bool BeginTakeHighQualityPhoto() { unsafe { - if (fn__beginTakeHighQualityPhoto == null) fn__beginTakeHighQualityPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginTakeHighQualityPhoto"); + if (fn__beginTakeHighQualityPhoto == null) fn__beginTakeHighQualityPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginTakeHighQualityPhoto"); var success = false; var result = fn__beginTakeHighQualityPhoto(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -34250,9 +34250,9 @@ public void FreeMemoryForHighQualityPhoto() public void _0x1BBC135A4D25EDDE(bool _p0) { unsafe { - if (fn__0x1BBC135A4D25EDDE == null) fn__0x1BBC135A4D25EDDE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1BBC135A4D25EDDE"); + if (fn__0x1BBC135A4D25EDDE == null) fn__0x1BBC135A4D25EDDE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1BBC135A4D25EDDE"); var success = false; - fn__0x1BBC135A4D25EDDE(&success, _p0); + fn__0x1BBC135A4D25EDDE(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34270,11 +34270,11 @@ public void _0xF3F776ADA161E47D(int _p0, int _p1) public bool SaveHighQualityPhoto(int _unused) { unsafe { - if (fn__saveHighQualityPhoto == null) fn__saveHighQualityPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_saveHighQualityPhoto"); + if (fn__saveHighQualityPhoto == null) fn__saveHighQualityPhoto = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_saveHighQualityPhoto"); var success = false; var result = fn__saveHighQualityPhoto(&success, _unused); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -34292,11 +34292,11 @@ public int GetStatusOfSaveHighQualityPhoto() public bool _0x759650634F07B6B4(int _p0) { unsafe { - if (fn__0x759650634F07B6B4 == null) fn__0x759650634F07B6B4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x759650634F07B6B4"); + if (fn__0x759650634F07B6B4 == null) fn__0x759650634F07B6B4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x759650634F07B6B4"); var success = false; var result = fn__0x759650634F07B6B4(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -34324,9 +34324,9 @@ public void FreeMemoryForLowQualityPhoto() public void DrawLowQualityPhotoToPhone(bool _p0, bool _p1) { unsafe { - if (fn__drawLowQualityPhotoToPhone == null) fn__drawLowQualityPhotoToPhone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawLowQualityPhotoToPhone"); + if (fn__drawLowQualityPhotoToPhone == null) fn__drawLowQualityPhotoToPhone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawLowQualityPhotoToPhone"); var success = false; - fn__drawLowQualityPhotoToPhone(&success, _p0, _p1); + fn__drawLowQualityPhotoToPhone(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34514,11 +34514,11 @@ public int _0x393BD2275CEB7793() public void DrawMarker(int _type, float _posX, float _posY, float _posZ, float _dirX, float _dirY, float _dirZ, float _rotX, float _rotY, float _rotZ, float _scaleX, float _scaleY, float _scaleZ, int _red, int _green, int _blue, int _alpha, bool _bobUpAndDown, bool _faceCamera, int _p19, bool _rotate, string _textureDict, string _textureName, bool _drawOnEnts) { unsafe { - if (fn__drawMarker == null) fn__drawMarker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawMarker"); + if (fn__drawMarker == null) fn__drawMarker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawMarker"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); - fn__drawMarker(&success, _type, _posX, _posY, _posZ, _dirX, _dirY, _dirZ, _rotX, _rotY, _rotZ, _scaleX, _scaleY, _scaleZ, _red, _green, _blue, _alpha, _bobUpAndDown, _faceCamera, _p19, _rotate, ptr_textureDict, ptr_textureName, _drawOnEnts); + fn__drawMarker(&success, _type, _posX, _posY, _posZ, _dirX, _dirY, _dirZ, _rotX, _rotY, _rotZ, _scaleX, _scaleY, _scaleZ, _red, _green, _blue, _alpha, (byte) (_bobUpAndDown ? 1 : 0), (byte) (_faceCamera ? 1 : 0), _p19, (byte) (_rotate ? 1 : 0), ptr_textureDict, ptr_textureName, (byte) (_drawOnEnts ? 1 : 0)); Marshal.FreeHGlobal(ptr_textureDict); Marshal.FreeHGlobal(ptr_textureName); if (!success) throw new Exception("Native execution failed"); @@ -34528,11 +34528,11 @@ public void DrawMarker(int _type, float _posX, float _posY, float _posZ, float _ public void DrawMarker2(int _type, float _posX, float _posY, float _posZ, float _dirX, float _dirY, float _dirZ, float _rotX, float _rotY, float _rotZ, float _scaleX, float _scaleY, float _scaleZ, int _red, int _green, int _blue, int _alpha, bool _bobUpAndDown, bool _faceCamera, int _p19, bool _rotate, string _textureDict, string _textureName, bool _drawOnEnts, bool _p24, bool _p25) { unsafe { - if (fn__drawMarker2 == null) fn__drawMarker2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawMarker2"); + if (fn__drawMarker2 == null) fn__drawMarker2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawMarker2"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); - fn__drawMarker2(&success, _type, _posX, _posY, _posZ, _dirX, _dirY, _dirZ, _rotX, _rotY, _rotZ, _scaleX, _scaleY, _scaleZ, _red, _green, _blue, _alpha, _bobUpAndDown, _faceCamera, _p19, _rotate, ptr_textureDict, ptr_textureName, _drawOnEnts, _p24, _p25); + fn__drawMarker2(&success, _type, _posX, _posY, _posZ, _dirX, _dirY, _dirZ, _rotX, _rotY, _rotZ, _scaleX, _scaleY, _scaleZ, _red, _green, _blue, _alpha, (byte) (_bobUpAndDown ? 1 : 0), (byte) (_faceCamera ? 1 : 0), _p19, (byte) (_rotate ? 1 : 0), ptr_textureDict, ptr_textureName, (byte) (_drawOnEnts ? 1 : 0), (byte) (_p24 ? 1 : 0), (byte) (_p25 ? 1 : 0)); Marshal.FreeHGlobal(ptr_textureDict); Marshal.FreeHGlobal(ptr_textureName); if (!success) throw new Exception("Native execution failed"); @@ -34673,9 +34673,9 @@ public void DeleteCheckpoint(int _checkpoint) public void DontRenderInGameUi(bool _p0) { unsafe { - if (fn__dontRenderInGameUi == null) fn__dontRenderInGameUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dontRenderInGameUi"); + if (fn__dontRenderInGameUi == null) fn__dontRenderInGameUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dontRenderInGameUi"); var success = false; - fn__dontRenderInGameUi(&success, _p0); + fn__dontRenderInGameUi(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34683,9 +34683,9 @@ public void DontRenderInGameUi(bool _p0) public void ForceRenderInGameUi(bool _toggle) { unsafe { - if (fn__forceRenderInGameUi == null) fn__forceRenderInGameUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceRenderInGameUi"); + if (fn__forceRenderInGameUi == null) fn__forceRenderInGameUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceRenderInGameUi"); var success = false; - fn__forceRenderInGameUi(&success, _toggle); + fn__forceRenderInGameUi(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34693,10 +34693,10 @@ public void ForceRenderInGameUi(bool _toggle) public void RequestStreamedTextureDict(string _textureDict, bool _p1) { unsafe { - if (fn__requestStreamedTextureDict == null) fn__requestStreamedTextureDict = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestStreamedTextureDict"); + if (fn__requestStreamedTextureDict == null) fn__requestStreamedTextureDict = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestStreamedTextureDict"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); - fn__requestStreamedTextureDict(&success, ptr_textureDict, _p1); + fn__requestStreamedTextureDict(&success, ptr_textureDict, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_textureDict); if (!success) throw new Exception("Native execution failed"); } @@ -34705,13 +34705,13 @@ public void RequestStreamedTextureDict(string _textureDict, bool _p1) public bool HasStreamedTextureDictLoaded(string _textureDict) { unsafe { - if (fn__hasStreamedTextureDictLoaded == null) fn__hasStreamedTextureDictLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasStreamedTextureDictLoaded"); + if (fn__hasStreamedTextureDictLoaded == null) fn__hasStreamedTextureDictLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasStreamedTextureDictLoaded"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); var result = fn__hasStreamedTextureDictLoaded(&success, ptr_textureDict); Marshal.FreeHGlobal(ptr_textureDict); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -34730,9 +34730,9 @@ public void SetStreamedTextureDictAsNoLongerNeeded(string _textureDict) public void DrawRect(float _x, float _y, float _width, float _height, int _r, int _g, int _b, int _a, bool _p8) { unsafe { - if (fn__drawRect == null) fn__drawRect = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawRect"); + if (fn__drawRect == null) fn__drawRect = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawRect"); var success = false; - fn__drawRect(&success, _x, _y, _width, _height, _r, _g, _b, _a, _p8); + fn__drawRect(&success, _x, _y, _width, _height, _r, _g, _b, _a, (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34740,9 +34740,9 @@ public void DrawRect(float _x, float _y, float _width, float _height, int _r, in public void SetScriptGfxDrawBehindPausemenu(bool _toggle) { unsafe { - if (fn__setScriptGfxDrawBehindPausemenu == null) fn__setScriptGfxDrawBehindPausemenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptGfxDrawBehindPausemenu"); + if (fn__setScriptGfxDrawBehindPausemenu == null) fn__setScriptGfxDrawBehindPausemenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptGfxDrawBehindPausemenu"); var success = false; - fn__setScriptGfxDrawBehindPausemenu(&success, _toggle); + fn__setScriptGfxDrawBehindPausemenu(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -34815,11 +34815,11 @@ public float GetSafeZoneSize() public void DrawSprite(string _textureDict, string _textureName, float _screenX, float _screenY, float _width, float _height, float _heading, int _red, int _green, int _blue, int _alpha, bool _p11) { unsafe { - if (fn__drawSprite == null) fn__drawSprite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawSprite"); + if (fn__drawSprite == null) fn__drawSprite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_drawSprite"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); - fn__drawSprite(&success, ptr_textureDict, ptr_textureName, _screenX, _screenY, _width, _height, _heading, _red, _green, _blue, _alpha, _p11); + fn__drawSprite(&success, ptr_textureDict, ptr_textureName, _screenX, _screenY, _width, _height, _heading, _red, _green, _blue, _alpha, (byte) (_p11 ? 1 : 0)); Marshal.FreeHGlobal(ptr_textureDict); Marshal.FreeHGlobal(ptr_textureName); if (!success) throw new Exception("Native execution failed"); @@ -34886,9 +34886,9 @@ public int AddEntityIcon(int _entity, string _icon) public void SetEntityIconVisibility(int _entity, bool _toggle) { unsafe { - if (fn__setEntityIconVisibility == null) fn__setEntityIconVisibility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityIconVisibility"); + if (fn__setEntityIconVisibility == null) fn__setEntityIconVisibility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityIconVisibility"); var success = false; - fn__setEntityIconVisibility(&success, _entity, _toggle); + fn__setEntityIconVisibility(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35022,9 +35022,9 @@ public void AttachTvAudioToEntity(int _entity) public void SetBinkMovieUnk2(int _binkMovie, bool _p1) { unsafe { - if (fn__setBinkMovieUnk2 == null) fn__setBinkMovieUnk2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBinkMovieUnk2"); + if (fn__setBinkMovieUnk2 == null) fn__setBinkMovieUnk2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBinkMovieUnk2"); var success = false; - fn__setBinkMovieUnk2(&success, _binkMovie, _p1); + fn__setBinkMovieUnk2(&success, _binkMovie, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35032,9 +35032,9 @@ public void SetBinkMovieUnk2(int _binkMovie, bool _p1) public void SetTvAudioFrontend(bool _toggle) { unsafe { - if (fn__setTvAudioFrontend == null) fn__setTvAudioFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTvAudioFrontend"); + if (fn__setTvAudioFrontend == null) fn__setTvAudioFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTvAudioFrontend"); var success = false; - fn__setTvAudioFrontend(&success, _toggle); + fn__setTvAudioFrontend(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35042,9 +35042,9 @@ public void SetTvAudioFrontend(bool _toggle) public void SetBinkShouldSkip(int _binkMovie, bool _bShouldSkip) { unsafe { - if (fn__setBinkShouldSkip == null) fn__setBinkShouldSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBinkShouldSkip"); + if (fn__setBinkShouldSkip == null) fn__setBinkShouldSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBinkShouldSkip"); var success = false; - fn__setBinkShouldSkip(&success, _binkMovie, _bShouldSkip); + fn__setBinkShouldSkip(&success, _binkMovie, (byte) (_bShouldSkip ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35114,9 +35114,9 @@ public void GetActiveScreenResolution(ref int _x, ref int _y) public float GetAspectRatio(bool _b) { unsafe { - if (fn__getAspectRatio == null) fn__getAspectRatio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAspectRatio"); + if (fn__getAspectRatio == null) fn__getAspectRatio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAspectRatio"); var success = false; - var result = fn__getAspectRatio(&success, _b); + var result = fn__getAspectRatio(&success, (byte) (_b ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -35136,22 +35136,22 @@ public int _0xB2EBE8CBC58B90E9() public bool GetIsWidescreen() { unsafe { - if (fn__getIsWidescreen == null) fn__getIsWidescreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWidescreen"); + if (fn__getIsWidescreen == null) fn__getIsWidescreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWidescreen"); var success = false; var result = fn__getIsWidescreen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetIsHidef() { unsafe { - if (fn__getIsHidef == null) fn__getIsHidef = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsHidef"); + if (fn__getIsHidef == null) fn__getIsHidef = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsHidef"); var success = false; var result = fn__getIsHidef(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -35168,9 +35168,9 @@ public void _0xEFABC7722293DA7C() public void SetNightvision(bool _toggle) { unsafe { - if (fn__setNightvision == null) fn__setNightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNightvision"); + if (fn__setNightvision == null) fn__setNightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNightvision"); var success = false; - fn__setNightvision(&success, _toggle); + fn__setNightvision(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35178,31 +35178,31 @@ public void SetNightvision(bool _toggle) public bool GetRequestingnightvision() { unsafe { - if (fn__getRequestingnightvision == null) fn__getRequestingnightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRequestingnightvision"); + if (fn__getRequestingnightvision == null) fn__getRequestingnightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRequestingnightvision"); var success = false; var result = fn__getRequestingnightvision(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetUsingnightvision() { unsafe { - if (fn__getUsingnightvision == null) fn__getUsingnightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getUsingnightvision"); + if (fn__getUsingnightvision == null) fn__getUsingnightvision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getUsingnightvision"); var success = false; var result = fn__getUsingnightvision(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xEF398BEEE4EF45F9(bool _p0) { unsafe { - if (fn__0xEF398BEEE4EF45F9 == null) fn__0xEF398BEEE4EF45F9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEF398BEEE4EF45F9"); + if (fn__0xEF398BEEE4EF45F9 == null) fn__0xEF398BEEE4EF45F9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEF398BEEE4EF45F9"); var success = false; - fn__0xEF398BEEE4EF45F9(&success, _p0); + fn__0xEF398BEEE4EF45F9(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35230,9 +35230,9 @@ public void _0x43FA7CBE20DAB219(int _p0) public void SetNoiseoveride(bool _toggle) { unsafe { - if (fn__setNoiseoveride == null) fn__setNoiseoveride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNoiseoveride"); + if (fn__setNoiseoveride == null) fn__setNoiseoveride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNoiseoveride"); var success = false; - fn__setNoiseoveride(&success, _toggle); + fn__setNoiseoveride(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35250,7 +35250,7 @@ public void SetNoisinessoveride(float _value) public bool GetScreenCoordFromWorldCoord(float _worldX, float _worldY, float _worldZ, ref float _screenX, ref float _screenY) { unsafe { - if (fn__getScreenCoordFromWorldCoord == null) fn__getScreenCoordFromWorldCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScreenCoordFromWorldCoord"); + if (fn__getScreenCoordFromWorldCoord == null) fn__getScreenCoordFromWorldCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScreenCoordFromWorldCoord"); var success = false; var ref_screenX = _screenX; var ref_screenY = _screenY; @@ -35258,7 +35258,7 @@ public bool GetScreenCoordFromWorldCoord(float _worldX, float _worldY, float _wo _screenX = ref_screenX; _screenY = ref_screenY; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -35281,7 +35281,7 @@ public Vector3 GetTextureResolution(string _textureDict, string _textureName) public bool OverridePedBadgeTexture(int _ped, string _txd, string _txn) { unsafe { - if (fn__overridePedBadgeTexture == null) fn__overridePedBadgeTexture = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overridePedBadgeTexture"); + if (fn__overridePedBadgeTexture == null) fn__overridePedBadgeTexture = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overridePedBadgeTexture"); var success = false; var ptr_txd = MemoryUtils.StringToHGlobalUtf8(_txd); var ptr_txn = MemoryUtils.StringToHGlobalUtf8(_txn); @@ -35289,7 +35289,7 @@ public bool OverridePedBadgeTexture(int _ped, string _txd, string _txn) Marshal.FreeHGlobal(ptr_txd); Marshal.FreeHGlobal(ptr_txn); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -35326,9 +35326,9 @@ public void DisableOcclusionThisFrame() public void SetArtificialLightsState(bool _state) { unsafe { - if (fn__setArtificialLightsState == null) fn__setArtificialLightsState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setArtificialLightsState"); + if (fn__setArtificialLightsState == null) fn__setArtificialLightsState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setArtificialLightsState"); var success = false; - fn__setArtificialLightsState(&success, _state); + fn__setArtificialLightsState(&success, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35336,9 +35336,9 @@ public void SetArtificialLightsState(bool _state) public void SetArtificialLightsStateAffectsVehicles(bool _toggle) { unsafe { - if (fn__setArtificialLightsStateAffectsVehicles == null) fn__setArtificialLightsStateAffectsVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setArtificialLightsStateAffectsVehicles"); + if (fn__setArtificialLightsStateAffectsVehicles == null) fn__setArtificialLightsStateAffectsVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setArtificialLightsStateAffectsVehicles"); var success = false; - fn__setArtificialLightsStateAffectsVehicles(&success, _toggle); + fn__setArtificialLightsStateAffectsVehicles(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35377,11 +35377,11 @@ public void SetTrackedPointInfo(int _point, float _x, float _y, float _z, float public bool IsTrackedPointVisible(int _point) { unsafe { - if (fn__isTrackedPointVisible == null) fn__isTrackedPointVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTrackedPointVisible"); + if (fn__isTrackedPointVisible == null) fn__isTrackedPointVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTrackedPointVisible"); var success = false; var result = fn__isTrackedPointVisible(&success, _point); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -35530,9 +35530,9 @@ public void CascadeShadowsInitSession() public void CascadeShadowsSetCascadeBounds(int _p0, bool _p1, float _p2, float _p3, float _p4, float _p5, bool _p6, float _p7) { unsafe { - if (fn__cascadeShadowsSetCascadeBounds == null) fn__cascadeShadowsSetCascadeBounds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetCascadeBounds"); + if (fn__cascadeShadowsSetCascadeBounds == null) fn__cascadeShadowsSetCascadeBounds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetCascadeBounds"); var success = false; - fn__cascadeShadowsSetCascadeBounds(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + fn__cascadeShadowsSetCascadeBounds(&success, _p0, (byte) (_p1 ? 1 : 0), _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), _p7); if (!success) throw new Exception("Native execution failed"); } } @@ -35580,9 +35580,9 @@ public void _0x259BA6D4E6F808F1(int _p0) public void CascadeShadowsEnableEntityTracker(bool _toggle) { unsafe { - if (fn__cascadeShadowsEnableEntityTracker == null) fn__cascadeShadowsEnableEntityTracker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsEnableEntityTracker"); + if (fn__cascadeShadowsEnableEntityTracker == null) fn__cascadeShadowsEnableEntityTracker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsEnableEntityTracker"); var success = false; - fn__cascadeShadowsEnableEntityTracker(&success, _toggle); + fn__cascadeShadowsEnableEntityTracker(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35590,9 +35590,9 @@ public void CascadeShadowsEnableEntityTracker(bool _toggle) public void _0x25FC3E33A31AD0C9(bool _p0) { unsafe { - if (fn__0x25FC3E33A31AD0C9 == null) fn__0x25FC3E33A31AD0C9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x25FC3E33A31AD0C9"); + if (fn__0x25FC3E33A31AD0C9 == null) fn__0x25FC3E33A31AD0C9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x25FC3E33A31AD0C9"); var success = false; - fn__0x25FC3E33A31AD0C9(&success, _p0); + fn__0x25FC3E33A31AD0C9(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35622,9 +35622,9 @@ public void CascadeShadowsClearShadowSampleType() public void CascadeShadowsSetAircraftMode(bool _p0) { unsafe { - if (fn__cascadeShadowsSetAircraftMode == null) fn__cascadeShadowsSetAircraftMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetAircraftMode"); + if (fn__cascadeShadowsSetAircraftMode == null) fn__cascadeShadowsSetAircraftMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetAircraftMode"); var success = false; - fn__cascadeShadowsSetAircraftMode(&success, _p0); + fn__cascadeShadowsSetAircraftMode(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35632,9 +35632,9 @@ public void CascadeShadowsSetAircraftMode(bool _p0) public void CascadeShadowsSetDynamicDepthMode(bool _p0) { unsafe { - if (fn__cascadeShadowsSetDynamicDepthMode == null) fn__cascadeShadowsSetDynamicDepthMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetDynamicDepthMode"); + if (fn__cascadeShadowsSetDynamicDepthMode == null) fn__cascadeShadowsSetDynamicDepthMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cascadeShadowsSetDynamicDepthMode"); var success = false; - fn__cascadeShadowsSetDynamicDepthMode(&success, _p0); + fn__cascadeShadowsSetDynamicDepthMode(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35652,9 +35652,9 @@ public void CascadeShadowsSetDynamicDepthValue(float _p0) public void _0x0AE73D8DF3A762B2(bool _p0) { unsafe { - if (fn__0x0AE73D8DF3A762B2 == null) fn__0x0AE73D8DF3A762B2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0AE73D8DF3A762B2"); + if (fn__0x0AE73D8DF3A762B2 == null) fn__0x0AE73D8DF3A762B2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0AE73D8DF3A762B2"); var success = false; - fn__0x0AE73D8DF3A762B2(&success, _p0); + fn__0x0AE73D8DF3A762B2(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35672,9 +35672,9 @@ public void _0xCA465D9CC0D231BA(int _p0) public void GolfTrailSetEnabled(bool _toggle) { unsafe { - if (fn__golfTrailSetEnabled == null) fn__golfTrailSetEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetEnabled"); + if (fn__golfTrailSetEnabled == null) fn__golfTrailSetEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetEnabled"); var success = false; - fn__golfTrailSetEnabled(&success, _toggle); + fn__golfTrailSetEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35682,9 +35682,9 @@ public void GolfTrailSetEnabled(bool _toggle) public void GolfTrailSetPath(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, bool _p8) { unsafe { - if (fn__golfTrailSetPath == null) fn__golfTrailSetPath = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetPath"); + if (fn__golfTrailSetPath == null) fn__golfTrailSetPath = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetPath"); var success = false; - fn__golfTrailSetPath(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8); + fn__golfTrailSetPath(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35722,9 +35722,9 @@ public void GolfTrailSetTessellation(int _p0, int _p1) public void _0xC0416B061F2B7E5E(bool _p0) { unsafe { - if (fn__0xC0416B061F2B7E5E == null) fn__0xC0416B061F2B7E5E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC0416B061F2B7E5E"); + if (fn__0xC0416B061F2B7E5E == null) fn__0xC0416B061F2B7E5E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC0416B061F2B7E5E"); var success = false; - fn__0xC0416B061F2B7E5E(&success, _p0); + fn__0xC0416B061F2B7E5E(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35752,9 +35752,9 @@ public void GolfTrailSetShaderParams(float _p0, float _p1, float _p2, float _p3, public void GolfTrailSetFacing(bool _p0) { unsafe { - if (fn__golfTrailSetFacing == null) fn__golfTrailSetFacing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetFacing"); + if (fn__golfTrailSetFacing == null) fn__golfTrailSetFacing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_golfTrailSetFacing"); var success = false; - fn__golfTrailSetFacing(&success, _p0); + fn__golfTrailSetFacing(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35784,9 +35784,9 @@ public Vector3 GolfTrailGetVisualControlPoint(int _p0) public void SetSeethrough(bool _toggle) { unsafe { - if (fn__setSeethrough == null) fn__setSeethrough = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSeethrough"); + if (fn__setSeethrough == null) fn__setSeethrough = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSeethrough"); var success = false; - fn__setSeethrough(&success, _toggle); + fn__setSeethrough(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35794,11 +35794,11 @@ public void SetSeethrough(bool _toggle) public bool GetUsingseethrough() { unsafe { - if (fn__getUsingseethrough == null) fn__getUsingseethrough = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getUsingseethrough"); + if (fn__getUsingseethrough == null) fn__getUsingseethrough = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getUsingseethrough"); var success = false; var result = fn__getUsingseethrough(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -35937,9 +35937,9 @@ public float _0xE59343E9E96529E7() public void _0x6A51F78772175A51(bool _toggle) { unsafe { - if (fn__0x6A51F78772175A51 == null) fn__0x6A51F78772175A51 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A51F78772175A51"); + if (fn__0x6A51F78772175A51 == null) fn__0x6A51F78772175A51 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A51F78772175A51"); var success = false; - fn__0x6A51F78772175A51(&success, _toggle); + fn__0x6A51F78772175A51(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35947,9 +35947,9 @@ public void _0x6A51F78772175A51(bool _toggle) public void TogglePlayerDamageOverlay(bool _toggle) { unsafe { - if (fn__togglePlayerDamageOverlay == null) fn__togglePlayerDamageOverlay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_togglePlayerDamageOverlay"); + if (fn__togglePlayerDamageOverlay == null) fn__togglePlayerDamageOverlay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_togglePlayerDamageOverlay"); var success = false; - fn__togglePlayerDamageOverlay(&success, _toggle); + fn__togglePlayerDamageOverlay(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -35967,22 +35967,22 @@ public void _0xE3E2C1B4C59DBC77(int _unk) public bool TriggerScreenblurFadeIn(float _transitionTime) { unsafe { - if (fn__triggerScreenblurFadeIn == null) fn__triggerScreenblurFadeIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScreenblurFadeIn"); + if (fn__triggerScreenblurFadeIn == null) fn__triggerScreenblurFadeIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScreenblurFadeIn"); var success = false; var result = fn__triggerScreenblurFadeIn(&success, _transitionTime); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool TriggerScreenblurFadeOut(float _transitionTime) { unsafe { - if (fn__triggerScreenblurFadeOut == null) fn__triggerScreenblurFadeOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScreenblurFadeOut"); + if (fn__triggerScreenblurFadeOut == null) fn__triggerScreenblurFadeOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScreenblurFadeOut"); var success = false; var result = fn__triggerScreenblurFadeOut(&success, _transitionTime); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36010,20 +36010,20 @@ public float GetScreenblurFadeCurrentTime() public bool IsScreenblurFadeRunning() { unsafe { - if (fn__isScreenblurFadeRunning == null) fn__isScreenblurFadeRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenblurFadeRunning"); + if (fn__isScreenblurFadeRunning == null) fn__isScreenblurFadeRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenblurFadeRunning"); var success = false; var result = fn__isScreenblurFadeRunning(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void TogglePausedRenderphases(bool _toggle) { unsafe { - if (fn__togglePausedRenderphases == null) fn__togglePausedRenderphases = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_togglePausedRenderphases"); + if (fn__togglePausedRenderphases == null) fn__togglePausedRenderphases = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_togglePausedRenderphases"); var success = false; - fn__togglePausedRenderphases(&success, _toggle); + fn__togglePausedRenderphases(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36031,11 +36031,11 @@ public void TogglePausedRenderphases(bool _toggle) public bool GetTogglePausedRenderphasesStatus() { unsafe { - if (fn__getTogglePausedRenderphasesStatus == null) fn__getTogglePausedRenderphasesStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTogglePausedRenderphasesStatus"); + if (fn__getTogglePausedRenderphasesStatus == null) fn__getTogglePausedRenderphasesStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTogglePausedRenderphasesStatus"); var success = false; var result = fn__getTogglePausedRenderphasesStatus(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36062,9 +36062,9 @@ public void _0x851CD923176EBA7C() public void SetHidofEnvBlurParams(bool _p0, bool _p1, float _nearplaneOut, float _nearplaneIn, float _farplaneOut, float _farplaneIn) { unsafe { - if (fn__setHidofEnvBlurParams == null) fn__setHidofEnvBlurParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHidofEnvBlurParams"); + if (fn__setHidofEnvBlurParams == null) fn__setHidofEnvBlurParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHidofEnvBlurParams"); var success = false; - fn__setHidofEnvBlurParams(&success, _p0, _p1, _nearplaneOut, _nearplaneIn, _farplaneOut, _farplaneIn); + fn__setHidofEnvBlurParams(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), _nearplaneOut, _nearplaneIn, _farplaneOut, _farplaneIn); if (!success) throw new Exception("Native execution failed"); } } @@ -36082,11 +36082,11 @@ public void _0xB569F41F3E7E83A4(int _p0) public bool _0x7AC24EAB6D74118D(bool _p0) { unsafe { - if (fn__0x7AC24EAB6D74118D == null) fn__0x7AC24EAB6D74118D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7AC24EAB6D74118D"); + if (fn__0x7AC24EAB6D74118D == null) fn__0x7AC24EAB6D74118D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7AC24EAB6D74118D"); var success = false; - var result = fn__0x7AC24EAB6D74118D(&success, _p0); + var result = fn__0x7AC24EAB6D74118D(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36104,23 +36104,23 @@ public int _0xBCEDB009461DA156() public bool _0x27FEB5254759CDE3(string _textureDict, bool _p1) { unsafe { - if (fn__0x27FEB5254759CDE3 == null) fn__0x27FEB5254759CDE3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x27FEB5254759CDE3"); + if (fn__0x27FEB5254759CDE3 == null) fn__0x27FEB5254759CDE3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x27FEB5254759CDE3"); var success = false; var ptr_textureDict = MemoryUtils.StringToHGlobalUtf8(_textureDict); - var result = fn__0x27FEB5254759CDE3(&success, ptr_textureDict, _p1); + var result = fn__0x27FEB5254759CDE3(&success, ptr_textureDict, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_textureDict); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int StartParticleFxNonLoopedAtCoord(string _effectName, float _xPos, float _yPos, float _zPos, float _xRot, float _yRot, float _zRot, float _scale, bool _xAxis, bool _yAxis, bool _zAxis) { unsafe { - if (fn__startParticleFxNonLoopedAtCoord == null) fn__startParticleFxNonLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedAtCoord"); + if (fn__startParticleFxNonLoopedAtCoord == null) fn__startParticleFxNonLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedAtCoord"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxNonLoopedAtCoord(&success, ptr_effectName, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, _scale, _xAxis, _yAxis, _zAxis); + var result = fn__startParticleFxNonLoopedAtCoord(&success, ptr_effectName, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36130,13 +36130,13 @@ public int StartParticleFxNonLoopedAtCoord(string _effectName, float _xPos, floa public bool StartNetworkedParticleFxNonLoopedAtCoord(string _effectName, float _xPos, float _yPos, float _zPos, float _xRot, float _yRot, float _zRot, float _scale, bool _xAxis, bool _yAxis, bool _zAxis, bool _p11) { unsafe { - if (fn__startNetworkedParticleFxNonLoopedAtCoord == null) fn__startNetworkedParticleFxNonLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedAtCoord"); + if (fn__startNetworkedParticleFxNonLoopedAtCoord == null) fn__startNetworkedParticleFxNonLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedAtCoord"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxNonLoopedAtCoord(&success, ptr_effectName, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, _scale, _xAxis, _yAxis, _zAxis, _p11); + var result = fn__startNetworkedParticleFxNonLoopedAtCoord(&success, ptr_effectName, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0), (byte) (_p11 ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36144,13 +36144,13 @@ public bool StartNetworkedParticleFxNonLoopedAtCoord(string _effectName, float _ public bool StartParticleFxNonLoopedOnPedBone(string _effectName, int _ped, float _offsetX, float _offsetY, float _offsetZ, float _rotX, float _rotY, float _rotZ, int _boneIndex, float _scale, bool _axisX, bool _axisY, bool _axisZ) { unsafe { - if (fn__startParticleFxNonLoopedOnPedBone == null) fn__startParticleFxNonLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedOnPedBone"); + if (fn__startParticleFxNonLoopedOnPedBone == null) fn__startParticleFxNonLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedOnPedBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxNonLoopedOnPedBone(&success, ptr_effectName, _ped, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, _axisX, _axisY, _axisZ); + var result = fn__startParticleFxNonLoopedOnPedBone(&success, ptr_effectName, _ped, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, (byte) (_axisX ? 1 : 0), (byte) (_axisY ? 1 : 0), (byte) (_axisZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36158,13 +36158,13 @@ public bool StartParticleFxNonLoopedOnPedBone(string _effectName, int _ped, floa public bool StartNetworkedParticleFxNonLoopedOnPedBone(string _effectName, int _ped, float _offsetX, float _offsetY, float _offsetZ, float _rotX, float _rotY, float _rotZ, int _boneIndex, float _scale, bool _axisX, bool _axisY, bool _axisZ) { unsafe { - if (fn__startNetworkedParticleFxNonLoopedOnPedBone == null) fn__startNetworkedParticleFxNonLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnPedBone"); + if (fn__startNetworkedParticleFxNonLoopedOnPedBone == null) fn__startNetworkedParticleFxNonLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnPedBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxNonLoopedOnPedBone(&success, ptr_effectName, _ped, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, _axisX, _axisY, _axisZ); + var result = fn__startNetworkedParticleFxNonLoopedOnPedBone(&success, ptr_effectName, _ped, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, (byte) (_axisX ? 1 : 0), (byte) (_axisY ? 1 : 0), (byte) (_axisZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36172,13 +36172,13 @@ public bool StartNetworkedParticleFxNonLoopedOnPedBone(string _effectName, int _ public bool StartParticleFxNonLoopedOnEntity(string _effectName, int _entity, float _offsetX, float _offsetY, float _offsetZ, float _rotX, float _rotY, float _rotZ, float _scale, bool _axisX, bool _axisY, bool _axisZ) { unsafe { - if (fn__startParticleFxNonLoopedOnEntity == null) fn__startParticleFxNonLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedOnEntity"); + if (fn__startParticleFxNonLoopedOnEntity == null) fn__startParticleFxNonLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxNonLoopedOnEntity"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxNonLoopedOnEntity(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _scale, _axisX, _axisY, _axisZ); + var result = fn__startParticleFxNonLoopedOnEntity(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _scale, (byte) (_axisX ? 1 : 0), (byte) (_axisY ? 1 : 0), (byte) (_axisZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36186,13 +36186,13 @@ public bool StartParticleFxNonLoopedOnEntity(string _effectName, int _entity, fl public bool StartNetworkedParticleFxNonLoopedOnEntity(string _effectName, int _entity, float _offsetX, float _offsetY, float _offsetZ, float _rotX, float _rotY, float _rotZ, float _scale, bool _axisX, bool _axisY, bool _axisZ) { unsafe { - if (fn__startNetworkedParticleFxNonLoopedOnEntity == null) fn__startNetworkedParticleFxNonLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnEntity"); + if (fn__startNetworkedParticleFxNonLoopedOnEntity == null) fn__startNetworkedParticleFxNonLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnEntity"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxNonLoopedOnEntity(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _scale, _axisX, _axisY, _axisZ); + var result = fn__startNetworkedParticleFxNonLoopedOnEntity(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _scale, (byte) (_axisX ? 1 : 0), (byte) (_axisY ? 1 : 0), (byte) (_axisZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36200,13 +36200,13 @@ public bool StartNetworkedParticleFxNonLoopedOnEntity(string _effectName, int _e public bool StartNetworkedParticleFxNonLoopedOnEntityBone(string _effectName, int _entity, float _offsetX, float _offsetY, float _offsetZ, float _rotX, float _rotY, float _rotZ, int _boneIndex, float _scale, bool _axisX, bool _axisY, bool _axisZ) { unsafe { - if (fn__startNetworkedParticleFxNonLoopedOnEntityBone == null) fn__startNetworkedParticleFxNonLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnEntityBone"); + if (fn__startNetworkedParticleFxNonLoopedOnEntityBone == null) fn__startNetworkedParticleFxNonLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxNonLoopedOnEntityBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxNonLoopedOnEntityBone(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, _axisX, _axisY, _axisZ); + var result = fn__startNetworkedParticleFxNonLoopedOnEntityBone(&success, ptr_effectName, _entity, _offsetX, _offsetY, _offsetZ, _rotX, _rotY, _rotZ, _boneIndex, _scale, (byte) (_axisX ? 1 : 0), (byte) (_axisY ? 1 : 0), (byte) (_axisZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36233,9 +36233,9 @@ public void SetParticleFxNonLoopedAlpha(float _alpha) public void _0x8CDE909A0370BB3A(bool _toggle) { unsafe { - if (fn__0x8CDE909A0370BB3A == null) fn__0x8CDE909A0370BB3A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8CDE909A0370BB3A"); + if (fn__0x8CDE909A0370BB3A == null) fn__0x8CDE909A0370BB3A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8CDE909A0370BB3A"); var success = false; - fn__0x8CDE909A0370BB3A(&success, _toggle); + fn__0x8CDE909A0370BB3A(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36243,10 +36243,10 @@ public void _0x8CDE909A0370BB3A(bool _toggle) public int StartParticleFxLoopedAtCoord(string _effectName, float _x, float _y, float _z, float _xRot, float _yRot, float _zRot, float _scale, bool _xAxis, bool _yAxis, bool _zAxis, bool _p11) { unsafe { - if (fn__startParticleFxLoopedAtCoord == null) fn__startParticleFxLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedAtCoord"); + if (fn__startParticleFxLoopedAtCoord == null) fn__startParticleFxLoopedAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedAtCoord"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxLoopedAtCoord(&success, ptr_effectName, _x, _y, _z, _xRot, _yRot, _zRot, _scale, _xAxis, _yAxis, _zAxis, _p11); + var result = fn__startParticleFxLoopedAtCoord(&success, ptr_effectName, _x, _y, _z, _xRot, _yRot, _zRot, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0), (byte) (_p11 ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36257,10 +36257,10 @@ public int StartParticleFxLoopedAtCoord(string _effectName, float _x, float _y, public int StartParticleFxLoopedOnPedBone(string _effectName, int _ped, float _xOffset, float _yOffset, float _zOffset, float _xRot, float _yRot, float _zRot, int _boneIndex, float _scale, bool _xAxis, bool _yAxis, bool _zAxis) { unsafe { - if (fn__startParticleFxLoopedOnPedBone == null) fn__startParticleFxLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnPedBone"); + if (fn__startParticleFxLoopedOnPedBone == null) fn__startParticleFxLoopedOnPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnPedBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxLoopedOnPedBone(&success, ptr_effectName, _ped, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, _xAxis, _yAxis, _zAxis); + var result = fn__startParticleFxLoopedOnPedBone(&success, ptr_effectName, _ped, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36271,10 +36271,10 @@ public int StartParticleFxLoopedOnPedBone(string _effectName, int _ped, float _x public int StartParticleFxLoopedOnEntity(string _effectName, int _entity, float _xOffset, float _yOffset, float _zOffset, float _xRot, float _yRot, float _zRot, float _scale, bool _xAxis, bool _yAxis, bool _zAxis) { unsafe { - if (fn__startParticleFxLoopedOnEntity == null) fn__startParticleFxLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnEntity"); + if (fn__startParticleFxLoopedOnEntity == null) fn__startParticleFxLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnEntity"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxLoopedOnEntity(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _scale, _xAxis, _yAxis, _zAxis); + var result = fn__startParticleFxLoopedOnEntity(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36285,10 +36285,10 @@ public int StartParticleFxLoopedOnEntity(string _effectName, int _entity, float public int StartParticleFxLoopedOnEntityBone(string _effectName, int _entity, float _xOffset, float _yOffset, float _zOffset, float _xRot, float _yRot, float _zRot, int _boneIndex, float _scale, bool _xAxis, bool _yAxis, bool _zAxis) { unsafe { - if (fn__startParticleFxLoopedOnEntityBone == null) fn__startParticleFxLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnEntityBone"); + if (fn__startParticleFxLoopedOnEntityBone == null) fn__startParticleFxLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startParticleFxLoopedOnEntityBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startParticleFxLoopedOnEntityBone(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, _xAxis, _yAxis, _zAxis); + var result = fn__startParticleFxLoopedOnEntityBone(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36299,10 +36299,10 @@ public int StartParticleFxLoopedOnEntityBone(string _effectName, int _entity, fl public int StartNetworkedParticleFxLoopedOnEntity(string _effectName, int _entity, float _xOffset, float _yOffset, float _zOffset, float _xRot, float _yRot, float _zRot, float _scale, bool _xAxis, bool _yAxis, bool _zAxis, int _p12, int _p13, int _p14, int _p15) { unsafe { - if (fn__startNetworkedParticleFxLoopedOnEntity == null) fn__startNetworkedParticleFxLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxLoopedOnEntity"); + if (fn__startNetworkedParticleFxLoopedOnEntity == null) fn__startNetworkedParticleFxLoopedOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxLoopedOnEntity"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxLoopedOnEntity(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _scale, _xAxis, _yAxis, _zAxis, _p12, _p13, _p14, _p15); + var result = fn__startNetworkedParticleFxLoopedOnEntity(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0), _p12, _p13, _p14, _p15); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36313,10 +36313,10 @@ public int StartNetworkedParticleFxLoopedOnEntity(string _effectName, int _entit public int StartNetworkedParticleFxLoopedOnEntityBone(string _effectName, int _entity, float _xOffset, float _yOffset, float _zOffset, float _xRot, float _yRot, float _zRot, int _boneIndex, float _scale, bool _xAxis, bool _yAxis, bool _zAxis, int _p13, int _p14, int _p15, int _p16) { unsafe { - if (fn__startNetworkedParticleFxLoopedOnEntityBone == null) fn__startNetworkedParticleFxLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxLoopedOnEntityBone"); + if (fn__startNetworkedParticleFxLoopedOnEntityBone == null) fn__startNetworkedParticleFxLoopedOnEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startNetworkedParticleFxLoopedOnEntityBone"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - var result = fn__startNetworkedParticleFxLoopedOnEntityBone(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, _xAxis, _yAxis, _zAxis, _p13, _p14, _p15, _p16); + var result = fn__startNetworkedParticleFxLoopedOnEntityBone(&success, ptr_effectName, _entity, _xOffset, _yOffset, _zOffset, _xRot, _yRot, _zRot, _boneIndex, _scale, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0), _p13, _p14, _p15, _p16); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); return result; @@ -36326,9 +36326,9 @@ public int StartNetworkedParticleFxLoopedOnEntityBone(string _effectName, int _e public void StopParticleFxLooped(int _ptfxHandle, bool _p1) { unsafe { - if (fn__stopParticleFxLooped == null) fn__stopParticleFxLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopParticleFxLooped"); + if (fn__stopParticleFxLooped == null) fn__stopParticleFxLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopParticleFxLooped"); var success = false; - fn__stopParticleFxLooped(&success, _ptfxHandle, _p1); + fn__stopParticleFxLooped(&success, _ptfxHandle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36336,9 +36336,9 @@ public void StopParticleFxLooped(int _ptfxHandle, bool _p1) public void RemoveParticleFx(int _ptfxHandle, bool _p1) { unsafe { - if (fn__removeParticleFx == null) fn__removeParticleFx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeParticleFx"); + if (fn__removeParticleFx == null) fn__removeParticleFx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeParticleFx"); var success = false; - fn__removeParticleFx(&success, _ptfxHandle, _p1); + fn__removeParticleFx(&success, _ptfxHandle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36377,11 +36377,11 @@ public void _0xBA0127DA25FD54C9(int _p0, int _p1) public bool DoesParticleFxLoopedExist(int _ptfxHandle) { unsafe { - if (fn__doesParticleFxLoopedExist == null) fn__doesParticleFxLoopedExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesParticleFxLoopedExist"); + if (fn__doesParticleFxLoopedExist == null) fn__doesParticleFxLoopedExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesParticleFxLoopedExist"); var success = false; var result = fn__doesParticleFxLoopedExist(&success, _ptfxHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36398,10 +36398,10 @@ public void SetParticleFxLoopedOffsets(int _ptfxHandle, float _x, float _y, floa public void SetParticleFxLoopedEvolution(int _ptfxHandle, string _propertyName, float _amount, bool _noNetwork) { unsafe { - if (fn__setParticleFxLoopedEvolution == null) fn__setParticleFxLoopedEvolution = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxLoopedEvolution"); + if (fn__setParticleFxLoopedEvolution == null) fn__setParticleFxLoopedEvolution = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxLoopedEvolution"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); - fn__setParticleFxLoopedEvolution(&success, _ptfxHandle, ptr_propertyName, _amount, _noNetwork); + fn__setParticleFxLoopedEvolution(&success, _ptfxHandle, ptr_propertyName, _amount, (byte) (_noNetwork ? 1 : 0)); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); } @@ -36410,9 +36410,9 @@ public void SetParticleFxLoopedEvolution(int _ptfxHandle, string _propertyName, public void SetParticleFxLoopedColour(int _ptfxHandle, float _r, float _g, float _b, bool _p4) { unsafe { - if (fn__setParticleFxLoopedColour == null) fn__setParticleFxLoopedColour = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxLoopedColour"); + if (fn__setParticleFxLoopedColour == null) fn__setParticleFxLoopedColour = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxLoopedColour"); var success = false; - fn__setParticleFxLoopedColour(&success, _ptfxHandle, _r, _g, _b, _p4); + fn__setParticleFxLoopedColour(&success, _ptfxHandle, _r, _g, _b, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36450,9 +36450,9 @@ public void SetParticleFxLoopedFarClipDist(int _ptfxHandle, float _range) public void SetParticleFxCamInsideVehicle(bool _p0) { unsafe { - if (fn__setParticleFxCamInsideVehicle == null) fn__setParticleFxCamInsideVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxCamInsideVehicle"); + if (fn__setParticleFxCamInsideVehicle == null) fn__setParticleFxCamInsideVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxCamInsideVehicle"); var success = false; - fn__setParticleFxCamInsideVehicle(&success, _p0); + fn__setParticleFxCamInsideVehicle(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36461,9 +36461,9 @@ public void SetParticleFxCamInsideVehicle(bool _p0) public void SetParticleFxCamInsideNonplayerVehicle(int _vehicle, bool _p1) { unsafe { - if (fn__setParticleFxCamInsideNonplayerVehicle == null) fn__setParticleFxCamInsideNonplayerVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxCamInsideNonplayerVehicle"); + if (fn__setParticleFxCamInsideNonplayerVehicle == null) fn__setParticleFxCamInsideNonplayerVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setParticleFxCamInsideNonplayerVehicle"); var success = false; - fn__setParticleFxCamInsideNonplayerVehicle(&success, _vehicle, _p1); + fn__setParticleFxCamInsideNonplayerVehicle(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36501,9 +36501,9 @@ public void _0x908311265D42A820(int _p0) public void _0xCFD16F0DB5A3535C(bool _toggle) { unsafe { - if (fn__0xCFD16F0DB5A3535C == null) fn__0xCFD16F0DB5A3535C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCFD16F0DB5A3535C"); + if (fn__0xCFD16F0DB5A3535C == null) fn__0xCFD16F0DB5A3535C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCFD16F0DB5A3535C"); var success = false; - fn__0xCFD16F0DB5A3535C(&success, _toggle); + fn__0xCFD16F0DB5A3535C(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36511,9 +36511,9 @@ public void _0xCFD16F0DB5A3535C(bool _toggle) public void _0x5F6DF3D92271E8A1(bool _toggle) { unsafe { - if (fn__0x5F6DF3D92271E8A1 == null) fn__0x5F6DF3D92271E8A1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5F6DF3D92271E8A1"); + if (fn__0x5F6DF3D92271E8A1 == null) fn__0x5F6DF3D92271E8A1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5F6DF3D92271E8A1"); var success = false; - fn__0x5F6DF3D92271E8A1(&success, _toggle); + fn__0x5F6DF3D92271E8A1(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36531,9 +36531,9 @@ public void _0x2B40A97646381508(int _p0) public void EnableClownBloodVfx(bool _toggle) { unsafe { - if (fn__enableClownBloodVfx == null) fn__enableClownBloodVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableClownBloodVfx"); + if (fn__enableClownBloodVfx == null) fn__enableClownBloodVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableClownBloodVfx"); var success = false; - fn__enableClownBloodVfx(&success, _toggle); + fn__enableClownBloodVfx(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36541,9 +36541,9 @@ public void EnableClownBloodVfx(bool _toggle) public void EnableAlienBloodVfx(bool _toggle) { unsafe { - if (fn__enableAlienBloodVfx == null) fn__enableAlienBloodVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableAlienBloodVfx"); + if (fn__enableAlienBloodVfx == null) fn__enableAlienBloodVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableAlienBloodVfx"); var success = false; - fn__enableAlienBloodVfx(&success, _toggle); + fn__enableAlienBloodVfx(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36571,9 +36571,9 @@ public void _0xBB90E12CAC1DAB25(float _p0) public void _0xCA4AE345A153D573(bool _p0) { unsafe { - if (fn__0xCA4AE345A153D573 == null) fn__0xCA4AE345A153D573 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCA4AE345A153D573"); + if (fn__0xCA4AE345A153D573 == null) fn__0xCA4AE345A153D573 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCA4AE345A153D573"); var success = false; - fn__0xCA4AE345A153D573(&success, _p0); + fn__0xCA4AE345A153D573(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36623,9 +36623,9 @@ public void _0x5DBF05DB5926D089(int _p0) public void _0x9B079E5221D984D3(bool _p0) { unsafe { - if (fn__0x9B079E5221D984D3 == null) fn__0x9B079E5221D984D3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9B079E5221D984D3"); + if (fn__0x9B079E5221D984D3 == null) fn__0x9B079E5221D984D3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9B079E5221D984D3"); var success = false; - fn__0x9B079E5221D984D3(&success, _p0); + fn__0x9B079E5221D984D3(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36671,9 +36671,9 @@ public void ResetParticleFxOverride(string _name) public void _0xA46B73FAA3460AE1(bool _p0) { unsafe { - if (fn__0xA46B73FAA3460AE1 == null) fn__0xA46B73FAA3460AE1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA46B73FAA3460AE1"); + if (fn__0xA46B73FAA3460AE1 == null) fn__0xA46B73FAA3460AE1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA46B73FAA3460AE1"); var success = false; - fn__0xA46B73FAA3460AE1(&success, _p0); + fn__0xA46B73FAA3460AE1(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36763,9 +36763,9 @@ public void RemoveDecalsFromVehicle(int _vehicle) public int AddDecal(int _decalType, float _posX, float _posY, float _posZ, float _p4, float _p5, float _p6, float _p7, float _p8, float _p9, float _width, float _height, float _rCoef, float _gCoef, float _bCoef, float _opacity, float _timeout, bool _p17, bool _p18, bool _p19) { unsafe { - if (fn__addDecal == null) fn__addDecal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addDecal"); + if (fn__addDecal == null) fn__addDecal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addDecal"); var success = false; - var result = fn__addDecal(&success, _decalType, _posX, _posY, _posZ, _p4, _p5, _p6, _p7, _p8, _p9, _width, _height, _rCoef, _gCoef, _bCoef, _opacity, _timeout, _p17, _p18, _p19); + var result = fn__addDecal(&success, _decalType, _posX, _posY, _posZ, _p4, _p5, _p6, _p7, _p8, _p9, _width, _height, _rCoef, _gCoef, _bCoef, _opacity, _timeout, (byte) (_p17 ? 1 : 0), (byte) (_p18 ? 1 : 0), (byte) (_p19 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -36825,11 +36825,11 @@ public void RemoveDecal(int _decal) public bool IsDecalAlive(int _decal) { unsafe { - if (fn__isDecalAlive == null) fn__isDecalAlive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDecalAlive"); + if (fn__isDecalAlive == null) fn__isDecalAlive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDecalAlive"); var success = false; var result = fn__isDecalAlive(&success, _decal); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36877,11 +36877,11 @@ public void SetDisableDecalRenderingThisFrame() public bool GetIsPetrolDecalInRange(float _xCoord, float _yCoord, float _zCoord, float _radius) { unsafe { - if (fn__getIsPetrolDecalInRange == null) fn__getIsPetrolDecalInRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPetrolDecalInRange"); + if (fn__getIsPetrolDecalInRange == null) fn__getIsPetrolDecalInRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPetrolDecalInRange"); var success = false; var result = fn__getIsPetrolDecalInRange(&success, _xCoord, _yCoord, _zCoord, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36925,11 +36925,11 @@ public void MoveVehicleDecals(int _p0, int _p1) public bool AddVehicleCrewEmblem(int _vehicle, int _ped, int _boneIndex, float _x1, float _x2, float _x3, float _y1, float _y2, float _y3, float _z1, float _z2, float _z3, float _scale, int _p13, int _alpha) { unsafe { - if (fn__addVehicleCrewEmblem == null) fn__addVehicleCrewEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addVehicleCrewEmblem"); + if (fn__addVehicleCrewEmblem == null) fn__addVehicleCrewEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addVehicleCrewEmblem"); var success = false; var result = fn__addVehicleCrewEmblem(&success, _vehicle, _ped, _boneIndex, _x1, _x2, _x3, _y1, _y2, _y3, _z1, _z2, _z3, _scale, _p13, _alpha); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -36971,20 +36971,20 @@ public int GetVehicleCrewEmblemRequestState(int _vehicle, int _p1) public bool DoesVehicleHaveCrewEmblem(int _vehicle, int _p1) { unsafe { - if (fn__doesVehicleHaveCrewEmblem == null) fn__doesVehicleHaveCrewEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveCrewEmblem"); + if (fn__doesVehicleHaveCrewEmblem == null) fn__doesVehicleHaveCrewEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveCrewEmblem"); var success = false; var result = fn__doesVehicleHaveCrewEmblem(&success, _vehicle, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x0E4299C549F0D1F1(bool _toggle) { unsafe { - if (fn__0x0E4299C549F0D1F1 == null) fn__0x0E4299C549F0D1F1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0E4299C549F0D1F1"); + if (fn__0x0E4299C549F0D1F1 == null) fn__0x0E4299C549F0D1F1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0E4299C549F0D1F1"); var success = false; - fn__0x0E4299C549F0D1F1(&success, _toggle); + fn__0x0E4299C549F0D1F1(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -36992,9 +36992,9 @@ public void _0x0E4299C549F0D1F1(bool _toggle) public void _0x02369D5C8A51FDCF(bool _toggle) { unsafe { - if (fn__0x02369D5C8A51FDCF == null) fn__0x02369D5C8A51FDCF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x02369D5C8A51FDCF"); + if (fn__0x02369D5C8A51FDCF == null) fn__0x02369D5C8A51FDCF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x02369D5C8A51FDCF"); var success = false; - fn__0x02369D5C8A51FDCF(&success, _toggle); + fn__0x02369D5C8A51FDCF(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37054,9 +37054,9 @@ public void RegisterNoirScreenEffectThisFrame() public void DisableVehicleDistantlights(bool _toggle) { unsafe { - if (fn__disableVehicleDistantlights == null) fn__disableVehicleDistantlights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleDistantlights"); + if (fn__disableVehicleDistantlights == null) fn__disableVehicleDistantlights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleDistantlights"); var success = false; - fn__disableVehicleDistantlights(&success, _toggle); + fn__disableVehicleDistantlights(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37064,9 +37064,9 @@ public void DisableVehicleDistantlights(bool _toggle) public void _0x03300B57FCAC6DDB(bool _p0) { unsafe { - if (fn__0x03300B57FCAC6DDB == null) fn__0x03300B57FCAC6DDB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x03300B57FCAC6DDB"); + if (fn__0x03300B57FCAC6DDB == null) fn__0x03300B57FCAC6DDB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x03300B57FCAC6DDB"); var success = false; - fn__0x03300B57FCAC6DDB(&success, _p0); + fn__0x03300B57FCAC6DDB(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37084,9 +37084,9 @@ public void _0x98EDF76A7271E4F2() public void SetForcePedFootstepsTracks(bool _toggle) { unsafe { - if (fn__setForcePedFootstepsTracks == null) fn__setForcePedFootstepsTracks = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForcePedFootstepsTracks"); + if (fn__setForcePedFootstepsTracks == null) fn__setForcePedFootstepsTracks = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForcePedFootstepsTracks"); var success = false; - fn__setForcePedFootstepsTracks(&success, _toggle); + fn__setForcePedFootstepsTracks(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37094,9 +37094,9 @@ public void SetForcePedFootstepsTracks(bool _toggle) public void SetForceVehicleTrails(bool _toggle) { unsafe { - if (fn__setForceVehicleTrails == null) fn__setForceVehicleTrails = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceVehicleTrails"); + if (fn__setForceVehicleTrails == null) fn__setForceVehicleTrails = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceVehicleTrails"); var success = false; - fn__setForceVehicleTrails(&success, _toggle); + fn__setForceVehicleTrails(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37385,57 +37385,57 @@ public int RequestScaleformMovieInteractive(string _scaleformName) public bool HasScaleformMovieLoaded(int _scaleformHandle) { unsafe { - if (fn__hasScaleformMovieLoaded == null) fn__hasScaleformMovieLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformMovieLoaded"); + if (fn__hasScaleformMovieLoaded == null) fn__hasScaleformMovieLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformMovieLoaded"); var success = false; var result = fn__hasScaleformMovieLoaded(&success, _scaleformHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x2FCB133CA50A49EB(int _val) { unsafe { - if (fn__0x2FCB133CA50A49EB == null) fn__0x2FCB133CA50A49EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2FCB133CA50A49EB"); + if (fn__0x2FCB133CA50A49EB == null) fn__0x2FCB133CA50A49EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2FCB133CA50A49EB"); var success = false; var result = fn__0x2FCB133CA50A49EB(&success, _val); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x86255B1FC929E33E(int _val) { unsafe { - if (fn__0x86255B1FC929E33E == null) fn__0x86255B1FC929E33E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x86255B1FC929E33E"); + if (fn__0x86255B1FC929E33E == null) fn__0x86255B1FC929E33E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x86255B1FC929E33E"); var success = false; var result = fn__0x86255B1FC929E33E(&success, _val); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasScaleformMovieFilenameLoaded(string _scaleformName) { unsafe { - if (fn__hasScaleformMovieFilenameLoaded == null) fn__hasScaleformMovieFilenameLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformMovieFilenameLoaded"); + if (fn__hasScaleformMovieFilenameLoaded == null) fn__hasScaleformMovieFilenameLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformMovieFilenameLoaded"); var success = false; var ptr_scaleformName = MemoryUtils.StringToHGlobalUtf8(_scaleformName); var result = fn__hasScaleformMovieFilenameLoaded(&success, ptr_scaleformName); Marshal.FreeHGlobal(ptr_scaleformName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasScaleformContainerMovieLoadedIntoParent(int _scaleformHandle) { unsafe { - if (fn__hasScaleformContainerMovieLoadedIntoParent == null) fn__hasScaleformContainerMovieLoadedIntoParent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformContainerMovieLoadedIntoParent"); + if (fn__hasScaleformContainerMovieLoadedIntoParent == null) fn__hasScaleformContainerMovieLoadedIntoParent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformContainerMovieLoadedIntoParent"); var success = false; var result = fn__hasScaleformContainerMovieLoadedIntoParent(&success, _scaleformHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37454,9 +37454,9 @@ public void SetScaleformMovieAsNoLongerNeeded(ref int _scaleformHandle) public void SetScaleformMovieToUseSystemTime(int _scaleform, bool _toggle) { unsafe { - if (fn__setScaleformMovieToUseSystemTime == null) fn__setScaleformMovieToUseSystemTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScaleformMovieToUseSystemTime"); + if (fn__setScaleformMovieToUseSystemTime == null) fn__setScaleformMovieToUseSystemTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScaleformMovieToUseSystemTime"); var success = false; - fn__setScaleformMovieToUseSystemTime(&success, _scaleform, _toggle); + fn__setScaleformMovieToUseSystemTime(&success, _scaleform, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37474,9 +37474,9 @@ public void _0x32F34FF7F617643B(int _p0, int _p1) public void SetScaleformFitRendertarget(int _scaleformHandle, bool _toggle) { unsafe { - if (fn__setScaleformFitRendertarget == null) fn__setScaleformFitRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScaleformFitRendertarget"); + if (fn__setScaleformFitRendertarget == null) fn__setScaleformFitRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScaleformFitRendertarget"); var success = false; - fn__setScaleformFitRendertarget(&success, _scaleformHandle, _toggle); + fn__setScaleformFitRendertarget(&success, _scaleformHandle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37602,52 +37602,52 @@ public void CallScaleformMovieMethodWithNumberAndString(int _scaleform, string _ public bool BeginScaleformScriptHudMovieMethod(int _hudComponent, string _methodName) { unsafe { - if (fn__beginScaleformScriptHudMovieMethod == null) fn__beginScaleformScriptHudMovieMethod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformScriptHudMovieMethod"); + if (fn__beginScaleformScriptHudMovieMethod == null) fn__beginScaleformScriptHudMovieMethod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformScriptHudMovieMethod"); var success = false; var ptr_methodName = MemoryUtils.StringToHGlobalUtf8(_methodName); var result = fn__beginScaleformScriptHudMovieMethod(&success, _hudComponent, ptr_methodName); Marshal.FreeHGlobal(ptr_methodName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool BeginScaleformMovieMethod(int _scaleform, string _methodName) { unsafe { - if (fn__beginScaleformMovieMethod == null) fn__beginScaleformMovieMethod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethod"); + if (fn__beginScaleformMovieMethod == null) fn__beginScaleformMovieMethod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethod"); var success = false; var ptr_methodName = MemoryUtils.StringToHGlobalUtf8(_methodName); var result = fn__beginScaleformMovieMethod(&success, _scaleform, ptr_methodName); Marshal.FreeHGlobal(ptr_methodName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool BeginScaleformMovieMethodOnFrontend(string _methodName) { unsafe { - if (fn__beginScaleformMovieMethodOnFrontend == null) fn__beginScaleformMovieMethodOnFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethodOnFrontend"); + if (fn__beginScaleformMovieMethodOnFrontend == null) fn__beginScaleformMovieMethodOnFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethodOnFrontend"); var success = false; var ptr_methodName = MemoryUtils.StringToHGlobalUtf8(_methodName); var result = fn__beginScaleformMovieMethodOnFrontend(&success, ptr_methodName); Marshal.FreeHGlobal(ptr_methodName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool BeginScaleformMovieMethodOnFrontendHeader(string _methodName) { unsafe { - if (fn__beginScaleformMovieMethodOnFrontendHeader == null) fn__beginScaleformMovieMethodOnFrontendHeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethodOnFrontendHeader"); + if (fn__beginScaleformMovieMethodOnFrontendHeader == null) fn__beginScaleformMovieMethodOnFrontendHeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_beginScaleformMovieMethodOnFrontendHeader"); var success = false; var ptr_methodName = MemoryUtils.StringToHGlobalUtf8(_methodName); var result = fn__beginScaleformMovieMethodOnFrontendHeader(&success, ptr_methodName); Marshal.FreeHGlobal(ptr_methodName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37675,11 +37675,11 @@ public int EndScaleformMovieMethodReturnValue() public bool IsScaleformMovieMethodReturnValueReady(int _methodReturn) { unsafe { - if (fn__isScaleformMovieMethodReturnValueReady == null) fn__isScaleformMovieMethodReturnValueReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScaleformMovieMethodReturnValueReady"); + if (fn__isScaleformMovieMethodReturnValueReady == null) fn__isScaleformMovieMethodReturnValueReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScaleformMovieMethodReturnValueReady"); var success = false; var result = fn__isScaleformMovieMethodReturnValueReady(&success, _methodReturn); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37697,11 +37697,11 @@ public int GetScaleformMovieMethodReturnValueInt(int _methodReturn) public bool GetScaleformMovieMethodReturnValueBool(int _methodReturn) { unsafe { - if (fn__getScaleformMovieMethodReturnValueBool == null) fn__getScaleformMovieMethodReturnValueBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScaleformMovieMethodReturnValueBool"); + if (fn__getScaleformMovieMethodReturnValueBool == null) fn__getScaleformMovieMethodReturnValueBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScaleformMovieMethodReturnValueBool"); var success = false; var result = fn__getScaleformMovieMethodReturnValueBool(&success, _methodReturn); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37741,9 +37741,9 @@ public void ScaleformMovieMethodAddParamFloat(float _value) public void ScaleformMovieMethodAddParamBool(bool _value) { unsafe { - if (fn__scaleformMovieMethodAddParamBool == null) fn__scaleformMovieMethodAddParamBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scaleformMovieMethodAddParamBool"); + if (fn__scaleformMovieMethodAddParamBool == null) fn__scaleformMovieMethodAddParamBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scaleformMovieMethodAddParamBool"); var success = false; - fn__scaleformMovieMethodAddParamBool(&success, _value); + fn__scaleformMovieMethodAddParamBool(&success, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -37819,11 +37819,11 @@ public void ScaleformMovieMethodAddParamPlayerNameString(string _string) public bool DoesLatestBriefStringExist(int _p0) { unsafe { - if (fn__doesLatestBriefStringExist == null) fn__doesLatestBriefStringExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesLatestBriefStringExist"); + if (fn__doesLatestBriefStringExist == null) fn__doesLatestBriefStringExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesLatestBriefStringExist"); var success = false; var result = fn__doesLatestBriefStringExist(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37850,11 +37850,11 @@ public void RequestScaleformScriptHudMovie(int _hudComponent) public bool HasScaleformScriptHudMovieLoaded(int _hudComponent) { unsafe { - if (fn__hasScaleformScriptHudMovieLoaded == null) fn__hasScaleformScriptHudMovieLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformScriptHudMovieLoaded"); + if (fn__hasScaleformScriptHudMovieLoaded == null) fn__hasScaleformScriptHudMovieLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScaleformScriptHudMovieLoaded"); var success = false; var result = fn__hasScaleformScriptHudMovieLoaded(&success, _hudComponent); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37871,11 +37871,11 @@ public void RemoveScaleformScriptHudMovie(int _hudComponent) public bool _0xD1C7CB175E012964(int _scaleformHandle) { unsafe { - if (fn__0xD1C7CB175E012964 == null) fn__0xD1C7CB175E012964 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD1C7CB175E012964"); + if (fn__0xD1C7CB175E012964 == null) fn__0xD1C7CB175E012964 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD1C7CB175E012964"); var success = false; var result = fn__0xD1C7CB175E012964(&success, _scaleformHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -37934,10 +37934,10 @@ public void DrawTvChannel(float _xPos, float _yPos, float _xScale, float _yScale public void SetTvChannelPlaylist(int _tvChannel, string _playlistName, bool _restart) { unsafe { - if (fn__setTvChannelPlaylist == null) fn__setTvChannelPlaylist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTvChannelPlaylist"); + if (fn__setTvChannelPlaylist == null) fn__setTvChannelPlaylist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTvChannelPlaylist"); var success = false; var ptr_playlistName = MemoryUtils.StringToHGlobalUtf8(_playlistName); - fn__setTvChannelPlaylist(&success, _tvChannel, ptr_playlistName, _restart); + fn__setTvChannelPlaylist(&success, _tvChannel, ptr_playlistName, (byte) (_restart ? 1 : 0)); Marshal.FreeHGlobal(ptr_playlistName); if (!success) throw new Exception("Native execution failed"); } @@ -37968,31 +37968,31 @@ public void ClearTvChannelPlaylist(int _tvChannel) public bool IsPlaylistUnk(int _tvChannel, int _p1) { unsafe { - if (fn__isPlaylistUnk == null) fn__isPlaylistUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaylistUnk"); + if (fn__isPlaylistUnk == null) fn__isPlaylistUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaylistUnk"); var success = false; var result = fn__isPlaylistUnk(&success, _tvChannel, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsTvPlaylistItemPlaying(uint _videoCliphash) { unsafe { - if (fn__isTvPlaylistItemPlaying == null) fn__isTvPlaylistItemPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTvPlaylistItemPlaying"); + if (fn__isTvPlaylistItemPlaying == null) fn__isTvPlaylistItemPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTvPlaylistItemPlaying"); var success = false; var result = fn__isTvPlaylistItemPlaying(&success, _videoCliphash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void EnableMovieKeyframeWait(bool _toggle) { unsafe { - if (fn__enableMovieKeyframeWait == null) fn__enableMovieKeyframeWait = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableMovieKeyframeWait"); + if (fn__enableMovieKeyframeWait == null) fn__enableMovieKeyframeWait = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableMovieKeyframeWait"); var success = false; - fn__enableMovieKeyframeWait(&success, _toggle); + fn__enableMovieKeyframeWait(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38021,9 +38021,9 @@ public uint _0x30432A0118736E00() public void EnableMovieSubtitles(bool _toggle) { unsafe { - if (fn__enableMovieSubtitles == null) fn__enableMovieSubtitles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableMovieSubtitles"); + if (fn__enableMovieSubtitles == null) fn__enableMovieSubtitles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableMovieSubtitles"); var success = false; - fn__enableMovieSubtitles(&success, _toggle); + fn__enableMovieSubtitles(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38031,24 +38031,24 @@ public void EnableMovieSubtitles(bool _toggle) public bool Ui3dsceneIsAvailable() { unsafe { - if (fn__ui3dsceneIsAvailable == null) fn__ui3dsceneIsAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ui3dsceneIsAvailable"); + if (fn__ui3dsceneIsAvailable == null) fn__ui3dsceneIsAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ui3dsceneIsAvailable"); var success = false; var result = fn__ui3dsceneIsAvailable(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Ui3dscenePushPreset(string _presetName) { unsafe { - if (fn__ui3dscenePushPreset == null) fn__ui3dscenePushPreset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ui3dscenePushPreset"); + if (fn__ui3dscenePushPreset == null) fn__ui3dscenePushPreset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ui3dscenePushPreset"); var success = false; var ptr_presetName = MemoryUtils.StringToHGlobalUtf8(_presetName); var result = fn__ui3dscenePushPreset(&success, ptr_presetName); Marshal.FreeHGlobal(ptr_presetName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38056,13 +38056,13 @@ public bool Ui3dscenePushPreset(string _presetName) public bool _0x98C4FE6EC34154CA(string _presetName, int _ped, int _p2, float _posX, float _posY, float _posZ) { unsafe { - if (fn__0x98C4FE6EC34154CA == null) fn__0x98C4FE6EC34154CA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x98C4FE6EC34154CA"); + if (fn__0x98C4FE6EC34154CA == null) fn__0x98C4FE6EC34154CA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x98C4FE6EC34154CA"); var success = false; var ptr_presetName = MemoryUtils.StringToHGlobalUtf8(_presetName); var result = fn__0x98C4FE6EC34154CA(&success, ptr_presetName, _ped, _p2, _posX, _posY, _posZ); Marshal.FreeHGlobal(ptr_presetName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38079,9 +38079,9 @@ public void _0x7A42B2E236E71415() public void _0x108BE26959A9D9BB(bool _toggle) { unsafe { - if (fn__0x108BE26959A9D9BB == null) fn__0x108BE26959A9D9BB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x108BE26959A9D9BB"); + if (fn__0x108BE26959A9D9BB == null) fn__0x108BE26959A9D9BB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x108BE26959A9D9BB"); var success = false; - fn__0x108BE26959A9D9BB(&success, _toggle); + fn__0x108BE26959A9D9BB(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38089,9 +38089,9 @@ public void _0x108BE26959A9D9BB(bool _toggle) public void TerraingridActivate(bool _toggle) { unsafe { - if (fn__terraingridActivate == null) fn__terraingridActivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_terraingridActivate"); + if (fn__terraingridActivate == null) fn__terraingridActivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_terraingridActivate"); var success = false; - fn__terraingridActivate(&success, _toggle); + fn__terraingridActivate(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38119,10 +38119,10 @@ public void TerraingridSetColours(int _lowR, int _lowG, int _lowB, int _lowAlpha public void AnimpostfxPlay(string _effectName, int _duration, bool _looped) { unsafe { - if (fn__animpostfxPlay == null) fn__animpostfxPlay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_animpostfxPlay"); + if (fn__animpostfxPlay == null) fn__animpostfxPlay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_animpostfxPlay"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); - fn__animpostfxPlay(&success, ptr_effectName, _duration, _looped); + fn__animpostfxPlay(&success, ptr_effectName, _duration, (byte) (_looped ? 1 : 0)); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); } @@ -38156,13 +38156,13 @@ public float AnimpostfxGetUnk(string _effectName) public bool AnimpostfxIsRunning(string _effectName) { unsafe { - if (fn__animpostfxIsRunning == null) fn__animpostfxIsRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_animpostfxIsRunning"); + if (fn__animpostfxIsRunning == null) fn__animpostfxIsRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_animpostfxIsRunning"); var success = false; var ptr_effectName = MemoryUtils.StringToHGlobalUtf8(_effectName); var result = fn__animpostfxIsRunning(&success, ptr_effectName); Marshal.FreeHGlobal(ptr_effectName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38192,10 +38192,10 @@ public void AnimpostfxStopAndDoUnk(string _effectName) public void PlayPedRingtone(string _ringtoneName, int _ped, bool _p2) { unsafe { - if (fn__playPedRingtone == null) fn__playPedRingtone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playPedRingtone"); + if (fn__playPedRingtone == null) fn__playPedRingtone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playPedRingtone"); var success = false; var ptr_ringtoneName = MemoryUtils.StringToHGlobalUtf8(_ringtoneName); - fn__playPedRingtone(&success, ptr_ringtoneName, _ped, _p2); + fn__playPedRingtone(&success, ptr_ringtoneName, _ped, (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_ringtoneName); if (!success) throw new Exception("Native execution failed"); } @@ -38205,11 +38205,11 @@ public void PlayPedRingtone(string _ringtoneName, int _ped, bool _p2) public bool IsPedRingtonePlaying(int _ped) { unsafe { - if (fn__isPedRingtonePlaying == null) fn__isPedRingtonePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRingtonePlaying"); + if (fn__isPedRingtonePlaying == null) fn__isPedRingtonePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRingtonePlaying"); var success = false; var result = fn__isPedRingtonePlaying(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38227,22 +38227,22 @@ public void StopPedRingtone(int _ped) public bool IsMobilePhoneCallOngoing() { unsafe { - if (fn__isMobilePhoneCallOngoing == null) fn__isMobilePhoneCallOngoing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneCallOngoing"); + if (fn__isMobilePhoneCallOngoing == null) fn__isMobilePhoneCallOngoing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneCallOngoing"); var success = false; var result = fn__isMobilePhoneCallOngoing(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC8B1B2425604CDD0() { unsafe { - if (fn__0xC8B1B2425604CDD0 == null) fn__0xC8B1B2425604CDD0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC8B1B2425604CDD0"); + if (fn__0xC8B1B2425604CDD0 == null) fn__0xC8B1B2425604CDD0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC8B1B2425604CDD0"); var success = false; var result = fn__0xC8B1B2425604CDD0(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38259,11 +38259,11 @@ public void CreateNewScriptedConversation() public void AddLineToConversation(int _index, string _p1, string _p2, int _p3, int _p4, bool _p5, bool _p6, bool _p7, bool _p8, int _p9, bool _p10, bool _p11, bool _p12) { unsafe { - if (fn__addLineToConversation == null) fn__addLineToConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addLineToConversation"); + if (fn__addLineToConversation == null) fn__addLineToConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addLineToConversation"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); - fn__addLineToConversation(&success, _index, ptr_p1, ptr_p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, _p11, _p12); + fn__addLineToConversation(&success, _index, ptr_p1, ptr_p2, _p3, _p4, (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _p9, (byte) (_p10 ? 1 : 0), (byte) (_p11 ? 1 : 0), (byte) (_p12 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p1); Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); @@ -38307,9 +38307,9 @@ public void _0x892B6AB8F33606F5(int _p0, int _entity) public void SetMicrophonePosition(bool _p0, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _x3, float _y3, float _z3) { unsafe { - if (fn__setMicrophonePosition == null) fn__setMicrophonePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMicrophonePosition"); + if (fn__setMicrophonePosition == null) fn__setMicrophonePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMicrophonePosition"); var success = false; - fn__setMicrophonePosition(&success, _p0, _x1, _y1, _z1, _x2, _y2, _z2, _x3, _y3, _z3); + fn__setMicrophonePosition(&success, (byte) (_p0 ? 1 : 0), _x1, _y1, _z1, _x2, _y2, _z2, _x3, _y3, _z3); if (!success) throw new Exception("Native execution failed"); } } @@ -38317,9 +38317,9 @@ public void SetMicrophonePosition(bool _p0, float _x1, float _y1, float _z1, flo public void _0x0B568201DD99F0EB(bool _p0) { unsafe { - if (fn__0x0B568201DD99F0EB == null) fn__0x0B568201DD99F0EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0B568201DD99F0EB"); + if (fn__0x0B568201DD99F0EB == null) fn__0x0B568201DD99F0EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0B568201DD99F0EB"); var success = false; - fn__0x0B568201DD99F0EB(&success, _p0); + fn__0x0B568201DD99F0EB(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38327,9 +38327,9 @@ public void _0x0B568201DD99F0EB(bool _p0) public void _0x61631F5DF50D1C34(bool _p0) { unsafe { - if (fn__0x61631F5DF50D1C34 == null) fn__0x61631F5DF50D1C34 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x61631F5DF50D1C34"); + if (fn__0x61631F5DF50D1C34 == null) fn__0x61631F5DF50D1C34 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x61631F5DF50D1C34"); var success = false; - fn__0x61631F5DF50D1C34(&success, _p0); + fn__0x61631F5DF50D1C34(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38337,9 +38337,9 @@ public void _0x61631F5DF50D1C34(bool _p0) public void StartScriptPhoneConversation(bool _p0, bool _p1) { unsafe { - if (fn__startScriptPhoneConversation == null) fn__startScriptPhoneConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptPhoneConversation"); + if (fn__startScriptPhoneConversation == null) fn__startScriptPhoneConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptPhoneConversation"); var success = false; - fn__startScriptPhoneConversation(&success, _p0, _p1); + fn__startScriptPhoneConversation(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38347,9 +38347,9 @@ public void StartScriptPhoneConversation(bool _p0, bool _p1) public void PreloadScriptPhoneConversation(bool _p0, bool _p1) { unsafe { - if (fn__preloadScriptPhoneConversation == null) fn__preloadScriptPhoneConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preloadScriptPhoneConversation"); + if (fn__preloadScriptPhoneConversation == null) fn__preloadScriptPhoneConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preloadScriptPhoneConversation"); var success = false; - fn__preloadScriptPhoneConversation(&success, _p0, _p1); + fn__preloadScriptPhoneConversation(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38357,9 +38357,9 @@ public void PreloadScriptPhoneConversation(bool _p0, bool _p1) public void StartScriptConversation(bool _p0, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__startScriptConversation == null) fn__startScriptConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptConversation"); + if (fn__startScriptConversation == null) fn__startScriptConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptConversation"); var success = false; - fn__startScriptConversation(&success, _p0, _p1, _p2, _p3); + fn__startScriptConversation(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38367,9 +38367,9 @@ public void StartScriptConversation(bool _p0, bool _p1, bool _p2, bool _p3) public void PreloadScriptConversation(bool _p0, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__preloadScriptConversation == null) fn__preloadScriptConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preloadScriptConversation"); + if (fn__preloadScriptConversation == null) fn__preloadScriptConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preloadScriptConversation"); var success = false; - fn__preloadScriptConversation(&success, _p0, _p1, _p2, _p3); + fn__preloadScriptConversation(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38387,33 +38387,33 @@ public void StartPreloadedConversation() public bool GetIsPreloadedConversationReady() { unsafe { - if (fn__getIsPreloadedConversationReady == null) fn__getIsPreloadedConversationReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPreloadedConversationReady"); + if (fn__getIsPreloadedConversationReady == null) fn__getIsPreloadedConversationReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPreloadedConversationReady"); var success = false; var result = fn__getIsPreloadedConversationReady(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScriptedConversationOngoing() { unsafe { - if (fn__isScriptedConversationOngoing == null) fn__isScriptedConversationOngoing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedConversationOngoing"); + if (fn__isScriptedConversationOngoing == null) fn__isScriptedConversationOngoing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedConversationOngoing"); var success = false; var result = fn__isScriptedConversationOngoing(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScriptedConversationLoaded() { unsafe { - if (fn__isScriptedConversationLoaded == null) fn__isScriptedConversationLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedConversationLoaded"); + if (fn__isScriptedConversationLoaded == null) fn__isScriptedConversationLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedConversationLoaded"); var success = false; var result = fn__isScriptedConversationLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38431,9 +38431,9 @@ public int GetCurrentScriptedConversationLine() public void PauseScriptedConversation(bool _p0) { unsafe { - if (fn__pauseScriptedConversation == null) fn__pauseScriptedConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseScriptedConversation"); + if (fn__pauseScriptedConversation == null) fn__pauseScriptedConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseScriptedConversation"); var success = false; - fn__pauseScriptedConversation(&success, _p0); + fn__pauseScriptedConversation(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38451,9 +38451,9 @@ public void RestartScriptedConversation() public int StopScriptedConversation(bool _p0) { unsafe { - if (fn__stopScriptedConversation == null) fn__stopScriptedConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopScriptedConversation"); + if (fn__stopScriptedConversation == null) fn__stopScriptedConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopScriptedConversation"); var success = false; - var result = fn__stopScriptedConversation(&success, _p0); + var result = fn__stopScriptedConversation(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -38514,9 +38514,9 @@ public int _0xAA19F5572C38B564(ref int _p0) public void _0xB542DE8C3D1CB210(bool _p0) { unsafe { - if (fn__0xB542DE8C3D1CB210 == null) fn__0xB542DE8C3D1CB210 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB542DE8C3D1CB210"); + if (fn__0xB542DE8C3D1CB210 == null) fn__0xB542DE8C3D1CB210 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB542DE8C3D1CB210"); var success = false; - fn__0xB542DE8C3D1CB210(&success, _p0); + fn__0xB542DE8C3D1CB210(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -38544,39 +38544,39 @@ public void UnregisterScriptWithAudio() public bool RequestMissionAudioBank(string _p0, bool _p1, int _p2) { unsafe { - if (fn__requestMissionAudioBank == null) fn__requestMissionAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestMissionAudioBank"); + if (fn__requestMissionAudioBank == null) fn__requestMissionAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestMissionAudioBank"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); - var result = fn__requestMissionAudioBank(&success, ptr_p0, _p1, _p2); + var result = fn__requestMissionAudioBank(&success, ptr_p0, (byte) (_p1 ? 1 : 0), _p2); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool RequestAmbientAudioBank(string _p0, bool _p1, int _p2) { unsafe { - if (fn__requestAmbientAudioBank == null) fn__requestAmbientAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestAmbientAudioBank"); + if (fn__requestAmbientAudioBank == null) fn__requestAmbientAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestAmbientAudioBank"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); - var result = fn__requestAmbientAudioBank(&success, ptr_p0, _p1, _p2); + var result = fn__requestAmbientAudioBank(&success, ptr_p0, (byte) (_p1 ? 1 : 0), _p2); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool RequestScriptAudioBank(string _p0, bool _p1, int _p2) { unsafe { - if (fn__requestScriptAudioBank == null) fn__requestScriptAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestScriptAudioBank"); + if (fn__requestScriptAudioBank == null) fn__requestScriptAudioBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestScriptAudioBank"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); - var result = fn__requestScriptAudioBank(&success, ptr_p0, _p1, _p2); + var result = fn__requestScriptAudioBank(&success, ptr_p0, (byte) (_p1 ? 1 : 0), _p2); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38709,11 +38709,11 @@ public void ReleaseSoundId(int _soundId) public void PlaySound(int _soundId, string _audioName, string _audioRef, bool _p3, int _p4, bool _p5) { unsafe { - if (fn__playSound == null) fn__playSound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSound"); + if (fn__playSound == null) fn__playSound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSound"); var success = false; var ptr_audioName = MemoryUtils.StringToHGlobalUtf8(_audioName); var ptr_audioRef = MemoryUtils.StringToHGlobalUtf8(_audioRef); - fn__playSound(&success, _soundId, ptr_audioName, ptr_audioRef, _p3, _p4, _p5); + fn__playSound(&success, _soundId, ptr_audioName, ptr_audioRef, (byte) (_p3 ? 1 : 0), _p4, (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_audioName); Marshal.FreeHGlobal(ptr_audioRef); if (!success) throw new Exception("Native execution failed"); @@ -38723,11 +38723,11 @@ public void PlaySound(int _soundId, string _audioName, string _audioRef, bool _p public void PlaySoundFrontend(int _soundId, string _audioName, string _audioRef, bool _p3) { unsafe { - if (fn__playSoundFrontend == null) fn__playSoundFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFrontend"); + if (fn__playSoundFrontend == null) fn__playSoundFrontend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFrontend"); var success = false; var ptr_audioName = MemoryUtils.StringToHGlobalUtf8(_audioName); var ptr_audioRef = MemoryUtils.StringToHGlobalUtf8(_audioRef); - fn__playSoundFrontend(&success, _soundId, ptr_audioName, ptr_audioRef, _p3); + fn__playSoundFrontend(&success, _soundId, ptr_audioName, ptr_audioRef, (byte) (_p3 ? 1 : 0)); Marshal.FreeHGlobal(ptr_audioName); Marshal.FreeHGlobal(ptr_audioRef); if (!success) throw new Exception("Native execution failed"); @@ -38752,11 +38752,11 @@ public void PlayDeferredSoundFrontend(string _soundName, string _soundsetName) public void PlaySoundFromEntity(int _soundId, string _audioName, int _entity, string _audioRef, bool _isNetwork, int _p5) { unsafe { - if (fn__playSoundFromEntity == null) fn__playSoundFromEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFromEntity"); + if (fn__playSoundFromEntity == null) fn__playSoundFromEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFromEntity"); var success = false; var ptr_audioName = MemoryUtils.StringToHGlobalUtf8(_audioName); var ptr_audioRef = MemoryUtils.StringToHGlobalUtf8(_audioRef); - fn__playSoundFromEntity(&success, _soundId, ptr_audioName, _entity, ptr_audioRef, _isNetwork, _p5); + fn__playSoundFromEntity(&success, _soundId, ptr_audioName, _entity, ptr_audioRef, (byte) (_isNetwork ? 1 : 0), _p5); Marshal.FreeHGlobal(ptr_audioName); Marshal.FreeHGlobal(ptr_audioRef); if (!success) throw new Exception("Native execution failed"); @@ -38776,11 +38776,11 @@ public void _0x5B9853296731E88D(int _p0, int _p1, int _p2, int _p3, int _p4, int public void PlaySoundFromCoord(int _soundId, string _audioName, float _x, float _y, float _z, string _audioRef, bool _isNetwork, int _range, bool _p8) { unsafe { - if (fn__playSoundFromCoord == null) fn__playSoundFromCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFromCoord"); + if (fn__playSoundFromCoord == null) fn__playSoundFromCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSoundFromCoord"); var success = false; var ptr_audioName = MemoryUtils.StringToHGlobalUtf8(_audioName); var ptr_audioRef = MemoryUtils.StringToHGlobalUtf8(_audioRef); - fn__playSoundFromCoord(&success, _soundId, ptr_audioName, _x, _y, _z, ptr_audioRef, _isNetwork, _range, _p8); + fn__playSoundFromCoord(&success, _soundId, ptr_audioName, _x, _y, _z, ptr_audioRef, (byte) (_isNetwork ? 1 : 0), _range, (byte) (_p8 ? 1 : 0)); Marshal.FreeHGlobal(ptr_audioName); Marshal.FreeHGlobal(ptr_audioRef); if (!success) throw new Exception("Native execution failed"); @@ -38856,10 +38856,10 @@ public void SetVariableOnStream(string _p0, float _p1) public void OverrideUnderwaterStream(ref int _p0, bool _p1) { unsafe { - if (fn__overrideUnderwaterStream == null) fn__overrideUnderwaterStream = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideUnderwaterStream"); + if (fn__overrideUnderwaterStream == null) fn__overrideUnderwaterStream = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideUnderwaterStream"); var success = false; var ref_p0 = _p0; - fn__overrideUnderwaterStream(&success, &ref_p0, _p1); + fn__overrideUnderwaterStream(&success, &ref_p0, (byte) (_p1 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -38880,11 +38880,11 @@ public void SetVariableOnUnderWaterStream(string _unkVariableName, float _value) public bool HasSoundFinished(int _soundId) { unsafe { - if (fn__hasSoundFinished == null) fn__hasSoundFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasSoundFinished"); + if (fn__hasSoundFinished == null) fn__hasSoundFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasSoundFinished"); var success = false; var result = fn__hasSoundFinished(&success, _soundId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -38922,12 +38922,12 @@ public void PlayPedAmbientSpeechAndCloneNative(int _ped, string _speechName, str public void PlayPedAmbientSpeechWithVoiceNative(int _ped, string _speechName, string _voiceName, string _speechParam, bool _p4) { unsafe { - if (fn__playPedAmbientSpeechWithVoiceNative == null) fn__playPedAmbientSpeechWithVoiceNative = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playPedAmbientSpeechWithVoiceNative"); + if (fn__playPedAmbientSpeechWithVoiceNative == null) fn__playPedAmbientSpeechWithVoiceNative = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playPedAmbientSpeechWithVoiceNative"); var success = false; var ptr_speechName = MemoryUtils.StringToHGlobalUtf8(_speechName); var ptr_voiceName = MemoryUtils.StringToHGlobalUtf8(_voiceName); var ptr_speechParam = MemoryUtils.StringToHGlobalUtf8(_speechParam); - fn__playPedAmbientSpeechWithVoiceNative(&success, _ped, ptr_speechName, ptr_voiceName, ptr_speechParam, _p4); + fn__playPedAmbientSpeechWithVoiceNative(&success, _ped, ptr_speechName, ptr_voiceName, ptr_speechParam, (byte) (_p4 ? 1 : 0)); Marshal.FreeHGlobal(ptr_speechName); Marshal.FreeHGlobal(ptr_voiceName); Marshal.FreeHGlobal(ptr_speechParam); @@ -38977,9 +38977,9 @@ public void ResetTrevorRage() public void SetPlayerAngry(int _ped, bool _toggle) { unsafe { - if (fn__setPlayerAngry == null) fn__setPlayerAngry = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerAngry"); + if (fn__setPlayerAngry == null) fn__setPlayerAngry = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerAngry"); var success = false; - fn__setPlayerAngry(&success, _ped, _toggle); + fn__setPlayerAngry(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39102,9 +39102,9 @@ public void SetPedVoiceGroup(int _ped, uint _voiceGroupHash) public void SetPedAudioGender(int _ped, bool _p1) { unsafe { - if (fn__setPedAudioGender == null) fn__setPedAudioGender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioGender"); + if (fn__setPedAudioGender == null) fn__setPedAudioGender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioGender"); var success = false; - fn__setPedAudioGender(&success, _ped, _p1); + fn__setPedAudioGender(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39135,22 +39135,22 @@ public void StopCurrentPlayingAmbientSpeech(int _ped) public bool IsAmbientSpeechPlaying(int _ped) { unsafe { - if (fn__isAmbientSpeechPlaying == null) fn__isAmbientSpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientSpeechPlaying"); + if (fn__isAmbientSpeechPlaying == null) fn__isAmbientSpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientSpeechPlaying"); var success = false; var result = fn__isAmbientSpeechPlaying(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScriptedSpeechPlaying(int _p0) { unsafe { - if (fn__isScriptedSpeechPlaying == null) fn__isScriptedSpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedSpeechPlaying"); + if (fn__isScriptedSpeechPlaying == null) fn__isScriptedSpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedSpeechPlaying"); var success = false; var result = fn__isScriptedSpeechPlaying(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39158,11 +39158,11 @@ public bool IsScriptedSpeechPlaying(int _p0) public bool IsAnySpeechPlaying(int _ped) { unsafe { - if (fn__isAnySpeechPlaying == null) fn__isAnySpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnySpeechPlaying"); + if (fn__isAnySpeechPlaying == null) fn__isAnySpeechPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnySpeechPlaying"); var success = false; var result = fn__isAnySpeechPlaying(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39181,13 +39181,13 @@ public int _0x30CA2EF91D15ADF8() public bool CanPedSpeak(int _ped, string _speechName, bool _unk) { unsafe { - if (fn__canPedSpeak == null) fn__canPedSpeak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedSpeak"); + if (fn__canPedSpeak == null) fn__canPedSpeak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedSpeak"); var success = false; var ptr_speechName = MemoryUtils.StringToHGlobalUtf8(_speechName); - var result = fn__canPedSpeak(&success, _ped, ptr_speechName, _unk); + var result = fn__canPedSpeak(&success, _ped, ptr_speechName, (byte) (_unk ? 1 : 0)); Marshal.FreeHGlobal(ptr_speechName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39195,11 +39195,11 @@ public bool CanPedSpeak(int _ped, string _speechName, bool _unk) public bool IsPedInCurrentConversation(int _ped) { unsafe { - if (fn__isPedInCurrentConversation == null) fn__isPedInCurrentConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCurrentConversation"); + if (fn__isPedInCurrentConversation == null) fn__isPedInCurrentConversation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCurrentConversation"); var success = false; var result = fn__isPedInCurrentConversation(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39207,9 +39207,9 @@ public bool IsPedInCurrentConversation(int _ped) public void SetPedIsDrunk(int _ped, bool _toggle) { unsafe { - if (fn__setPedIsDrunk == null) fn__setPedIsDrunk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedIsDrunk"); + if (fn__setPedIsDrunk == null) fn__setPedIsDrunk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedIsDrunk"); var success = false; - fn__setPedIsDrunk(&success, _ped, _toggle); + fn__setPedIsDrunk(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39231,11 +39231,11 @@ public void PlayAnimalVocalization(int _pedHandle, int _p1, string _speechName) public bool IsAnimalVocalizationPlaying(int _pedHandle) { unsafe { - if (fn__isAnimalVocalizationPlaying == null) fn__isAnimalVocalizationPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnimalVocalizationPlaying"); + if (fn__isAnimalVocalizationPlaying == null) fn__isAnimalVocalizationPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnimalVocalizationPlaying"); var success = false; var result = fn__isAnimalVocalizationPlaying(&success, _pedHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39253,20 +39253,20 @@ public void SetAnimalMood(int _animal, int _mood) public bool IsMobilePhoneRadioActive() { unsafe { - if (fn__isMobilePhoneRadioActive == null) fn__isMobilePhoneRadioActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneRadioActive"); + if (fn__isMobilePhoneRadioActive == null) fn__isMobilePhoneRadioActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneRadioActive"); var success = false; var result = fn__isMobilePhoneRadioActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetMobilePhoneRadioState(bool _state) { unsafe { - if (fn__setMobilePhoneRadioState == null) fn__setMobilePhoneRadioState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobilePhoneRadioState"); + if (fn__setMobilePhoneRadioState == null) fn__setMobilePhoneRadioState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobilePhoneRadioState"); var success = false; - fn__setMobilePhoneRadioState(&success, _state); + fn__setMobilePhoneRadioState(&success, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39322,22 +39322,22 @@ public int GetPlayerRadioStationGenre() public bool IsRadioRetuning() { unsafe { - if (fn__isRadioRetuning == null) fn__isRadioRetuning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadioRetuning"); + if (fn__isRadioRetuning == null) fn__isRadioRetuning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadioRetuning"); var success = false; var result = fn__isRadioRetuning(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsRadioFadedOut() { unsafe { - if (fn__isRadioFadedOut == null) fn__isRadioFadedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadioFadedOut"); + if (fn__isRadioFadedOut == null) fn__isRadioFadedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadioFadedOut"); var success = false; var result = fn__isRadioFadedOut(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39401,11 +39401,11 @@ public void SetVehHasRadioOverride(int _vehicle) public bool IsVehicleRadioEnabled(int _vehicle) { unsafe { - if (fn__isVehicleRadioEnabled == null) fn__isVehicleRadioEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRadioEnabled"); + if (fn__isVehicleRadioEnabled == null) fn__isVehicleRadioEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRadioEnabled"); var success = false; var result = fn__isVehicleRadioEnabled(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39437,10 +39437,10 @@ public void SetEmitterRadioStation(string _emitterName, string _radioStation) public void SetStaticEmitterEnabled(string _emitterName, bool _toggle) { unsafe { - if (fn__setStaticEmitterEnabled == null) fn__setStaticEmitterEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStaticEmitterEnabled"); + if (fn__setStaticEmitterEnabled == null) fn__setStaticEmitterEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStaticEmitterEnabled"); var success = false; var ptr_emitterName = MemoryUtils.StringToHGlobalUtf8(_emitterName); - fn__setStaticEmitterEnabled(&success, ptr_emitterName, _toggle); + fn__setStaticEmitterEnabled(&success, ptr_emitterName, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_emitterName); if (!success) throw new Exception("Native execution failed"); } @@ -39472,9 +39472,9 @@ public void SetRadioToStationIndex(int _radioStation) public void SetFrontendRadioActive(bool _active) { unsafe { - if (fn__setFrontendRadioActive == null) fn__setFrontendRadioActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFrontendRadioActive"); + if (fn__setFrontendRadioActive == null) fn__setFrontendRadioActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFrontendRadioActive"); var success = false; - fn__setFrontendRadioActive(&success, _active); + fn__setFrontendRadioActive(&success, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39492,11 +39492,11 @@ public void UnlockMissionNewsStory(int _newsStory) public bool IsMissionNewsStoryUnlocked(int _newsStory) { unsafe { - if (fn__isMissionNewsStoryUnlocked == null) fn__isMissionNewsStoryUnlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionNewsStoryUnlocked"); + if (fn__isMissionNewsStoryUnlocked == null) fn__isMissionNewsStoryUnlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionNewsStoryUnlocked"); var success = false; var result = fn__isMissionNewsStoryUnlocked(&success, _newsStory); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39514,9 +39514,9 @@ public int GetAudibleMusicTrackTextId() public void PlayEndCreditsMusic(bool _play) { unsafe { - if (fn__playEndCreditsMusic == null) fn__playEndCreditsMusic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playEndCreditsMusic"); + if (fn__playEndCreditsMusic == null) fn__playEndCreditsMusic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playEndCreditsMusic"); var success = false; - fn__playEndCreditsMusic(&success, _play); + fn__playEndCreditsMusic(&success, (byte) (_play ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39558,9 +39558,9 @@ public void UnfreezeRadioStation(string _radioStation) public void SetRadioAutoUnfreeze(bool _toggle) { unsafe { - if (fn__setRadioAutoUnfreeze == null) fn__setRadioAutoUnfreeze = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioAutoUnfreeze"); + if (fn__setRadioAutoUnfreeze == null) fn__setRadioAutoUnfreeze = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioAutoUnfreeze"); var success = false; - fn__setRadioAutoUnfreeze(&success, _toggle); + fn__setRadioAutoUnfreeze(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39580,9 +39580,9 @@ public void SetInitialPlayerStation(string _radioStation) public void SetUserRadioControlEnabled(bool _toggle) { unsafe { - if (fn__setUserRadioControlEnabled == null) fn__setUserRadioControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUserRadioControlEnabled"); + if (fn__setUserRadioControlEnabled == null) fn__setUserRadioControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUserRadioControlEnabled"); var success = false; - fn__setUserRadioControlEnabled(&success, _toggle); + fn__setUserRadioControlEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39629,9 +39629,9 @@ public void _0x55ECF4D13D9903B0(int _p0, int _p1, int _p2, int _p3) public void SetVehicleRadioLoud(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleRadioLoud == null) fn__setVehicleRadioLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRadioLoud"); + if (fn__setVehicleRadioLoud == null) fn__setVehicleRadioLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRadioLoud"); var success = false; - fn__setVehicleRadioLoud(&success, _vehicle, _toggle); + fn__setVehicleRadioLoud(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39640,20 +39640,20 @@ public void SetVehicleRadioLoud(int _vehicle, bool _toggle) public bool IsVehicleRadioLoud(int _vehicle) { unsafe { - if (fn__isVehicleRadioLoud == null) fn__isVehicleRadioLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRadioLoud"); + if (fn__isVehicleRadioLoud == null) fn__isVehicleRadioLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRadioLoud"); var success = false; var result = fn__isVehicleRadioLoud(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetMobileRadioEnabledDuringGameplay(bool _toggle) { unsafe { - if (fn__setMobileRadioEnabledDuringGameplay == null) fn__setMobileRadioEnabledDuringGameplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobileRadioEnabledDuringGameplay"); + if (fn__setMobileRadioEnabledDuringGameplay == null) fn__setMobileRadioEnabledDuringGameplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobileRadioEnabledDuringGameplay"); var success = false; - fn__setMobileRadioEnabledDuringGameplay(&success, _toggle); + fn__setMobileRadioEnabledDuringGameplay(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39661,22 +39661,22 @@ public void SetMobileRadioEnabledDuringGameplay(bool _toggle) public bool DoesPlayerVehHaveRadio() { unsafe { - if (fn__doesPlayerVehHaveRadio == null) fn__doesPlayerVehHaveRadio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPlayerVehHaveRadio"); + if (fn__doesPlayerVehHaveRadio == null) fn__doesPlayerVehHaveRadio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPlayerVehHaveRadio"); var success = false; var result = fn__doesPlayerVehHaveRadio(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPlayerVehRadioEnable() { unsafe { - if (fn__isPlayerVehRadioEnable == null) fn__isPlayerVehRadioEnable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerVehRadioEnable"); + if (fn__isPlayerVehRadioEnable == null) fn__isPlayerVehRadioEnable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerVehRadioEnable"); var success = false; var result = fn__isPlayerVehRadioEnable(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39684,9 +39684,9 @@ public bool IsPlayerVehRadioEnable() public void SetVehicleRadioEnabled(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleRadioEnabled == null) fn__setVehicleRadioEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRadioEnabled"); + if (fn__setVehicleRadioEnabled == null) fn__setVehicleRadioEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRadioEnabled"); var success = false; - fn__setVehicleRadioEnabled(&success, _vehicle, _toggle); + fn__setVehicleRadioEnabled(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39704,11 +39704,11 @@ public void _0xDA07819E452FFE8F(int _p0) public void SetCustomRadioTrackList(string _radioStation, string _trackListName, bool _p2) { unsafe { - if (fn__setCustomRadioTrackList == null) fn__setCustomRadioTrackList = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCustomRadioTrackList"); + if (fn__setCustomRadioTrackList == null) fn__setCustomRadioTrackList = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCustomRadioTrackList"); var success = false; var ptr_radioStation = MemoryUtils.StringToHGlobalUtf8(_radioStation); var ptr_trackListName = MemoryUtils.StringToHGlobalUtf8(_trackListName); - fn__setCustomRadioTrackList(&success, ptr_radioStation, ptr_trackListName, _p2); + fn__setCustomRadioTrackList(&success, ptr_radioStation, ptr_trackListName, (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_radioStation); Marshal.FreeHGlobal(ptr_trackListName); if (!success) throw new Exception("Native execution failed"); @@ -39752,10 +39752,10 @@ public int FindRadioStationIndex(uint _stationNameHash) public void SetRadioStationMusicOnly(string _radioStation, bool _toggle) { unsafe { - if (fn__setRadioStationMusicOnly == null) fn__setRadioStationMusicOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioStationMusicOnly"); + if (fn__setRadioStationMusicOnly == null) fn__setRadioStationMusicOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioStationMusicOnly"); var success = false; var ptr_radioStation = MemoryUtils.StringToHGlobalUtf8(_radioStation); - fn__setRadioStationMusicOnly(&success, ptr_radioStation, _toggle); + fn__setRadioStationMusicOnly(&success, ptr_radioStation, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_radioStation); if (!success) throw new Exception("Native execution failed"); } @@ -39802,9 +39802,9 @@ public void LockRadioStationTrackList(string _radioStation, string _trackListNam public void UpdateLsur(bool _enableMixes) { unsafe { - if (fn__updateLsur == null) fn__updateLsur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updateLsur"); + if (fn__updateLsur == null) fn__updateLsur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updateLsur"); var success = false; - fn__updateLsur(&success, _enableMixes); + fn__updateLsur(&success, (byte) (_enableMixes ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39812,10 +39812,10 @@ public void UpdateLsur(bool _enableMixes) public void LockRadioStation(string _radioStationName, bool _toggle) { unsafe { - if (fn__lockRadioStation == null) fn__lockRadioStation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_lockRadioStation"); + if (fn__lockRadioStation == null) fn__lockRadioStation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_lockRadioStation"); var success = false; var ptr_radioStationName = MemoryUtils.StringToHGlobalUtf8(_radioStationName); - fn__lockRadioStation(&success, ptr_radioStationName, _toggle); + fn__lockRadioStation(&success, ptr_radioStationName, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_radioStationName); if (!success) throw new Exception("Native execution failed"); } @@ -39824,10 +39824,10 @@ public void LockRadioStation(string _radioStationName, bool _toggle) public void SetRadioStationIsVisible(string _radioStation, bool _toggle) { unsafe { - if (fn__setRadioStationIsVisible == null) fn__setRadioStationIsVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioStationIsVisible"); + if (fn__setRadioStationIsVisible == null) fn__setRadioStationIsVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadioStationIsVisible"); var success = false; var ptr_radioStation = MemoryUtils.StringToHGlobalUtf8(_radioStation); - fn__setRadioStationIsVisible(&success, ptr_radioStation, _toggle); + fn__setRadioStationIsVisible(&success, ptr_radioStation, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_radioStation); if (!success) throw new Exception("Native execution failed"); } @@ -39836,7 +39836,7 @@ public void SetRadioStationIsVisible(string _radioStation, bool _toggle) public bool _0xC64A06D939F826F5(ref float _p0, ref float _p1, ref int _p2) { unsafe { - if (fn__0xC64A06D939F826F5 == null) fn__0xC64A06D939F826F5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC64A06D939F826F5"); + if (fn__0xC64A06D939F826F5 == null) fn__0xC64A06D939F826F5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC64A06D939F826F5"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -39846,7 +39846,7 @@ public bool _0xC64A06D939F826F5(ref float _p0, ref float _p1, ref int _p2) _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -39894,9 +39894,9 @@ public uint _0x34D66BC058019CE0(string _radioStationName) public void _0xF3365489E0DD50F9(int _vehicle, bool _toggle) { unsafe { - if (fn__0xF3365489E0DD50F9 == null) fn__0xF3365489E0DD50F9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF3365489E0DD50F9"); + if (fn__0xF3365489E0DD50F9 == null) fn__0xF3365489E0DD50F9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF3365489E0DD50F9"); var success = false; - fn__0xF3365489E0DD50F9(&success, _vehicle, _toggle); + fn__0xF3365489E0DD50F9(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -39904,10 +39904,10 @@ public void _0xF3365489E0DD50F9(int _vehicle, bool _toggle) public void SetAmbientZoneState(string _zoneName, bool _p1, bool _p2) { unsafe { - if (fn__setAmbientZoneState == null) fn__setAmbientZoneState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneState"); + if (fn__setAmbientZoneState == null) fn__setAmbientZoneState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneState"); var success = false; var ptr_zoneName = MemoryUtils.StringToHGlobalUtf8(_zoneName); - fn__setAmbientZoneState(&success, ptr_zoneName, _p1, _p2); + fn__setAmbientZoneState(&success, ptr_zoneName, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_zoneName); if (!success) throw new Exception("Native execution failed"); } @@ -39916,10 +39916,10 @@ public void SetAmbientZoneState(string _zoneName, bool _p1, bool _p2) public void ClearAmbientZoneState(string _zoneName, bool _p1) { unsafe { - if (fn__clearAmbientZoneState == null) fn__clearAmbientZoneState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAmbientZoneState"); + if (fn__clearAmbientZoneState == null) fn__clearAmbientZoneState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAmbientZoneState"); var success = false; var ptr_zoneName = MemoryUtils.StringToHGlobalUtf8(_zoneName); - fn__clearAmbientZoneState(&success, ptr_zoneName, _p1); + fn__clearAmbientZoneState(&success, ptr_zoneName, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_zoneName); if (!success) throw new Exception("Native execution failed"); } @@ -39928,10 +39928,10 @@ public void ClearAmbientZoneState(string _zoneName, bool _p1) public void SetAmbientZoneListState(ref int _p0, bool _p1, bool _p2) { unsafe { - if (fn__setAmbientZoneListState == null) fn__setAmbientZoneListState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneListState"); + if (fn__setAmbientZoneListState == null) fn__setAmbientZoneListState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneListState"); var success = false; var ref_p0 = _p0; - fn__setAmbientZoneListState(&success, &ref_p0, _p1, _p2); + fn__setAmbientZoneListState(&success, &ref_p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -39940,10 +39940,10 @@ public void SetAmbientZoneListState(ref int _p0, bool _p1, bool _p2) public void ClearAmbientZoneListState(ref int _p0, bool _p1) { unsafe { - if (fn__clearAmbientZoneListState == null) fn__clearAmbientZoneListState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAmbientZoneListState"); + if (fn__clearAmbientZoneListState == null) fn__clearAmbientZoneListState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAmbientZoneListState"); var success = false; var ref_p0 = _p0; - fn__clearAmbientZoneListState(&success, &ref_p0, _p1); + fn__clearAmbientZoneListState(&success, &ref_p0, (byte) (_p1 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -39952,10 +39952,10 @@ public void ClearAmbientZoneListState(ref int _p0, bool _p1) public void SetAmbientZoneStatePersistent(string _ambientZone, bool _p1, bool _p2) { unsafe { - if (fn__setAmbientZoneStatePersistent == null) fn__setAmbientZoneStatePersistent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneStatePersistent"); + if (fn__setAmbientZoneStatePersistent == null) fn__setAmbientZoneStatePersistent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneStatePersistent"); var success = false; var ptr_ambientZone = MemoryUtils.StringToHGlobalUtf8(_ambientZone); - fn__setAmbientZoneStatePersistent(&success, ptr_ambientZone, _p1, _p2); + fn__setAmbientZoneStatePersistent(&success, ptr_ambientZone, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_ambientZone); if (!success) throw new Exception("Native execution failed"); } @@ -39964,10 +39964,10 @@ public void SetAmbientZoneStatePersistent(string _ambientZone, bool _p1, bool _p public void SetAmbientZoneListStatePersistent(string _ambientZone, bool _p1, bool _p2) { unsafe { - if (fn__setAmbientZoneListStatePersistent == null) fn__setAmbientZoneListStatePersistent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneListStatePersistent"); + if (fn__setAmbientZoneListStatePersistent == null) fn__setAmbientZoneListStatePersistent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientZoneListStatePersistent"); var success = false; var ptr_ambientZone = MemoryUtils.StringToHGlobalUtf8(_ambientZone); - fn__setAmbientZoneListStatePersistent(&success, ptr_ambientZone, _p1, _p2); + fn__setAmbientZoneListStatePersistent(&success, ptr_ambientZone, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_ambientZone); if (!success) throw new Exception("Native execution failed"); } @@ -39976,13 +39976,13 @@ public void SetAmbientZoneListStatePersistent(string _ambientZone, bool _p1, boo public bool IsAmbientZoneEnabled(string _ambientZone) { unsafe { - if (fn__isAmbientZoneEnabled == null) fn__isAmbientZoneEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientZoneEnabled"); + if (fn__isAmbientZoneEnabled == null) fn__isAmbientZoneEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientZoneEnabled"); var success = false; var ptr_ambientZone = MemoryUtils.StringToHGlobalUtf8(_ambientZone); var result = fn__isAmbientZoneEnabled(&success, ptr_ambientZone); Marshal.FreeHGlobal(ptr_ambientZone); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40058,9 +40058,9 @@ public void BlipSiren(int _vehicle) public void OverrideVehHorn(int _vehicle, bool _override, int _hornHash) { unsafe { - if (fn__overrideVehHorn == null) fn__overrideVehHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideVehHorn"); + if (fn__overrideVehHorn == null) fn__overrideVehHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideVehHorn"); var success = false; - fn__overrideVehHorn(&success, _vehicle, _override, _hornHash); + fn__overrideVehHorn(&success, _vehicle, (byte) (_override ? 1 : 0), _hornHash); if (!success) throw new Exception("Native execution failed"); } } @@ -40069,20 +40069,20 @@ public void OverrideVehHorn(int _vehicle, bool _override, int _hornHash) public bool IsHornActive(int _vehicle) { unsafe { - if (fn__isHornActive == null) fn__isHornActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHornActive"); + if (fn__isHornActive == null) fn__isHornActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHornActive"); var success = false; var result = fn__isHornActive(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetAggressiveHorns(bool _toggle) { unsafe { - if (fn__setAggressiveHorns == null) fn__setAggressiveHorns = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAggressiveHorns"); + if (fn__setAggressiveHorns == null) fn__setAggressiveHorns = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAggressiveHorns"); var success = false; - fn__setAggressiveHorns(&success, _toggle); + fn__setAggressiveHorns(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40090,9 +40090,9 @@ public void SetAggressiveHorns(bool _toggle) public void _0x02E93C796ABD3A97(bool _p0) { unsafe { - if (fn__0x02E93C796ABD3A97 == null) fn__0x02E93C796ABD3A97 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x02E93C796ABD3A97"); + if (fn__0x02E93C796ABD3A97 == null) fn__0x02E93C796ABD3A97 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x02E93C796ABD3A97"); var success = false; - fn__0x02E93C796ABD3A97(&success, _p0); + fn__0x02E93C796ABD3A97(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40100,9 +40100,9 @@ public void _0x02E93C796ABD3A97(bool _p0) public void _0x58BB377BEC7CD5F4(bool _p0, bool _p1) { unsafe { - if (fn__0x58BB377BEC7CD5F4 == null) fn__0x58BB377BEC7CD5F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x58BB377BEC7CD5F4"); + if (fn__0x58BB377BEC7CD5F4 == null) fn__0x58BB377BEC7CD5F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x58BB377BEC7CD5F4"); var success = false; - fn__0x58BB377BEC7CD5F4(&success, _p0, _p1); + fn__0x58BB377BEC7CD5F4(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40120,11 +40120,11 @@ public void _0x9BD7BD55E4533183(int _p0, int _p1, int _p2) public bool IsStreamPlaying() { unsafe { - if (fn__isStreamPlaying == null) fn__isStreamPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamPlaying"); + if (fn__isStreamPlaying == null) fn__isStreamPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamPlaying"); var success = false; var result = fn__isStreamPlaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40142,7 +40142,7 @@ public int GetStreamPlayTime() public bool LoadStream(string _streamName, string _soundSet) { unsafe { - if (fn__loadStream == null) fn__loadStream = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadStream"); + if (fn__loadStream == null) fn__loadStream = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadStream"); var success = false; var ptr_streamName = MemoryUtils.StringToHGlobalUtf8(_streamName); var ptr_soundSet = MemoryUtils.StringToHGlobalUtf8(_soundSet); @@ -40150,14 +40150,14 @@ public bool LoadStream(string _streamName, string _soundSet) Marshal.FreeHGlobal(ptr_streamName); Marshal.FreeHGlobal(ptr_soundSet); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool LoadStreamWithStartOffset(string _streamName, int _startOffset, string _soundSet) { unsafe { - if (fn__loadStreamWithStartOffset == null) fn__loadStreamWithStartOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadStreamWithStartOffset"); + if (fn__loadStreamWithStartOffset == null) fn__loadStreamWithStartOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadStreamWithStartOffset"); var success = false; var ptr_streamName = MemoryUtils.StringToHGlobalUtf8(_streamName); var ptr_soundSet = MemoryUtils.StringToHGlobalUtf8(_soundSet); @@ -40165,7 +40165,7 @@ public bool LoadStreamWithStartOffset(string _streamName, int _startOffset, stri Marshal.FreeHGlobal(ptr_streamName); Marshal.FreeHGlobal(ptr_soundSet); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40235,9 +40235,9 @@ public void StopStream() public void StopPedSpeaking(int _ped, bool _shaking) { unsafe { - if (fn__stopPedSpeaking == null) fn__stopPedSpeaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopPedSpeaking"); + if (fn__stopPedSpeaking == null) fn__stopPedSpeaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopPedSpeaking"); var success = false; - fn__stopPedSpeaking(&success, _ped, _shaking); + fn__stopPedSpeaking(&success, _ped, (byte) (_shaking ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40246,9 +40246,9 @@ public void StopPedSpeaking(int _ped, bool _shaking) public void _0xF8AD2EED7C47E8FE(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__0xF8AD2EED7C47E8FE == null) fn__0xF8AD2EED7C47E8FE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF8AD2EED7C47E8FE"); + if (fn__0xF8AD2EED7C47E8FE == null) fn__0xF8AD2EED7C47E8FE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF8AD2EED7C47E8FE"); var success = false; - fn__0xF8AD2EED7C47E8FE(&success, _ped, _p1, _p2); + fn__0xF8AD2EED7C47E8FE(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40267,9 +40267,9 @@ public void _0xAB6781A5F3101470(int _p0, int _p1) public void DisablePedPainAudio(int _ped, bool _toggle) { unsafe { - if (fn__disablePedPainAudio == null) fn__disablePedPainAudio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePedPainAudio"); + if (fn__disablePedPainAudio == null) fn__disablePedPainAudio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePedPainAudio"); var success = false; - fn__disablePedPainAudio(&success, _ped, _toggle); + fn__disablePedPainAudio(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40278,11 +40278,11 @@ public void DisablePedPainAudio(int _ped, bool _toggle) public bool IsAmbientSpeechDisabled(int _ped) { unsafe { - if (fn__isAmbientSpeechDisabled == null) fn__isAmbientSpeechDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientSpeechDisabled"); + if (fn__isAmbientSpeechDisabled == null) fn__isAmbientSpeechDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAmbientSpeechDisabled"); var success = false; var result = fn__isAmbientSpeechDisabled(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40314,9 +40314,9 @@ public void _0x2ACABED337622DF2(string _p0) public void SetSirenWithNoDriver(int _vehicle, bool _toggle) { unsafe { - if (fn__setSirenWithNoDriver == null) fn__setSirenWithNoDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSirenWithNoDriver"); + if (fn__setSirenWithNoDriver == null) fn__setSirenWithNoDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSirenWithNoDriver"); var success = false; - fn__setSirenWithNoDriver(&success, _vehicle, _toggle); + fn__setSirenWithNoDriver(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40325,9 +40325,9 @@ public void SetSirenWithNoDriver(int _vehicle, bool _toggle) public void SetSirenKeepOn(int _vehicle, bool _toggle) { unsafe { - if (fn__setSirenKeepOn == null) fn__setSirenKeepOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSirenKeepOn"); + if (fn__setSirenKeepOn == null) fn__setSirenKeepOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSirenKeepOn"); var success = false; - fn__setSirenKeepOn(&success, _vehicle, _toggle); + fn__setSirenKeepOn(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40358,9 +40358,9 @@ public void SoundVehicleHornThisFrame(int _vehicle) public void SetHornEnabled(int _vehicle, bool _toggle) { unsafe { - if (fn__setHornEnabled == null) fn__setHornEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHornEnabled"); + if (fn__setHornEnabled == null) fn__setHornEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHornEnabled"); var success = false; - fn__setHornEnabled(&success, _vehicle, _toggle); + fn__setHornEnabled(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40391,9 +40391,9 @@ public void _0x9D3AF56E94C9AE98(int _vehicle, float _p1) public void UseSirenAsHorn(int _vehicle, bool _toggle) { unsafe { - if (fn__useSirenAsHorn == null) fn__useSirenAsHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_useSirenAsHorn"); + if (fn__useSirenAsHorn == null) fn__useSirenAsHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_useSirenAsHorn"); var success = false; - fn__useSirenAsHorn(&success, _vehicle, _toggle); + fn__useSirenAsHorn(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40461,11 +40461,11 @@ public void _0x97FFB4ADEED08066(int _p0, int _p1) public bool IsVehicleAudiblyDamaged(int _vehicle) { unsafe { - if (fn__isVehicleAudiblyDamaged == null) fn__isVehicleAudiblyDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAudiblyDamaged"); + if (fn__isVehicleAudiblyDamaged == null) fn__isVehicleAudiblyDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAudiblyDamaged"); var success = false; var result = fn__isVehicleAudiblyDamaged(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40495,9 +40495,9 @@ public void SetVehicleAudioBodyDamageFactor(int _vehicle, float _p1) public void EnableVehicleFanbeltDamage(int _vehicle, bool _toggle) { unsafe { - if (fn__enableVehicleFanbeltDamage == null) fn__enableVehicleFanbeltDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableVehicleFanbeltDamage"); + if (fn__enableVehicleFanbeltDamage == null) fn__enableVehicleFanbeltDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableVehicleFanbeltDamage"); var success = false; - fn__enableVehicleFanbeltDamage(&success, _vehicle, _toggle); + fn__enableVehicleFanbeltDamage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40506,9 +40506,9 @@ public void EnableVehicleFanbeltDamage(int _vehicle, bool _toggle) public void EnableVehicleExhaustPops(int _vehicle, bool _toggle) { unsafe { - if (fn__enableVehicleExhaustPops == null) fn__enableVehicleExhaustPops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableVehicleExhaustPops"); + if (fn__enableVehicleExhaustPops == null) fn__enableVehicleExhaustPops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableVehicleExhaustPops"); var success = false; - fn__enableVehicleExhaustPops(&success, _vehicle, _toggle); + fn__enableVehicleExhaustPops(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40517,9 +40517,9 @@ public void EnableVehicleExhaustPops(int _vehicle, bool _toggle) public void SetVehicleBoostActive(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleBoostActive == null) fn__setVehicleBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBoostActive"); + if (fn__setVehicleBoostActive == null) fn__setVehicleBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBoostActive"); var success = false; - fn__setVehicleBoostActive(&success, _vehicle, _toggle); + fn__setVehicleBoostActive(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40528,9 +40528,9 @@ public void SetVehicleBoostActive(int _vehicle, bool _toggle) public void _0x6FDDAD856E36988A(int _vehicle, bool _toggle) { unsafe { - if (fn__0x6FDDAD856E36988A == null) fn__0x6FDDAD856E36988A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FDDAD856E36988A"); + if (fn__0x6FDDAD856E36988A == null) fn__0x6FDDAD856E36988A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FDDAD856E36988A"); var success = false; - fn__0x6FDDAD856E36988A(&success, _vehicle, _toggle); + fn__0x6FDDAD856E36988A(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40538,9 +40538,9 @@ public void _0x6FDDAD856E36988A(int _vehicle, bool _toggle) public void SetScriptUpdateDoorAudio(uint _doorHash, bool _toggle) { unsafe { - if (fn__setScriptUpdateDoorAudio == null) fn__setScriptUpdateDoorAudio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptUpdateDoorAudio"); + if (fn__setScriptUpdateDoorAudio == null) fn__setScriptUpdateDoorAudio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptUpdateDoorAudio"); var success = false; - fn__setScriptUpdateDoorAudio(&success, _doorHash, _toggle); + fn__setScriptUpdateDoorAudio(&success, _doorHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40571,9 +40571,9 @@ public void PlayVehicleDoorCloseSound(int _vehicle, int _doorId) public void EnableStallWarningSounds(int _vehicle, bool _toggle) { unsafe { - if (fn__enableStallWarningSounds == null) fn__enableStallWarningSounds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableStallWarningSounds"); + if (fn__enableStallWarningSounds == null) fn__enableStallWarningSounds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableStallWarningSounds"); var success = false; - fn__enableStallWarningSounds(&success, _vehicle, _toggle); + fn__enableStallWarningSounds(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40581,20 +40581,20 @@ public void EnableStallWarningSounds(int _vehicle, bool _toggle) public bool IsGameInControlOfMusic() { unsafe { - if (fn__isGameInControlOfMusic == null) fn__isGameInControlOfMusic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameInControlOfMusic"); + if (fn__isGameInControlOfMusic == null) fn__isGameInControlOfMusic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameInControlOfMusic"); var success = false; var result = fn__isGameInControlOfMusic(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetGpsActive(bool _active) { unsafe { - if (fn__setGpsActive == null) fn__setGpsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsActive"); + if (fn__setGpsActive == null) fn__setGpsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsActive"); var success = false; - fn__setGpsActive(&success, _active); + fn__setGpsActive(&success, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40614,31 +40614,31 @@ public void PlayMissionCompleteAudio(string _audioName) public bool IsMissionCompletePlaying() { unsafe { - if (fn__isMissionCompletePlaying == null) fn__isMissionCompletePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCompletePlaying"); + if (fn__isMissionCompletePlaying == null) fn__isMissionCompletePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCompletePlaying"); var success = false; var result = fn__isMissionCompletePlaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsMissionCompleteReadyForUi() { unsafe { - if (fn__isMissionCompleteReadyForUi == null) fn__isMissionCompleteReadyForUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCompleteReadyForUi"); + if (fn__isMissionCompleteReadyForUi == null) fn__isMissionCompleteReadyForUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCompleteReadyForUi"); var success = false; var result = fn__isMissionCompleteReadyForUi(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void BlockDeathJingle(bool _toggle) { unsafe { - if (fn__blockDeathJingle == null) fn__blockDeathJingle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockDeathJingle"); + if (fn__blockDeathJingle == null) fn__blockDeathJingle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockDeathJingle"); var success = false; - fn__blockDeathJingle(&success, _toggle); + fn__blockDeathJingle(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40646,13 +40646,13 @@ public void BlockDeathJingle(bool _toggle) public bool StartAudioScene(string _scene) { unsafe { - if (fn__startAudioScene == null) fn__startAudioScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startAudioScene"); + if (fn__startAudioScene == null) fn__startAudioScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startAudioScene"); var success = false; var ptr_scene = MemoryUtils.StringToHGlobalUtf8(_scene); var result = fn__startAudioScene(&success, ptr_scene); Marshal.FreeHGlobal(ptr_scene); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40681,13 +40681,13 @@ public void StopAudioScenes() public bool IsAudioSceneActive(string _scene) { unsafe { - if (fn__isAudioSceneActive == null) fn__isAudioSceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAudioSceneActive"); + if (fn__isAudioSceneActive == null) fn__isAudioSceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAudioSceneActive"); var success = false; var ptr_scene = MemoryUtils.StringToHGlobalUtf8(_scene); var result = fn__isAudioSceneActive(&success, ptr_scene); Marshal.FreeHGlobal(ptr_scene); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40742,11 +40742,11 @@ public void RemoveEntityFromAudioMixGroup(int _entity, float _p1) public bool AudioIsScriptedMusicPlaying() { unsafe { - if (fn__audioIsScriptedMusicPlaying == null) fn__audioIsScriptedMusicPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_audioIsScriptedMusicPlaying"); + if (fn__audioIsScriptedMusicPlaying == null) fn__audioIsScriptedMusicPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_audioIsScriptedMusicPlaying"); var success = false; var result = fn__audioIsScriptedMusicPlaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40764,50 +40764,50 @@ public int _0x2DD39BF3E2F9C47F() public bool PrepareMusicEvent(string _eventName) { unsafe { - if (fn__prepareMusicEvent == null) fn__prepareMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareMusicEvent"); + if (fn__prepareMusicEvent == null) fn__prepareMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareMusicEvent"); var success = false; var ptr_eventName = MemoryUtils.StringToHGlobalUtf8(_eventName); var result = fn__prepareMusicEvent(&success, ptr_eventName); Marshal.FreeHGlobal(ptr_eventName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CancelMusicEvent(string _eventName) { unsafe { - if (fn__cancelMusicEvent == null) fn__cancelMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cancelMusicEvent"); + if (fn__cancelMusicEvent == null) fn__cancelMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cancelMusicEvent"); var success = false; var ptr_eventName = MemoryUtils.StringToHGlobalUtf8(_eventName); var result = fn__cancelMusicEvent(&success, ptr_eventName); Marshal.FreeHGlobal(ptr_eventName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool TriggerMusicEvent(string _eventName) { unsafe { - if (fn__triggerMusicEvent == null) fn__triggerMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerMusicEvent"); + if (fn__triggerMusicEvent == null) fn__triggerMusicEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerMusicEvent"); var success = false; var ptr_eventName = MemoryUtils.StringToHGlobalUtf8(_eventName); var result = fn__triggerMusicEvent(&success, ptr_eventName); Marshal.FreeHGlobal(ptr_eventName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsMusicOneshotPlaying() { unsafe { - if (fn__isMusicOneshotPlaying == null) fn__isMusicOneshotPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMusicOneshotPlaying"); + if (fn__isMusicOneshotPlaying == null) fn__isMusicOneshotPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMusicOneshotPlaying"); var success = false; var result = fn__isMusicOneshotPlaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40855,9 +40855,9 @@ public void ClearAllBrokenGlass() public void _0x70B8EC8FC108A634(bool _p0, int _p1) { unsafe { - if (fn__0x70B8EC8FC108A634 == null) fn__0x70B8EC8FC108A634 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x70B8EC8FC108A634"); + if (fn__0x70B8EC8FC108A634 == null) fn__0x70B8EC8FC108A634 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x70B8EC8FC108A634"); var success = false; - fn__0x70B8EC8FC108A634(&success, _p0, _p1); + fn__0x70B8EC8FC108A634(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); } } @@ -40895,23 +40895,23 @@ public void ForcePedPanicWalla() public bool PrepareAlarm(string _alarmName) { unsafe { - if (fn__prepareAlarm == null) fn__prepareAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareAlarm"); + if (fn__prepareAlarm == null) fn__prepareAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareAlarm"); var success = false; var ptr_alarmName = MemoryUtils.StringToHGlobalUtf8(_alarmName); var result = fn__prepareAlarm(&success, ptr_alarmName); Marshal.FreeHGlobal(ptr_alarmName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void StartAlarm(string _alarmName, bool _p2) { unsafe { - if (fn__startAlarm == null) fn__startAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startAlarm"); + if (fn__startAlarm == null) fn__startAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startAlarm"); var success = false; var ptr_alarmName = MemoryUtils.StringToHGlobalUtf8(_alarmName); - fn__startAlarm(&success, ptr_alarmName, _p2); + fn__startAlarm(&success, ptr_alarmName, (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_alarmName); if (!success) throw new Exception("Native execution failed"); } @@ -40920,10 +40920,10 @@ public void StartAlarm(string _alarmName, bool _p2) public void StopAlarm(string _alarmName, bool _toggle) { unsafe { - if (fn__stopAlarm == null) fn__stopAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAlarm"); + if (fn__stopAlarm == null) fn__stopAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAlarm"); var success = false; var ptr_alarmName = MemoryUtils.StringToHGlobalUtf8(_alarmName); - fn__stopAlarm(&success, ptr_alarmName, _toggle); + fn__stopAlarm(&success, ptr_alarmName, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_alarmName); if (!success) throw new Exception("Native execution failed"); } @@ -40932,9 +40932,9 @@ public void StopAlarm(string _alarmName, bool _toggle) public void StopAllAlarms(bool _stop) { unsafe { - if (fn__stopAllAlarms == null) fn__stopAllAlarms = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAllAlarms"); + if (fn__stopAllAlarms == null) fn__stopAllAlarms = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAllAlarms"); var success = false; - fn__stopAllAlarms(&success, _stop); + fn__stopAllAlarms(&success, (byte) (_stop ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -40942,13 +40942,13 @@ public void StopAllAlarms(bool _stop) public bool IsAlarmPlaying(string _alarmName) { unsafe { - if (fn__isAlarmPlaying == null) fn__isAlarmPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAlarmPlaying"); + if (fn__isAlarmPlaying == null) fn__isAlarmPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAlarmPlaying"); var success = false; var ptr_alarmName = MemoryUtils.StringToHGlobalUtf8(_alarmName); var result = fn__isAlarmPlaying(&success, ptr_alarmName); Marshal.FreeHGlobal(ptr_alarmName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -40991,9 +40991,9 @@ public void ResetPedAudioFlags(int _ped) public void SetPedAudioFootstepLoud(int _ped, bool _toggle) { unsafe { - if (fn__setPedAudioFootstepLoud == null) fn__setPedAudioFootstepLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioFootstepLoud"); + if (fn__setPedAudioFootstepLoud == null) fn__setPedAudioFootstepLoud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioFootstepLoud"); var success = false; - fn__setPedAudioFootstepLoud(&success, _ped, _toggle); + fn__setPedAudioFootstepLoud(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41002,9 +41002,9 @@ public void SetPedAudioFootstepLoud(int _ped, bool _toggle) public void SetPedAudioFootstepQuiet(int _ped, bool _toggle) { unsafe { - if (fn__setPedAudioFootstepQuiet == null) fn__setPedAudioFootstepQuiet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioFootstepQuiet"); + if (fn__setPedAudioFootstepQuiet == null) fn__setPedAudioFootstepQuiet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAudioFootstepQuiet"); var success = false; - fn__setPedAudioFootstepQuiet(&success, _ped, _toggle); + fn__setPedAudioFootstepQuiet(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41012,9 +41012,9 @@ public void SetPedAudioFootstepQuiet(int _ped, bool _toggle) public void OverridePlayerGroundMaterial(uint _hash, bool _toggle) { unsafe { - if (fn__overridePlayerGroundMaterial == null) fn__overridePlayerGroundMaterial = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overridePlayerGroundMaterial"); + if (fn__overridePlayerGroundMaterial == null) fn__overridePlayerGroundMaterial = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overridePlayerGroundMaterial"); var success = false; - fn__overridePlayerGroundMaterial(&success, _hash, _toggle); + fn__overridePlayerGroundMaterial(&success, _hash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41023,9 +41023,9 @@ public void OverridePlayerGroundMaterial(uint _hash, bool _toggle) public void _0xBF4DC1784BE94DFA(int _ped, bool _p1, uint _hash) { unsafe { - if (fn__0xBF4DC1784BE94DFA == null) fn__0xBF4DC1784BE94DFA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBF4DC1784BE94DFA"); + if (fn__0xBF4DC1784BE94DFA == null) fn__0xBF4DC1784BE94DFA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBF4DC1784BE94DFA"); var success = false; - fn__0xBF4DC1784BE94DFA(&success, _ped, _p1, _hash); + fn__0xBF4DC1784BE94DFA(&success, _ped, (byte) (_p1 ? 1 : 0), _hash); if (!success) throw new Exception("Native execution failed"); } } @@ -41033,9 +41033,9 @@ public void _0xBF4DC1784BE94DFA(int _ped, bool _p1, uint _hash) public void OverrideMicrophoneSettings(uint _hash, bool _toggle) { unsafe { - if (fn__overrideMicrophoneSettings == null) fn__overrideMicrophoneSettings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideMicrophoneSettings"); + if (fn__overrideMicrophoneSettings == null) fn__overrideMicrophoneSettings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideMicrophoneSettings"); var success = false; - fn__overrideMicrophoneSettings(&success, _hash, _toggle); + fn__overrideMicrophoneSettings(&success, _hash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41053,9 +41053,9 @@ public void FreezeMicrophone() public void DistantCopCarSirens(bool _value) { unsafe { - if (fn__distantCopCarSirens == null) fn__distantCopCarSirens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_distantCopCarSirens"); + if (fn__distantCopCarSirens == null) fn__distantCopCarSirens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_distantCopCarSirens"); var success = false; - fn__distantCopCarSirens(&success, _value); + fn__distantCopCarSirens(&success, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41064,9 +41064,9 @@ public void DistantCopCarSirens(bool _value) public void _0x43FA0DFC5DF87815(int _vehicle, bool _p1) { unsafe { - if (fn__0x43FA0DFC5DF87815 == null) fn__0x43FA0DFC5DF87815 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x43FA0DFC5DF87815"); + if (fn__0x43FA0DFC5DF87815 == null) fn__0x43FA0DFC5DF87815 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x43FA0DFC5DF87815"); var success = false; - fn__0x43FA0DFC5DF87815(&success, _vehicle, _p1); + fn__0x43FA0DFC5DF87815(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41084,10 +41084,10 @@ public void _0xB81CF134AEB56FFB() public void SetAudioFlag(string _flagName, bool _toggle) { unsafe { - if (fn__setAudioFlag == null) fn__setAudioFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAudioFlag"); + if (fn__setAudioFlag == null) fn__setAudioFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAudioFlag"); var success = false; var ptr_flagName = MemoryUtils.StringToHGlobalUtf8(_flagName); - fn__setAudioFlag(&success, ptr_flagName, _toggle); + fn__setAudioFlag(&success, ptr_flagName, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_flagName); if (!success) throw new Exception("Native execution failed"); } @@ -41109,35 +41109,35 @@ public int PrepareSynchronizedAudioEvent(string _p0, int _p1) public bool PrepareSynchronizedAudioEventForScene(int _p0, ref int _p1) { unsafe { - if (fn__prepareSynchronizedAudioEventForScene == null) fn__prepareSynchronizedAudioEventForScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareSynchronizedAudioEventForScene"); + if (fn__prepareSynchronizedAudioEventForScene == null) fn__prepareSynchronizedAudioEventForScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_prepareSynchronizedAudioEventForScene"); var success = false; var ref_p1 = _p1; var result = fn__prepareSynchronizedAudioEventForScene(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool PlaySynchronizedAudioEvent(int _p0) { unsafe { - if (fn__playSynchronizedAudioEvent == null) fn__playSynchronizedAudioEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedAudioEvent"); + if (fn__playSynchronizedAudioEvent == null) fn__playSynchronizedAudioEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedAudioEvent"); var success = false; var result = fn__playSynchronizedAudioEvent(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StopSynchronizedAudioEvent(int _p0) { unsafe { - if (fn__stopSynchronizedAudioEvent == null) fn__stopSynchronizedAudioEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedAudioEvent"); + if (fn__stopSynchronizedAudioEvent == null) fn__stopSynchronizedAudioEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedAudioEvent"); var success = false; var result = fn__stopSynchronizedAudioEvent(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -41247,9 +41247,9 @@ public void UnrequestTennisBanks() public void _0xBEF34B1D9624D5DD(bool _p0) { unsafe { - if (fn__0xBEF34B1D9624D5DD == null) fn__0xBEF34B1D9624D5DD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBEF34B1D9624D5DD"); + if (fn__0xBEF34B1D9624D5DD == null) fn__0xBEF34B1D9624D5DD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBEF34B1D9624D5DD"); var success = false; - fn__0xBEF34B1D9624D5DD(&success, _p0); + fn__0xBEF34B1D9624D5DD(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41267,22 +41267,22 @@ public void StopCutsceneAudio() public bool HasMultiplayerAudioDataLoaded() { unsafe { - if (fn__hasMultiplayerAudioDataLoaded == null) fn__hasMultiplayerAudioDataLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasMultiplayerAudioDataLoaded"); + if (fn__hasMultiplayerAudioDataLoaded == null) fn__hasMultiplayerAudioDataLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasMultiplayerAudioDataLoaded"); var success = false; var result = fn__hasMultiplayerAudioDataLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasMultiplayerAudioDataUnloaded() { unsafe { - if (fn__hasMultiplayerAudioDataUnloaded == null) fn__hasMultiplayerAudioDataUnloaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasMultiplayerAudioDataUnloaded"); + if (fn__hasMultiplayerAudioDataUnloaded == null) fn__hasMultiplayerAudioDataUnloaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasMultiplayerAudioDataUnloaded"); var success = false; var result = fn__hasMultiplayerAudioDataUnloaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -41336,11 +41336,11 @@ public void RegisterObjectScriptBrain(string _scriptName, uint _modelHash, int _ public bool IsObjectWithinBrainActivationRange(int _object) { unsafe { - if (fn__isObjectWithinBrainActivationRange == null) fn__isObjectWithinBrainActivationRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectWithinBrainActivationRange"); + if (fn__isObjectWithinBrainActivationRange == null) fn__isObjectWithinBrainActivationRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectWithinBrainActivationRange"); var success = false; var result = fn__isObjectWithinBrainActivationRange(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -41359,11 +41359,11 @@ public void RegisterWorldPointScriptBrain(string _scriptName, float _activationR public bool IsWorldPointWithinBrainActivationRange() { unsafe { - if (fn__isWorldPointWithinBrainActivationRange == null) fn__isWorldPointWithinBrainActivationRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWorldPointWithinBrainActivationRange"); + if (fn__isWorldPointWithinBrainActivationRange == null) fn__isWorldPointWithinBrainActivationRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWorldPointWithinBrainActivationRange"); var success = false; var result = fn__isWorldPointWithinBrainActivationRange(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -41434,9 +41434,9 @@ public void _0x6E91B04E08773030(string _action) public void RenderScriptCams(bool _render, bool _ease, int _easeTime, bool _p3, bool _p4, int _p5) { unsafe { - if (fn__renderScriptCams == null) fn__renderScriptCams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_renderScriptCams"); + if (fn__renderScriptCams == null) fn__renderScriptCams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_renderScriptCams"); var success = false; - fn__renderScriptCams(&success, _render, _ease, _easeTime, _p3, _p4, _p5); + fn__renderScriptCams(&success, (byte) (_render ? 1 : 0), (byte) (_ease ? 1 : 0), _easeTime, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), _p5); if (!success) throw new Exception("Native execution failed"); } } @@ -41444,9 +41444,9 @@ public void RenderScriptCams(bool _render, bool _ease, int _easeTime, bool _p3, public void StopRenderingScriptCamsUsingCatchUp(bool _render, float _p1, int _p2, int _p3) { unsafe { - if (fn__stopRenderingScriptCamsUsingCatchUp == null) fn__stopRenderingScriptCamsUsingCatchUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopRenderingScriptCamsUsingCatchUp"); + if (fn__stopRenderingScriptCamsUsingCatchUp == null) fn__stopRenderingScriptCamsUsingCatchUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopRenderingScriptCamsUsingCatchUp"); var success = false; - fn__stopRenderingScriptCamsUsingCatchUp(&success, _render, _p1, _p2, _p3); + fn__stopRenderingScriptCamsUsingCatchUp(&success, (byte) (_render ? 1 : 0), _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -41454,10 +41454,10 @@ public void StopRenderingScriptCamsUsingCatchUp(bool _render, float _p1, int _p2 public int CreateCam(string _camName, bool _p1) { unsafe { - if (fn__createCam == null) fn__createCam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCam"); + if (fn__createCam == null) fn__createCam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCam"); var success = false; var ptr_camName = MemoryUtils.StringToHGlobalUtf8(_camName); - var result = fn__createCam(&success, ptr_camName, _p1); + var result = fn__createCam(&success, ptr_camName, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_camName); if (!success) throw new Exception("Native execution failed"); return result; @@ -41467,10 +41467,10 @@ public int CreateCam(string _camName, bool _p1) public int CreateCamWithParams(string _camName, float _posX, float _posY, float _posZ, float _rotX, float _rotY, float _rotZ, float _fov, bool _p8, int _p9) { unsafe { - if (fn__createCamWithParams == null) fn__createCamWithParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCamWithParams"); + if (fn__createCamWithParams == null) fn__createCamWithParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCamWithParams"); var success = false; var ptr_camName = MemoryUtils.StringToHGlobalUtf8(_camName); - var result = fn__createCamWithParams(&success, ptr_camName, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _fov, _p8, _p9); + var result = fn__createCamWithParams(&success, ptr_camName, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _fov, (byte) (_p8 ? 1 : 0), _p9); Marshal.FreeHGlobal(ptr_camName); if (!success) throw new Exception("Native execution failed"); return result; @@ -41480,9 +41480,9 @@ public int CreateCamWithParams(string _camName, float _posX, float _posY, float public int CreateCamera(uint _camHash, bool _p1) { unsafe { - if (fn__createCamera == null) fn__createCamera = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCamera"); + if (fn__createCamera == null) fn__createCamera = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCamera"); var success = false; - var result = fn__createCamera(&success, _camHash, _p1); + var result = fn__createCamera(&success, _camHash, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -41491,9 +41491,9 @@ public int CreateCamera(uint _camHash, bool _p1) public int CreateCameraWithParams(uint _camHash, float _posX, float _posY, float _posZ, float _rotX, float _rotY, float _rotZ, float _fov, bool _p8, int _p9) { unsafe { - if (fn__createCameraWithParams == null) fn__createCameraWithParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCameraWithParams"); + if (fn__createCameraWithParams == null) fn__createCameraWithParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createCameraWithParams"); var success = false; - var result = fn__createCameraWithParams(&success, _camHash, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _fov, _p8, _p9); + var result = fn__createCameraWithParams(&success, _camHash, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _fov, (byte) (_p8 ? 1 : 0), _p9); if (!success) throw new Exception("Native execution failed"); return result; } @@ -41502,9 +41502,9 @@ public int CreateCameraWithParams(uint _camHash, float _posX, float _posY, float public void DestroyCam(int _cam, bool _bScriptHostCam) { unsafe { - if (fn__destroyCam == null) fn__destroyCam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_destroyCam"); + if (fn__destroyCam == null) fn__destroyCam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_destroyCam"); var success = false; - fn__destroyCam(&success, _cam, _bScriptHostCam); + fn__destroyCam(&success, _cam, (byte) (_bScriptHostCam ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41512,9 +41512,9 @@ public void DestroyCam(int _cam, bool _bScriptHostCam) public void DestroyAllCams(bool _bScriptHostCam) { unsafe { - if (fn__destroyAllCams == null) fn__destroyAllCams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_destroyAllCams"); + if (fn__destroyAllCams == null) fn__destroyAllCams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_destroyAllCams"); var success = false; - fn__destroyAllCams(&success, _bScriptHostCam); + fn__destroyAllCams(&success, (byte) (_bScriptHostCam ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41522,20 +41522,20 @@ public void DestroyAllCams(bool _bScriptHostCam) public bool DoesCamExist(int _cam) { unsafe { - if (fn__doesCamExist == null) fn__doesCamExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCamExist"); + if (fn__doesCamExist == null) fn__doesCamExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCamExist"); var success = false; var result = fn__doesCamExist(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetCamActive(int _cam, bool _active) { unsafe { - if (fn__setCamActive == null) fn__setCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamActive"); + if (fn__setCamActive == null) fn__setCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamActive"); var success = false; - fn__setCamActive(&success, _cam, _active); + fn__setCamActive(&success, _cam, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41543,22 +41543,22 @@ public void SetCamActive(int _cam, bool _active) public bool IsCamActive(int _cam) { unsafe { - if (fn__isCamActive == null) fn__isCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamActive"); + if (fn__isCamActive == null) fn__isCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamActive"); var success = false; var result = fn__isCamActive(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCamRendering(int _cam) { unsafe { - if (fn__isCamRendering == null) fn__isCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamRendering"); + if (fn__isCamRendering == null) fn__isCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamRendering"); var success = false; var result = fn__isCamRendering(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -41762,9 +41762,9 @@ public void SetCamDofPlanes(int _cam, float _p1, float _p2, float _p3, float _p4 public void SetCamUseShallowDofMode(int _cam, bool _toggle) { unsafe { - if (fn__setCamUseShallowDofMode == null) fn__setCamUseShallowDofMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamUseShallowDofMode"); + if (fn__setCamUseShallowDofMode == null) fn__setCamUseShallowDofMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamUseShallowDofMode"); var success = false; - fn__setCamUseShallowDofMode(&success, _cam, _toggle); + fn__setCamUseShallowDofMode(&success, _cam, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41853,9 +41853,9 @@ public void SetCamDofMaxNearInFocusDistanceBlendLevel(int _camera, float _p1) public void AttachCamToEntity(int _cam, int _entity, float _xOffset, float _yOffset, float _zOffset, bool _isRelative) { unsafe { - if (fn__attachCamToEntity == null) fn__attachCamToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToEntity"); + if (fn__attachCamToEntity == null) fn__attachCamToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToEntity"); var success = false; - fn__attachCamToEntity(&success, _cam, _entity, _xOffset, _yOffset, _zOffset, _isRelative); + fn__attachCamToEntity(&success, _cam, _entity, _xOffset, _yOffset, _zOffset, (byte) (_isRelative ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41864,9 +41864,9 @@ public void AttachCamToEntity(int _cam, int _entity, float _xOffset, float _yOff public void AttachCamToPedBone(int _cam, int _ped, int _boneIndex, float _x, float _y, float _z, bool _heading) { unsafe { - if (fn__attachCamToPedBone == null) fn__attachCamToPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToPedBone"); + if (fn__attachCamToPedBone == null) fn__attachCamToPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToPedBone"); var success = false; - fn__attachCamToPedBone(&success, _cam, _ped, _boneIndex, _x, _y, _z, _heading); + fn__attachCamToPedBone(&success, _cam, _ped, _boneIndex, _x, _y, _z, (byte) (_heading ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41875,9 +41875,9 @@ public void AttachCamToPedBone(int _cam, int _ped, int _boneIndex, float _x, flo public void AttachCamToPedBone2(int _cam, int _ped, int _boneIndex, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, bool _p9) { unsafe { - if (fn__attachCamToPedBone2 == null) fn__attachCamToPedBone2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToPedBone2"); + if (fn__attachCamToPedBone2 == null) fn__attachCamToPedBone2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToPedBone2"); var success = false; - fn__attachCamToPedBone2(&success, _cam, _ped, _boneIndex, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + fn__attachCamToPedBone2(&success, _cam, _ped, _boneIndex, _p3, _p4, _p5, _p6, _p7, _p8, (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41896,9 +41896,9 @@ public void _0x202A5ED9CE01D6E7(int _p0, int _p1, int _p2, int _p3, int _p4, int public void AttachCamToVehicleBone(int _cam, int _vehicle, int _boneIndex, bool _relativeRotation, float _rotX, float _rotY, float _rotZ, float _offsetX, float _offsetY, float _offsetZ, bool _fixedDirection) { unsafe { - if (fn__attachCamToVehicleBone == null) fn__attachCamToVehicleBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToVehicleBone"); + if (fn__attachCamToVehicleBone == null) fn__attachCamToVehicleBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachCamToVehicleBone"); var success = false; - fn__attachCamToVehicleBone(&success, _cam, _vehicle, _boneIndex, _relativeRotation, _rotX, _rotY, _rotZ, _offsetX, _offsetY, _offsetZ, _fixedDirection); + fn__attachCamToVehicleBone(&success, _cam, _vehicle, _boneIndex, (byte) (_relativeRotation ? 1 : 0), _rotX, _rotY, _rotZ, _offsetX, _offsetY, _offsetZ, (byte) (_fixedDirection ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41916,9 +41916,9 @@ public void DetachCam(int _cam) public void SetCamInheritRollVehicle(int _cam, bool _p1) { unsafe { - if (fn__setCamInheritRollVehicle == null) fn__setCamInheritRollVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamInheritRollVehicle"); + if (fn__setCamInheritRollVehicle == null) fn__setCamInheritRollVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamInheritRollVehicle"); var success = false; - fn__setCamInheritRollVehicle(&success, _cam, _p1); + fn__setCamInheritRollVehicle(&success, _cam, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41937,9 +41937,9 @@ public void PointCamAtCoord(int _cam, float _x, float _y, float _z) public void PointCamAtEntity(int _cam, int _entity, float _p2, float _p3, float _p4, bool _p5) { unsafe { - if (fn__pointCamAtEntity == null) fn__pointCamAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pointCamAtEntity"); + if (fn__pointCamAtEntity == null) fn__pointCamAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pointCamAtEntity"); var success = false; - fn__pointCamAtEntity(&success, _cam, _entity, _p2, _p3, _p4, _p5); + fn__pointCamAtEntity(&success, _cam, _entity, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41948,9 +41948,9 @@ public void PointCamAtEntity(int _cam, int _entity, float _p2, float _p3, float public void PointCamAtPedBone(int _cam, int _ped, int _boneIndex, float _x, float _y, float _z, bool _p6) { unsafe { - if (fn__pointCamAtPedBone == null) fn__pointCamAtPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pointCamAtPedBone"); + if (fn__pointCamAtPedBone == null) fn__pointCamAtPedBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pointCamAtPedBone"); var success = false; - fn__pointCamAtPedBone(&success, _cam, _ped, _boneIndex, _x, _y, _z, _p6); + fn__pointCamAtPedBone(&success, _cam, _ped, _boneIndex, _x, _y, _z, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41968,9 +41968,9 @@ public void StopCamPointing(int _cam) public void SetCamAffectsAiming(int _cam, bool _toggle) { unsafe { - if (fn__setCamAffectsAiming == null) fn__setCamAffectsAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamAffectsAiming"); + if (fn__setCamAffectsAiming == null) fn__setCamAffectsAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCamAffectsAiming"); var success = false; - fn__setCamAffectsAiming(&success, _cam, _toggle); + fn__setCamAffectsAiming(&success, _cam, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41978,9 +41978,9 @@ public void SetCamAffectsAiming(int _cam, bool _toggle) public void _0x661B5C8654ADD825(int _cam, bool _p1) { unsafe { - if (fn__0x661B5C8654ADD825 == null) fn__0x661B5C8654ADD825 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x661B5C8654ADD825"); + if (fn__0x661B5C8654ADD825 == null) fn__0x661B5C8654ADD825 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x661B5C8654ADD825"); var success = false; - fn__0x661B5C8654ADD825(&success, _cam, _p1); + fn__0x661B5C8654ADD825(&success, _cam, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41988,9 +41988,9 @@ public void _0x661B5C8654ADD825(int _cam, bool _p1) public void _0xA2767257A320FC82(int _p0, bool _p1) { unsafe { - if (fn__0xA2767257A320FC82 == null) fn__0xA2767257A320FC82 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA2767257A320FC82"); + if (fn__0xA2767257A320FC82 == null) fn__0xA2767257A320FC82 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA2767257A320FC82"); var success = false; - fn__0xA2767257A320FC82(&success, _p0, _p1); + fn__0xA2767257A320FC82(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -41998,9 +41998,9 @@ public void _0xA2767257A320FC82(int _p0, bool _p1) public void _0x271017B9BA825366(int _p0, bool _p1) { unsafe { - if (fn__0x271017B9BA825366 == null) fn__0x271017B9BA825366 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x271017B9BA825366"); + if (fn__0x271017B9BA825366 == null) fn__0x271017B9BA825366 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x271017B9BA825366"); var success = false; - fn__0x271017B9BA825366(&success, _p0, _p1); + fn__0x271017B9BA825366(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42184,11 +42184,11 @@ public void SetCamSplineNodeExtraFlags(int _cam, int _p1, int _flags) public bool IsCamSplinePaused(int _p0) { unsafe { - if (fn__isCamSplinePaused == null) fn__isCamSplinePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamSplinePaused"); + if (fn__isCamSplinePaused == null) fn__isCamSplinePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamSplinePaused"); var success = false; var result = fn__isCamSplinePaused(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42205,11 +42205,11 @@ public void SetCamActiveWithInterp(int _camTo, int _camFrom, int _duration, int public bool IsCamInterpolating(int _cam) { unsafe { - if (fn__isCamInterpolating == null) fn__isCamInterpolating = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamInterpolating"); + if (fn__isCamInterpolating == null) fn__isCamInterpolating = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamInterpolating"); var success = false; var result = fn__isCamInterpolating(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42244,11 +42244,11 @@ public void AnimatedShakeCam(int _cam, string _p1, string _p2, string _p3, float public bool IsCamShaking(int _cam) { unsafe { - if (fn__isCamShaking == null) fn__isCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamShaking"); + if (fn__isCamShaking == null) fn__isCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamShaking"); var success = false; var result = fn__isCamShaking(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42265,9 +42265,9 @@ public void SetCamShakeAmplitude(int _cam, float _amplitude) public void StopCamShaking(int _cam, bool _p1) { unsafe { - if (fn__stopCamShaking == null) fn__stopCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCamShaking"); + if (fn__stopCamShaking == null) fn__stopCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCamShaking"); var success = false; - fn__stopCamShaking(&success, _cam, _p1); + fn__stopCamShaking(&success, _cam, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42303,20 +42303,20 @@ public void AnimatedShakeScriptGlobal(string _p0, string _p1, string _p2, float public bool IsScriptGlobalShaking() { unsafe { - if (fn__isScriptGlobalShaking == null) fn__isScriptGlobalShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptGlobalShaking"); + if (fn__isScriptGlobalShaking == null) fn__isScriptGlobalShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptGlobalShaking"); var success = false; var result = fn__isScriptGlobalShaking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void StopScriptGlobalShaking(bool _p0) { unsafe { - if (fn__stopScriptGlobalShaking == null) fn__stopScriptGlobalShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopScriptGlobalShaking"); + if (fn__stopScriptGlobalShaking == null) fn__stopScriptGlobalShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopScriptGlobalShaking"); var success = false; - fn__stopScriptGlobalShaking(&success, _p0); + fn__stopScriptGlobalShaking(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42335,22 +42335,22 @@ public void _0x5D96CFB59DA076A0(int _vehicle, int _p1, float _p2) public bool PlayCamAnim(int _cam, string _animName, string _animDictionary, float _x, float _y, float _z, float _xRot, float _yRot, float _zRot, bool _p9, int _p10) { unsafe { - if (fn__playCamAnim == null) fn__playCamAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playCamAnim"); + if (fn__playCamAnim == null) fn__playCamAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playCamAnim"); var success = false; var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); - var result = fn__playCamAnim(&success, _cam, ptr_animName, ptr_animDictionary, _x, _y, _z, _xRot, _yRot, _zRot, _p9, _p10); + var result = fn__playCamAnim(&success, _cam, ptr_animName, ptr_animDictionary, _x, _y, _z, _xRot, _yRot, _zRot, (byte) (_p9 ? 1 : 0), _p10); Marshal.FreeHGlobal(ptr_animName); Marshal.FreeHGlobal(ptr_animDictionary); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCamPlayingAnim(int _cam, string _animName, string _animDictionary) { unsafe { - if (fn__isCamPlayingAnim == null) fn__isCamPlayingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamPlayingAnim"); + if (fn__isCamPlayingAnim == null) fn__isCamPlayingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCamPlayingAnim"); var success = false; var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); @@ -42358,7 +42358,7 @@ public bool IsCamPlayingAnim(int _cam, string _animName, string _animDictionary) Marshal.FreeHGlobal(ptr_animName); Marshal.FreeHGlobal(ptr_animDictionary); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42386,7 +42386,7 @@ public float GetCamAnimCurrentPhase(int _cam) public bool PlaySynchronizedCamAnim(int _p0, int _p1, string _animName, string _animDictionary) { unsafe { - if (fn__playSynchronizedCamAnim == null) fn__playSynchronizedCamAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedCamAnim"); + if (fn__playSynchronizedCamAnim == null) fn__playSynchronizedCamAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedCamAnim"); var success = false; var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); @@ -42394,7 +42394,7 @@ public bool PlaySynchronizedCamAnim(int _p0, int _p1, string _animName, string _ Marshal.FreeHGlobal(ptr_animName); Marshal.FreeHGlobal(ptr_animDictionary); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42451,55 +42451,55 @@ public void _0xC8B5C4A79CC18B94(int _cam) public bool _0x5C48A1D6E3B33179(int _cam) { unsafe { - if (fn__0x5C48A1D6E3B33179 == null) fn__0x5C48A1D6E3B33179 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5C48A1D6E3B33179"); + if (fn__0x5C48A1D6E3B33179 == null) fn__0x5C48A1D6E3B33179 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5C48A1D6E3B33179"); var success = false; var result = fn__0x5C48A1D6E3B33179(&success, _cam); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScreenFadedOut() { unsafe { - if (fn__isScreenFadedOut == null) fn__isScreenFadedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadedOut"); + if (fn__isScreenFadedOut == null) fn__isScreenFadedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadedOut"); var success = false; var result = fn__isScreenFadedOut(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScreenFadedIn() { unsafe { - if (fn__isScreenFadedIn == null) fn__isScreenFadedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadedIn"); + if (fn__isScreenFadedIn == null) fn__isScreenFadedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadedIn"); var success = false; var result = fn__isScreenFadedIn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScreenFadingOut() { unsafe { - if (fn__isScreenFadingOut == null) fn__isScreenFadingOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadingOut"); + if (fn__isScreenFadingOut == null) fn__isScreenFadingOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadingOut"); var success = false; var result = fn__isScreenFadingOut(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScreenFadingIn() { unsafe { - if (fn__isScreenFadingIn == null) fn__isScreenFadingIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadingIn"); + if (fn__isScreenFadingIn == null) fn__isScreenFadingIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScreenFadingIn"); var success = false; var result = fn__isScreenFadingIn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42526,9 +42526,9 @@ public void DoScreenFadeOut(int _duration) public void SetWidescreenBorders(bool _p0, int _p1) { unsafe { - if (fn__setWidescreenBorders == null) fn__setWidescreenBorders = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWidescreenBorders"); + if (fn__setWidescreenBorders == null) fn__setWidescreenBorders = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWidescreenBorders"); var success = false; - fn__setWidescreenBorders(&success, _p0, _p1); + fn__setWidescreenBorders(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); } } @@ -42536,11 +42536,11 @@ public void SetWidescreenBorders(bool _p0, int _p1) public bool _0x4879E4FE39074CDF() { unsafe { - if (fn__0x4879E4FE39074CDF == null) fn__0x4879E4FE39074CDF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4879E4FE39074CDF"); + if (fn__0x4879E4FE39074CDF == null) fn__0x4879E4FE39074CDF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4879E4FE39074CDF"); var success = false; var result = fn__0x4879E4FE39074CDF(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42682,9 +42682,9 @@ public void SetGameplayCamRawPitch(float _pitch) public void _0x469F2ECDEC046337(bool _p0) { unsafe { - if (fn__0x469F2ECDEC046337 == null) fn__0x469F2ECDEC046337 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x469F2ECDEC046337"); + if (fn__0x469F2ECDEC046337 == null) fn__0x469F2ECDEC046337 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x469F2ECDEC046337"); var success = false; - fn__0x469F2ECDEC046337(&success, _p0); + fn__0x469F2ECDEC046337(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42704,11 +42704,11 @@ public void ShakeGameplayCam(string _shakeName, float _intensity) public bool IsGameplayCamShaking() { unsafe { - if (fn__isGameplayCamShaking == null) fn__isGameplayCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamShaking"); + if (fn__isGameplayCamShaking == null) fn__isGameplayCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamShaking"); var success = false; var result = fn__isGameplayCamShaking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42725,9 +42725,9 @@ public void SetGameplayCamShakeAmplitude(float _amplitude) public void StopGameplayCamShaking(bool _p0) { unsafe { - if (fn__stopGameplayCamShaking == null) fn__stopGameplayCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopGameplayCamShaking"); + if (fn__stopGameplayCamShaking == null) fn__stopGameplayCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopGameplayCamShaking"); var success = false; - fn__stopGameplayCamShaking(&success, _p0); + fn__stopGameplayCamShaking(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42746,42 +42746,42 @@ public void SetGameplayCamFollowPedThisUpdate(int _ped) public bool IsGameplayCamRendering() { unsafe { - if (fn__isGameplayCamRendering == null) fn__isGameplayCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamRendering"); + if (fn__isGameplayCamRendering == null) fn__isGameplayCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamRendering"); var success = false; var result = fn__isGameplayCamRendering(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x3044240D2E0FA842() { unsafe { - if (fn__0x3044240D2E0FA842 == null) fn__0x3044240D2E0FA842 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3044240D2E0FA842"); + if (fn__0x3044240D2E0FA842 == null) fn__0x3044240D2E0FA842 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3044240D2E0FA842"); var success = false; var result = fn__0x3044240D2E0FA842(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x705A276EBFF3133D() { unsafe { - if (fn__0x705A276EBFF3133D == null) fn__0x705A276EBFF3133D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x705A276EBFF3133D"); + if (fn__0x705A276EBFF3133D == null) fn__0x705A276EBFF3133D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x705A276EBFF3133D"); var success = false; var result = fn__0x705A276EBFF3133D(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xDB90C6CCA48940F1(bool _p0) { unsafe { - if (fn__0xDB90C6CCA48940F1 == null) fn__0xDB90C6CCA48940F1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDB90C6CCA48940F1"); + if (fn__0xDB90C6CCA48940F1 == null) fn__0xDB90C6CCA48940F1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDB90C6CCA48940F1"); var success = false; - fn__0xDB90C6CCA48940F1(&success, _p0); + fn__0xDB90C6CCA48940F1(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -42799,11 +42799,11 @@ public void EnableCrosshairThisFrame() public bool IsGameplayCamLookingBehind() { unsafe { - if (fn__isGameplayCamLookingBehind == null) fn__isGameplayCamLookingBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamLookingBehind"); + if (fn__isGameplayCamLookingBehind == null) fn__isGameplayCamLookingBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayCamLookingBehind"); var success = false; var result = fn__isGameplayCamLookingBehind(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -42873,44 +42873,44 @@ public void _0xDD79DF9F4D26E1C9() public bool IsSphereVisible(float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isSphereVisible == null) fn__isSphereVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisible"); + if (fn__isSphereVisible == null) fn__isSphereVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisible"); var success = false; var result = fn__isSphereVisible(&success, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsFollowPedCamActive() { unsafe { - if (fn__isFollowPedCamActive == null) fn__isFollowPedCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFollowPedCamActive"); + if (fn__isFollowPedCamActive == null) fn__isFollowPedCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFollowPedCamActive"); var success = false; var result = fn__isFollowPedCamActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SetFollowPedCamThisUpdate(string _camName, int _p1) { unsafe { - if (fn__setFollowPedCamThisUpdate == null) fn__setFollowPedCamThisUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFollowPedCamThisUpdate"); + if (fn__setFollowPedCamThisUpdate == null) fn__setFollowPedCamThisUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFollowPedCamThisUpdate"); var success = false; var ptr_camName = MemoryUtils.StringToHGlobalUtf8(_camName); var result = fn__setFollowPedCamThisUpdate(&success, ptr_camName, _p1); Marshal.FreeHGlobal(ptr_camName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x271401846BD26E92(bool _p0, bool _p1) { unsafe { - if (fn__0x271401846BD26E92 == null) fn__0x271401846BD26E92 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x271401846BD26E92"); + if (fn__0x271401846BD26E92 == null) fn__0x271401846BD26E92 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x271401846BD26E92"); var success = false; - fn__0x271401846BD26E92(&success, _p0, _p1); + fn__0x271401846BD26E92(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43031,20 +43031,20 @@ public void SetFollowPedCamViewMode(int _viewMode) public bool IsFollowVehicleCamActive() { unsafe { - if (fn__isFollowVehicleCamActive == null) fn__isFollowVehicleCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFollowVehicleCamActive"); + if (fn__isFollowVehicleCamActive == null) fn__isFollowVehicleCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFollowVehicleCamActive"); var success = false; var result = fn__isFollowVehicleCamActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x91EF6EE6419E5B97(bool _p0) { unsafe { - if (fn__0x91EF6EE6419E5B97 == null) fn__0x91EF6EE6419E5B97 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x91EF6EE6419E5B97"); + if (fn__0x91EF6EE6419E5B97 == null) fn__0x91EF6EE6419E5B97 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x91EF6EE6419E5B97"); var success = false; - fn__0x91EF6EE6419E5B97(&success, _p0); + fn__0x91EF6EE6419E5B97(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43052,9 +43052,9 @@ public void _0x91EF6EE6419E5B97(bool _p0) public void _0x9DFE13ECDC1EC196(bool _p0, bool _p1) { unsafe { - if (fn__0x9DFE13ECDC1EC196 == null) fn__0x9DFE13ECDC1EC196 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9DFE13ECDC1EC196"); + if (fn__0x9DFE13ECDC1EC196 == null) fn__0x9DFE13ECDC1EC196 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9DFE13ECDC1EC196"); var success = false; - fn__0x9DFE13ECDC1EC196(&success, _p0, _p1); + fn__0x9DFE13ECDC1EC196(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43062,11 +43062,11 @@ public void _0x9DFE13ECDC1EC196(bool _p0, bool _p1) public bool _0x79C0E43EB9B944E2(uint _hash) { unsafe { - if (fn__0x79C0E43EB9B944E2 == null) fn__0x79C0E43EB9B944E2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x79C0E43EB9B944E2"); + if (fn__0x79C0E43EB9B944E2 == null) fn__0x79C0E43EB9B944E2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x79C0E43EB9B944E2"); var success = false; var result = fn__0x79C0E43EB9B944E2(&success, _hash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43189,33 +43189,33 @@ public void SetFollowTurretSeatCam(int _seatIndex) public bool IsAimCamActive() { unsafe { - if (fn__isAimCamActive == null) fn__isAimCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAimCamActive"); + if (fn__isAimCamActive == null) fn__isAimCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAimCamActive"); var success = false; var result = fn__isAimCamActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsAimCamThirdPersonActive() { unsafe { - if (fn__isAimCamThirdPersonActive == null) fn__isAimCamThirdPersonActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAimCamThirdPersonActive"); + if (fn__isAimCamThirdPersonActive == null) fn__isAimCamThirdPersonActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAimCamThirdPersonActive"); var success = false; var result = fn__isAimCamThirdPersonActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsFirstPersonAimCamActive() { unsafe { - if (fn__isFirstPersonAimCamActive == null) fn__isFirstPersonAimCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFirstPersonAimCamActive"); + if (fn__isFirstPersonAimCamActive == null) fn__isFirstPersonAimCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFirstPersonAimCamActive"); var success = false; var result = fn__isFirstPersonAimCamActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43303,9 +43303,9 @@ public void SetThirdPersonAimCamNearClipThisUpdate(float _p0) public void _0x4008EDF7D6E48175(bool _p0) { unsafe { - if (fn__0x4008EDF7D6E48175 == null) fn__0x4008EDF7D6E48175 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4008EDF7D6E48175"); + if (fn__0x4008EDF7D6E48175 == null) fn__0x4008EDF7D6E48175 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4008EDF7D6E48175"); var success = false; - fn__0x4008EDF7D6E48175(&success, _p0); + fn__0x4008EDF7D6E48175(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43446,9 +43446,9 @@ public void SetGameplayCoordHint(float _x, float _y, float _z, int _duration, in public void SetGameplayPedHint(int _p0, float _x1, float _y1, float _z1, bool _p4, int _p5, int _p6, int _p7) { unsafe { - if (fn__setGameplayPedHint == null) fn__setGameplayPedHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayPedHint"); + if (fn__setGameplayPedHint == null) fn__setGameplayPedHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayPedHint"); var success = false; - fn__setGameplayPedHint(&success, _p0, _x1, _y1, _z1, _p4, _p5, _p6, _p7); + fn__setGameplayPedHint(&success, _p0, _x1, _y1, _z1, (byte) (_p4 ? 1 : 0), _p5, _p6, _p7); if (!success) throw new Exception("Native execution failed"); } } @@ -43457,9 +43457,9 @@ public void SetGameplayPedHint(int _p0, float _x1, float _y1, float _z1, bool _p public void SetGameplayVehicleHint(int _vehicle, float _offsetX, float _offsetY, float _offsetZ, bool _p4, int _time, int _easeInTime, int _easeOutTime) { unsafe { - if (fn__setGameplayVehicleHint == null) fn__setGameplayVehicleHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayVehicleHint"); + if (fn__setGameplayVehicleHint == null) fn__setGameplayVehicleHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayVehicleHint"); var success = false; - fn__setGameplayVehicleHint(&success, _vehicle, _offsetX, _offsetY, _offsetZ, _p4, _time, _easeInTime, _easeOutTime); + fn__setGameplayVehicleHint(&success, _vehicle, _offsetX, _offsetY, _offsetZ, (byte) (_p4 ? 1 : 0), _time, _easeInTime, _easeOutTime); if (!success) throw new Exception("Native execution failed"); } } @@ -43467,9 +43467,9 @@ public void SetGameplayVehicleHint(int _vehicle, float _offsetX, float _offsetY, public void SetGameplayObjectHint(int _p0, float _p1, float _p2, float _p3, bool _p4, int _p5, int _p6, int _p7) { unsafe { - if (fn__setGameplayObjectHint == null) fn__setGameplayObjectHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayObjectHint"); + if (fn__setGameplayObjectHint == null) fn__setGameplayObjectHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayObjectHint"); var success = false; - fn__setGameplayObjectHint(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + fn__setGameplayObjectHint(&success, _p0, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0), _p5, _p6, _p7); if (!success) throw new Exception("Native execution failed"); } } @@ -43478,9 +43478,9 @@ public void SetGameplayObjectHint(int _p0, float _p1, float _p2, float _p3, bool public void SetGameplayEntityHint(int _entity, float _xOffset, float _yOffset, float _zOffset, bool _p4, int _p5, int _p6, int _p7, int _p8) { unsafe { - if (fn__setGameplayEntityHint == null) fn__setGameplayEntityHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayEntityHint"); + if (fn__setGameplayEntityHint == null) fn__setGameplayEntityHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayEntityHint"); var success = false; - fn__setGameplayEntityHint(&success, _entity, _xOffset, _yOffset, _zOffset, _p4, _p5, _p6, _p7, _p8); + fn__setGameplayEntityHint(&success, _entity, _xOffset, _yOffset, _zOffset, (byte) (_p4 ? 1 : 0), _p5, _p6, _p7, _p8); if (!success) throw new Exception("Native execution failed"); } } @@ -43488,20 +43488,20 @@ public void SetGameplayEntityHint(int _entity, float _xOffset, float _yOffset, f public bool IsGameplayHintActive() { unsafe { - if (fn__isGameplayHintActive == null) fn__isGameplayHintActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayHintActive"); + if (fn__isGameplayHintActive == null) fn__isGameplayHintActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGameplayHintActive"); var success = false; var result = fn__isGameplayHintActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void StopGameplayHint(bool _p0) { unsafe { - if (fn__stopGameplayHint == null) fn__stopGameplayHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopGameplayHint"); + if (fn__stopGameplayHint == null) fn__stopGameplayHint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopGameplayHint"); var success = false; - fn__stopGameplayHint(&success, _p0); + fn__stopGameplayHint(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43509,9 +43509,9 @@ public void StopGameplayHint(bool _p0) public void _0xCCD078C2665D2973(bool _p0) { unsafe { - if (fn__0xCCD078C2665D2973 == null) fn__0xCCD078C2665D2973 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCCD078C2665D2973"); + if (fn__0xCCD078C2665D2973 == null) fn__0xCCD078C2665D2973 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCCD078C2665D2973"); var success = false; - fn__0xCCD078C2665D2973(&success, _p0); + fn__0xCCD078C2665D2973(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43519,9 +43519,9 @@ public void _0xCCD078C2665D2973(bool _p0) public void _0x247ACBC4ABBC9D1C(bool _p0) { unsafe { - if (fn__0x247ACBC4ABBC9D1C == null) fn__0x247ACBC4ABBC9D1C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x247ACBC4ABBC9D1C"); + if (fn__0x247ACBC4ABBC9D1C == null) fn__0x247ACBC4ABBC9D1C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x247ACBC4ABBC9D1C"); var success = false; - fn__0x247ACBC4ABBC9D1C(&success, _p0); + fn__0x247ACBC4ABBC9D1C(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43590,9 +43590,9 @@ public void SetGameplayHintAnimOffsety(float _yOffset) public void SetGameplayHintAnimCloseup(bool _toggle) { unsafe { - if (fn__setGameplayHintAnimCloseup == null) fn__setGameplayHintAnimCloseup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayHintAnimCloseup"); + if (fn__setGameplayHintAnimCloseup == null) fn__setGameplayHintAnimCloseup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGameplayHintAnimCloseup"); var success = false; - fn__setGameplayHintAnimCloseup(&success, _toggle); + fn__setGameplayHintAnimCloseup(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43600,9 +43600,9 @@ public void SetGameplayHintAnimCloseup(bool _toggle) public void SetCinematicButtonActive(bool _p0) { unsafe { - if (fn__setCinematicButtonActive == null) fn__setCinematicButtonActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCinematicButtonActive"); + if (fn__setCinematicButtonActive == null) fn__setCinematicButtonActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCinematicButtonActive"); var success = false; - fn__setCinematicButtonActive(&success, _p0); + fn__setCinematicButtonActive(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43610,11 +43610,11 @@ public void SetCinematicButtonActive(bool _p0) public bool IsCinematicCamRendering() { unsafe { - if (fn__isCinematicCamRendering == null) fn__isCinematicCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamRendering"); + if (fn__isCinematicCamRendering == null) fn__isCinematicCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamRendering"); var success = false; var result = fn__isCinematicCamRendering(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43633,11 +43633,11 @@ public void ShakeCinematicCam(string _p0, float _p1) public bool IsCinematicCamShaking() { unsafe { - if (fn__isCinematicCamShaking == null) fn__isCinematicCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamShaking"); + if (fn__isCinematicCamShaking == null) fn__isCinematicCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamShaking"); var success = false; var result = fn__isCinematicCamShaking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43654,9 +43654,9 @@ public void SetCinematicCamShakeAmplitude(float _p0) public void StopCinematicCamShaking(bool _p0) { unsafe { - if (fn__stopCinematicCamShaking == null) fn__stopCinematicCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCinematicCamShaking"); + if (fn__stopCinematicCamShaking == null) fn__stopCinematicCamShaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCinematicCamShaking"); var success = false; - fn__stopCinematicCamShaking(&success, _p0); + fn__stopCinematicCamShaking(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43704,22 +43704,22 @@ public void InvalidateIdleCam() public bool IsCinematicIdleCamRendering() { unsafe { - if (fn__isCinematicIdleCamRendering == null) fn__isCinematicIdleCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicIdleCamRendering"); + if (fn__isCinematicIdleCamRendering == null) fn__isCinematicIdleCamRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicIdleCamRendering"); var success = false; var result = fn__isCinematicIdleCamRendering(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsInVehicleCamDisabled() { unsafe { - if (fn__isInVehicleCamDisabled == null) fn__isInVehicleCamDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInVehicleCamDisabled"); + if (fn__isInVehicleCamDisabled == null) fn__isInVehicleCamDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInVehicleCamDisabled"); var success = false; var result = fn__isInVehicleCamDisabled(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43737,11 +43737,11 @@ public void CreateCinematicShot(int _p0, int _p1, int _p2, int _entity) public bool IsCinematicShotActive(int _p0) { unsafe { - if (fn__isCinematicShotActive == null) fn__isCinematicShotActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicShotActive"); + if (fn__isCinematicShotActive == null) fn__isCinematicShotActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicShotActive"); var success = false; var result = fn__isCinematicShotActive(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43758,9 +43758,9 @@ public void StopCinematicShot(uint _p0) public void ForceCinematicRenderingThisUpdate(bool _p0) { unsafe { - if (fn__forceCinematicRenderingThisUpdate == null) fn__forceCinematicRenderingThisUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceCinematicRenderingThisUpdate"); + if (fn__forceCinematicRenderingThisUpdate == null) fn__forceCinematicRenderingThisUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceCinematicRenderingThisUpdate"); var success = false; - fn__forceCinematicRenderingThisUpdate(&success, _p0); + fn__forceCinematicRenderingThisUpdate(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43778,9 +43778,9 @@ public void _0xDC9DA9E8789F5246() public void SetCinematicModeActive(bool _toggle) { unsafe { - if (fn__setCinematicModeActive == null) fn__setCinematicModeActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCinematicModeActive"); + if (fn__setCinematicModeActive == null) fn__setCinematicModeActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCinematicModeActive"); var success = false; - fn__setCinematicModeActive(&success, _toggle); + fn__setCinematicModeActive(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -43821,11 +43821,11 @@ public int _0xD7360051C885628B() public bool IsCinematicCamActive() { unsafe { - if (fn__isCinematicCamActive == null) fn__isCinematicCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamActive"); + if (fn__isCinematicCamActive == null) fn__isCinematicCamActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCinematicCamActive"); var success = false; var result = fn__isCinematicCamActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -43977,9 +43977,9 @@ public void SetClockTime(int _hour, int _minute, int _second) public void PauseClock(bool _toggle) { unsafe { - if (fn__pauseClock == null) fn__pauseClock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseClock"); + if (fn__pauseClock == null) fn__pauseClock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseClock"); var success = false; - fn__pauseClock(&success, _toggle); + fn__pauseClock(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44205,24 +44205,24 @@ public void RemoveCutscene() public bool HasCutsceneLoaded() { unsafe { - if (fn__hasCutsceneLoaded == null) fn__hasCutsceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneLoaded"); + if (fn__hasCutsceneLoaded == null) fn__hasCutsceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneLoaded"); var success = false; var result = fn__hasCutsceneLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasThisCutsceneLoaded(string _cutsceneName) { unsafe { - if (fn__hasThisCutsceneLoaded == null) fn__hasThisCutsceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasThisCutsceneLoaded"); + if (fn__hasThisCutsceneLoaded == null) fn__hasThisCutsceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasThisCutsceneLoaded"); var success = false; var ptr_cutsceneName = MemoryUtils.StringToHGlobalUtf8(_cutsceneName); var result = fn__hasThisCutsceneLoaded(&success, ptr_cutsceneName); Marshal.FreeHGlobal(ptr_cutsceneName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44239,22 +44239,22 @@ public void _0x8D9DF6ECA8768583(int _threadId) public bool CanRequestAssetsForCutsceneEntity() { unsafe { - if (fn__canRequestAssetsForCutsceneEntity == null) fn__canRequestAssetsForCutsceneEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRequestAssetsForCutsceneEntity"); + if (fn__canRequestAssetsForCutsceneEntity == null) fn__canRequestAssetsForCutsceneEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRequestAssetsForCutsceneEntity"); var success = false; var result = fn__canRequestAssetsForCutsceneEntity(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCutscenePlaybackFlagSet(int _flag) { unsafe { - if (fn__isCutscenePlaybackFlagSet == null) fn__isCutscenePlaybackFlagSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutscenePlaybackFlagSet"); + if (fn__isCutscenePlaybackFlagSet == null) fn__isCutscenePlaybackFlagSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutscenePlaybackFlagSet"); var success = false; var result = fn__isCutscenePlaybackFlagSet(&success, _flag); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44285,13 +44285,13 @@ public void RequestCutFile(string _cutsceneName) public bool HasCutFileLoaded(string _cutsceneName) { unsafe { - if (fn__hasCutFileLoaded == null) fn__hasCutFileLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutFileLoaded"); + if (fn__hasCutFileLoaded == null) fn__hasCutFileLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutFileLoaded"); var success = false; var ptr_cutsceneName = MemoryUtils.StringToHGlobalUtf8(_cutsceneName); var result = fn__hasCutFileLoaded(&success, ptr_cutsceneName); Marshal.FreeHGlobal(ptr_cutsceneName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44343,9 +44343,9 @@ public void StartCutsceneAtCoords(float _x, float _y, float _z, int _flags) public void StopCutscene(bool _p0) { unsafe { - if (fn__stopCutscene == null) fn__stopCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCutscene"); + if (fn__stopCutscene == null) fn__stopCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopCutscene"); var success = false; - fn__stopCutscene(&success, _p0); + fn__stopCutscene(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44416,44 +44416,44 @@ public int _0x971D7B15BCDBEF99() public bool WasCutsceneSkipped() { unsafe { - if (fn__wasCutsceneSkipped == null) fn__wasCutsceneSkipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasCutsceneSkipped"); + if (fn__wasCutsceneSkipped == null) fn__wasCutsceneSkipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasCutsceneSkipped"); var success = false; var result = fn__wasCutsceneSkipped(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasCutsceneFinished() { unsafe { - if (fn__hasCutsceneFinished == null) fn__hasCutsceneFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneFinished"); + if (fn__hasCutsceneFinished == null) fn__hasCutsceneFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneFinished"); var success = false; var result = fn__hasCutsceneFinished(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCutsceneActive() { unsafe { - if (fn__isCutsceneActive == null) fn__isCutsceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutsceneActive"); + if (fn__isCutsceneActive == null) fn__isCutsceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutsceneActive"); var success = false; var result = fn__isCutsceneActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCutscenePlaying() { unsafe { - if (fn__isCutscenePlaying == null) fn__isCutscenePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutscenePlaying"); + if (fn__isCutscenePlaying == null) fn__isCutscenePlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCutscenePlaying"); var success = false; var result = fn__isCutscenePlaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44495,13 +44495,13 @@ public int _0x583DF8E3D4AFBD98() public bool _0x4CEBC1ED31E8925E(string _cutsceneName) { unsafe { - if (fn__0x4CEBC1ED31E8925E == null) fn__0x4CEBC1ED31E8925E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4CEBC1ED31E8925E"); + if (fn__0x4CEBC1ED31E8925E == null) fn__0x4CEBC1ED31E8925E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4CEBC1ED31E8925E"); var success = false; var ptr_cutsceneName = MemoryUtils.StringToHGlobalUtf8(_cutsceneName); var result = fn__0x4CEBC1ED31E8925E(&success, ptr_cutsceneName); Marshal.FreeHGlobal(ptr_cutsceneName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44565,46 +44565,46 @@ public void SetCutsceneTriggerArea(float _p0, float _p1, float _p2, float _p3, f public bool CanSetEnterStateForRegisteredEntity(string _cutsceneEntName, uint _modelHash) { unsafe { - if (fn__canSetEnterStateForRegisteredEntity == null) fn__canSetEnterStateForRegisteredEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetEnterStateForRegisteredEntity"); + if (fn__canSetEnterStateForRegisteredEntity == null) fn__canSetEnterStateForRegisteredEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetEnterStateForRegisteredEntity"); var success = false; var ptr_cutsceneEntName = MemoryUtils.StringToHGlobalUtf8(_cutsceneEntName); var result = fn__canSetEnterStateForRegisteredEntity(&success, ptr_cutsceneEntName, _modelHash); Marshal.FreeHGlobal(ptr_cutsceneEntName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanSetExitStateForRegisteredEntity(string _cutsceneEntName, uint _modelHash) { unsafe { - if (fn__canSetExitStateForRegisteredEntity == null) fn__canSetExitStateForRegisteredEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetExitStateForRegisteredEntity"); + if (fn__canSetExitStateForRegisteredEntity == null) fn__canSetExitStateForRegisteredEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetExitStateForRegisteredEntity"); var success = false; var ptr_cutsceneEntName = MemoryUtils.StringToHGlobalUtf8(_cutsceneEntName); var result = fn__canSetExitStateForRegisteredEntity(&success, ptr_cutsceneEntName, _modelHash); Marshal.FreeHGlobal(ptr_cutsceneEntName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanSetExitStateForCamera(bool _p0) { unsafe { - if (fn__canSetExitStateForCamera == null) fn__canSetExitStateForCamera = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetExitStateForCamera"); + if (fn__canSetExitStateForCamera == null) fn__canSetExitStateForCamera = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canSetExitStateForCamera"); var success = false; - var result = fn__canSetExitStateForCamera(&success, _p0); + var result = fn__canSetExitStateForCamera(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xC61B86C9F61EB404(bool _toggle) { unsafe { - if (fn__0xC61B86C9F61EB404 == null) fn__0xC61B86C9F61EB404 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC61B86C9F61EB404"); + if (fn__0xC61B86C9F61EB404 == null) fn__0xC61B86C9F61EB404 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC61B86C9F61EB404"); var success = false; - fn__0xC61B86C9F61EB404(&success, _toggle); + fn__0xC61B86C9F61EB404(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44612,9 +44612,9 @@ public void _0xC61B86C9F61EB404(bool _toggle) public void SetCutsceneFadeValues(bool _p0, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__setCutsceneFadeValues == null) fn__setCutsceneFadeValues = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCutsceneFadeValues"); + if (fn__setCutsceneFadeValues == null) fn__setCutsceneFadeValues = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCutsceneFadeValues"); var success = false; - fn__setCutsceneFadeValues(&success, _p0, _p1, _p2, _p3); + fn__setCutsceneFadeValues(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44622,9 +44622,9 @@ public void SetCutsceneFadeValues(bool _p0, bool _p1, bool _p2, bool _p3) public void _0x20746F7B1032A3C7(bool _p0, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__0x20746F7B1032A3C7 == null) fn__0x20746F7B1032A3C7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x20746F7B1032A3C7"); + if (fn__0x20746F7B1032A3C7 == null) fn__0x20746F7B1032A3C7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x20746F7B1032A3C7"); var success = false; - fn__0x20746F7B1032A3C7(&success, _p0, _p1, _p2, _p3); + fn__0x20746F7B1032A3C7(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44632,9 +44632,9 @@ public void _0x20746F7B1032A3C7(bool _p0, bool _p1, bool _p2, bool _p3) public void _0x06EE9048FD080382(bool _p0) { unsafe { - if (fn__0x06EE9048FD080382 == null) fn__0x06EE9048FD080382 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x06EE9048FD080382"); + if (fn__0x06EE9048FD080382 == null) fn__0x06EE9048FD080382 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x06EE9048FD080382"); var success = false; - fn__0x06EE9048FD080382(&success, _p0); + fn__0x06EE9048FD080382(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44653,9 +44653,9 @@ public int _0xA0FE76168A189DDB() public void _0x2F137B508DE238F2(bool _p0) { unsafe { - if (fn__0x2F137B508DE238F2 == null) fn__0x2F137B508DE238F2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F137B508DE238F2"); + if (fn__0x2F137B508DE238F2 == null) fn__0x2F137B508DE238F2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F137B508DE238F2"); var success = false; - fn__0x2F137B508DE238F2(&success, _p0); + fn__0x2F137B508DE238F2(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44663,9 +44663,9 @@ public void _0x2F137B508DE238F2(bool _p0) public void _0xE36A98D8AB3D3C66(bool _p0) { unsafe { - if (fn__0xE36A98D8AB3D3C66 == null) fn__0xE36A98D8AB3D3C66 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE36A98D8AB3D3C66"); + if (fn__0xE36A98D8AB3D3C66 == null) fn__0xE36A98D8AB3D3C66 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE36A98D8AB3D3C66"); var success = false; - fn__0xE36A98D8AB3D3C66(&success, _p0); + fn__0xE36A98D8AB3D3C66(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44684,9 +44684,9 @@ public int _0x5EDEF0CF8C1DAB3C() public void SetCutsceneCanBeSkipped(bool _p0) { unsafe { - if (fn__setCutsceneCanBeSkipped == null) fn__setCutsceneCanBeSkipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCutsceneCanBeSkipped"); + if (fn__setCutsceneCanBeSkipped == null) fn__setCutsceneCanBeSkipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCutsceneCanBeSkipped"); var success = false; - fn__setCutsceneCanBeSkipped(&success, _p0); + fn__setCutsceneCanBeSkipped(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -44729,13 +44729,13 @@ public void SetCutscenePedComponentVariationFromPed(string _cutsceneEntName, int public bool DoesCutsceneEntityExist(string _cutsceneEntName, uint _modelHash) { unsafe { - if (fn__doesCutsceneEntityExist == null) fn__doesCutsceneEntityExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCutsceneEntityExist"); + if (fn__doesCutsceneEntityExist == null) fn__doesCutsceneEntityExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCutsceneEntityExist"); var success = false; var ptr_cutsceneEntName = MemoryUtils.StringToHGlobalUtf8(_cutsceneEntName); var result = fn__doesCutsceneEntityExist(&success, ptr_cutsceneEntName, _modelHash); Marshal.FreeHGlobal(ptr_cutsceneEntName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44754,11 +44754,11 @@ public void SetCutscenePedPropVariation(string _cutsceneEntName, int _p1, int _p public bool HasCutsceneCutThisFrame() { unsafe { - if (fn__hasCutsceneCutThisFrame == null) fn__hasCutsceneCutThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneCutThisFrame"); + if (fn__hasCutsceneCutThisFrame == null) fn__hasCutsceneCutThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCutsceneCutThisFrame"); var success = false; var result = fn__hasCutsceneCutThisFrame(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -44785,102 +44785,102 @@ public void DatafileClearWatchList() public bool DatafileIsValidRequestId(int _index) { unsafe { - if (fn__datafileIsValidRequestId == null) fn__datafileIsValidRequestId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileIsValidRequestId"); + if (fn__datafileIsValidRequestId == null) fn__datafileIsValidRequestId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileIsValidRequestId"); var success = false; var result = fn__datafileIsValidRequestId(&success, _index); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileHasLoadedFileData(int _p0) { unsafe { - if (fn__datafileHasLoadedFileData == null) fn__datafileHasLoadedFileData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileHasLoadedFileData"); + if (fn__datafileHasLoadedFileData == null) fn__datafileHasLoadedFileData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileHasLoadedFileData"); var success = false; var result = fn__datafileHasLoadedFileData(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileHasValidFileData(int _p0) { unsafe { - if (fn__datafileHasValidFileData == null) fn__datafileHasValidFileData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileHasValidFileData"); + if (fn__datafileHasValidFileData == null) fn__datafileHasValidFileData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileHasValidFileData"); var success = false; var result = fn__datafileHasValidFileData(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileSelectActiveFile(int _p0, int _p1) { unsafe { - if (fn__datafileSelectActiveFile == null) fn__datafileSelectActiveFile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectActiveFile"); + if (fn__datafileSelectActiveFile == null) fn__datafileSelectActiveFile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectActiveFile"); var success = false; var result = fn__datafileSelectActiveFile(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileDeleteRequestedFile(int _p0) { unsafe { - if (fn__datafileDeleteRequestedFile == null) fn__datafileDeleteRequestedFile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileDeleteRequestedFile"); + if (fn__datafileDeleteRequestedFile == null) fn__datafileDeleteRequestedFile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileDeleteRequestedFile"); var success = false; var result = fn__datafileDeleteRequestedFile(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcCreateContent(ref int _data, int _dataCount, string _contentName, string _description, string _tagsCsv, string _contentTypeName, bool _publish, int _p7) { unsafe { - if (fn__ugcCreateContent == null) fn__ugcCreateContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCreateContent"); + if (fn__ugcCreateContent == null) fn__ugcCreateContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCreateContent"); var success = false; var ref_data = _data; var ptr_contentName = MemoryUtils.StringToHGlobalUtf8(_contentName); var ptr_description = MemoryUtils.StringToHGlobalUtf8(_description); var ptr_tagsCsv = MemoryUtils.StringToHGlobalUtf8(_tagsCsv); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); - var result = fn__ugcCreateContent(&success, &ref_data, _dataCount, ptr_contentName, ptr_description, ptr_tagsCsv, ptr_contentTypeName, _publish, _p7); + var result = fn__ugcCreateContent(&success, &ref_data, _dataCount, ptr_contentName, ptr_description, ptr_tagsCsv, ptr_contentTypeName, (byte) (_publish ? 1 : 0), _p7); _data = ref_data; Marshal.FreeHGlobal(ptr_contentName); Marshal.FreeHGlobal(ptr_description); Marshal.FreeHGlobal(ptr_tagsCsv); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcCreateMission(string _contentName, string _description, string _tagsCsv, string _contentTypeName, bool _publish, int _p5) { unsafe { - if (fn__ugcCreateMission == null) fn__ugcCreateMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCreateMission"); + if (fn__ugcCreateMission == null) fn__ugcCreateMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCreateMission"); var success = false; var ptr_contentName = MemoryUtils.StringToHGlobalUtf8(_contentName); var ptr_description = MemoryUtils.StringToHGlobalUtf8(_description); var ptr_tagsCsv = MemoryUtils.StringToHGlobalUtf8(_tagsCsv); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); - var result = fn__ugcCreateMission(&success, ptr_contentName, ptr_description, ptr_tagsCsv, ptr_contentTypeName, _publish, _p5); + var result = fn__ugcCreateMission(&success, ptr_contentName, ptr_description, ptr_tagsCsv, ptr_contentTypeName, (byte) (_publish ? 1 : 0), _p5); Marshal.FreeHGlobal(ptr_contentName); Marshal.FreeHGlobal(ptr_description); Marshal.FreeHGlobal(ptr_tagsCsv); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcUpdateContent(string _contentId, ref int _data, int _dataCount, string _contentName, string _description, string _tagsCsv, string _contentTypeName, int _p7) { unsafe { - if (fn__ugcUpdateContent == null) fn__ugcUpdateContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcUpdateContent"); + if (fn__ugcUpdateContent == null) fn__ugcUpdateContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcUpdateContent"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ref_data = _data; @@ -44896,14 +44896,14 @@ public bool UgcUpdateContent(string _contentId, ref int _data, int _dataCount, s Marshal.FreeHGlobal(ptr_tagsCsv); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcUpdateMission(string _contentId, string _contentName, string _description, string _tagsCsv, string _contentTypeName, int _p5) { unsafe { - if (fn__ugcUpdateMission == null) fn__ugcUpdateMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcUpdateMission"); + if (fn__ugcUpdateMission == null) fn__ugcUpdateMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcUpdateMission"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_contentName = MemoryUtils.StringToHGlobalUtf8(_contentName); @@ -44917,14 +44917,14 @@ public bool UgcUpdateMission(string _contentId, string _contentName, string _des Marshal.FreeHGlobal(ptr_tagsCsv); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcSetPlayerData(string _contentId, float _rating, string _contentTypeName, int _p3) { unsafe { - if (fn__ugcSetPlayerData == null) fn__ugcSetPlayerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetPlayerData"); + if (fn__ugcSetPlayerData == null) fn__ugcSetPlayerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetPlayerData"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); @@ -44932,64 +44932,64 @@ public bool UgcSetPlayerData(string _contentId, float _rating, string _contentTy Marshal.FreeHGlobal(ptr_contentId); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileSelectUgcData(int _p0, int _p1) { unsafe { - if (fn__datafileSelectUgcData == null) fn__datafileSelectUgcData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcData"); + if (fn__datafileSelectUgcData == null) fn__datafileSelectUgcData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcData"); var success = false; var result = fn__datafileSelectUgcData(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileSelectUgcStats(int _p0, bool _p1, int _p2) { unsafe { - if (fn__datafileSelectUgcStats == null) fn__datafileSelectUgcStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcStats"); + if (fn__datafileSelectUgcStats == null) fn__datafileSelectUgcStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcStats"); var success = false; - var result = fn__datafileSelectUgcStats(&success, _p0, _p1, _p2); + var result = fn__datafileSelectUgcStats(&success, _p0, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileSelectUgcPlayerData(int _p0, int _p1) { unsafe { - if (fn__datafileSelectUgcPlayerData == null) fn__datafileSelectUgcPlayerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcPlayerData"); + if (fn__datafileSelectUgcPlayerData == null) fn__datafileSelectUgcPlayerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectUgcPlayerData"); var success = false; var result = fn__datafileSelectUgcPlayerData(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileSelectCreatorStats(int _p0, int _p1) { unsafe { - if (fn__datafileSelectCreatorStats == null) fn__datafileSelectCreatorStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectCreatorStats"); + if (fn__datafileSelectCreatorStats == null) fn__datafileSelectCreatorStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileSelectCreatorStats"); var success = false; var result = fn__datafileSelectCreatorStats(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileLoadOfflineUgc(string _filename, int _p1) { unsafe { - if (fn__datafileLoadOfflineUgc == null) fn__datafileLoadOfflineUgc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileLoadOfflineUgc"); + if (fn__datafileLoadOfflineUgc == null) fn__datafileLoadOfflineUgc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileLoadOfflineUgc"); var success = false; var ptr_filename = MemoryUtils.StringToHGlobalUtf8(_filename); var result = fn__datafileLoadOfflineUgc(&success, ptr_filename, _p1); Marshal.FreeHGlobal(ptr_filename); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45049,37 +45049,37 @@ public string DatafileGetFileDict(int _p0) public bool DatafileStartSaveToCloud(string _filename, int _p1) { unsafe { - if (fn__datafileStartSaveToCloud == null) fn__datafileStartSaveToCloud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileStartSaveToCloud"); + if (fn__datafileStartSaveToCloud == null) fn__datafileStartSaveToCloud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileStartSaveToCloud"); var success = false; var ptr_filename = MemoryUtils.StringToHGlobalUtf8(_filename); var result = fn__datafileStartSaveToCloud(&success, ptr_filename, _p1); Marshal.FreeHGlobal(ptr_filename); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileUpdateSaveToCloud(ref bool _p0) { unsafe { - if (fn__datafileUpdateSaveToCloud == null) fn__datafileUpdateSaveToCloud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileUpdateSaveToCloud"); + if (fn__datafileUpdateSaveToCloud == null) fn__datafileUpdateSaveToCloud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileUpdateSaveToCloud"); var success = false; - var ref_p0 = _p0; + var ref_p0 = (byte) (_p0 ? 1 : 0); var result = fn__datafileUpdateSaveToCloud(&success, &ref_p0); - _p0 = ref_p0; + _p0 = ref_p0 == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DatafileIsSavePending() { unsafe { - if (fn__datafileIsSavePending == null) fn__datafileIsSavePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileIsSavePending"); + if (fn__datafileIsSavePending == null) fn__datafileIsSavePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datafileIsSavePending"); var success = false; var result = fn__datafileIsSavePending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45118,11 +45118,11 @@ public int _0xDBF860CF1DB8E599(int _p0) public void DatadictSetBool(ref int _objectData, string _key, bool _value) { unsafe { - if (fn__datadictSetBool == null) fn__datadictSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datadictSetBool"); + if (fn__datadictSetBool == null) fn__datadictSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datadictSetBool"); var success = false; var ref_objectData = _objectData; var ptr_key = MemoryUtils.StringToHGlobalUtf8(_key); - fn__datadictSetBool(&success, &ref_objectData, ptr_key, _value); + fn__datadictSetBool(&success, &ref_objectData, ptr_key, (byte) (_value ? 1 : 0)); _objectData = ref_objectData; Marshal.FreeHGlobal(ptr_key); if (!success) throw new Exception("Native execution failed"); @@ -45220,7 +45220,7 @@ public int DatadictCreateArray(ref int _objectData, string _key) public bool DatadictGetBool(ref int _objectData, string _key) { unsafe { - if (fn__datadictGetBool == null) fn__datadictGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datadictGetBool"); + if (fn__datadictGetBool == null) fn__datadictGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_datadictGetBool"); var success = false; var ref_objectData = _objectData; var ptr_key = MemoryUtils.StringToHGlobalUtf8(_key); @@ -45228,7 +45228,7 @@ public bool DatadictGetBool(ref int _objectData, string _key) _objectData = ref_objectData; Marshal.FreeHGlobal(ptr_key); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45342,10 +45342,10 @@ public int DatadictGetType(ref int _objectData, string _key) public void DataarrayAddBool(ref int _arrayData, bool _value) { unsafe { - if (fn__dataarrayAddBool == null) fn__dataarrayAddBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dataarrayAddBool"); + if (fn__dataarrayAddBool == null) fn__dataarrayAddBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dataarrayAddBool"); var success = false; var ref_arrayData = _arrayData; - fn__dataarrayAddBool(&success, &ref_arrayData, _value); + fn__dataarrayAddBool(&success, &ref_arrayData, (byte) (_value ? 1 : 0)); _arrayData = ref_arrayData; if (!success) throw new Exception("Native execution failed"); } @@ -45417,13 +45417,13 @@ public int DataarrayAddDict(ref int _arrayData) public bool DataarrayGetBool(ref int _arrayData, int _arrayIndex) { unsafe { - if (fn__dataarrayGetBool == null) fn__dataarrayGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dataarrayGetBool"); + if (fn__dataarrayGetBool == null) fn__dataarrayGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_dataarrayGetBool"); var success = false; var ref_arrayData = _arrayData; var result = fn__dataarrayGetBool(&success, &ref_arrayData, _arrayIndex); _arrayData = ref_arrayData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45524,13 +45524,13 @@ public int DataarrayGetType(ref int _arrayData, int _arrayIndex) public bool DecorSetTime(int _entity, string _propertyName, int _timestamp) { unsafe { - if (fn__decorSetTime == null) fn__decorSetTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetTime"); + if (fn__decorSetTime == null) fn__decorSetTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetTime"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorSetTime(&success, _entity, ptr_propertyName, _timestamp); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45538,13 +45538,13 @@ public bool DecorSetTime(int _entity, string _propertyName, int _timestamp) public bool DecorSetBool(int _entity, string _propertyName, bool _value) { unsafe { - if (fn__decorSetBool == null) fn__decorSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetBool"); + if (fn__decorSetBool == null) fn__decorSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetBool"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); - var result = fn__decorSetBool(&success, _entity, ptr_propertyName, _value); + var result = fn__decorSetBool(&success, _entity, ptr_propertyName, (byte) (_value ? 1 : 0)); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45552,13 +45552,13 @@ public bool DecorSetBool(int _entity, string _propertyName, bool _value) public bool DecorSetFloat(int _entity, string _propertyName, float _value) { unsafe { - if (fn__decorSetFloat == null) fn__decorSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetFloat"); + if (fn__decorSetFloat == null) fn__decorSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetFloat"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorSetFloat(&success, _entity, ptr_propertyName, _value); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45566,13 +45566,13 @@ public bool DecorSetFloat(int _entity, string _propertyName, float _value) public bool DecorSetInt(int _entity, string _propertyName, int _value) { unsafe { - if (fn__decorSetInt == null) fn__decorSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetInt"); + if (fn__decorSetInt == null) fn__decorSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorSetInt"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorSetInt(&success, _entity, ptr_propertyName, _value); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45580,13 +45580,13 @@ public bool DecorSetInt(int _entity, string _propertyName, int _value) public bool DecorGetBool(int _entity, string _propertyName) { unsafe { - if (fn__decorGetBool == null) fn__decorGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorGetBool"); + if (fn__decorGetBool == null) fn__decorGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorGetBool"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorGetBool(&success, _entity, ptr_propertyName); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45622,13 +45622,13 @@ public int DecorGetInt(int _entity, string _propertyName) public bool DecorExistOn(int _entity, string _propertyName) { unsafe { - if (fn__decorExistOn == null) fn__decorExistOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorExistOn"); + if (fn__decorExistOn == null) fn__decorExistOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorExistOn"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorExistOn(&success, _entity, ptr_propertyName); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45636,13 +45636,13 @@ public bool DecorExistOn(int _entity, string _propertyName) public bool DecorRemove(int _entity, string _propertyName) { unsafe { - if (fn__decorRemove == null) fn__decorRemove = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorRemove"); + if (fn__decorRemove == null) fn__decorRemove = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorRemove"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorRemove(&success, _entity, ptr_propertyName); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45661,13 +45661,13 @@ public void DecorRegister(string _propertyName, int _type) public bool DecorIsRegisteredAsType(string _propertyName, int _type) { unsafe { - if (fn__decorIsRegisteredAsType == null) fn__decorIsRegisteredAsType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorIsRegisteredAsType"); + if (fn__decorIsRegisteredAsType == null) fn__decorIsRegisteredAsType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_decorIsRegisteredAsType"); var success = false; var ptr_propertyName = MemoryUtils.StringToHGlobalUtf8(_propertyName); var result = fn__decorIsRegisteredAsType(&success, ptr_propertyName, _type); Marshal.FreeHGlobal(ptr_propertyName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45684,101 +45684,101 @@ public void DecorRegisterLock() public bool _0x241FCA5B1AA14F75() { unsafe { - if (fn__0x241FCA5B1AA14F75 == null) fn__0x241FCA5B1AA14F75 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x241FCA5B1AA14F75"); + if (fn__0x241FCA5B1AA14F75 == null) fn__0x241FCA5B1AA14F75 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x241FCA5B1AA14F75"); var success = false; var result = fn__0x241FCA5B1AA14F75(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDlcPresent(uint _dlcHash) { unsafe { - if (fn__isDlcPresent == null) fn__isDlcPresent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDlcPresent"); + if (fn__isDlcPresent == null) fn__isDlcPresent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDlcPresent"); var success = false; var result = fn__isDlcPresent(&success, _dlcHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xF2E07819EF1A5289() { unsafe { - if (fn__0xF2E07819EF1A5289 == null) fn__0xF2E07819EF1A5289 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2E07819EF1A5289"); + if (fn__0xF2E07819EF1A5289 == null) fn__0xF2E07819EF1A5289 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2E07819EF1A5289"); var success = false; var result = fn__0xF2E07819EF1A5289(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x9489659372A81585() { unsafe { - if (fn__0x9489659372A81585 == null) fn__0x9489659372A81585 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9489659372A81585"); + if (fn__0x9489659372A81585 == null) fn__0x9489659372A81585 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9489659372A81585"); var success = false; var result = fn__0x9489659372A81585(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xA213B11DFF526300() { unsafe { - if (fn__0xA213B11DFF526300 == null) fn__0xA213B11DFF526300 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA213B11DFF526300"); + if (fn__0xA213B11DFF526300 == null) fn__0xA213B11DFF526300 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA213B11DFF526300"); var success = false; var result = fn__0xA213B11DFF526300(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetExtraContentPackHasBeenInstalled() { unsafe { - if (fn__getExtraContentPackHasBeenInstalled == null) fn__getExtraContentPackHasBeenInstalled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getExtraContentPackHasBeenInstalled"); + if (fn__getExtraContentPackHasBeenInstalled == null) fn__getExtraContentPackHasBeenInstalled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getExtraContentPackHasBeenInstalled"); var success = false; var result = fn__getExtraContentPackHasBeenInstalled(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetIsLoadingScreenActive() { unsafe { - if (fn__getIsLoadingScreenActive == null) fn__getIsLoadingScreenActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsLoadingScreenActive"); + if (fn__getIsLoadingScreenActive == null) fn__getIsLoadingScreenActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsLoadingScreenActive"); var success = false; var result = fn__getIsLoadingScreenActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC4637A6D03C24CC3() { unsafe { - if (fn__0xC4637A6D03C24CC3 == null) fn__0xC4637A6D03C24CC3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC4637A6D03C24CC3"); + if (fn__0xC4637A6D03C24CC3 == null) fn__0xC4637A6D03C24CC3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC4637A6D03C24CC3"); var success = false; var result = fn__0xC4637A6D03C24CC3(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasCloudRequestsFinished(ref bool _p0, int _unused) { unsafe { - if (fn__hasCloudRequestsFinished == null) fn__hasCloudRequestsFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCloudRequestsFinished"); + if (fn__hasCloudRequestsFinished == null) fn__hasCloudRequestsFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCloudRequestsFinished"); var success = false; - var ref_p0 = _p0; + var ref_p0 = (byte) (_p0 ? 1 : 0); var result = fn__hasCloudRequestsFinished(&success, &ref_p0, _unused); - _p0 = ref_p0; + _p0 = ref_p0 == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45806,11 +45806,11 @@ public void OnEnterMp() public bool DoesEntityExist(int _entity) { unsafe { - if (fn__doesEntityExist == null) fn__doesEntityExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityExist"); + if (fn__doesEntityExist == null) fn__doesEntityExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityExist"); var success = false; var result = fn__doesEntityExist(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45818,11 +45818,11 @@ public bool DoesEntityExist(int _entity) public bool DoesEntityBelongToThisScript(int _entity, bool _p1) { unsafe { - if (fn__doesEntityBelongToThisScript == null) fn__doesEntityBelongToThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityBelongToThisScript"); + if (fn__doesEntityBelongToThisScript == null) fn__doesEntityBelongToThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityBelongToThisScript"); var success = false; - var result = fn__doesEntityBelongToThisScript(&success, _entity, _p1); + var result = fn__doesEntityBelongToThisScript(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45830,11 +45830,11 @@ public bool DoesEntityBelongToThisScript(int _entity, bool _p1) public bool DoesEntityHaveDrawable(int _entity) { unsafe { - if (fn__doesEntityHaveDrawable == null) fn__doesEntityHaveDrawable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityHaveDrawable"); + if (fn__doesEntityHaveDrawable == null) fn__doesEntityHaveDrawable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityHaveDrawable"); var success = false; var result = fn__doesEntityHaveDrawable(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45842,11 +45842,11 @@ public bool DoesEntityHaveDrawable(int _entity) public bool DoesEntityHavePhysics(int _entity) { unsafe { - if (fn__doesEntityHavePhysics == null) fn__doesEntityHavePhysics = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityHavePhysics"); + if (fn__doesEntityHavePhysics == null) fn__doesEntityHavePhysics = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesEntityHavePhysics"); var success = false; var result = fn__doesEntityHavePhysics(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45854,7 +45854,7 @@ public bool DoesEntityHavePhysics(int _entity) public bool HasEntityAnimFinished(int _entity, string _animDict, string _animName, int _p3) { unsafe { - if (fn__hasEntityAnimFinished == null) fn__hasEntityAnimFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityAnimFinished"); + if (fn__hasEntityAnimFinished == null) fn__hasEntityAnimFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityAnimFinished"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); @@ -45862,7 +45862,7 @@ public bool HasEntityAnimFinished(int _entity, string _animDict, string _animNam Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45870,11 +45870,11 @@ public bool HasEntityAnimFinished(int _entity, string _animDict, string _animNam public bool HasEntityBeenDamagedByAnyObject(int _entity) { unsafe { - if (fn__hasEntityBeenDamagedByAnyObject == null) fn__hasEntityBeenDamagedByAnyObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyObject"); + if (fn__hasEntityBeenDamagedByAnyObject == null) fn__hasEntityBeenDamagedByAnyObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyObject"); var success = false; var result = fn__hasEntityBeenDamagedByAnyObject(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45882,11 +45882,11 @@ public bool HasEntityBeenDamagedByAnyObject(int _entity) public bool HasEntityBeenDamagedByAnyPed(int _entity) { unsafe { - if (fn__hasEntityBeenDamagedByAnyPed == null) fn__hasEntityBeenDamagedByAnyPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyPed"); + if (fn__hasEntityBeenDamagedByAnyPed == null) fn__hasEntityBeenDamagedByAnyPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyPed"); var success = false; var result = fn__hasEntityBeenDamagedByAnyPed(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45894,11 +45894,11 @@ public bool HasEntityBeenDamagedByAnyPed(int _entity) public bool HasEntityBeenDamagedByAnyVehicle(int _entity) { unsafe { - if (fn__hasEntityBeenDamagedByAnyVehicle == null) fn__hasEntityBeenDamagedByAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyVehicle"); + if (fn__hasEntityBeenDamagedByAnyVehicle == null) fn__hasEntityBeenDamagedByAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByAnyVehicle"); var success = false; var result = fn__hasEntityBeenDamagedByAnyVehicle(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45908,11 +45908,11 @@ public bool HasEntityBeenDamagedByAnyVehicle(int _entity) public bool HasEntityBeenDamagedByEntity(int _entity1, int _entity2, bool _p2) { unsafe { - if (fn__hasEntityBeenDamagedByEntity == null) fn__hasEntityBeenDamagedByEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByEntity"); + if (fn__hasEntityBeenDamagedByEntity == null) fn__hasEntityBeenDamagedByEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByEntity"); var success = false; - var result = fn__hasEntityBeenDamagedByEntity(&success, _entity1, _entity2, _p2); + var result = fn__hasEntityBeenDamagedByEntity(&success, _entity1, _entity2, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45922,11 +45922,11 @@ public bool HasEntityBeenDamagedByEntity(int _entity1, int _entity2, bool _p2) public bool HasEntityClearLosToEntity(int _entity1, int _entity2, int _traceType) { unsafe { - if (fn__hasEntityClearLosToEntity == null) fn__hasEntityClearLosToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityClearLosToEntity"); + if (fn__hasEntityClearLosToEntity == null) fn__hasEntityClearLosToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityClearLosToEntity"); var success = false; var result = fn__hasEntityClearLosToEntity(&success, _entity1, _entity2, _traceType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45950,11 +45950,11 @@ public int HasEntityClearLosToEntity2(int _entity1, int _entity2, int _traceType public bool HasEntityClearLosToEntityInFront(int _entity1, int _entity2) { unsafe { - if (fn__hasEntityClearLosToEntityInFront == null) fn__hasEntityClearLosToEntityInFront = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityClearLosToEntityInFront"); + if (fn__hasEntityClearLosToEntityInFront == null) fn__hasEntityClearLosToEntityInFront = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityClearLosToEntityInFront"); var success = false; var result = fn__hasEntityClearLosToEntityInFront(&success, _entity1, _entity2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -45962,11 +45962,11 @@ public bool HasEntityClearLosToEntityInFront(int _entity1, int _entity2) public bool HasEntityCollidedWithAnything(int _entity) { unsafe { - if (fn__hasEntityCollidedWithAnything == null) fn__hasEntityCollidedWithAnything = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityCollidedWithAnything"); + if (fn__hasEntityCollidedWithAnything == null) fn__hasEntityCollidedWithAnything = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityCollidedWithAnything"); var success = false; var result = fn__hasEntityCollidedWithAnything(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46068,9 +46068,9 @@ public int GetEntityAttachedTo(int _entity) public Vector3 GetEntityCoords(int _entity, bool _alive) { unsafe { - if (fn__getEntityCoords == null) fn__getEntityCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCoords"); + if (fn__getEntityCoords == null) fn__getEntityCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCoords"); var success = false; - var result = fn__getEntityCoords(&success, _entity, _alive); + var result = fn__getEntityCoords(&success, _entity, (byte) (_alive ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -46175,9 +46175,9 @@ public void SetEntityMaxHealth(int _entity, int _value) public float GetEntityHeight(int _entity, float _X, float _Y, float _Z, bool _atTop, bool _inWorldCoords) { unsafe { - if (fn__getEntityHeight == null) fn__getEntityHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityHeight"); + if (fn__getEntityHeight == null) fn__getEntityHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityHeight"); var success = false; - var result = fn__getEntityHeight(&success, _entity, _X, _Y, _Z, _atTop, _inWorldCoords); + var result = fn__getEntityHeight(&success, _entity, _X, _Y, _Z, (byte) (_atTop ? 1 : 0), (byte) (_inWorldCoords ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -46349,9 +46349,9 @@ public float GetEntitySpeed(int _entity) public Vector3 GetEntitySpeedVector(int _entity, bool _relative) { unsafe { - if (fn__getEntitySpeedVector == null) fn__getEntitySpeedVector = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntitySpeedVector"); + if (fn__getEntitySpeedVector == null) fn__getEntitySpeedVector = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntitySpeedVector"); var success = false; - var result = fn__getEntitySpeedVector(&success, _entity, _relative); + var result = fn__getEntitySpeedVector(&success, _entity, (byte) (_relative ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -46480,11 +46480,11 @@ public int GetEntityPopulationType(int _entity) public bool IsAnEntity(int _handle) { unsafe { - if (fn__isAnEntity == null) fn__isAnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnEntity"); + if (fn__isAnEntity == null) fn__isAnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnEntity"); var success = false; var result = fn__isAnEntity(&success, _handle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46492,11 +46492,11 @@ public bool IsAnEntity(int _handle) public bool IsEntityAPed(int _entity) { unsafe { - if (fn__isEntityAPed == null) fn__isEntityAPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAPed"); + if (fn__isEntityAPed == null) fn__isEntityAPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAPed"); var success = false; var result = fn__isEntityAPed(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46504,11 +46504,11 @@ public bool IsEntityAPed(int _entity) public bool IsEntityAMissionEntity(int _entity) { unsafe { - if (fn__isEntityAMissionEntity == null) fn__isEntityAMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAMissionEntity"); + if (fn__isEntityAMissionEntity == null) fn__isEntityAMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAMissionEntity"); var success = false; var result = fn__isEntityAMissionEntity(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46516,11 +46516,11 @@ public bool IsEntityAMissionEntity(int _entity) public bool IsEntityAVehicle(int _entity) { unsafe { - if (fn__isEntityAVehicle == null) fn__isEntityAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAVehicle"); + if (fn__isEntityAVehicle == null) fn__isEntityAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAVehicle"); var success = false; var result = fn__isEntityAVehicle(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46528,11 +46528,11 @@ public bool IsEntityAVehicle(int _entity) public bool IsEntityAnObject(int _entity) { unsafe { - if (fn__isEntityAnObject == null) fn__isEntityAnObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAnObject"); + if (fn__isEntityAnObject == null) fn__isEntityAnObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAnObject"); var success = false; var result = fn__isEntityAnObject(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46540,11 +46540,11 @@ public bool IsEntityAnObject(int _entity) public bool IsEntityAtCoord(int _entity, float _xPos, float _yPos, float _zPos, float _xSize, float _ySize, float _zSize, bool _p7, bool _p8, int _p9) { unsafe { - if (fn__isEntityAtCoord == null) fn__isEntityAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAtCoord"); + if (fn__isEntityAtCoord == null) fn__isEntityAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAtCoord"); var success = false; - var result = fn__isEntityAtCoord(&success, _entity, _xPos, _yPos, _zPos, _xSize, _ySize, _zSize, _p7, _p8, _p9); + var result = fn__isEntityAtCoord(&success, _entity, _xPos, _yPos, _zPos, _xSize, _ySize, _zSize, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _p9); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46554,11 +46554,11 @@ public bool IsEntityAtCoord(int _entity, float _xPos, float _yPos, float _zPos, public bool IsEntityAtEntity(int _entity1, int _entity2, float _xSize, float _ySize, float _zSize, bool _p5, bool _p6, int _p7) { unsafe { - if (fn__isEntityAtEntity == null) fn__isEntityAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAtEntity"); + if (fn__isEntityAtEntity == null) fn__isEntityAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAtEntity"); var success = false; - var result = fn__isEntityAtEntity(&success, _entity1, _entity2, _xSize, _ySize, _zSize, _p5, _p6, _p7); + var result = fn__isEntityAtEntity(&success, _entity1, _entity2, _xSize, _ySize, _zSize, (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), _p7); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46566,11 +46566,11 @@ public bool IsEntityAtEntity(int _entity1, int _entity2, float _xSize, float _yS public bool IsEntityAttached(int _entity) { unsafe { - if (fn__isEntityAttached == null) fn__isEntityAttached = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttached"); + if (fn__isEntityAttached == null) fn__isEntityAttached = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttached"); var success = false; var result = fn__isEntityAttached(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46578,11 +46578,11 @@ public bool IsEntityAttached(int _entity) public bool IsEntityAttachedToAnyObject(int _entity) { unsafe { - if (fn__isEntityAttachedToAnyObject == null) fn__isEntityAttachedToAnyObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyObject"); + if (fn__isEntityAttachedToAnyObject == null) fn__isEntityAttachedToAnyObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyObject"); var success = false; var result = fn__isEntityAttachedToAnyObject(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46590,11 +46590,11 @@ public bool IsEntityAttachedToAnyObject(int _entity) public bool IsEntityAttachedToAnyPed(int _entity) { unsafe { - if (fn__isEntityAttachedToAnyPed == null) fn__isEntityAttachedToAnyPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyPed"); + if (fn__isEntityAttachedToAnyPed == null) fn__isEntityAttachedToAnyPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyPed"); var success = false; var result = fn__isEntityAttachedToAnyPed(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46602,11 +46602,11 @@ public bool IsEntityAttachedToAnyPed(int _entity) public bool IsEntityAttachedToAnyVehicle(int _entity) { unsafe { - if (fn__isEntityAttachedToAnyVehicle == null) fn__isEntityAttachedToAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyVehicle"); + if (fn__isEntityAttachedToAnyVehicle == null) fn__isEntityAttachedToAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToAnyVehicle"); var success = false; var result = fn__isEntityAttachedToAnyVehicle(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46616,11 +46616,11 @@ public bool IsEntityAttachedToAnyVehicle(int _entity) public bool IsEntityAttachedToEntity(int _from, int _to) { unsafe { - if (fn__isEntityAttachedToEntity == null) fn__isEntityAttachedToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToEntity"); + if (fn__isEntityAttachedToEntity == null) fn__isEntityAttachedToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToEntity"); var success = false; var result = fn__isEntityAttachedToEntity(&success, _from, _to); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46628,11 +46628,11 @@ public bool IsEntityAttachedToEntity(int _from, int _to) public bool IsEntityDead(int _entity, bool _p1) { unsafe { - if (fn__isEntityDead == null) fn__isEntityDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityDead"); + if (fn__isEntityDead == null) fn__isEntityDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityDead"); var success = false; - var result = fn__isEntityDead(&success, _entity, _p1); + var result = fn__isEntityDead(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46640,11 +46640,11 @@ public bool IsEntityDead(int _entity, bool _p1) public bool IsEntityInAir(int _entity) { unsafe { - if (fn__isEntityInAir == null) fn__isEntityInAir = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInAir"); + if (fn__isEntityInAir == null) fn__isEntityInAir = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInAir"); var success = false; var result = fn__isEntityInAir(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46652,11 +46652,11 @@ public bool IsEntityInAir(int _entity) public bool IsEntityInAngledArea(int _entity, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, bool _debug, bool _includeZ, int _p10) { unsafe { - if (fn__isEntityInAngledArea == null) fn__isEntityInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInAngledArea"); + if (fn__isEntityInAngledArea == null) fn__isEntityInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInAngledArea"); var success = false; - var result = fn__isEntityInAngledArea(&success, _entity, _x1, _y1, _z1, _x2, _y2, _z2, _width, _debug, _includeZ, _p10); + var result = fn__isEntityInAngledArea(&success, _entity, _x1, _y1, _z1, _x2, _y2, _z2, _width, (byte) (_debug ? 1 : 0), (byte) (_includeZ ? 1 : 0), _p10); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46664,11 +46664,11 @@ public bool IsEntityInAngledArea(int _entity, float _x1, float _y1, float _z1, f public bool IsEntityInArea(int _entity, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _p7, bool _p8, int _p9) { unsafe { - if (fn__isEntityInArea == null) fn__isEntityInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInArea"); + if (fn__isEntityInArea == null) fn__isEntityInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInArea"); var success = false; - var result = fn__isEntityInArea(&success, _entity, _x1, _y1, _z1, _x2, _y2, _z2, _p7, _p8, _p9); + var result = fn__isEntityInArea(&success, _entity, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _p9); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46676,13 +46676,13 @@ public bool IsEntityInArea(int _entity, float _x1, float _y1, float _z1, float _ public bool IsEntityInZone(int _entity, string _zone) { unsafe { - if (fn__isEntityInZone == null) fn__isEntityInZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInZone"); + if (fn__isEntityInZone == null) fn__isEntityInZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInZone"); var success = false; var ptr_zone = MemoryUtils.StringToHGlobalUtf8(_zone); var result = fn__isEntityInZone(&success, _entity, ptr_zone); Marshal.FreeHGlobal(ptr_zone); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46690,11 +46690,11 @@ public bool IsEntityInZone(int _entity, string _zone) public bool IsEntityInWater(int _entity) { unsafe { - if (fn__isEntityInWater == null) fn__isEntityInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInWater"); + if (fn__isEntityInWater == null) fn__isEntityInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityInWater"); var success = false; var result = fn__isEntityInWater(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46714,9 +46714,9 @@ public float GetEntitySubmergedLevel(int _entity) public void _0x694E00132F2823ED(int _entity, bool _toggle) { unsafe { - if (fn__0x694E00132F2823ED == null) fn__0x694E00132F2823ED = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x694E00132F2823ED"); + if (fn__0x694E00132F2823ED == null) fn__0x694E00132F2823ED = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x694E00132F2823ED"); var success = false; - fn__0x694E00132F2823ED(&success, _entity, _toggle); + fn__0x694E00132F2823ED(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46725,11 +46725,11 @@ public void _0x694E00132F2823ED(int _entity, bool _toggle) public bool IsEntityOnScreen(int _entity) { unsafe { - if (fn__isEntityOnScreen == null) fn__isEntityOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOnScreen"); + if (fn__isEntityOnScreen == null) fn__isEntityOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOnScreen"); var success = false; var result = fn__isEntityOnScreen(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46737,7 +46737,7 @@ public bool IsEntityOnScreen(int _entity) public bool IsEntityPlayingAnim(int _entity, string _animDict, string _animName, int _taskFlag) { unsafe { - if (fn__isEntityPlayingAnim == null) fn__isEntityPlayingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityPlayingAnim"); + if (fn__isEntityPlayingAnim == null) fn__isEntityPlayingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityPlayingAnim"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); @@ -46745,7 +46745,7 @@ public bool IsEntityPlayingAnim(int _entity, string _animDict, string _animName, Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46753,11 +46753,11 @@ public bool IsEntityPlayingAnim(int _entity, string _animDict, string _animName, public bool IsEntityStatic(int _entity) { unsafe { - if (fn__isEntityStatic == null) fn__isEntityStatic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityStatic"); + if (fn__isEntityStatic == null) fn__isEntityStatic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityStatic"); var success = false; var result = fn__isEntityStatic(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46767,11 +46767,11 @@ public bool IsEntityStatic(int _entity) public bool IsEntityTouchingEntity(int _entity, int _targetEntity) { unsafe { - if (fn__isEntityTouchingEntity == null) fn__isEntityTouchingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityTouchingEntity"); + if (fn__isEntityTouchingEntity == null) fn__isEntityTouchingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityTouchingEntity"); var success = false; var result = fn__isEntityTouchingEntity(&success, _entity, _targetEntity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46779,11 +46779,11 @@ public bool IsEntityTouchingEntity(int _entity, int _targetEntity) public bool IsEntityTouchingModel(int _entity, uint _modelHash) { unsafe { - if (fn__isEntityTouchingModel == null) fn__isEntityTouchingModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityTouchingModel"); + if (fn__isEntityTouchingModel == null) fn__isEntityTouchingModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityTouchingModel"); var success = false; var result = fn__isEntityTouchingModel(&success, _entity, _modelHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46791,11 +46791,11 @@ public bool IsEntityTouchingModel(int _entity, uint _modelHash) public bool IsEntityUpright(int _entity, float _angle) { unsafe { - if (fn__isEntityUpright == null) fn__isEntityUpright = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityUpright"); + if (fn__isEntityUpright == null) fn__isEntityUpright = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityUpright"); var success = false; var result = fn__isEntityUpright(&success, _entity, _angle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46803,11 +46803,11 @@ public bool IsEntityUpright(int _entity, float _angle) public bool IsEntityUpsidedown(int _entity) { unsafe { - if (fn__isEntityUpsidedown == null) fn__isEntityUpsidedown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityUpsidedown"); + if (fn__isEntityUpsidedown == null) fn__isEntityUpsidedown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityUpsidedown"); var success = false; var result = fn__isEntityUpsidedown(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46815,11 +46815,11 @@ public bool IsEntityUpsidedown(int _entity) public bool IsEntityVisible(int _entity) { unsafe { - if (fn__isEntityVisible == null) fn__isEntityVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityVisible"); + if (fn__isEntityVisible == null) fn__isEntityVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityVisible"); var success = false; var result = fn__isEntityVisible(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46827,11 +46827,11 @@ public bool IsEntityVisible(int _entity) public bool IsEntityVisibleToScript(int _entity) { unsafe { - if (fn__isEntityVisibleToScript == null) fn__isEntityVisibleToScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityVisibleToScript"); + if (fn__isEntityVisibleToScript == null) fn__isEntityVisibleToScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityVisibleToScript"); var success = false; var result = fn__isEntityVisibleToScript(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46839,22 +46839,22 @@ public bool IsEntityVisibleToScript(int _entity) public bool IsEntityOccluded(int _entity) { unsafe { - if (fn__isEntityOccluded == null) fn__isEntityOccluded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOccluded"); + if (fn__isEntityOccluded == null) fn__isEntityOccluded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOccluded"); var success = false; var result = fn__isEntityOccluded(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool WouldEntityBeOccluded(uint _entityModelHash, float _x, float _y, float _z, bool _p4) { unsafe { - if (fn__wouldEntityBeOccluded == null) fn__wouldEntityBeOccluded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wouldEntityBeOccluded"); + if (fn__wouldEntityBeOccluded == null) fn__wouldEntityBeOccluded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wouldEntityBeOccluded"); var success = false; - var result = fn__wouldEntityBeOccluded(&success, _entityModelHash, _x, _y, _z, _p4); + var result = fn__wouldEntityBeOccluded(&success, _entityModelHash, _x, _y, _z, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46862,11 +46862,11 @@ public bool WouldEntityBeOccluded(uint _entityModelHash, float _x, float _y, flo public bool IsEntityWaitingForWorldCollision(int _entity) { unsafe { - if (fn__isEntityWaitingForWorldCollision == null) fn__isEntityWaitingForWorldCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityWaitingForWorldCollision"); + if (fn__isEntityWaitingForWorldCollision == null) fn__isEntityWaitingForWorldCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityWaitingForWorldCollision"); var success = false; var result = fn__isEntityWaitingForWorldCollision(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -46874,9 +46874,9 @@ public bool IsEntityWaitingForWorldCollision(int _entity) public void ApplyForceToEntityCenterOfMass(int _entity, int _forceType, float _x, float _y, float _z, bool _p5, bool _isDirectionRel, bool _isForceRel, bool _p8) { unsafe { - if (fn__applyForceToEntityCenterOfMass == null) fn__applyForceToEntityCenterOfMass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyForceToEntityCenterOfMass"); + if (fn__applyForceToEntityCenterOfMass == null) fn__applyForceToEntityCenterOfMass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyForceToEntityCenterOfMass"); var success = false; - fn__applyForceToEntityCenterOfMass(&success, _entity, _forceType, _x, _y, _z, _p5, _isDirectionRel, _isForceRel, _p8); + fn__applyForceToEntityCenterOfMass(&success, _entity, _forceType, _x, _y, _z, (byte) (_p5 ? 1 : 0), (byte) (_isDirectionRel ? 1 : 0), (byte) (_isForceRel ? 1 : 0), (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46885,9 +46885,9 @@ public void ApplyForceToEntityCenterOfMass(int _entity, int _forceType, float _x public void ApplyForceToEntity(int _entity, int _forceFlags, float _x, float _y, float _z, float _offX, float _offY, float _offZ, int _boneIndex, bool _isDirectionRel, bool _ignoreUpVec, bool _isForceRel, bool _p12, bool _p13) { unsafe { - if (fn__applyForceToEntity == null) fn__applyForceToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyForceToEntity"); + if (fn__applyForceToEntity == null) fn__applyForceToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyForceToEntity"); var success = false; - fn__applyForceToEntity(&success, _entity, _forceFlags, _x, _y, _z, _offX, _offY, _offZ, _boneIndex, _isDirectionRel, _ignoreUpVec, _isForceRel, _p12, _p13); + fn__applyForceToEntity(&success, _entity, _forceFlags, _x, _y, _z, _offX, _offY, _offZ, _boneIndex, (byte) (_isDirectionRel ? 1 : 0), (byte) (_ignoreUpVec ? 1 : 0), (byte) (_isForceRel ? 1 : 0), (byte) (_p12 ? 1 : 0), (byte) (_p13 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46898,9 +46898,9 @@ public void ApplyForceToEntity(int _entity, int _forceFlags, float _x, float _y, public void AttachEntityToEntity(int _entity1, int _entity2, int _boneIndex, float _xPos, float _yPos, float _zPos, float _xRot, float _yRot, float _zRot, bool _p9, bool _useSoftPinning, bool _collision, bool _isPed, int _vertexIndex, bool _fixedRot) { unsafe { - if (fn__attachEntityToEntity == null) fn__attachEntityToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityToEntity"); + if (fn__attachEntityToEntity == null) fn__attachEntityToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityToEntity"); var success = false; - fn__attachEntityToEntity(&success, _entity1, _entity2, _boneIndex, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, _p9, _useSoftPinning, _collision, _isPed, _vertexIndex, _fixedRot); + fn__attachEntityToEntity(&success, _entity1, _entity2, _boneIndex, _xPos, _yPos, _zPos, _xRot, _yRot, _zRot, (byte) (_p9 ? 1 : 0), (byte) (_useSoftPinning ? 1 : 0), (byte) (_collision ? 1 : 0), (byte) (_isPed ? 1 : 0), _vertexIndex, (byte) (_fixedRot ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46911,9 +46911,9 @@ public void AttachEntityToEntity(int _entity1, int _entity2, int _boneIndex, flo public void AttachEntityBoneToEntityBone(int _entity1, int _entity2, int _boneIndex1, int _boneIndex2, bool _p4, bool _p5) { unsafe { - if (fn__attachEntityBoneToEntityBone == null) fn__attachEntityBoneToEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityBoneToEntityBone"); + if (fn__attachEntityBoneToEntityBone == null) fn__attachEntityBoneToEntityBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityBoneToEntityBone"); var success = false; - fn__attachEntityBoneToEntityBone(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, _p4, _p5); + fn__attachEntityBoneToEntityBone(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46924,9 +46924,9 @@ public void AttachEntityBoneToEntityBone(int _entity1, int _entity2, int _boneIn public void AttachEntityBoneToEntityBonePhysically(int _entity1, int _entity2, int _boneIndex1, int _boneIndex2, bool _p4, bool _p5) { unsafe { - if (fn__attachEntityBoneToEntityBonePhysically == null) fn__attachEntityBoneToEntityBonePhysically = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityBoneToEntityBonePhysically"); + if (fn__attachEntityBoneToEntityBonePhysically == null) fn__attachEntityBoneToEntityBonePhysically = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityBoneToEntityBonePhysically"); var success = false; - fn__attachEntityBoneToEntityBonePhysically(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, _p4, _p5); + fn__attachEntityBoneToEntityBonePhysically(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -46937,9 +46937,9 @@ public void AttachEntityBoneToEntityBonePhysically(int _entity1, int _entity2, i public void AttachEntityToEntityPhysically(int _entity1, int _entity2, int _boneIndex1, int _boneIndex2, float _xPos1, float _yPos1, float _zPos1, float _xPos2, float _yPos2, float _zPos2, float _xRot, float _yRot, float _zRot, float _breakForce, bool _fixedRot, bool _p15, bool _collision, bool _p17, int _p18) { unsafe { - if (fn__attachEntityToEntityPhysically == null) fn__attachEntityToEntityPhysically = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityToEntityPhysically"); + if (fn__attachEntityToEntityPhysically == null) fn__attachEntityToEntityPhysically = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntityToEntityPhysically"); var success = false; - fn__attachEntityToEntityPhysically(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, _xPos1, _yPos1, _zPos1, _xPos2, _yPos2, _zPos2, _xRot, _yRot, _zRot, _breakForce, _fixedRot, _p15, _collision, _p17, _p18); + fn__attachEntityToEntityPhysically(&success, _entity1, _entity2, _boneIndex1, _boneIndex2, _xPos1, _yPos1, _zPos1, _xPos2, _yPos2, _zPos2, _xRot, _yRot, _zRot, _breakForce, (byte) (_fixedRot ? 1 : 0), (byte) (_p15 ? 1 : 0), (byte) (_collision ? 1 : 0), (byte) (_p17 ? 1 : 0), _p18); if (!success) throw new Exception("Native execution failed"); } } @@ -46996,9 +46996,9 @@ public void DeleteEntity(ref int _entity) public void DetachEntity(int _entity, bool _dynamic, bool _collision) { unsafe { - if (fn__detachEntity == null) fn__detachEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachEntity"); + if (fn__detachEntity == null) fn__detachEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachEntity"); var success = false; - fn__detachEntity(&success, _entity, _dynamic, _collision); + fn__detachEntity(&success, _entity, (byte) (_dynamic ? 1 : 0), (byte) (_collision ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47007,9 +47007,9 @@ public void DetachEntity(int _entity, bool _dynamic, bool _collision) public void FreezeEntityPosition(int _entity, bool _toggle) { unsafe { - if (fn__freezeEntityPosition == null) fn__freezeEntityPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_freezeEntityPosition"); + if (fn__freezeEntityPosition == null) fn__freezeEntityPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_freezeEntityPosition"); var success = false; - fn__freezeEntityPosition(&success, _entity, _toggle); + fn__freezeEntityPosition(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47018,9 +47018,9 @@ public void FreezeEntityPosition(int _entity, bool _toggle) public void SetEntityCleanupByEngine(int _entity, bool _toggle) { unsafe { - if (fn__setEntityCleanupByEngine == null) fn__setEntityCleanupByEngine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCleanupByEngine"); + if (fn__setEntityCleanupByEngine == null) fn__setEntityCleanupByEngine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCleanupByEngine"); var success = false; - fn__setEntityCleanupByEngine(&success, _entity, _toggle); + fn__setEntityCleanupByEngine(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47029,15 +47029,15 @@ public void SetEntityCleanupByEngine(int _entity, bool _toggle) public bool PlayEntityAnim(int _entity, string _animName, string _animDict, float _p3, bool _loop, bool _stayInAnim, bool _p6, float _delta, int _bitset) { unsafe { - if (fn__playEntityAnim == null) fn__playEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playEntityAnim"); + if (fn__playEntityAnim == null) fn__playEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playEntityAnim"); var success = false; var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); - var result = fn__playEntityAnim(&success, _entity, ptr_animName, ptr_animDict, _p3, _loop, _stayInAnim, _p6, _delta, _bitset); + var result = fn__playEntityAnim(&success, _entity, ptr_animName, ptr_animDict, _p3, (byte) (_loop ? 1 : 0), (byte) (_stayInAnim ? 1 : 0), (byte) (_p6 ? 1 : 0), _delta, _bitset); Marshal.FreeHGlobal(ptr_animName); Marshal.FreeHGlobal(ptr_animDict); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47045,7 +47045,7 @@ public bool PlayEntityAnim(int _entity, string _animName, string _animDict, floa public bool PlaySynchronizedEntityAnim(int _entity, int _syncedScene, string _animation, string _propName, float _p4, float _p5, int _p6, float _p7) { unsafe { - if (fn__playSynchronizedEntityAnim == null) fn__playSynchronizedEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedEntityAnim"); + if (fn__playSynchronizedEntityAnim == null) fn__playSynchronizedEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedEntityAnim"); var success = false; var ptr_animation = MemoryUtils.StringToHGlobalUtf8(_animation); var ptr_propName = MemoryUtils.StringToHGlobalUtf8(_propName); @@ -47053,14 +47053,14 @@ public bool PlaySynchronizedEntityAnim(int _entity, int _syncedScene, string _an Marshal.FreeHGlobal(ptr_animation); Marshal.FreeHGlobal(ptr_propName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool PlaySynchronizedMapEntityAnim(float _p0, float _p1, float _p2, float _p3, int _p4, int _p5, ref int _p6, ref int _p7, float _p8, float _p9, int _p10, float _p11) { unsafe { - if (fn__playSynchronizedMapEntityAnim == null) fn__playSynchronizedMapEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedMapEntityAnim"); + if (fn__playSynchronizedMapEntityAnim == null) fn__playSynchronizedMapEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playSynchronizedMapEntityAnim"); var success = false; var ref_p6 = _p6; var ref_p7 = _p7; @@ -47068,18 +47068,18 @@ public bool PlaySynchronizedMapEntityAnim(float _p0, float _p1, float _p2, float _p6 = ref_p6; _p7 = ref_p7; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StopSynchronizedMapEntityAnim(float _p0, float _p1, float _p2, float _p3, int _p4, float _p5) { unsafe { - if (fn__stopSynchronizedMapEntityAnim == null) fn__stopSynchronizedMapEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedMapEntityAnim"); + if (fn__stopSynchronizedMapEntityAnim == null) fn__stopSynchronizedMapEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedMapEntityAnim"); var success = false; var result = fn__stopSynchronizedMapEntityAnim(&success, _p0, _p1, _p2, _p3, _p4, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47103,11 +47103,11 @@ public int StopEntityAnim(int _entity, string _animation, string _animGroup, flo public bool StopSynchronizedEntityAnim(int _entity, float _p1, bool _p2) { unsafe { - if (fn__stopSynchronizedEntityAnim == null) fn__stopSynchronizedEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedEntityAnim"); + if (fn__stopSynchronizedEntityAnim == null) fn__stopSynchronizedEntityAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopSynchronizedEntityAnim"); var success = false; - var result = fn__stopSynchronizedEntityAnim(&success, _entity, _p1, _p2); + var result = fn__stopSynchronizedEntityAnim(&success, _entity, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47115,18 +47115,18 @@ public bool StopSynchronizedEntityAnim(int _entity, float _p1, bool _p2) public bool HasAnimEventFired(int _entity, uint _actionHash) { unsafe { - if (fn__hasAnimEventFired == null) fn__hasAnimEventFired = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimEventFired"); + if (fn__hasAnimEventFired == null) fn__hasAnimEventFired = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimEventFired"); var success = false; var result = fn__hasAnimEventFired(&success, _entity, _actionHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FindAnimEventPhase(string _animDictionary, string _animName, string _p2, ref int _p3, ref int _p4) { unsafe { - if (fn__findAnimEventPhase == null) fn__findAnimEventPhase = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_findAnimEventPhase"); + if (fn__findAnimEventPhase == null) fn__findAnimEventPhase = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_findAnimEventPhase"); var success = false; var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); @@ -47140,7 +47140,7 @@ public bool FindAnimEventPhase(string _animDictionary, string _animName, string _p3 = ref_p3; _p4 = ref_p4; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47178,9 +47178,9 @@ public void SetEntityAnimSpeed(int _entity, string _animDictionary, string _anim public void SetEntityAsMissionEntity(int _entity, bool _p1, bool _p2) { unsafe { - if (fn__setEntityAsMissionEntity == null) fn__setEntityAsMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAsMissionEntity"); + if (fn__setEntityAsMissionEntity == null) fn__setEntityAsMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAsMissionEntity"); var success = false; - fn__setEntityAsMissionEntity(&success, _entity, _p1, _p2); + fn__setEntityAsMissionEntity(&success, _entity, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47237,9 +47237,9 @@ public void SetObjectAsNoLongerNeeded(ref int _object) public void SetEntityCanBeDamaged(int _entity, bool _toggle) { unsafe { - if (fn__setEntityCanBeDamaged == null) fn__setEntityCanBeDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeDamaged"); + if (fn__setEntityCanBeDamaged == null) fn__setEntityCanBeDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeDamaged"); var success = false; - fn__setEntityCanBeDamaged(&success, _entity, _toggle); + fn__setEntityCanBeDamaged(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47248,11 +47248,11 @@ public void SetEntityCanBeDamaged(int _entity, bool _toggle) public bool GetEntityCanBeDamaged(int _entity) { unsafe { - if (fn__getEntityCanBeDamaged == null) fn__getEntityCanBeDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCanBeDamaged"); + if (fn__getEntityCanBeDamaged == null) fn__getEntityCanBeDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCanBeDamaged"); var success = false; var result = fn__getEntityCanBeDamaged(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47260,9 +47260,9 @@ public bool GetEntityCanBeDamaged(int _entity) public void SetEntityCanBeDamagedByRelationshipGroup(int _entity, bool _bCanBeDamaged, int _relGroup) { unsafe { - if (fn__setEntityCanBeDamagedByRelationshipGroup == null) fn__setEntityCanBeDamagedByRelationshipGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeDamagedByRelationshipGroup"); + if (fn__setEntityCanBeDamagedByRelationshipGroup == null) fn__setEntityCanBeDamagedByRelationshipGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeDamagedByRelationshipGroup"); var success = false; - fn__setEntityCanBeDamagedByRelationshipGroup(&success, _entity, _bCanBeDamaged, _relGroup); + fn__setEntityCanBeDamagedByRelationshipGroup(&success, _entity, (byte) (_bCanBeDamaged ? 1 : 0), _relGroup); if (!success) throw new Exception("Native execution failed"); } } @@ -47281,9 +47281,9 @@ public void _0x352E2B5CF420BF3B(int _p0, int _p1) public void SetEntityCanBeTargetedWithoutLos(int _entity, bool _toggle) { unsafe { - if (fn__setEntityCanBeTargetedWithoutLos == null) fn__setEntityCanBeTargetedWithoutLos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeTargetedWithoutLos"); + if (fn__setEntityCanBeTargetedWithoutLos == null) fn__setEntityCanBeTargetedWithoutLos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCanBeTargetedWithoutLos"); var success = false; - fn__setEntityCanBeTargetedWithoutLos(&success, _entity, _toggle); + fn__setEntityCanBeTargetedWithoutLos(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47292,9 +47292,9 @@ public void SetEntityCanBeTargetedWithoutLos(int _entity, bool _toggle) public void SetEntityCollision(int _entity, bool _toggle, bool _keepPhysics) { unsafe { - if (fn__setEntityCollision == null) fn__setEntityCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCollision"); + if (fn__setEntityCollision == null) fn__setEntityCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCollision"); var success = false; - fn__setEntityCollision(&success, _entity, _toggle, _keepPhysics); + fn__setEntityCollision(&success, _entity, (byte) (_toggle ? 1 : 0), (byte) (_keepPhysics ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47303,11 +47303,11 @@ public void SetEntityCollision(int _entity, bool _toggle, bool _keepPhysics) public bool GetEntityCollisionDisabled(int _entity) { unsafe { - if (fn__getEntityCollisionDisabled == null) fn__getEntityCollisionDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCollisionDisabled"); + if (fn__getEntityCollisionDisabled == null) fn__getEntityCollisionDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityCollisionDisabled"); var success = false; var result = fn__getEntityCollisionDisabled(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47315,9 +47315,9 @@ public bool GetEntityCollisionDisabled(int _entity) public void SetEntityCompletelyDisableCollision(int _entity, bool _toggle, bool _keepPhysics) { unsafe { - if (fn__setEntityCompletelyDisableCollision == null) fn__setEntityCompletelyDisableCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCompletelyDisableCollision"); + if (fn__setEntityCompletelyDisableCollision == null) fn__setEntityCompletelyDisableCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCompletelyDisableCollision"); var success = false; - fn__setEntityCompletelyDisableCollision(&success, _entity, _toggle, _keepPhysics); + fn__setEntityCompletelyDisableCollision(&success, _entity, (byte) (_toggle ? 1 : 0), (byte) (_keepPhysics ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47326,9 +47326,9 @@ public void SetEntityCompletelyDisableCollision(int _entity, bool _toggle, bool public void SetEntityCoords(int _entity, float _xPos, float _yPos, float _zPos, bool _xAxis, bool _yAxis, bool _zAxis, bool _clearArea) { unsafe { - if (fn__setEntityCoords == null) fn__setEntityCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoords"); + if (fn__setEntityCoords == null) fn__setEntityCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoords"); var success = false; - fn__setEntityCoords(&success, _entity, _xPos, _yPos, _zPos, _xAxis, _yAxis, _zAxis, _clearArea); + fn__setEntityCoords(&success, _entity, _xPos, _yPos, _zPos, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0), (byte) (_clearArea ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47337,9 +47337,9 @@ public void SetEntityCoords(int _entity, float _xPos, float _yPos, float _zPos, public void SetEntityCoordsWithoutPlantsReset(int _entity, float _xPos, float _yPos, float _zPos, bool _alive, bool _deadFlag, bool _ragdollFlag, bool _clearArea) { unsafe { - if (fn__setEntityCoordsWithoutPlantsReset == null) fn__setEntityCoordsWithoutPlantsReset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoordsWithoutPlantsReset"); + if (fn__setEntityCoordsWithoutPlantsReset == null) fn__setEntityCoordsWithoutPlantsReset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoordsWithoutPlantsReset"); var success = false; - fn__setEntityCoordsWithoutPlantsReset(&success, _entity, _xPos, _yPos, _zPos, _alive, _deadFlag, _ragdollFlag, _clearArea); + fn__setEntityCoordsWithoutPlantsReset(&success, _entity, _xPos, _yPos, _zPos, (byte) (_alive ? 1 : 0), (byte) (_deadFlag ? 1 : 0), (byte) (_ragdollFlag ? 1 : 0), (byte) (_clearArea ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47348,9 +47348,9 @@ public void SetEntityCoordsWithoutPlantsReset(int _entity, float _xPos, float _y public void SetEntityCoordsNoOffset(int _entity, float _xPos, float _yPos, float _zPos, bool _xAxis, bool _yAxis, bool _zAxis) { unsafe { - if (fn__setEntityCoordsNoOffset == null) fn__setEntityCoordsNoOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoordsNoOffset"); + if (fn__setEntityCoordsNoOffset == null) fn__setEntityCoordsNoOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityCoordsNoOffset"); var success = false; - fn__setEntityCoordsNoOffset(&success, _entity, _xPos, _yPos, _zPos, _xAxis, _yAxis, _zAxis); + fn__setEntityCoordsNoOffset(&success, _entity, _xPos, _yPos, _zPos, (byte) (_xAxis ? 1 : 0), (byte) (_yAxis ? 1 : 0), (byte) (_zAxis ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47359,9 +47359,9 @@ public void SetEntityCoordsNoOffset(int _entity, float _xPos, float _yPos, float public void SetEntityDynamic(int _entity, bool _toggle) { unsafe { - if (fn__setEntityDynamic == null) fn__setEntityDynamic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityDynamic"); + if (fn__setEntityDynamic == null) fn__setEntityDynamic = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityDynamic"); var success = false; - fn__setEntityDynamic(&success, _entity, _toggle); + fn__setEntityDynamic(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47392,9 +47392,9 @@ public void SetEntityHealth(int _entity, int _health, int _p2) public void SetEntityInvincible(int _entity, bool _toggle) { unsafe { - if (fn__setEntityInvincible == null) fn__setEntityInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityInvincible"); + if (fn__setEntityInvincible == null) fn__setEntityInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityInvincible"); var success = false; - fn__setEntityInvincible(&success, _entity, _toggle); + fn__setEntityInvincible(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47403,9 +47403,9 @@ public void SetEntityInvincible(int _entity, bool _toggle) public void SetEntityIsTargetPriority(int _entity, bool _p1, float _p2) { unsafe { - if (fn__setEntityIsTargetPriority == null) fn__setEntityIsTargetPriority = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityIsTargetPriority"); + if (fn__setEntityIsTargetPriority == null) fn__setEntityIsTargetPriority = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityIsTargetPriority"); var success = false; - fn__setEntityIsTargetPriority(&success, _entity, _p1, _p2); + fn__setEntityIsTargetPriority(&success, _entity, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -47414,9 +47414,9 @@ public void SetEntityIsTargetPriority(int _entity, bool _p1, float _p2) public void SetEntityLights(int _entity, bool _toggle) { unsafe { - if (fn__setEntityLights == null) fn__setEntityLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityLights"); + if (fn__setEntityLights == null) fn__setEntityLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityLights"); var success = false; - fn__setEntityLights(&success, _entity, _toggle); + fn__setEntityLights(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47425,9 +47425,9 @@ public void SetEntityLights(int _entity, bool _toggle) public void SetEntityLoadCollisionFlag(int _entity, bool _toggle, int _p2) { unsafe { - if (fn__setEntityLoadCollisionFlag == null) fn__setEntityLoadCollisionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityLoadCollisionFlag"); + if (fn__setEntityLoadCollisionFlag == null) fn__setEntityLoadCollisionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityLoadCollisionFlag"); var success = false; - fn__setEntityLoadCollisionFlag(&success, _entity, _toggle, _p2); + fn__setEntityLoadCollisionFlag(&success, _entity, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -47436,11 +47436,11 @@ public void SetEntityLoadCollisionFlag(int _entity, bool _toggle, int _p2) public bool HasCollisionLoadedAroundEntity(int _entity) { unsafe { - if (fn__hasCollisionLoadedAroundEntity == null) fn__hasCollisionLoadedAroundEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCollisionLoadedAroundEntity"); + if (fn__hasCollisionLoadedAroundEntity == null) fn__hasCollisionLoadedAroundEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCollisionLoadedAroundEntity"); var success = false; var result = fn__hasCollisionLoadedAroundEntity(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47459,9 +47459,9 @@ public void SetEntityMaxSpeed(int _entity, float _speed) public void SetEntityOnlyDamagedByPlayer(int _entity, bool _toggle) { unsafe { - if (fn__setEntityOnlyDamagedByPlayer == null) fn__setEntityOnlyDamagedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityOnlyDamagedByPlayer"); + if (fn__setEntityOnlyDamagedByPlayer == null) fn__setEntityOnlyDamagedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityOnlyDamagedByPlayer"); var success = false; - fn__setEntityOnlyDamagedByPlayer(&success, _entity, _toggle); + fn__setEntityOnlyDamagedByPlayer(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47470,9 +47470,9 @@ public void SetEntityOnlyDamagedByPlayer(int _entity, bool _toggle) public void SetEntityOnlyDamagedByRelationshipGroup(int _entity, bool _p1, int _p2) { unsafe { - if (fn__setEntityOnlyDamagedByRelationshipGroup == null) fn__setEntityOnlyDamagedByRelationshipGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityOnlyDamagedByRelationshipGroup"); + if (fn__setEntityOnlyDamagedByRelationshipGroup == null) fn__setEntityOnlyDamagedByRelationshipGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityOnlyDamagedByRelationshipGroup"); var success = false; - fn__setEntityOnlyDamagedByRelationshipGroup(&success, _entity, _p1, _p2); + fn__setEntityOnlyDamagedByRelationshipGroup(&success, _entity, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -47481,9 +47481,9 @@ public void SetEntityOnlyDamagedByRelationshipGroup(int _entity, bool _p1, int _ public void SetEntityProofs(int _entity, bool _bulletProof, bool _fireProof, bool _explosionProof, bool _collisionProof, bool _meleeProof, bool _p6, bool _p7, bool _drownProof) { unsafe { - if (fn__setEntityProofs == null) fn__setEntityProofs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityProofs"); + if (fn__setEntityProofs == null) fn__setEntityProofs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityProofs"); var success = false; - fn__setEntityProofs(&success, _entity, _bulletProof, _fireProof, _explosionProof, _collisionProof, _meleeProof, _p6, _p7, _drownProof); + fn__setEntityProofs(&success, _entity, (byte) (_bulletProof ? 1 : 0), (byte) (_fireProof ? 1 : 0), (byte) (_explosionProof ? 1 : 0), (byte) (_collisionProof ? 1 : 0), (byte) (_meleeProof ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_drownProof ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47492,27 +47492,27 @@ public void SetEntityProofs(int _entity, bool _bulletProof, bool _fireProof, boo public bool GetEntityProofs(int _entity, ref bool _bulletProof, ref bool _fireProof, ref bool _explosionProof, ref bool _collisionProof, ref bool _meleeProof, ref bool _steamProof, ref bool _p7, ref bool _drownProof) { unsafe { - if (fn__getEntityProofs == null) fn__getEntityProofs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityProofs"); + if (fn__getEntityProofs == null) fn__getEntityProofs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityProofs"); var success = false; - var ref_bulletProof = _bulletProof; - var ref_fireProof = _fireProof; - var ref_explosionProof = _explosionProof; - var ref_collisionProof = _collisionProof; - var ref_meleeProof = _meleeProof; - var ref_steamProof = _steamProof; - var ref_p7 = _p7; - var ref_drownProof = _drownProof; + var ref_bulletProof = (byte) (_bulletProof ? 1 : 0); + var ref_fireProof = (byte) (_fireProof ? 1 : 0); + var ref_explosionProof = (byte) (_explosionProof ? 1 : 0); + var ref_collisionProof = (byte) (_collisionProof ? 1 : 0); + var ref_meleeProof = (byte) (_meleeProof ? 1 : 0); + var ref_steamProof = (byte) (_steamProof ? 1 : 0); + var ref_p7 = (byte) (_p7 ? 1 : 0); + var ref_drownProof = (byte) (_drownProof ? 1 : 0); var result = fn__getEntityProofs(&success, _entity, &ref_bulletProof, &ref_fireProof, &ref_explosionProof, &ref_collisionProof, &ref_meleeProof, &ref_steamProof, &ref_p7, &ref_drownProof); - _bulletProof = ref_bulletProof; - _fireProof = ref_fireProof; - _explosionProof = ref_explosionProof; - _collisionProof = ref_collisionProof; - _meleeProof = ref_meleeProof; - _steamProof = ref_steamProof; - _p7 = ref_p7; - _drownProof = ref_drownProof; + _bulletProof = ref_bulletProof == 0 ? false : true; + _fireProof = ref_fireProof == 0 ? false : true; + _explosionProof = ref_explosionProof == 0 ? false : true; + _collisionProof = ref_collisionProof == 0 ? false : true; + _meleeProof = ref_meleeProof == 0 ? false : true; + _steamProof = ref_steamProof == 0 ? false : true; + _p7 = ref_p7 == 0 ? false : true; + _drownProof = ref_drownProof == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -47531,9 +47531,9 @@ public void SetEntityQuaternion(int _entity, float _x, float _y, float _z, float public void SetEntityRecordsCollisions(int _entity, bool _toggle) { unsafe { - if (fn__setEntityRecordsCollisions == null) fn__setEntityRecordsCollisions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRecordsCollisions"); + if (fn__setEntityRecordsCollisions == null) fn__setEntityRecordsCollisions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRecordsCollisions"); var success = false; - fn__setEntityRecordsCollisions(&success, _entity, _toggle); + fn__setEntityRecordsCollisions(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47542,9 +47542,9 @@ public void SetEntityRecordsCollisions(int _entity, bool _toggle) public void SetEntityRotation(int _entity, float _pitch, float _roll, float _yaw, int _rotationOrder, bool _p5) { unsafe { - if (fn__setEntityRotation == null) fn__setEntityRotation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRotation"); + if (fn__setEntityRotation == null) fn__setEntityRotation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRotation"); var success = false; - fn__setEntityRotation(&success, _entity, _pitch, _roll, _yaw, _rotationOrder, _p5); + fn__setEntityRotation(&success, _entity, _pitch, _roll, _yaw, _rotationOrder, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47553,9 +47553,9 @@ public void SetEntityRotation(int _entity, float _pitch, float _roll, float _yaw public void SetEntityVisible(int _entity, bool _toggle, bool _unk) { unsafe { - if (fn__setEntityVisible == null) fn__setEntityVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityVisible"); + if (fn__setEntityVisible == null) fn__setEntityVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityVisible"); var success = false; - fn__setEntityVisible(&success, _entity, _toggle, _unk); + fn__setEntityVisible(&success, _entity, (byte) (_toggle ? 1 : 0), (byte) (_unk ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47564,9 +47564,9 @@ public void SetEntityVisible(int _entity, bool _toggle, bool _unk) public void _0xC34BC448DA29F5E9(int _entity, bool _toggle) { unsafe { - if (fn__0xC34BC448DA29F5E9 == null) fn__0xC34BC448DA29F5E9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC34BC448DA29F5E9"); + if (fn__0xC34BC448DA29F5E9 == null) fn__0xC34BC448DA29F5E9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC34BC448DA29F5E9"); var success = false; - fn__0xC34BC448DA29F5E9(&success, _entity, _toggle); + fn__0xC34BC448DA29F5E9(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47575,9 +47575,9 @@ public void _0xC34BC448DA29F5E9(int _entity, bool _toggle) public void _0xE66377CDDADA4810(int _entity, bool _p1) { unsafe { - if (fn__0xE66377CDDADA4810 == null) fn__0xE66377CDDADA4810 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE66377CDDADA4810"); + if (fn__0xE66377CDDADA4810 == null) fn__0xE66377CDDADA4810 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE66377CDDADA4810"); var success = false; - fn__0xE66377CDDADA4810(&success, _entity, _p1); + fn__0xE66377CDDADA4810(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47608,9 +47608,9 @@ public void SetEntityAngularVelocity(int _entity, float _x, float _y, float _z) public void SetEntityHasGravity(int _entity, bool _toggle) { unsafe { - if (fn__setEntityHasGravity == null) fn__setEntityHasGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityHasGravity"); + if (fn__setEntityHasGravity == null) fn__setEntityHasGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityHasGravity"); var success = false; - fn__setEntityHasGravity(&success, _entity, _toggle); + fn__setEntityHasGravity(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47642,9 +47642,9 @@ public int GetEntityLodDist(int _entity) public void SetEntityAlpha(int _entity, int _alphaLevel, bool _skin) { unsafe { - if (fn__setEntityAlpha == null) fn__setEntityAlpha = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAlpha"); + if (fn__setEntityAlpha == null) fn__setEntityAlpha = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAlpha"); var success = false; - fn__setEntityAlpha(&success, _entity, _alphaLevel, _skin); + fn__setEntityAlpha(&success, _entity, _alphaLevel, (byte) (_skin ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47707,9 +47707,9 @@ public void _0x5C3B791D580E0BC2(int _entity, float _p1) public void SetEntityAlwaysPrerender(int _entity, bool _toggle) { unsafe { - if (fn__setEntityAlwaysPrerender == null) fn__setEntityAlwaysPrerender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAlwaysPrerender"); + if (fn__setEntityAlwaysPrerender == null) fn__setEntityAlwaysPrerender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityAlwaysPrerender"); var success = false; - fn__setEntityAlwaysPrerender(&success, _entity, _toggle); + fn__setEntityAlwaysPrerender(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47718,9 +47718,9 @@ public void SetEntityAlwaysPrerender(int _entity, bool _toggle) public void SetEntityRenderScorched(int _entity, bool _toggle) { unsafe { - if (fn__setEntityRenderScorched == null) fn__setEntityRenderScorched = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRenderScorched"); + if (fn__setEntityRenderScorched == null) fn__setEntityRenderScorched = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityRenderScorched"); var success = false; - fn__setEntityRenderScorched(&success, _entity, _toggle); + fn__setEntityRenderScorched(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47750,9 +47750,9 @@ public void _0x78E8E3A640178255(int _entity) public void CreateModelSwap(float _x, float _y, float _z, float _radius, uint _originalModel, uint _newModel, bool _p6) { unsafe { - if (fn__createModelSwap == null) fn__createModelSwap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelSwap"); + if (fn__createModelSwap == null) fn__createModelSwap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelSwap"); var success = false; - fn__createModelSwap(&success, _x, _y, _z, _radius, _originalModel, _newModel, _p6); + fn__createModelSwap(&success, _x, _y, _z, _radius, _originalModel, _newModel, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47760,9 +47760,9 @@ public void CreateModelSwap(float _x, float _y, float _z, float _radius, uint _o public void RemoveModelSwap(float _x, float _y, float _z, float _radius, uint _originalModel, uint _newModel, bool _p6) { unsafe { - if (fn__removeModelSwap == null) fn__removeModelSwap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeModelSwap"); + if (fn__removeModelSwap == null) fn__removeModelSwap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeModelSwap"); var success = false; - fn__removeModelSwap(&success, _x, _y, _z, _radius, _originalModel, _newModel, _p6); + fn__removeModelSwap(&success, _x, _y, _z, _radius, _originalModel, _newModel, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47770,9 +47770,9 @@ public void RemoveModelSwap(float _x, float _y, float _z, float _radius, uint _o public void CreateModelHide(float _x, float _y, float _z, float _radius, uint _modelHash, bool _p5) { unsafe { - if (fn__createModelHide == null) fn__createModelHide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelHide"); + if (fn__createModelHide == null) fn__createModelHide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelHide"); var success = false; - fn__createModelHide(&success, _x, _y, _z, _radius, _modelHash, _p5); + fn__createModelHide(&success, _x, _y, _z, _radius, _modelHash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47780,9 +47780,9 @@ public void CreateModelHide(float _x, float _y, float _z, float _radius, uint _m public void CreateModelHideExcludingScriptObjects(float _x, float _y, float _z, float _radius, uint _modelHash, bool _p5) { unsafe { - if (fn__createModelHideExcludingScriptObjects == null) fn__createModelHideExcludingScriptObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelHideExcludingScriptObjects"); + if (fn__createModelHideExcludingScriptObjects == null) fn__createModelHideExcludingScriptObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createModelHideExcludingScriptObjects"); var success = false; - fn__createModelHideExcludingScriptObjects(&success, _x, _y, _z, _radius, _modelHash, _p5); + fn__createModelHideExcludingScriptObjects(&success, _x, _y, _z, _radius, _modelHash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47790,9 +47790,9 @@ public void CreateModelHideExcludingScriptObjects(float _x, float _y, float _z, public void RemoveModelHide(float _x, float _y, float _z, float _radius, uint _modelHash, bool _p5) { unsafe { - if (fn__removeModelHide == null) fn__removeModelHide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeModelHide"); + if (fn__removeModelHide == null) fn__removeModelHide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeModelHide"); var success = false; - fn__removeModelHide(&success, _x, _y, _z, _radius, _modelHash, _p5); + fn__removeModelHide(&success, _x, _y, _z, _radius, _modelHash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47800,9 +47800,9 @@ public void RemoveModelHide(float _x, float _y, float _z, float _radius, uint _m public void CreateForcedObject(float _x, float _y, float _z, int _p3, uint _modelHash, bool _p5) { unsafe { - if (fn__createForcedObject == null) fn__createForcedObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createForcedObject"); + if (fn__createForcedObject == null) fn__createForcedObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createForcedObject"); var success = false; - fn__createForcedObject(&success, _x, _y, _z, _p3, _modelHash, _p5); + fn__createForcedObject(&success, _x, _y, _z, _p3, _modelHash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47823,9 +47823,9 @@ public void RemoveForcedObject(int _p0, int _p1, int _p2, int _p3, int _p4) public void SetEntityNoCollisionEntity(int _entity1, int _entity2, bool _thisFrameOnly) { unsafe { - if (fn__setEntityNoCollisionEntity == null) fn__setEntityNoCollisionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityNoCollisionEntity"); + if (fn__setEntityNoCollisionEntity == null) fn__setEntityNoCollisionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityNoCollisionEntity"); var success = false; - fn__setEntityNoCollisionEntity(&success, _entity1, _entity2, _thisFrameOnly); + fn__setEntityNoCollisionEntity(&success, _entity1, _entity2, (byte) (_thisFrameOnly ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47834,9 +47834,9 @@ public void SetEntityNoCollisionEntity(int _entity1, int _entity2, bool _thisFra public void SetEntityMotionBlur(int _entity, bool _toggle) { unsafe { - if (fn__setEntityMotionBlur == null) fn__setEntityMotionBlur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityMotionBlur"); + if (fn__setEntityMotionBlur == null) fn__setEntityMotionBlur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityMotionBlur"); var success = false; - fn__setEntityMotionBlur(&success, _entity, _toggle); + fn__setEntityMotionBlur(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47845,9 +47845,9 @@ public void SetEntityMotionBlur(int _entity, bool _toggle) public void SetCanAutoVaultOnEntity(int _entity, bool _toggle) { unsafe { - if (fn__setCanAutoVaultOnEntity == null) fn__setCanAutoVaultOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanAutoVaultOnEntity"); + if (fn__setCanAutoVaultOnEntity == null) fn__setCanAutoVaultOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanAutoVaultOnEntity"); var success = false; - fn__setCanAutoVaultOnEntity(&success, _entity, _toggle); + fn__setCanAutoVaultOnEntity(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47856,9 +47856,9 @@ public void SetCanAutoVaultOnEntity(int _entity, bool _toggle) public void SetCanClimbOnEntity(int _entity, bool _toggle) { unsafe { - if (fn__setCanClimbOnEntity == null) fn__setCanClimbOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanClimbOnEntity"); + if (fn__setCanClimbOnEntity == null) fn__setCanClimbOnEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanClimbOnEntity"); var success = false; - fn__setCanClimbOnEntity(&success, _entity, _toggle); + fn__setCanClimbOnEntity(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47867,9 +47867,9 @@ public void SetCanClimbOnEntity(int _entity, bool _toggle) public void _0xDC6F8601FAF2E893(int _entity, bool _toggle) { unsafe { - if (fn__0xDC6F8601FAF2E893 == null) fn__0xDC6F8601FAF2E893 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDC6F8601FAF2E893"); + if (fn__0xDC6F8601FAF2E893 == null) fn__0xDC6F8601FAF2E893 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDC6F8601FAF2E893"); var success = false; - fn__0xDC6F8601FAF2E893(&success, _entity, _toggle); + fn__0xDC6F8601FAF2E893(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47878,9 +47878,9 @@ public void _0xDC6F8601FAF2E893(int _entity, bool _toggle) public void SetEntityDecalsDisabled(int _entity, bool _p1) { unsafe { - if (fn__setEntityDecalsDisabled == null) fn__setEntityDecalsDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityDecalsDisabled"); + if (fn__setEntityDecalsDisabled == null) fn__setEntityDecalsDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityDecalsDisabled"); var success = false; - fn__setEntityDecalsDisabled(&success, _entity, _p1); + fn__setEntityDecalsDisabled(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -47889,9 +47889,9 @@ public void SetEntityDecalsDisabled(int _entity, bool _p1) public void _0x1A092BB0C3808B96(int _entity, bool _p1) { unsafe { - if (fn__0x1A092BB0C3808B96 == null) fn__0x1A092BB0C3808B96 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1A092BB0C3808B96"); + if (fn__0x1A092BB0C3808B96 == null) fn__0x1A092BB0C3808B96 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1A092BB0C3808B96"); var success = false; - fn__0x1A092BB0C3808B96(&success, _entity, _p1); + fn__0x1A092BB0C3808B96(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -48000,9 +48000,9 @@ public int GetEntityPickup(int _entity, uint _modelHash) public void _0xD7B80E7C3BEFC396(int _pickup, bool _toggle) { unsafe { - if (fn__0xD7B80E7C3BEFC396 == null) fn__0xD7B80E7C3BEFC396 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD7B80E7C3BEFC396"); + if (fn__0xD7B80E7C3BEFC396 == null) fn__0xD7B80E7C3BEFC396 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD7B80E7C3BEFC396"); var success = false; - fn__0xD7B80E7C3BEFC396(&success, _pickup, _toggle); + fn__0xD7B80E7C3BEFC396(&success, _pickup, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -48074,31 +48074,31 @@ public int AddShockingEventForEntity(int _eventType, int _entity, float _duratio public bool IsShockingEventInSphere(int _eventType, float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isShockingEventInSphere == null) fn__isShockingEventInSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isShockingEventInSphere"); + if (fn__isShockingEventInSphere == null) fn__isShockingEventInSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isShockingEventInSphere"); var success = false; var result = fn__isShockingEventInSphere(&success, _eventType, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool RemoveShockingEvent(int _event) { unsafe { - if (fn__removeShockingEvent == null) fn__removeShockingEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeShockingEvent"); + if (fn__removeShockingEvent == null) fn__removeShockingEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeShockingEvent"); var success = false; var result = fn__removeShockingEvent(&success, _event); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void RemoveAllShockingEvents(bool _p0) { unsafe { - if (fn__removeAllShockingEvents == null) fn__removeAllShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllShockingEvents"); + if (fn__removeAllShockingEvents == null) fn__removeAllShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllShockingEvents"); var success = false; - fn__removeAllShockingEvents(&success, _p0); + fn__removeAllShockingEvents(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -48157,13 +48157,13 @@ public int GetNumTattooShopDlcItems(int _character) public bool GetTattooShopDlcItemData(int _characterType, int _decorationIndex, ref int _outComponent) { unsafe { - if (fn__getTattooShopDlcItemData == null) fn__getTattooShopDlcItemData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTattooShopDlcItemData"); + if (fn__getTattooShopDlcItemData == null) fn__getTattooShopDlcItemData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTattooShopDlcItemData"); var success = false; var ref_outComponent = _outComponent; var result = fn__getTattooShopDlcItemData(&success, _characterType, _decorationIndex, &ref_outComponent); _outComponent = ref_outComponent; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48216,9 +48216,9 @@ public int SetupShopPedApparelQuery(int _p0, int _p1, int _p2, int _p3) public int SetupShopPedApparelQueryTu(int _character, int _p1, int _p2, bool _p3, int _p4, int _componentId) { unsafe { - if (fn__setupShopPedApparelQueryTu == null) fn__setupShopPedApparelQueryTu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setupShopPedApparelQueryTu"); + if (fn__setupShopPedApparelQueryTu == null) fn__setupShopPedApparelQueryTu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setupShopPedApparelQueryTu"); var success = false; - var result = fn__setupShopPedApparelQueryTu(&success, _character, _p1, _p2, _p3, _p4, _componentId); + var result = fn__setupShopPedApparelQueryTu(&success, _character, _p1, _p2, (byte) (_p3 ? 1 : 0), _p4, _componentId); if (!success) throw new Exception("Native execution failed"); return result; } @@ -48429,20 +48429,20 @@ public void GetForcedProp(uint _componentHash, int _forcedPropIndex, ref uint _n public bool IsTagRestricted(uint _componentHash, uint _restrictionTagHash, int _componentId) { unsafe { - if (fn__isTagRestricted == null) fn__isTagRestricted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTagRestricted"); + if (fn__isTagRestricted == null) fn__isTagRestricted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTagRestricted"); var success = false; var result = fn__isTagRestricted(&success, _componentHash, _restrictionTagHash, _componentId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int SetupShopPedOutfitQuery(int _character, bool _p1) { unsafe { - if (fn__setupShopPedOutfitQuery == null) fn__setupShopPedOutfitQuery = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setupShopPedOutfitQuery"); + if (fn__setupShopPedOutfitQuery == null) fn__setupShopPedOutfitQuery = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setupShopPedOutfitQuery"); var success = false; - var result = fn__setupShopPedOutfitQuery(&success, _character, _p1); + var result = fn__setupShopPedOutfitQuery(&success, _character, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -48486,26 +48486,26 @@ public int GetShopPedOutfitLocate(int _p0) public bool GetShopPedOutfitPropVariant(uint _outfitHash, int _unkVariantIndex, ref int _outPropVariant) { unsafe { - if (fn__getShopPedOutfitPropVariant == null) fn__getShopPedOutfitPropVariant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShopPedOutfitPropVariant"); + if (fn__getShopPedOutfitPropVariant == null) fn__getShopPedOutfitPropVariant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShopPedOutfitPropVariant"); var success = false; var ref_outPropVariant = _outPropVariant; var result = fn__getShopPedOutfitPropVariant(&success, _outfitHash, _unkVariantIndex, &ref_outPropVariant); _outPropVariant = ref_outPropVariant; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetShopPedOutfitComponentVariant(uint _outfitHash, int _unkVariantIndex, ref int _outComponentVariant) { unsafe { - if (fn__getShopPedOutfitComponentVariant == null) fn__getShopPedOutfitComponentVariant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShopPedOutfitComponentVariant"); + if (fn__getShopPedOutfitComponentVariant == null) fn__getShopPedOutfitComponentVariant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShopPedOutfitComponentVariant"); var success = false; var ref_outComponentVariant = _outComponentVariant; var result = fn__getShopPedOutfitComponentVariant(&success, _outfitHash, _unkVariantIndex, &ref_outComponentVariant); _outComponentVariant = ref_outComponentVariant; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48534,13 +48534,13 @@ public uint GetDlcVehicleModel(int _dlcVehicleIndex) public bool GetDlcVehicleData(int _dlcVehicleIndex, ref int _outData) { unsafe { - if (fn__getDlcVehicleData == null) fn__getDlcVehicleData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcVehicleData"); + if (fn__getDlcVehicleData == null) fn__getDlcVehicleData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcVehicleData"); var success = false; var ref_outData = _outData; var result = fn__getDlcVehicleData(&success, _dlcVehicleIndex, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48580,26 +48580,26 @@ public int GetNumDlcWeaponsSp() public bool GetDlcWeaponData(int _dlcWeaponIndex, ref int _outData) { unsafe { - if (fn__getDlcWeaponData == null) fn__getDlcWeaponData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponData"); + if (fn__getDlcWeaponData == null) fn__getDlcWeaponData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponData"); var success = false; var ref_outData = _outData; var result = fn__getDlcWeaponData(&success, _dlcWeaponIndex, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetDlcWeaponDataSp(int _dlcWeaponIndex, ref int _outData) { unsafe { - if (fn__getDlcWeaponDataSp == null) fn__getDlcWeaponDataSp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponDataSp"); + if (fn__getDlcWeaponDataSp == null) fn__getDlcWeaponDataSp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponDataSp"); var success = false; var ref_outData = _outData; var result = fn__getDlcWeaponDataSp(&success, _dlcWeaponIndex, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48628,48 +48628,48 @@ public int GetNumDlcWeaponComponentsSp(int _dlcWeaponIndex) public bool GetDlcWeaponComponentData(int _dlcWeaponIndex, int _dlcWeapCompIndex, ref int _ComponentDataPtr) { unsafe { - if (fn__getDlcWeaponComponentData == null) fn__getDlcWeaponComponentData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponComponentData"); + if (fn__getDlcWeaponComponentData == null) fn__getDlcWeaponComponentData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponComponentData"); var success = false; var ref_ComponentDataPtr = _ComponentDataPtr; var result = fn__getDlcWeaponComponentData(&success, _dlcWeaponIndex, _dlcWeapCompIndex, &ref_ComponentDataPtr); _ComponentDataPtr = ref_ComponentDataPtr; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetDlcWeaponComponentDataSp(int _dlcWeaponIndex, int _dlcWeapCompIndex, ref int _ComponentDataPtr) { unsafe { - if (fn__getDlcWeaponComponentDataSp == null) fn__getDlcWeaponComponentDataSp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponComponentDataSp"); + if (fn__getDlcWeaponComponentDataSp == null) fn__getDlcWeaponComponentDataSp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDlcWeaponComponentDataSp"); var success = false; var ref_ComponentDataPtr = _ComponentDataPtr; var result = fn__getDlcWeaponComponentDataSp(&success, _dlcWeaponIndex, _dlcWeapCompIndex, &ref_ComponentDataPtr); _ComponentDataPtr = ref_ComponentDataPtr; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsContentItemLocked(uint _itemHash) { unsafe { - if (fn__isContentItemLocked == null) fn__isContentItemLocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isContentItemLocked"); + if (fn__isContentItemLocked == null) fn__isContentItemLocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isContentItemLocked"); var success = false; var result = fn__isContentItemLocked(&success, _itemHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDlcVehicleMod(uint _hash) { unsafe { - if (fn__isDlcVehicleMod == null) fn__isDlcVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDlcVehicleMod"); + if (fn__isDlcVehicleMod == null) fn__isDlcVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDlcVehicleMod"); var success = false; var result = fn__isDlcVehicleMod(&success, _hash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48707,9 +48707,9 @@ public void UnloadContentChangeSetGroup(uint _hash) public int StartScriptFire(float _X, float _Y, float _Z, int _maxChildren, bool _isGasFire) { unsafe { - if (fn__startScriptFire == null) fn__startScriptFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptFire"); + if (fn__startScriptFire == null) fn__startScriptFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startScriptFire"); var success = false; - var result = fn__startScriptFire(&success, _X, _Y, _Z, _maxChildren, _isGasFire); + var result = fn__startScriptFire(&success, _X, _Y, _Z, _maxChildren, (byte) (_isGasFire ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -48752,11 +48752,11 @@ public void StopEntityFire(int _entity) public bool IsEntityOnFire(int _entity) { unsafe { - if (fn__isEntityOnFire == null) fn__isEntityOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOnFire"); + if (fn__isEntityOnFire == null) fn__isEntityOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityOnFire"); var success = false; var result = fn__isEntityOnFire(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48794,22 +48794,22 @@ public void StopFireInRange(float _x, float _y, float _z, float _radius) public bool GetClosestFirePos(ref Vector3 _outPosition, float _x, float _y, float _z) { unsafe { - if (fn__getClosestFirePos == null) fn__getClosestFirePos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestFirePos"); + if (fn__getClosestFirePos == null) fn__getClosestFirePos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestFirePos"); var success = false; var ref_outPosition = _outPosition; var result = fn__getClosestFirePos(&success, &ref_outPosition, _x, _y, _z); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void AddExplosion(float _x, float _y, float _z, int _explosionType, float _damageScale, bool _isAudible, bool _isInvisible, float _cameraShake, bool _noDamage) { unsafe { - if (fn__addExplosion == null) fn__addExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addExplosion"); + if (fn__addExplosion == null) fn__addExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addExplosion"); var success = false; - fn__addExplosion(&success, _x, _y, _z, _explosionType, _damageScale, _isAudible, _isInvisible, _cameraShake, _noDamage); + fn__addExplosion(&success, _x, _y, _z, _explosionType, _damageScale, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _cameraShake, (byte) (_noDamage ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -48818,9 +48818,9 @@ public void AddExplosion(float _x, float _y, float _z, int _explosionType, float public void AddOwnedExplosion(int _ped, float _x, float _y, float _z, int _explosionType, float _damageScale, bool _isAudible, bool _isInvisible, float _cameraShake) { unsafe { - if (fn__addOwnedExplosion == null) fn__addOwnedExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addOwnedExplosion"); + if (fn__addOwnedExplosion == null) fn__addOwnedExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addOwnedExplosion"); var success = false; - fn__addOwnedExplosion(&success, _ped, _x, _y, _z, _explosionType, _damageScale, _isAudible, _isInvisible, _cameraShake); + fn__addOwnedExplosion(&success, _ped, _x, _y, _z, _explosionType, _damageScale, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _cameraShake); if (!success) throw new Exception("Native execution failed"); } } @@ -48828,9 +48828,9 @@ public void AddOwnedExplosion(int _ped, float _x, float _y, float _z, int _explo public void AddExplosionWithUserVfx(float _x, float _y, float _z, int _explosionType, uint _explosionFx, float _damageScale, bool _isAudible, bool _isInvisible, float _cameraShake) { unsafe { - if (fn__addExplosionWithUserVfx == null) fn__addExplosionWithUserVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addExplosionWithUserVfx"); + if (fn__addExplosionWithUserVfx == null) fn__addExplosionWithUserVfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addExplosionWithUserVfx"); var success = false; - fn__addExplosionWithUserVfx(&success, _x, _y, _z, _explosionType, _explosionFx, _damageScale, _isAudible, _isInvisible, _cameraShake); + fn__addExplosionWithUserVfx(&success, _x, _y, _z, _explosionType, _explosionFx, _damageScale, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _cameraShake); if (!success) throw new Exception("Native execution failed"); } } @@ -48838,33 +48838,33 @@ public void AddExplosionWithUserVfx(float _x, float _y, float _z, int _explosion public bool IsExplosionInArea(int _explosionType, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__isExplosionInArea == null) fn__isExplosionInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInArea"); + if (fn__isExplosionInArea == null) fn__isExplosionInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInArea"); var success = false; var result = fn__isExplosionInArea(&success, _explosionType, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsExplosionActiveInArea(int _explosionType, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__isExplosionActiveInArea == null) fn__isExplosionActiveInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionActiveInArea"); + if (fn__isExplosionActiveInArea == null) fn__isExplosionActiveInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionActiveInArea"); var success = false; var result = fn__isExplosionActiveInArea(&success, _explosionType, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsExplosionInSphere(int _explosionType, float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isExplosionInSphere == null) fn__isExplosionInSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInSphere"); + if (fn__isExplosionInSphere == null) fn__isExplosionInSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInSphere"); var success = false; var result = fn__isExplosionInSphere(&success, _explosionType, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48882,11 +48882,11 @@ public int GetEntityInsideExplosionSphere(int _explosionType, float _x, float _y public bool IsExplosionInAngledArea(int _explosionType, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width) { unsafe { - if (fn__isExplosionInAngledArea == null) fn__isExplosionInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInAngledArea"); + if (fn__isExplosionInAngledArea == null) fn__isExplosionInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isExplosionInAngledArea"); var success = false; var result = fn__isExplosionInAngledArea(&success, _explosionType, _x1, _y1, _z1, _x2, _y2, _z2, _width); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -48946,31 +48946,31 @@ public void PreloadBusyspinner() public bool BusyspinnerIsOn() { unsafe { - if (fn__busyspinnerIsOn == null) fn__busyspinnerIsOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_busyspinnerIsOn"); + if (fn__busyspinnerIsOn == null) fn__busyspinnerIsOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_busyspinnerIsOn"); var success = false; var result = fn__busyspinnerIsOn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool BusyspinnerIsDisplaying() { unsafe { - if (fn__busyspinnerIsDisplaying == null) fn__busyspinnerIsDisplaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_busyspinnerIsDisplaying"); + if (fn__busyspinnerIsDisplaying == null) fn__busyspinnerIsDisplaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_busyspinnerIsDisplaying"); var success = false; var result = fn__busyspinnerIsDisplaying(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x9245E81072704B8A(bool _p0) { unsafe { - if (fn__0x9245E81072704B8A == null) fn__0x9245E81072704B8A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9245E81072704B8A"); + if (fn__0x9245E81072704B8A == null) fn__0x9245E81072704B8A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9245E81072704B8A"); var success = false; - fn__0x9245E81072704B8A(&success, _p0); + fn__0x9245E81072704B8A(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -48998,9 +48998,9 @@ public void SetMouseCursorSprite(int _spriteId) public void SetMouseCursorVisibleInMenus(bool _toggle) { unsafe { - if (fn__setMouseCursorVisibleInMenus == null) fn__setMouseCursorVisibleInMenus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMouseCursorVisibleInMenus"); + if (fn__setMouseCursorVisibleInMenus == null) fn__setMouseCursorVisibleInMenus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMouseCursorVisibleInMenus"); var success = false; - fn__setMouseCursorVisibleInMenus(&success, _toggle); + fn__setMouseCursorVisibleInMenus(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49019,7 +49019,7 @@ public int _0x3D9ACB1EB139E702() public bool _0x632B2940C67F4EA9(int _scaleformHandle, ref int _p1, ref int _p2, ref int _p3) { unsafe { - if (fn__0x632B2940C67F4EA9 == null) fn__0x632B2940C67F4EA9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x632B2940C67F4EA9"); + if (fn__0x632B2940C67F4EA9 == null) fn__0x632B2940C67F4EA9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x632B2940C67F4EA9"); var success = false; var ref_p1 = _p1; var ref_p2 = _p2; @@ -49029,16 +49029,16 @@ public bool _0x632B2940C67F4EA9(int _scaleformHandle, ref int _p1, ref int _p2, _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ThefeedOnlyShowTooltips(bool _toggle) { unsafe { - if (fn__thefeedOnlyShowTooltips == null) fn__thefeedOnlyShowTooltips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedOnlyShowTooltips"); + if (fn__thefeedOnlyShowTooltips == null) fn__thefeedOnlyShowTooltips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedOnlyShowTooltips"); var success = false; - fn__thefeedOnlyShowTooltips(&success, _toggle); + fn__thefeedOnlyShowTooltips(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49146,11 +49146,11 @@ public void ThefeedResume() public bool ThefeedIsPaused() { unsafe { - if (fn__thefeedIsPaused == null) fn__thefeedIsPaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedIsPaused"); + if (fn__thefeedIsPaused == null) fn__thefeedIsPaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedIsPaused"); var success = false; var result = fn__thefeedIsPaused(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -49238,9 +49238,9 @@ public void ThefeedSetAnimpostfxCount(int _count) public void ThefeedSetAnimpostfxSound(bool _toggle) { unsafe { - if (fn__thefeedSetAnimpostfxSound == null) fn__thefeedSetAnimpostfxSound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedSetAnimpostfxSound"); + if (fn__thefeedSetAnimpostfxSound == null) fn__thefeedSetAnimpostfxSound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedSetAnimpostfxSound"); var success = false; - fn__thefeedSetAnimpostfxSound(&success, _toggle); + fn__thefeedSetAnimpostfxSound(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49278,9 +49278,9 @@ public void ThefeedClearFrozenPost() public void ThefeedSetFlushAnimpostfx(bool _p0) { unsafe { - if (fn__thefeedSetFlushAnimpostfx == null) fn__thefeedSetFlushAnimpostfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedSetFlushAnimpostfx"); + if (fn__thefeedSetFlushAnimpostfx == null) fn__thefeedSetFlushAnimpostfx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_thefeedSetFlushAnimpostfx"); var success = false; - fn__thefeedSetFlushAnimpostfx(&success, _p0); + fn__thefeedSetFlushAnimpostfx(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49318,12 +49318,12 @@ public void BeginTextCommandThefeedPost(string _text) public int EndTextCommandThefeedPostStats(string _statTitle, int _iconEnum, bool _stepVal, int _barValue, bool _isImportant, string _pictureTextureDict, string _pictureTextureName) { unsafe { - if (fn__endTextCommandThefeedPostStats == null) fn__endTextCommandThefeedPostStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostStats"); + if (fn__endTextCommandThefeedPostStats == null) fn__endTextCommandThefeedPostStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostStats"); var success = false; var ptr_statTitle = MemoryUtils.StringToHGlobalUtf8(_statTitle); var ptr_pictureTextureDict = MemoryUtils.StringToHGlobalUtf8(_pictureTextureDict); var ptr_pictureTextureName = MemoryUtils.StringToHGlobalUtf8(_pictureTextureName); - var result = fn__endTextCommandThefeedPostStats(&success, ptr_statTitle, _iconEnum, _stepVal, _barValue, _isImportant, ptr_pictureTextureDict, ptr_pictureTextureName); + var result = fn__endTextCommandThefeedPostStats(&success, ptr_statTitle, _iconEnum, (byte) (_stepVal ? 1 : 0), _barValue, (byte) (_isImportant ? 1 : 0), ptr_pictureTextureDict, ptr_pictureTextureName); Marshal.FreeHGlobal(ptr_statTitle); Marshal.FreeHGlobal(ptr_pictureTextureDict); Marshal.FreeHGlobal(ptr_pictureTextureName); @@ -49335,13 +49335,13 @@ public int EndTextCommandThefeedPostStats(string _statTitle, int _iconEnum, bool public int EndTextCommandThefeedPostMessagetext(string _txdName, string _textureName, bool _flash, int _iconType, string _sender, string _subject) { unsafe { - if (fn__endTextCommandThefeedPostMessagetext == null) fn__endTextCommandThefeedPostMessagetext = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetext"); + if (fn__endTextCommandThefeedPostMessagetext == null) fn__endTextCommandThefeedPostMessagetext = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetext"); var success = false; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); var ptr_sender = MemoryUtils.StringToHGlobalUtf8(_sender); var ptr_subject = MemoryUtils.StringToHGlobalUtf8(_subject); - var result = fn__endTextCommandThefeedPostMessagetext(&success, ptr_txdName, ptr_textureName, _flash, _iconType, ptr_sender, ptr_subject); + var result = fn__endTextCommandThefeedPostMessagetext(&success, ptr_txdName, ptr_textureName, (byte) (_flash ? 1 : 0), _iconType, ptr_sender, ptr_subject); Marshal.FreeHGlobal(ptr_txdName); Marshal.FreeHGlobal(ptr_textureName); Marshal.FreeHGlobal(ptr_sender); @@ -49354,13 +49354,13 @@ public int EndTextCommandThefeedPostMessagetext(string _txdName, string _texture public int EndTextCommandThefeedPostMessagetextGxtEntry(string _txdName, string _textureName, bool _flash, int _iconType, string _sender, string _subject) { unsafe { - if (fn__endTextCommandThefeedPostMessagetextGxtEntry == null) fn__endTextCommandThefeedPostMessagetextGxtEntry = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextGxtEntry"); + if (fn__endTextCommandThefeedPostMessagetextGxtEntry == null) fn__endTextCommandThefeedPostMessagetextGxtEntry = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextGxtEntry"); var success = false; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); var ptr_sender = MemoryUtils.StringToHGlobalUtf8(_sender); var ptr_subject = MemoryUtils.StringToHGlobalUtf8(_subject); - var result = fn__endTextCommandThefeedPostMessagetextGxtEntry(&success, ptr_txdName, ptr_textureName, _flash, _iconType, ptr_sender, ptr_subject); + var result = fn__endTextCommandThefeedPostMessagetextGxtEntry(&success, ptr_txdName, ptr_textureName, (byte) (_flash ? 1 : 0), _iconType, ptr_sender, ptr_subject); Marshal.FreeHGlobal(ptr_txdName); Marshal.FreeHGlobal(ptr_textureName); Marshal.FreeHGlobal(ptr_sender); @@ -49373,13 +49373,13 @@ public int EndTextCommandThefeedPostMessagetextGxtEntry(string _txdName, string public int EndTextCommandThefeedPostMessagetextTu(string _txdName, string _textureName, bool _flash, int _iconType, string _sender, string _subject, float _duration) { unsafe { - if (fn__endTextCommandThefeedPostMessagetextTu == null) fn__endTextCommandThefeedPostMessagetextTu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextTu"); + if (fn__endTextCommandThefeedPostMessagetextTu == null) fn__endTextCommandThefeedPostMessagetextTu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextTu"); var success = false; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); var ptr_sender = MemoryUtils.StringToHGlobalUtf8(_sender); var ptr_subject = MemoryUtils.StringToHGlobalUtf8(_subject); - var result = fn__endTextCommandThefeedPostMessagetextTu(&success, ptr_txdName, ptr_textureName, _flash, _iconType, ptr_sender, ptr_subject, _duration); + var result = fn__endTextCommandThefeedPostMessagetextTu(&success, ptr_txdName, ptr_textureName, (byte) (_flash ? 1 : 0), _iconType, ptr_sender, ptr_subject, _duration); Marshal.FreeHGlobal(ptr_txdName); Marshal.FreeHGlobal(ptr_textureName); Marshal.FreeHGlobal(ptr_sender); @@ -49392,14 +49392,14 @@ public int EndTextCommandThefeedPostMessagetextTu(string _txdName, string _textu public int EndTextCommandThefeedPostMessagetextWithCrewTag(string _txdName, string _textureName, bool _flash, int _iconType, string _sender, string _subject, float _duration, string _clanTag) { unsafe { - if (fn__endTextCommandThefeedPostMessagetextWithCrewTag == null) fn__endTextCommandThefeedPostMessagetextWithCrewTag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextWithCrewTag"); + if (fn__endTextCommandThefeedPostMessagetextWithCrewTag == null) fn__endTextCommandThefeedPostMessagetextWithCrewTag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextWithCrewTag"); var success = false; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); var ptr_sender = MemoryUtils.StringToHGlobalUtf8(_sender); var ptr_subject = MemoryUtils.StringToHGlobalUtf8(_subject); var ptr_clanTag = MemoryUtils.StringToHGlobalUtf8(_clanTag); - var result = fn__endTextCommandThefeedPostMessagetextWithCrewTag(&success, ptr_txdName, ptr_textureName, _flash, _iconType, ptr_sender, ptr_subject, _duration, ptr_clanTag); + var result = fn__endTextCommandThefeedPostMessagetextWithCrewTag(&success, ptr_txdName, ptr_textureName, (byte) (_flash ? 1 : 0), _iconType, ptr_sender, ptr_subject, _duration, ptr_clanTag); Marshal.FreeHGlobal(ptr_txdName); Marshal.FreeHGlobal(ptr_textureName); Marshal.FreeHGlobal(ptr_sender); @@ -49413,14 +49413,14 @@ public int EndTextCommandThefeedPostMessagetextWithCrewTag(string _txdName, stri public int EndTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(string _txdName, string _textureName, bool _flash, int _iconType1, string _sender, string _subject, float _duration, string _clanTag, int _iconType2, int _p9) { unsafe { - if (fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon == null) fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon"); + if (fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon == null) fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon"); var success = false; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); var ptr_textureName = MemoryUtils.StringToHGlobalUtf8(_textureName); var ptr_sender = MemoryUtils.StringToHGlobalUtf8(_sender); var ptr_subject = MemoryUtils.StringToHGlobalUtf8(_subject); var ptr_clanTag = MemoryUtils.StringToHGlobalUtf8(_clanTag); - var result = fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(&success, ptr_txdName, ptr_textureName, _flash, _iconType1, ptr_sender, ptr_subject, _duration, ptr_clanTag, _iconType2, _p9); + var result = fn__endTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(&success, ptr_txdName, ptr_textureName, (byte) (_flash ? 1 : 0), _iconType1, ptr_sender, ptr_subject, _duration, ptr_clanTag, _iconType2, _p9); Marshal.FreeHGlobal(ptr_txdName); Marshal.FreeHGlobal(ptr_textureName); Marshal.FreeHGlobal(ptr_sender); @@ -49434,9 +49434,9 @@ public int EndTextCommandThefeedPostMessagetextWithCrewTagAndAdditionalIcon(stri public int EndTextCommandThefeedPostTicker(bool _blink, bool _p1) { unsafe { - if (fn__endTextCommandThefeedPostTicker == null) fn__endTextCommandThefeedPostTicker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTicker"); + if (fn__endTextCommandThefeedPostTicker == null) fn__endTextCommandThefeedPostTicker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTicker"); var success = false; - var result = fn__endTextCommandThefeedPostTicker(&success, _blink, _p1); + var result = fn__endTextCommandThefeedPostTicker(&success, (byte) (_blink ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -49445,9 +49445,9 @@ public int EndTextCommandThefeedPostTicker(bool _blink, bool _p1) public int EndTextCommandThefeedPostTickerForced(bool _blink, bool _p1) { unsafe { - if (fn__endTextCommandThefeedPostTickerForced == null) fn__endTextCommandThefeedPostTickerForced = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTickerForced"); + if (fn__endTextCommandThefeedPostTickerForced == null) fn__endTextCommandThefeedPostTickerForced = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTickerForced"); var success = false; - var result = fn__endTextCommandThefeedPostTickerForced(&success, _blink, _p1); + var result = fn__endTextCommandThefeedPostTickerForced(&success, (byte) (_blink ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -49456,9 +49456,9 @@ public int EndTextCommandThefeedPostTickerForced(bool _blink, bool _p1) public int EndTextCommandThefeedPostTickerWithTokens(bool _blink, bool _p1) { unsafe { - if (fn__endTextCommandThefeedPostTickerWithTokens == null) fn__endTextCommandThefeedPostTickerWithTokens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTickerWithTokens"); + if (fn__endTextCommandThefeedPostTickerWithTokens == null) fn__endTextCommandThefeedPostTickerWithTokens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostTickerWithTokens"); var success = false; - var result = fn__endTextCommandThefeedPostTickerWithTokens(&success, _blink, _p1); + var result = fn__endTextCommandThefeedPostTickerWithTokens(&success, (byte) (_blink ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -49484,10 +49484,10 @@ public int EndTextCommandThefeedPostAward(string _textureDict, string _textureNa public int EndTextCommandThefeedPostCrewtag(bool _p0, bool _p1, ref int _p2, int _p3, bool _isLeader, bool _unk0, int _clanDesc, int _R, int _G, int _B) { unsafe { - if (fn__endTextCommandThefeedPostCrewtag == null) fn__endTextCommandThefeedPostCrewtag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewtag"); + if (fn__endTextCommandThefeedPostCrewtag == null) fn__endTextCommandThefeedPostCrewtag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewtag"); var success = false; var ref_p2 = _p2; - var result = fn__endTextCommandThefeedPostCrewtag(&success, _p0, _p1, &ref_p2, _p3, _isLeader, _unk0, _clanDesc, _R, _G, _B); + var result = fn__endTextCommandThefeedPostCrewtag(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), &ref_p2, _p3, (byte) (_isLeader ? 1 : 0), (byte) (_unk0 ? 1 : 0), _clanDesc, _R, _G, _B); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); return result; @@ -49497,11 +49497,11 @@ public int EndTextCommandThefeedPostCrewtag(bool _p0, bool _p1, ref int _p2, int public int EndTextCommandThefeedPostCrewtagWithGameName(bool _p0, bool _p1, ref int _p2, int _p3, bool _isLeader, bool _unk0, int _clanDesc, string _playerName, int _R, int _G, int _B) { unsafe { - if (fn__endTextCommandThefeedPostCrewtagWithGameName == null) fn__endTextCommandThefeedPostCrewtagWithGameName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewtagWithGameName"); + if (fn__endTextCommandThefeedPostCrewtagWithGameName == null) fn__endTextCommandThefeedPostCrewtagWithGameName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewtagWithGameName"); var success = false; var ref_p2 = _p2; var ptr_playerName = MemoryUtils.StringToHGlobalUtf8(_playerName); - var result = fn__endTextCommandThefeedPostCrewtagWithGameName(&success, _p0, _p1, &ref_p2, _p3, _isLeader, _unk0, _clanDesc, ptr_playerName, _R, _G, _B); + var result = fn__endTextCommandThefeedPostCrewtagWithGameName(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0), &ref_p2, _p3, (byte) (_isLeader ? 1 : 0), (byte) (_unk0 ? 1 : 0), _clanDesc, ptr_playerName, _R, _G, _B); _p2 = ref_p2; Marshal.FreeHGlobal(ptr_playerName); if (!success) throw new Exception("Native execution failed"); @@ -49545,9 +49545,9 @@ public int EndTextCommandThefeedPostUnlockTuWithColor(int _p0, int _p1, int _p2, public int EndTextCommandThefeedPostMpticker(bool _blink, bool _p1) { unsafe { - if (fn__endTextCommandThefeedPostMpticker == null) fn__endTextCommandThefeedPostMpticker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMpticker"); + if (fn__endTextCommandThefeedPostMpticker == null) fn__endTextCommandThefeedPostMpticker = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostMpticker"); var success = false; - var result = fn__endTextCommandThefeedPostMpticker(&success, _blink, _p1); + var result = fn__endTextCommandThefeedPostMpticker(&success, (byte) (_blink ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -49556,12 +49556,12 @@ public int EndTextCommandThefeedPostMpticker(bool _blink, bool _p1) public int EndTextCommandThefeedPostCrewRankup(string _p0, string _p1, string _p2, bool _p3, bool _p4) { unsafe { - if (fn__endTextCommandThefeedPostCrewRankup == null) fn__endTextCommandThefeedPostCrewRankup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewRankup"); + if (fn__endTextCommandThefeedPostCrewRankup == null) fn__endTextCommandThefeedPostCrewRankup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandThefeedPostCrewRankup"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); - var result = fn__endTextCommandThefeedPostCrewRankup(&success, ptr_p0, ptr_p1, ptr_p2, _p3, _p4); + var result = fn__endTextCommandThefeedPostCrewRankup(&success, ptr_p0, ptr_p1, ptr_p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p0); Marshal.FreeHGlobal(ptr_p1); Marshal.FreeHGlobal(ptr_p2); @@ -49632,9 +49632,9 @@ public void BeginTextCommandPrint(string _GxtEntry) public void EndTextCommandPrint(int _duration, bool _drawImmediately) { unsafe { - if (fn__endTextCommandPrint == null) fn__endTextCommandPrint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandPrint"); + if (fn__endTextCommandPrint == null) fn__endTextCommandPrint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandPrint"); var success = false; - fn__endTextCommandPrint(&success, _duration, _drawImmediately); + fn__endTextCommandPrint(&success, _duration, (byte) (_drawImmediately ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49654,11 +49654,11 @@ public void BeginTextCommandIsMessageDisplayed(string _text) public bool EndTextCommandIsMessageDisplayed() { unsafe { - if (fn__endTextCommandIsMessageDisplayed == null) fn__endTextCommandIsMessageDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandIsMessageDisplayed"); + if (fn__endTextCommandIsMessageDisplayed == null) fn__endTextCommandIsMessageDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandIsMessageDisplayed"); var success = false; var result = fn__endTextCommandIsMessageDisplayed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -49699,9 +49699,9 @@ public void BeginTextCommandGetWidth(string _text) public float EndTextCommandGetWidth(bool _p0) { unsafe { - if (fn__endTextCommandGetWidth == null) fn__endTextCommandGetWidth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandGetWidth"); + if (fn__endTextCommandGetWidth == null) fn__endTextCommandGetWidth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandGetWidth"); var success = false; - var result = fn__endTextCommandGetWidth(&success, _p0); + var result = fn__endTextCommandGetWidth(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -49745,9 +49745,9 @@ public void BeginTextCommandDisplayHelp(string _inputType) public void EndTextCommandDisplayHelp(int _p0, bool _loop, bool _beep, int _shape) { unsafe { - if (fn__endTextCommandDisplayHelp == null) fn__endTextCommandDisplayHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandDisplayHelp"); + if (fn__endTextCommandDisplayHelp == null) fn__endTextCommandDisplayHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandDisplayHelp"); var success = false; - fn__endTextCommandDisplayHelp(&success, _p0, _loop, _beep, _shape); + fn__endTextCommandDisplayHelp(&success, _p0, (byte) (_loop ? 1 : 0), (byte) (_beep ? 1 : 0), _shape); if (!success) throw new Exception("Native execution failed"); } } @@ -49767,11 +49767,11 @@ public void BeginTextCommandIsThisHelpMessageBeingDisplayed(string _labelName) public bool EndTextCommandIsThisHelpMessageBeingDisplayed(int _p0) { unsafe { - if (fn__endTextCommandIsThisHelpMessageBeingDisplayed == null) fn__endTextCommandIsThisHelpMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandIsThisHelpMessageBeingDisplayed"); + if (fn__endTextCommandIsThisHelpMessageBeingDisplayed == null) fn__endTextCommandIsThisHelpMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandIsThisHelpMessageBeingDisplayed"); var success = false; var result = fn__endTextCommandIsThisHelpMessageBeingDisplayed(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -49812,9 +49812,9 @@ public void BeginTextCommandObjective(string _p0) public void EndTextCommandObjective(bool _p0) { unsafe { - if (fn__endTextCommandObjective == null) fn__endTextCommandObjective = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandObjective"); + if (fn__endTextCommandObjective == null) fn__endTextCommandObjective = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_endTextCommandObjective"); var success = false; - fn__endTextCommandObjective(&success, _p0); + fn__endTextCommandObjective(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -49940,9 +49940,9 @@ public void AddTextComponentSubstringTime(int _timestamp, int _flags) public void AddTextComponentFormattedInteger(int _value, bool _commaSeparated) { unsafe { - if (fn__addTextComponentFormattedInteger == null) fn__addTextComponentFormattedInteger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addTextComponentFormattedInteger"); + if (fn__addTextComponentFormattedInteger == null) fn__addTextComponentFormattedInteger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addTextComponentFormattedInteger"); var success = false; - fn__addTextComponentFormattedInteger(&success, _value, _commaSeparated); + fn__addTextComponentFormattedInteger(&success, _value, (byte) (_commaSeparated ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50108,13 +50108,13 @@ public void ClearSmallPrints() public bool DoesTextBlockExist(string _gxt) { unsafe { - if (fn__doesTextBlockExist == null) fn__doesTextBlockExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesTextBlockExist"); + if (fn__doesTextBlockExist == null) fn__doesTextBlockExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesTextBlockExist"); var success = false; var ptr_gxt = MemoryUtils.StringToHGlobalUtf8(_gxt); var result = fn__doesTextBlockExist(&success, ptr_gxt); Marshal.FreeHGlobal(ptr_gxt); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -50145,20 +50145,20 @@ public void RequestAdditionalTextForDlc(string _gxt, int _slot) public bool HasAdditionalTextLoaded(int _slot) { unsafe { - if (fn__hasAdditionalTextLoaded == null) fn__hasAdditionalTextLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAdditionalTextLoaded"); + if (fn__hasAdditionalTextLoaded == null) fn__hasAdditionalTextLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAdditionalTextLoaded"); var success = false; var result = fn__hasAdditionalTextLoaded(&success, _slot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ClearAdditionalText(int _p0, bool _p1) { unsafe { - if (fn__clearAdditionalText == null) fn__clearAdditionalText = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAdditionalText"); + if (fn__clearAdditionalText == null) fn__clearAdditionalText = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAdditionalText"); var success = false; - fn__clearAdditionalText(&success, _p0, _p1); + fn__clearAdditionalText(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50166,48 +50166,48 @@ public void ClearAdditionalText(int _p0, bool _p1) public bool IsStreamingAdditionalText(int _p0) { unsafe { - if (fn__isStreamingAdditionalText == null) fn__isStreamingAdditionalText = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamingAdditionalText"); + if (fn__isStreamingAdditionalText == null) fn__isStreamingAdditionalText = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamingAdditionalText"); var success = false; var result = fn__isStreamingAdditionalText(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasThisAdditionalTextLoaded(string _gxt, int _slot) { unsafe { - if (fn__hasThisAdditionalTextLoaded == null) fn__hasThisAdditionalTextLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasThisAdditionalTextLoaded"); + if (fn__hasThisAdditionalTextLoaded == null) fn__hasThisAdditionalTextLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasThisAdditionalTextLoaded"); var success = false; var ptr_gxt = MemoryUtils.StringToHGlobalUtf8(_gxt); var result = fn__hasThisAdditionalTextLoaded(&success, ptr_gxt, _slot); Marshal.FreeHGlobal(ptr_gxt); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsMessageBeingDisplayed() { unsafe { - if (fn__isMessageBeingDisplayed == null) fn__isMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMessageBeingDisplayed"); + if (fn__isMessageBeingDisplayed == null) fn__isMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMessageBeingDisplayed"); var success = false; var result = fn__isMessageBeingDisplayed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesTextLabelExist(string _gxt) { unsafe { - if (fn__doesTextLabelExist == null) fn__doesTextLabelExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesTextLabelExist"); + if (fn__doesTextLabelExist == null) fn__doesTextLabelExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesTextLabelExist"); var success = false; var ptr_gxt = MemoryUtils.StringToHGlobalUtf8(_gxt); var result = fn__doesTextLabelExist(&success, ptr_gxt); Marshal.FreeHGlobal(ptr_gxt); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -50281,42 +50281,42 @@ public string GetStreetNameFromHashKey(uint _hash) public bool IsHudPreferenceSwitchedOn() { unsafe { - if (fn__isHudPreferenceSwitchedOn == null) fn__isHudPreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudPreferenceSwitchedOn"); + if (fn__isHudPreferenceSwitchedOn == null) fn__isHudPreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudPreferenceSwitchedOn"); var success = false; var result = fn__isHudPreferenceSwitchedOn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsRadarPreferenceSwitchedOn() { unsafe { - if (fn__isRadarPreferenceSwitchedOn == null) fn__isRadarPreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadarPreferenceSwitchedOn"); + if (fn__isRadarPreferenceSwitchedOn == null) fn__isRadarPreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadarPreferenceSwitchedOn"); var success = false; var result = fn__isRadarPreferenceSwitchedOn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsSubtitlePreferenceSwitchedOn() { unsafe { - if (fn__isSubtitlePreferenceSwitchedOn == null) fn__isSubtitlePreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSubtitlePreferenceSwitchedOn"); + if (fn__isSubtitlePreferenceSwitchedOn == null) fn__isSubtitlePreferenceSwitchedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSubtitlePreferenceSwitchedOn"); var success = false; var result = fn__isSubtitlePreferenceSwitchedOn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void DisplayHud(bool _toggle) { unsafe { - if (fn__displayHud == null) fn__displayHud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayHud"); + if (fn__displayHud == null) fn__displayHud = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayHud"); var success = false; - fn__displayHud(&success, _toggle); + fn__displayHud(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50344,9 +50344,9 @@ public void DisplayHudWhenPausedThisFrame() public void DisplayRadar(bool _toggle) { unsafe { - if (fn__displayRadar == null) fn__displayRadar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayRadar"); + if (fn__displayRadar == null) fn__displayRadar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayRadar"); var success = false; - fn__displayRadar(&success, _toggle); + fn__displayRadar(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50354,9 +50354,9 @@ public void DisplayRadar(bool _toggle) public void _0xCD74233600C4EA6B(bool _toggle) { unsafe { - if (fn__0xCD74233600C4EA6B == null) fn__0xCD74233600C4EA6B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCD74233600C4EA6B"); + if (fn__0xCD74233600C4EA6B == null) fn__0xCD74233600C4EA6B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCD74233600C4EA6B"); var success = false; - fn__0xCD74233600C4EA6B(&success, _toggle); + fn__0xCD74233600C4EA6B(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50364,44 +50364,44 @@ public void _0xCD74233600C4EA6B(bool _toggle) public bool _0xC2D2AD9EAAE265B8() { unsafe { - if (fn__0xC2D2AD9EAAE265B8 == null) fn__0xC2D2AD9EAAE265B8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC2D2AD9EAAE265B8"); + if (fn__0xC2D2AD9EAAE265B8 == null) fn__0xC2D2AD9EAAE265B8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC2D2AD9EAAE265B8"); var success = false; var result = fn__0xC2D2AD9EAAE265B8(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsHudHidden() { unsafe { - if (fn__isHudHidden == null) fn__isHudHidden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudHidden"); + if (fn__isHudHidden == null) fn__isHudHidden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudHidden"); var success = false; var result = fn__isHudHidden(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsRadarHidden() { unsafe { - if (fn__isRadarHidden == null) fn__isRadarHidden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadarHidden"); + if (fn__isRadarHidden == null) fn__isRadarHidden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRadarHidden"); var success = false; var result = fn__isRadarHidden(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsMinimapRendering() { unsafe { - if (fn__isMinimapRendering == null) fn__isMinimapRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinimapRendering"); + if (fn__isMinimapRendering == null) fn__isMinimapRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinimapRendering"); var success = false; var result = fn__isMinimapRendering(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -50438,9 +50438,9 @@ public void _0xEB81A3DADD503187() public void SetBlipRoute(int _blip, bool _enabled) { unsafe { - if (fn__setBlipRoute == null) fn__setBlipRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipRoute"); + if (fn__setBlipRoute == null) fn__setBlipRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipRoute"); var success = false; - fn__setBlipRoute(&success, _blip, _enabled); + fn__setBlipRoute(&success, _blip, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50468,9 +50468,9 @@ public void SetBlipRouteColour(int _blip, int _colour) public void _0x2790F4B17D098E26(bool _toggle) { unsafe { - if (fn__0x2790F4B17D098E26 == null) fn__0x2790F4B17D098E26 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2790F4B17D098E26"); + if (fn__0x2790F4B17D098E26 == null) fn__0x2790F4B17D098E26 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2790F4B17D098E26"); var success = false; - fn__0x2790F4B17D098E26(&success, _toggle); + fn__0x2790F4B17D098E26(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50498,9 +50498,9 @@ public void _0xD1942374085C8469(int _p0) public void AddNextMessageToPreviousBriefs(bool _p0) { unsafe { - if (fn__addNextMessageToPreviousBriefs == null) fn__addNextMessageToPreviousBriefs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addNextMessageToPreviousBriefs"); + if (fn__addNextMessageToPreviousBriefs == null) fn__addNextMessageToPreviousBriefs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addNextMessageToPreviousBriefs"); var success = false; - fn__addNextMessageToPreviousBriefs(&success, _p0); + fn__addNextMessageToPreviousBriefs(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50626,9 +50626,9 @@ public void ReplaceHudColourWithRgba(int _hudColorIndex, int _r, int _g, int _b, public void SetAbilityBarVisibilityInMultiplayer(bool _visible) { unsafe { - if (fn__setAbilityBarVisibilityInMultiplayer == null) fn__setAbilityBarVisibilityInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAbilityBarVisibilityInMultiplayer"); + if (fn__setAbilityBarVisibilityInMultiplayer == null) fn__setAbilityBarVisibilityInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAbilityBarVisibilityInMultiplayer"); var success = false; - fn__setAbilityBarVisibilityInMultiplayer(&success, _visible); + fn__setAbilityBarVisibilityInMultiplayer(&success, (byte) (_visible ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50636,9 +50636,9 @@ public void SetAbilityBarVisibilityInMultiplayer(bool _visible) public void SetAllowAbilityBarInMultiplayer(bool _toggle) { unsafe { - if (fn__setAllowAbilityBarInMultiplayer == null) fn__setAllowAbilityBarInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllowAbilityBarInMultiplayer"); + if (fn__setAllowAbilityBarInMultiplayer == null) fn__setAllowAbilityBarInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllowAbilityBarInMultiplayer"); var success = false; - fn__setAllowAbilityBarInMultiplayer(&success, _toggle); + fn__setAllowAbilityBarInMultiplayer(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50666,9 +50666,9 @@ public void SetAbilityBarValue(float _p0, float _p1) public void FlashWantedDisplay(bool _p0) { unsafe { - if (fn__flashWantedDisplay == null) fn__flashWantedDisplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_flashWantedDisplay"); + if (fn__flashWantedDisplay == null) fn__flashWantedDisplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_flashWantedDisplay"); var success = false; - fn__flashWantedDisplay(&success, _p0); + fn__flashWantedDisplay(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50676,9 +50676,9 @@ public void FlashWantedDisplay(bool _p0) public void _0xBA8D65C1C65702E5(bool _toggle) { unsafe { - if (fn__0xBA8D65C1C65702E5 == null) fn__0xBA8D65C1C65702E5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBA8D65C1C65702E5"); + if (fn__0xBA8D65C1C65702E5 == null) fn__0xBA8D65C1C65702E5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBA8D65C1C65702E5"); var success = false; - fn__0xBA8D65C1C65702E5(&success, _toggle); + fn__0xBA8D65C1C65702E5(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50717,9 +50717,9 @@ public void SetTextColour(int _red, int _green, int _blue, int _alpha) public void SetTextCentre(bool _align) { unsafe { - if (fn__setTextCentre == null) fn__setTextCentre = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextCentre"); + if (fn__setTextCentre == null) fn__setTextCentre = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextCentre"); var success = false; - fn__setTextCentre(&success, _align); + fn__setTextCentre(&success, (byte) (_align ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50727,9 +50727,9 @@ public void SetTextCentre(bool _align) public void SetTextRightJustify(bool _toggle) { unsafe { - if (fn__setTextRightJustify == null) fn__setTextRightJustify = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextRightJustify"); + if (fn__setTextRightJustify == null) fn__setTextRightJustify = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextRightJustify"); var success = false; - fn__setTextRightJustify(&success, _toggle); + fn__setTextRightJustify(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50767,9 +50767,9 @@ public void SetTextLeading(int _p0) public void SetTextProportional(bool _p0) { unsafe { - if (fn__setTextProportional == null) fn__setTextProportional = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextProportional"); + if (fn__setTextProportional == null) fn__setTextProportional = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextProportional"); var success = false; - fn__setTextProportional(&success, _p0); + fn__setTextProportional(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50848,39 +50848,39 @@ public int GetDefaultScriptRendertargetRenderId() public bool RegisterNamedRendertarget(string _name, bool _p1) { unsafe { - if (fn__registerNamedRendertarget == null) fn__registerNamedRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_registerNamedRendertarget"); + if (fn__registerNamedRendertarget == null) fn__registerNamedRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_registerNamedRendertarget"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - var result = fn__registerNamedRendertarget(&success, ptr_name, _p1); + var result = fn__registerNamedRendertarget(&success, ptr_name, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsNamedRendertargetRegistered(string _name) { unsafe { - if (fn__isNamedRendertargetRegistered == null) fn__isNamedRendertargetRegistered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNamedRendertargetRegistered"); + if (fn__isNamedRendertargetRegistered == null) fn__isNamedRendertargetRegistered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNamedRendertargetRegistered"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__isNamedRendertargetRegistered(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ReleaseNamedRendertarget(string _name) { unsafe { - if (fn__releaseNamedRendertarget == null) fn__releaseNamedRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_releaseNamedRendertarget"); + if (fn__releaseNamedRendertarget == null) fn__releaseNamedRendertarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_releaseNamedRendertarget"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__releaseNamedRendertarget(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -50910,20 +50910,20 @@ public int GetNamedRendertargetRenderId(string _name) public bool IsNamedRendertargetLinked(uint _modelHash) { unsafe { - if (fn__isNamedRendertargetLinked == null) fn__isNamedRendertargetLinked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNamedRendertargetLinked"); + if (fn__isNamedRendertargetLinked == null) fn__isNamedRendertargetLinked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNamedRendertargetLinked"); var success = false; var result = fn__isNamedRendertargetLinked(&success, _modelHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ClearHelp(bool _toggle) { unsafe { - if (fn__clearHelp == null) fn__clearHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearHelp"); + if (fn__clearHelp == null) fn__clearHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearHelp"); var success = false; - fn__clearHelp(&success, _toggle); + fn__clearHelp(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -50931,44 +50931,44 @@ public void ClearHelp(bool _toggle) public bool IsHelpMessageOnScreen() { unsafe { - if (fn__isHelpMessageOnScreen == null) fn__isHelpMessageOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageOnScreen"); + if (fn__isHelpMessageOnScreen == null) fn__isHelpMessageOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageOnScreen"); var success = false; var result = fn__isHelpMessageOnScreen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x214CD562A939246A() { unsafe { - if (fn__0x214CD562A939246A == null) fn__0x214CD562A939246A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x214CD562A939246A"); + if (fn__0x214CD562A939246A == null) fn__0x214CD562A939246A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x214CD562A939246A"); var success = false; var result = fn__0x214CD562A939246A(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsHelpMessageBeingDisplayed() { unsafe { - if (fn__isHelpMessageBeingDisplayed == null) fn__isHelpMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageBeingDisplayed"); + if (fn__isHelpMessageBeingDisplayed == null) fn__isHelpMessageBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageBeingDisplayed"); var success = false; var result = fn__isHelpMessageBeingDisplayed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsHelpMessageFadingOut() { unsafe { - if (fn__isHelpMessageFadingOut == null) fn__isHelpMessageFadingOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageFadingOut"); + if (fn__isHelpMessageFadingOut == null) fn__isHelpMessageFadingOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHelpMessageFadingOut"); var success = false; var result = fn__isHelpMessageFadingOut(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -50985,11 +50985,11 @@ public void SetHelpMessageTextStyle(int _style, int _hudColor, int _alpha, int _ public bool GetStandardBlipEnumId() { unsafe { - if (fn__getStandardBlipEnumId == null) fn__getStandardBlipEnumId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getStandardBlipEnumId"); + if (fn__getStandardBlipEnumId == null) fn__getStandardBlipEnumId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getStandardBlipEnumId"); var success = false; var result = fn__getStandardBlipEnumId(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -51184,9 +51184,9 @@ public void TriggerSonarBlip(float _posX, float _posY, float _posZ, float _radiu public void AllowSonarBlips(bool _toggle) { unsafe { - if (fn__allowSonarBlips == null) fn__allowSonarBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_allowSonarBlips"); + if (fn__allowSonarBlips == null) fn__allowSonarBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_allowSonarBlips"); var success = false; - fn__allowSonarBlips(&success, _toggle); + fn__allowSonarBlips(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51414,42 +51414,42 @@ public int GetBlipHudColour(int _blip) public bool IsBlipShortRange(int _blip) { unsafe { - if (fn__isBlipShortRange == null) fn__isBlipShortRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipShortRange"); + if (fn__isBlipShortRange == null) fn__isBlipShortRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipShortRange"); var success = false; var result = fn__isBlipShortRange(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsBlipOnMinimap(int _blip) { unsafe { - if (fn__isBlipOnMinimap == null) fn__isBlipOnMinimap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipOnMinimap"); + if (fn__isBlipOnMinimap == null) fn__isBlipOnMinimap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipOnMinimap"); var success = false; var result = fn__isBlipOnMinimap(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesBlipHaveGpsRoute(int _blip) { unsafe { - if (fn__doesBlipHaveGpsRoute == null) fn__doesBlipHaveGpsRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesBlipHaveGpsRoute"); + if (fn__doesBlipHaveGpsRoute == null) fn__doesBlipHaveGpsRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesBlipHaveGpsRoute"); var success = false; var result = fn__doesBlipHaveGpsRoute(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetBlipHiddenOnLegend(int _blip, bool _toggle) { unsafe { - if (fn__setBlipHiddenOnLegend == null) fn__setBlipHiddenOnLegend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipHiddenOnLegend"); + if (fn__setBlipHiddenOnLegend == null) fn__setBlipHiddenOnLegend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipHiddenOnLegend"); var success = false; - fn__setBlipHiddenOnLegend(&success, _blip, _toggle); + fn__setBlipHiddenOnLegend(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51457,9 +51457,9 @@ public void SetBlipHiddenOnLegend(int _blip, bool _toggle) public void SetBlipHighDetail(int _blip, bool _toggle) { unsafe { - if (fn__setBlipHighDetail == null) fn__setBlipHighDetail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipHighDetail"); + if (fn__setBlipHighDetail == null) fn__setBlipHighDetail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipHighDetail"); var success = false; - fn__setBlipHighDetail(&success, _blip, _toggle); + fn__setBlipHighDetail(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51467,9 +51467,9 @@ public void SetBlipHighDetail(int _blip, bool _toggle) public void SetBlipAsMissionCreatorBlip(int _blip, bool _toggle) { unsafe { - if (fn__setBlipAsMissionCreatorBlip == null) fn__setBlipAsMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsMissionCreatorBlip"); + if (fn__setBlipAsMissionCreatorBlip == null) fn__setBlipAsMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsMissionCreatorBlip"); var success = false; - fn__setBlipAsMissionCreatorBlip(&success, _blip, _toggle); + fn__setBlipAsMissionCreatorBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51477,11 +51477,11 @@ public void SetBlipAsMissionCreatorBlip(int _blip, bool _toggle) public bool IsMissionCreatorBlip(int _blip) { unsafe { - if (fn__isMissionCreatorBlip == null) fn__isMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCreatorBlip"); + if (fn__isMissionCreatorBlip == null) fn__isMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionCreatorBlip"); var success = false; var result = fn__isMissionCreatorBlip(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -51499,20 +51499,20 @@ public int GetNewSelectedMissionCreatorBlip() public bool IsHoveringOverMissionCreatorBlip() { unsafe { - if (fn__isHoveringOverMissionCreatorBlip == null) fn__isHoveringOverMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHoveringOverMissionCreatorBlip"); + if (fn__isHoveringOverMissionCreatorBlip == null) fn__isHoveringOverMissionCreatorBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHoveringOverMissionCreatorBlip"); var success = false; var result = fn__isHoveringOverMissionCreatorBlip(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ShowStartMissionInstructionalButton(bool _p0) { unsafe { - if (fn__showStartMissionInstructionalButton == null) fn__showStartMissionInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showStartMissionInstructionalButton"); + if (fn__showStartMissionInstructionalButton == null) fn__showStartMissionInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showStartMissionInstructionalButton"); var success = false; - fn__showStartMissionInstructionalButton(&success, _p0); + fn__showStartMissionInstructionalButton(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51540,9 +51540,9 @@ public void _0xB552929B85FC27EC(int _p0, int _p1) public void SetBlipFlashes(int _blip, bool _toggle) { unsafe { - if (fn__setBlipFlashes == null) fn__setBlipFlashes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipFlashes"); + if (fn__setBlipFlashes == null) fn__setBlipFlashes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipFlashes"); var success = false; - fn__setBlipFlashes(&success, _blip, _toggle); + fn__setBlipFlashes(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51550,9 +51550,9 @@ public void SetBlipFlashes(int _blip, bool _toggle) public void SetBlipFlashesAlternate(int _blip, bool _toggle) { unsafe { - if (fn__setBlipFlashesAlternate == null) fn__setBlipFlashesAlternate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipFlashesAlternate"); + if (fn__setBlipFlashesAlternate == null) fn__setBlipFlashesAlternate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipFlashesAlternate"); var success = false; - fn__setBlipFlashesAlternate(&success, _blip, _toggle); + fn__setBlipFlashesAlternate(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51560,20 +51560,20 @@ public void SetBlipFlashesAlternate(int _blip, bool _toggle) public bool IsBlipFlashing(int _blip) { unsafe { - if (fn__isBlipFlashing == null) fn__isBlipFlashing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipFlashing"); + if (fn__isBlipFlashing == null) fn__isBlipFlashing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBlipFlashing"); var success = false; var result = fn__isBlipFlashing(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetBlipAsShortRange(int _blip, bool _toggle) { unsafe { - if (fn__setBlipAsShortRange == null) fn__setBlipAsShortRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsShortRange"); + if (fn__setBlipAsShortRange == null) fn__setBlipAsShortRange = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsShortRange"); var success = false; - fn__setBlipAsShortRange(&success, _blip, _toggle); + fn__setBlipAsShortRange(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51643,9 +51643,9 @@ public void RemoveBlip(ref int _blip) public void SetBlipAsFriendly(int _blip, bool _toggle) { unsafe { - if (fn__setBlipAsFriendly == null) fn__setBlipAsFriendly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsFriendly"); + if (fn__setBlipAsFriendly == null) fn__setBlipAsFriendly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsFriendly"); var success = false; - fn__setBlipAsFriendly(&success, _blip, _toggle); + fn__setBlipAsFriendly(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51683,9 +51683,9 @@ public void HideNumberOnBlip(int _blip) public void ShowHeightOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showHeightOnBlip == null) fn__showHeightOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showHeightOnBlip"); + if (fn__showHeightOnBlip == null) fn__showHeightOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showHeightOnBlip"); var success = false; - fn__showHeightOnBlip(&success, _blip, _toggle); + fn__showHeightOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51693,9 +51693,9 @@ public void ShowHeightOnBlip(int _blip, bool _toggle) public void ShowTickOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showTickOnBlip == null) fn__showTickOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showTickOnBlip"); + if (fn__showTickOnBlip == null) fn__showTickOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showTickOnBlip"); var success = false; - fn__showTickOnBlip(&success, _blip, _toggle); + fn__showTickOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51703,9 +51703,9 @@ public void ShowTickOnBlip(int _blip, bool _toggle) public void ShowHeadingIndicatorOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showHeadingIndicatorOnBlip == null) fn__showHeadingIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showHeadingIndicatorOnBlip"); + if (fn__showHeadingIndicatorOnBlip == null) fn__showHeadingIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showHeadingIndicatorOnBlip"); var success = false; - fn__showHeadingIndicatorOnBlip(&success, _blip, _toggle); + fn__showHeadingIndicatorOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51713,9 +51713,9 @@ public void ShowHeadingIndicatorOnBlip(int _blip, bool _toggle) public void ShowOutlineIndicatorOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showOutlineIndicatorOnBlip == null) fn__showOutlineIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showOutlineIndicatorOnBlip"); + if (fn__showOutlineIndicatorOnBlip == null) fn__showOutlineIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showOutlineIndicatorOnBlip"); var success = false; - fn__showOutlineIndicatorOnBlip(&success, _blip, _toggle); + fn__showOutlineIndicatorOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51723,9 +51723,9 @@ public void ShowOutlineIndicatorOnBlip(int _blip, bool _toggle) public void ShowFriendIndicatorOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showFriendIndicatorOnBlip == null) fn__showFriendIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showFriendIndicatorOnBlip"); + if (fn__showFriendIndicatorOnBlip == null) fn__showFriendIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showFriendIndicatorOnBlip"); var success = false; - fn__showFriendIndicatorOnBlip(&success, _blip, _toggle); + fn__showFriendIndicatorOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51733,9 +51733,9 @@ public void ShowFriendIndicatorOnBlip(int _blip, bool _toggle) public void ShowCrewIndicatorOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__showCrewIndicatorOnBlip == null) fn__showCrewIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showCrewIndicatorOnBlip"); + if (fn__showCrewIndicatorOnBlip == null) fn__showCrewIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_showCrewIndicatorOnBlip"); var success = false; - fn__showCrewIndicatorOnBlip(&success, _blip, _toggle); + fn__showCrewIndicatorOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51743,9 +51743,9 @@ public void ShowCrewIndicatorOnBlip(int _blip, bool _toggle) public void SetBlipDisplayIndicatorOnBlip(int _blip, bool _toggle) { unsafe { - if (fn__setBlipDisplayIndicatorOnBlip == null) fn__setBlipDisplayIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipDisplayIndicatorOnBlip"); + if (fn__setBlipDisplayIndicatorOnBlip == null) fn__setBlipDisplayIndicatorOnBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipDisplayIndicatorOnBlip"); var success = false; - fn__setBlipDisplayIndicatorOnBlip(&success, _blip, _toggle); + fn__setBlipDisplayIndicatorOnBlip(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51773,9 +51773,9 @@ public void _0x2C9F302398E13141(int _p0, int _p1) public void SetBlipAsMinimalOnEdge(int _blip, bool _toggle) { unsafe { - if (fn__setBlipAsMinimalOnEdge == null) fn__setBlipAsMinimalOnEdge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsMinimalOnEdge"); + if (fn__setBlipAsMinimalOnEdge == null) fn__setBlipAsMinimalOnEdge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipAsMinimalOnEdge"); var success = false; - fn__setBlipAsMinimalOnEdge(&success, _blip, _toggle); + fn__setBlipAsMinimalOnEdge(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51783,9 +51783,9 @@ public void SetBlipAsMinimalOnEdge(int _blip, bool _toggle) public void SetRadiusBlipEdge(int _blip, bool _toggle) { unsafe { - if (fn__setRadiusBlipEdge == null) fn__setRadiusBlipEdge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadiusBlipEdge"); + if (fn__setRadiusBlipEdge == null) fn__setRadiusBlipEdge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRadiusBlipEdge"); var success = false; - fn__setRadiusBlipEdge(&success, _blip, _toggle); + fn__setRadiusBlipEdge(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51793,11 +51793,11 @@ public void SetRadiusBlipEdge(int _blip, bool _toggle) public bool DoesBlipExist(int _blip) { unsafe { - if (fn__doesBlipExist == null) fn__doesBlipExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesBlipExist"); + if (fn__doesBlipExist == null) fn__doesBlipExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesBlipExist"); var success = false; var result = fn__doesBlipExist(&success, _blip); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -51834,11 +51834,11 @@ public void RefreshWaypoint() public bool IsWaypointActive() { unsafe { - if (fn__isWaypointActive == null) fn__isWaypointActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointActive"); + if (fn__isWaypointActive == null) fn__isWaypointActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointActive"); var success = false; var result = fn__isWaypointActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -51855,9 +51855,9 @@ public void SetNewWaypoint(float _x, float _y) public void SetBlipBright(int _blip, bool _toggle) { unsafe { - if (fn__setBlipBright == null) fn__setBlipBright = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipBright"); + if (fn__setBlipBright == null) fn__setBlipBright = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipBright"); var success = false; - fn__setBlipBright(&success, _blip, _toggle); + fn__setBlipBright(&success, _blip, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51865,9 +51865,9 @@ public void SetBlipBright(int _blip, bool _toggle) public void SetBlipShowCone(int _blip, bool _toggle, int _p2) { unsafe { - if (fn__setBlipShowCone == null) fn__setBlipShowCone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipShowCone"); + if (fn__setBlipShowCone == null) fn__setBlipShowCone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlipShowCone"); var success = false; - fn__setBlipShowCone(&success, _blip, _toggle, _p2); + fn__setBlipShowCone(&success, _blip, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -51916,9 +51916,9 @@ public void _0x8410C5E0CD847B9D() public int SetMinimapComponent(int _componentId, bool _toggle, int _overrideColor) { unsafe { - if (fn__setMinimapComponent == null) fn__setMinimapComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapComponent"); + if (fn__setMinimapComponent == null) fn__setMinimapComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapComponent"); var success = false; - var result = fn__setMinimapComponent(&success, _componentId, _toggle, _overrideColor); + var result = fn__setMinimapComponent(&success, _componentId, (byte) (_toggle ? 1 : 0), _overrideColor); if (!success) throw new Exception("Native execution failed"); return result; } @@ -51927,9 +51927,9 @@ public int SetMinimapComponent(int _componentId, bool _toggle, int _overrideColo public void SetMinimapSonarEnabled(bool _toggle) { unsafe { - if (fn__setMinimapSonarEnabled == null) fn__setMinimapSonarEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapSonarEnabled"); + if (fn__setMinimapSonarEnabled == null) fn__setMinimapSonarEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapSonarEnabled"); var success = false; - fn__setMinimapSonarEnabled(&success, _toggle); + fn__setMinimapSonarEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51958,9 +51958,9 @@ public int GetMainPlayerBlipId() public void _0x41350B4FC28E3941(bool _p0) { unsafe { - if (fn__0x41350B4FC28E3941 == null) fn__0x41350B4FC28E3941 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x41350B4FC28E3941"); + if (fn__0x41350B4FC28E3941 == null) fn__0x41350B4FC28E3941 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x41350B4FC28E3941"); var success = false; - fn__0x41350B4FC28E3941(&success, _p0); + fn__0x41350B4FC28E3941(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51988,9 +51988,9 @@ public void SetRadarAsInteriorThisFrame(uint _interior, float _x, float _y, int public void SetInteriorZoomLevelIncreased(bool _toggle) { unsafe { - if (fn__setInteriorZoomLevelIncreased == null) fn__setInteriorZoomLevelIncreased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorZoomLevelIncreased"); + if (fn__setInteriorZoomLevelIncreased == null) fn__setInteriorZoomLevelIncreased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorZoomLevelIncreased"); var success = false; - fn__setInteriorZoomLevelIncreased(&success, _toggle); + fn__setInteriorZoomLevelIncreased(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -51998,9 +51998,9 @@ public void SetInteriorZoomLevelIncreased(bool _toggle) public void SetInteriorZoomLevelDecreased(bool _toggle) { unsafe { - if (fn__setInteriorZoomLevelDecreased == null) fn__setInteriorZoomLevelDecreased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorZoomLevelDecreased"); + if (fn__setInteriorZoomLevelDecreased == null) fn__setInteriorZoomLevelDecreased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorZoomLevelDecreased"); var success = false; - fn__setInteriorZoomLevelDecreased(&success, _toggle); + fn__setInteriorZoomLevelDecreased(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52038,11 +52038,11 @@ public void _0xA17784FCA9548D15(int _p0, int _p1, int _p2) public bool IsMinimapInInterior() { unsafe { - if (fn__isMinimapInInterior == null) fn__isMinimapInInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinimapInInterior"); + if (fn__isMinimapInInterior == null) fn__isMinimapInInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinimapInInterior"); var success = false; var result = fn__isMinimapInInterior(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -52069,9 +52069,9 @@ public void HideMinimapInteriorMapThisFrame() public void SetToggleMinimapHeistIsland(bool _toggle) { unsafe { - if (fn__setToggleMinimapHeistIsland == null) fn__setToggleMinimapHeistIsland = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setToggleMinimapHeistIsland"); + if (fn__setToggleMinimapHeistIsland == null) fn__setToggleMinimapHeistIsland = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setToggleMinimapHeistIsland"); var success = false; - fn__setToggleMinimapHeistIsland(&success, _toggle); + fn__setToggleMinimapHeistIsland(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52109,9 +52109,9 @@ public void SetWidescreenFormat(int _p0) public void DisplayAreaName(bool _toggle) { unsafe { - if (fn__displayAreaName == null) fn__displayAreaName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayAreaName"); + if (fn__displayAreaName == null) fn__displayAreaName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayAreaName"); var success = false; - fn__displayAreaName(&success, _toggle); + fn__displayAreaName(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52119,9 +52119,9 @@ public void DisplayAreaName(bool _toggle) public void DisplayCash(bool _toggle) { unsafe { - if (fn__displayCash == null) fn__displayCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayCash"); + if (fn__displayCash == null) fn__displayCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayCash"); var success = false; - fn__displayCash(&success, _toggle); + fn__displayCash(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52129,9 +52129,9 @@ public void DisplayCash(bool _toggle) public void _0x170F541E1CADD1DE(bool _p0) { unsafe { - if (fn__0x170F541E1CADD1DE == null) fn__0x170F541E1CADD1DE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x170F541E1CADD1DE"); + if (fn__0x170F541E1CADD1DE == null) fn__0x170F541E1CADD1DE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x170F541E1CADD1DE"); var success = false; - fn__0x170F541E1CADD1DE(&success, _p0); + fn__0x170F541E1CADD1DE(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52149,9 +52149,9 @@ public void SetPlayerCashChange(int _cash, int _bank) public void DisplayAmmoThisFrame(bool _display) { unsafe { - if (fn__displayAmmoThisFrame == null) fn__displayAmmoThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayAmmoThisFrame"); + if (fn__displayAmmoThisFrame == null) fn__displayAmmoThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayAmmoThisFrame"); var success = false; - fn__displayAmmoThisFrame(&success, _display); + fn__displayAmmoThisFrame(&success, (byte) (_display ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52179,9 +52179,9 @@ public void HideHudAndRadarThisFrame() public void _0xE67C6DFD386EA5E7(bool _p0) { unsafe { - if (fn__0xE67C6DFD386EA5E7 == null) fn__0xE67C6DFD386EA5E7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE67C6DFD386EA5E7"); + if (fn__0xE67C6DFD386EA5E7 == null) fn__0xE67C6DFD386EA5E7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE67C6DFD386EA5E7"); var success = false; - fn__0xE67C6DFD386EA5E7(&success, _p0); + fn__0xE67C6DFD386EA5E7(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52259,21 +52259,21 @@ public void HideHelpTextThisFrame() public bool _0x801879A9B4F4B2FB() { unsafe { - if (fn__0x801879A9B4F4B2FB == null) fn__0x801879A9B4F4B2FB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x801879A9B4F4B2FB"); + if (fn__0x801879A9B4F4B2FB == null) fn__0x801879A9B4F4B2FB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x801879A9B4F4B2FB"); var success = false; var result = fn__0x801879A9B4F4B2FB(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void DisplayHelpTextThisFrame(string _message, bool _p1) { unsafe { - if (fn__displayHelpTextThisFrame == null) fn__displayHelpTextThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayHelpTextThisFrame"); + if (fn__displayHelpTextThisFrame == null) fn__displayHelpTextThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayHelpTextThisFrame"); var success = false; var ptr_message = MemoryUtils.StringToHGlobalUtf8(_message); - fn__displayHelpTextThisFrame(&success, ptr_message, _p1); + fn__displayHelpTextThisFrame(&success, ptr_message, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_message); if (!success) throw new Exception("Native execution failed"); } @@ -52282,9 +52282,9 @@ public void DisplayHelpTextThisFrame(string _message, bool _p1) public void HudForceWeaponWheel(bool _show) { unsafe { - if (fn__hudForceWeaponWheel == null) fn__hudForceWeaponWheel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hudForceWeaponWheel"); + if (fn__hudForceWeaponWheel == null) fn__hudForceWeaponWheel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hudForceWeaponWheel"); var success = false; - fn__hudForceWeaponWheel(&success, _show); + fn__hudForceWeaponWheel(&success, (byte) (_show ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52344,9 +52344,9 @@ public uint HudWeaponWheelGetSlotHash(int _weaponTypeIndex) public void HudWeaponWheelIgnoreControlInput(bool _toggle) { unsafe { - if (fn__hudWeaponWheelIgnoreControlInput == null) fn__hudWeaponWheelIgnoreControlInput = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hudWeaponWheelIgnoreControlInput"); + if (fn__hudWeaponWheelIgnoreControlInput == null) fn__hudWeaponWheelIgnoreControlInput = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hudWeaponWheelIgnoreControlInput"); var success = false; - fn__hudWeaponWheelIgnoreControlInput(&success, _toggle); + fn__hudWeaponWheelIgnoreControlInput(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52374,9 +52374,9 @@ public void ClearGpsFlags() public void SetRaceTrackRender(bool _toggle) { unsafe { - if (fn__setRaceTrackRender == null) fn__setRaceTrackRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRaceTrackRender"); + if (fn__setRaceTrackRender == null) fn__setRaceTrackRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRaceTrackRender"); var success = false; - fn__setRaceTrackRender(&success, _toggle); + fn__setRaceTrackRender(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52394,9 +52394,9 @@ public void ClearGpsRaceTrack() public void StartGpsCustomRoute(int _hudColor, bool _displayOnFoot, bool _followPlayer) { unsafe { - if (fn__startGpsCustomRoute == null) fn__startGpsCustomRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startGpsCustomRoute"); + if (fn__startGpsCustomRoute == null) fn__startGpsCustomRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startGpsCustomRoute"); var success = false; - fn__startGpsCustomRoute(&success, _hudColor, _displayOnFoot, _followPlayer); + fn__startGpsCustomRoute(&success, _hudColor, (byte) (_displayOnFoot ? 1 : 0), (byte) (_followPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52414,9 +52414,9 @@ public void AddPointToGpsCustomRoute(float _x, float _y, float _z) public void SetGpsCustomRouteRender(bool _toggle, int _radarThickness, int _mapThickness) { unsafe { - if (fn__setGpsCustomRouteRender == null) fn__setGpsCustomRouteRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsCustomRouteRender"); + if (fn__setGpsCustomRouteRender == null) fn__setGpsCustomRouteRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsCustomRouteRender"); var success = false; - fn__setGpsCustomRouteRender(&success, _toggle, _radarThickness, _mapThickness); + fn__setGpsCustomRouteRender(&success, (byte) (_toggle ? 1 : 0), _radarThickness, _mapThickness); if (!success) throw new Exception("Native execution failed"); } } @@ -52434,9 +52434,9 @@ public void ClearGpsCustomRoute() public void StartGpsMultiRoute(int _hudColor, bool _routeFromPlayer, bool _displayOnFoot) { unsafe { - if (fn__startGpsMultiRoute == null) fn__startGpsMultiRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startGpsMultiRoute"); + if (fn__startGpsMultiRoute == null) fn__startGpsMultiRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startGpsMultiRoute"); var success = false; - fn__startGpsMultiRoute(&success, _hudColor, _routeFromPlayer, _displayOnFoot); + fn__startGpsMultiRoute(&success, _hudColor, (byte) (_routeFromPlayer ? 1 : 0), (byte) (_displayOnFoot ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52454,9 +52454,9 @@ public void AddPointToGpsMultiRoute(float _x, float _y, float _z) public void SetGpsMultiRouteRender(bool _toggle) { unsafe { - if (fn__setGpsMultiRouteRender == null) fn__setGpsMultiRouteRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsMultiRouteRender"); + if (fn__setGpsMultiRouteRender == null) fn__setGpsMultiRouteRender = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsMultiRouteRender"); var success = false; - fn__setGpsMultiRouteRender(&success, _toggle); + fn__setGpsMultiRouteRender(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52484,9 +52484,9 @@ public void ClearGpsPlayerWaypoint() public void SetGpsFlashes(bool _toggle) { unsafe { - if (fn__setGpsFlashes == null) fn__setGpsFlashes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsFlashes"); + if (fn__setGpsFlashes == null) fn__setGpsFlashes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGpsFlashes"); var success = false; - fn__setGpsFlashes(&success, _toggle); + fn__setGpsFlashes(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52524,9 +52524,9 @@ public void FlashMinimapDisplayWithColor(int _hudColorIndex) public void ToggleStealthRadar(bool _toggle) { unsafe { - if (fn__toggleStealthRadar == null) fn__toggleStealthRadar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleStealthRadar"); + if (fn__toggleStealthRadar == null) fn__toggleStealthRadar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleStealthRadar"); var success = false; - fn__toggleStealthRadar(&success, _toggle); + fn__toggleStealthRadar(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52535,9 +52535,9 @@ public void ToggleStealthRadar(bool _toggle) public void SetMinimapInSpectatorMode(bool _toggle, int _ped) { unsafe { - if (fn__setMinimapInSpectatorMode == null) fn__setMinimapInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapInSpectatorMode"); + if (fn__setMinimapInSpectatorMode == null) fn__setMinimapInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapInSpectatorMode"); var success = false; - fn__setMinimapInSpectatorMode(&success, _toggle, _ped); + fn__setMinimapInSpectatorMode(&success, (byte) (_toggle ? 1 : 0), _ped); if (!success) throw new Exception("Native execution failed"); } } @@ -52545,10 +52545,10 @@ public void SetMinimapInSpectatorMode(bool _toggle, int _ped) public void SetMissionName(bool _p0, string _name) { unsafe { - if (fn__setMissionName == null) fn__setMissionName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionName"); + if (fn__setMissionName == null) fn__setMissionName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionName"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - fn__setMissionName(&success, _p0, ptr_name); + fn__setMissionName(&success, (byte) (_p0 ? 1 : 0), ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); } @@ -52557,10 +52557,10 @@ public void SetMissionName(bool _p0, string _name) public void SetMissionName2(bool _p0, string _name) { unsafe { - if (fn__setMissionName2 == null) fn__setMissionName2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionName2"); + if (fn__setMissionName2 == null) fn__setMissionName2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionName2"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - fn__setMissionName2(&success, _p0, ptr_name); + fn__setMissionName2(&success, (byte) (_p0 ? 1 : 0), ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); } @@ -52569,7 +52569,7 @@ public void SetMissionName2(bool _p0, string _name) public void _0x817B86108EB94E51(bool _p0, ref int _p1, ref int _p2, ref int _p3, ref int _p4, ref int _p5, ref int _p6, ref int _p7, ref int _p8) { unsafe { - if (fn__0x817B86108EB94E51 == null) fn__0x817B86108EB94E51 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x817B86108EB94E51"); + if (fn__0x817B86108EB94E51 == null) fn__0x817B86108EB94E51 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x817B86108EB94E51"); var success = false; var ref_p1 = _p1; var ref_p2 = _p2; @@ -52579,7 +52579,7 @@ public void _0x817B86108EB94E51(bool _p0, ref int _p1, ref int _p2, ref int _p3, var ref_p6 = _p6; var ref_p7 = _p7; var ref_p8 = _p8; - fn__0x817B86108EB94E51(&success, _p0, &ref_p1, &ref_p2, &ref_p3, &ref_p4, &ref_p5, &ref_p6, &ref_p7, &ref_p8); + fn__0x817B86108EB94E51(&success, (byte) (_p0 ? 1 : 0), &ref_p1, &ref_p2, &ref_p3, &ref_p4, &ref_p5, &ref_p6, &ref_p7, &ref_p8); _p1 = ref_p1; _p2 = ref_p2; _p3 = ref_p3; @@ -52595,9 +52595,9 @@ public void _0x817B86108EB94E51(bool _p0, ref int _p1, ref int _p2, ref int _p3, public void SetMinimapBlockWaypoint(bool _toggle) { unsafe { - if (fn__setMinimapBlockWaypoint == null) fn__setMinimapBlockWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapBlockWaypoint"); + if (fn__setMinimapBlockWaypoint == null) fn__setMinimapBlockWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapBlockWaypoint"); var success = false; - fn__setMinimapBlockWaypoint(&success, _toggle); + fn__setMinimapBlockWaypoint(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52605,9 +52605,9 @@ public void SetMinimapBlockWaypoint(bool _toggle) public void SetMinimapInPrologue(bool _toggle) { unsafe { - if (fn__setMinimapInPrologue == null) fn__setMinimapInPrologue = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapInPrologue"); + if (fn__setMinimapInPrologue == null) fn__setMinimapInPrologue = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapInPrologue"); var success = false; - fn__setMinimapInPrologue(&success, _toggle); + fn__setMinimapInPrologue(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52615,9 +52615,9 @@ public void SetMinimapInPrologue(bool _toggle) public void SetMinimapHideFow(bool _toggle) { unsafe { - if (fn__setMinimapHideFow == null) fn__setMinimapHideFow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapHideFow"); + if (fn__setMinimapHideFow == null) fn__setMinimapHideFow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapHideFow"); var success = false; - fn__setMinimapHideFow(&success, _toggle); + fn__setMinimapHideFow(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52636,20 +52636,20 @@ public float GetMinimapFowDiscoveryRatio() public bool GetMinimapFowCoordinateIsRevealed(float _x, float _y, float _z) { unsafe { - if (fn__getMinimapFowCoordinateIsRevealed == null) fn__getMinimapFowCoordinateIsRevealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMinimapFowCoordinateIsRevealed"); + if (fn__getMinimapFowCoordinateIsRevealed == null) fn__getMinimapFowCoordinateIsRevealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMinimapFowCoordinateIsRevealed"); var success = false; var result = fn__getMinimapFowCoordinateIsRevealed(&success, _x, _y, _z); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x62E849B7EB28E770(bool _p0) { unsafe { - if (fn__0x62E849B7EB28E770 == null) fn__0x62E849B7EB28E770 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x62E849B7EB28E770"); + if (fn__0x62E849B7EB28E770 == null) fn__0x62E849B7EB28E770 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x62E849B7EB28E770"); var success = false; - fn__0x62E849B7EB28E770(&success, _p0); + fn__0x62E849B7EB28E770(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52727,9 +52727,9 @@ public void UnlockMinimapPosition() public void SetMinimapAltitudeIndicatorLevel(float _altitude, bool _p1, int _p2) { unsafe { - if (fn__setMinimapAltitudeIndicatorLevel == null) fn__setMinimapAltitudeIndicatorLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapAltitudeIndicatorLevel"); + if (fn__setMinimapAltitudeIndicatorLevel == null) fn__setMinimapAltitudeIndicatorLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinimapAltitudeIndicatorLevel"); var success = false; - fn__setMinimapAltitudeIndicatorLevel(&success, _altitude, _p1, _p2); + fn__setMinimapAltitudeIndicatorLevel(&success, _altitude, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -52737,9 +52737,9 @@ public void SetMinimapAltitudeIndicatorLevel(float _altitude, bool _p1, int _p2) public void SetHealthHudDisplayValues(int _health, int _capacity, bool _wasAdded) { unsafe { - if (fn__setHealthHudDisplayValues == null) fn__setHealthHudDisplayValues = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHealthHudDisplayValues"); + if (fn__setHealthHudDisplayValues == null) fn__setHealthHudDisplayValues = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHealthHudDisplayValues"); var success = false; - fn__setHealthHudDisplayValues(&success, _health, _capacity, _wasAdded); + fn__setHealthHudDisplayValues(&success, _health, _capacity, (byte) (_wasAdded ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52767,9 +52767,9 @@ public void SetMaxArmourHudDisplay(int _maximumValue) public void SetBigmapActive(bool _toggleBigMap, bool _showFullMap) { unsafe { - if (fn__setBigmapActive == null) fn__setBigmapActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBigmapActive"); + if (fn__setBigmapActive == null) fn__setBigmapActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBigmapActive"); var success = false; - fn__setBigmapActive(&success, _toggleBigMap, _showFullMap); + fn__setBigmapActive(&success, (byte) (_toggleBigMap ? 1 : 0), (byte) (_showFullMap ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -52777,22 +52777,22 @@ public void SetBigmapActive(bool _toggleBigMap, bool _showFullMap) public bool IsHudComponentActive(int _id) { unsafe { - if (fn__isHudComponentActive == null) fn__isHudComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudComponentActive"); + if (fn__isHudComponentActive == null) fn__isHudComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHudComponentActive"); var success = false; var result = fn__isHudComponentActive(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScriptedHudComponentActive(int _id) { unsafe { - if (fn__isScriptedHudComponentActive == null) fn__isScriptedHudComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedHudComponentActive"); + if (fn__isScriptedHudComponentActive == null) fn__isScriptedHudComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedHudComponentActive"); var success = false; var result = fn__isScriptedHudComponentActive(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -52819,11 +52819,11 @@ public void ShowScriptedHudComponentThisFrame(int _id) public bool IsScriptedHudComponentHiddenThisFrame(int _id) { unsafe { - if (fn__isScriptedHudComponentHiddenThisFrame == null) fn__isScriptedHudComponentHiddenThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedHudComponentHiddenThisFrame"); + if (fn__isScriptedHudComponentHiddenThisFrame == null) fn__isScriptedHudComponentHiddenThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedHudComponentHiddenThisFrame"); var success = false; var result = fn__isScriptedHudComponentHiddenThisFrame(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -52911,7 +52911,7 @@ public void ClearReminderMessage() public bool GetScreenCoordFromWorldCoord2(float _worldX, float _worldY, float _worldZ, ref float _screenX, ref float _screenY) { unsafe { - if (fn__getScreenCoordFromWorldCoord2 == null) fn__getScreenCoordFromWorldCoord2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScreenCoordFromWorldCoord2"); + if (fn__getScreenCoordFromWorldCoord2 == null) fn__getScreenCoordFromWorldCoord2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getScreenCoordFromWorldCoord2"); var success = false; var ref_screenX = _screenX; var ref_screenY = _screenY; @@ -52919,7 +52919,7 @@ public bool GetScreenCoordFromWorldCoord2(float _worldX, float _worldY, float _w _screenX = ref_screenX; _screenY = ref_screenY; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -52946,22 +52946,22 @@ public void ForceCloseReportugcMenu() public bool IsReportugcMenuOpen() { unsafe { - if (fn__isReportugcMenuOpen == null) fn__isReportugcMenuOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isReportugcMenuOpen"); + if (fn__isReportugcMenuOpen == null) fn__isReportugcMenuOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isReportugcMenuOpen"); var success = false; var result = fn__isReportugcMenuOpen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsFloatingHelpTextOnScreen(int _hudIndex) { unsafe { - if (fn__isFloatingHelpTextOnScreen == null) fn__isFloatingHelpTextOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFloatingHelpTextOnScreen"); + if (fn__isFloatingHelpTextOnScreen == null) fn__isFloatingHelpTextOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFloatingHelpTextOnScreen"); var success = false; var result = fn__isFloatingHelpTextOnScreen(&success, _hudIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53009,9 +53009,9 @@ public void SetFloatingHelpTextStyle(int _hudIndex, int _p1, int _p2, int _p3, i public void ClearFloatingHelp(int _hudIndex, bool _p1) { unsafe { - if (fn__clearFloatingHelp == null) fn__clearFloatingHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearFloatingHelp"); + if (fn__clearFloatingHelp == null) fn__clearFloatingHelp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearFloatingHelp"); var success = false; - fn__clearFloatingHelp(&success, _hudIndex, _p1); + fn__clearFloatingHelp(&success, _hudIndex, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53020,11 +53020,11 @@ public void ClearFloatingHelp(int _hudIndex, bool _p1) public void CreateMpGamerTagWithCrewColor(int _player, string _username, bool _pointedClanTag, bool _isRockstarClan, string _clanTag, int _clanFlag, int _r, int _g, int _b) { unsafe { - if (fn__createMpGamerTagWithCrewColor == null) fn__createMpGamerTagWithCrewColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createMpGamerTagWithCrewColor"); + if (fn__createMpGamerTagWithCrewColor == null) fn__createMpGamerTagWithCrewColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createMpGamerTagWithCrewColor"); var success = false; var ptr_username = MemoryUtils.StringToHGlobalUtf8(_username); var ptr_clanTag = MemoryUtils.StringToHGlobalUtf8(_clanTag); - fn__createMpGamerTagWithCrewColor(&success, _player, ptr_username, _pointedClanTag, _isRockstarClan, ptr_clanTag, _clanFlag, _r, _g, _b); + fn__createMpGamerTagWithCrewColor(&success, _player, ptr_username, (byte) (_pointedClanTag ? 1 : 0), (byte) (_isRockstarClan ? 1 : 0), ptr_clanTag, _clanFlag, _r, _g, _b); Marshal.FreeHGlobal(ptr_username); Marshal.FreeHGlobal(ptr_clanTag); if (!success) throw new Exception("Native execution failed"); @@ -53034,11 +53034,11 @@ public void CreateMpGamerTagWithCrewColor(int _player, string _username, bool _p public bool IsMpGamerTagMovieActive() { unsafe { - if (fn__isMpGamerTagMovieActive == null) fn__isMpGamerTagMovieActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagMovieActive"); + if (fn__isMpGamerTagMovieActive == null) fn__isMpGamerTagMovieActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagMovieActive"); var success = false; var result = fn__isMpGamerTagMovieActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53046,11 +53046,11 @@ public bool IsMpGamerTagMovieActive() public int CreateFakeMpGamerTag(int _ped, string _username, bool _pointedClanTag, bool _isRockstarClan, string _clanTag, int _clanFlag) { unsafe { - if (fn__createFakeMpGamerTag == null) fn__createFakeMpGamerTag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createFakeMpGamerTag"); + if (fn__createFakeMpGamerTag == null) fn__createFakeMpGamerTag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createFakeMpGamerTag"); var success = false; var ptr_username = MemoryUtils.StringToHGlobalUtf8(_username); var ptr_clanTag = MemoryUtils.StringToHGlobalUtf8(_clanTag); - var result = fn__createFakeMpGamerTag(&success, _ped, ptr_username, _pointedClanTag, _isRockstarClan, ptr_clanTag, _clanFlag); + var result = fn__createFakeMpGamerTag(&success, _ped, ptr_username, (byte) (_pointedClanTag ? 1 : 0), (byte) (_isRockstarClan ? 1 : 0), ptr_clanTag, _clanFlag); Marshal.FreeHGlobal(ptr_username); Marshal.FreeHGlobal(ptr_clanTag); if (!success) throw new Exception("Native execution failed"); @@ -53071,31 +53071,31 @@ public void RemoveMpGamerTag(int _gamerTagId) public bool IsMpGamerTagActive(int _gamerTagId) { unsafe { - if (fn__isMpGamerTagActive == null) fn__isMpGamerTagActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagActive"); + if (fn__isMpGamerTagActive == null) fn__isMpGamerTagActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagActive"); var success = false; var result = fn__isMpGamerTagActive(&success, _gamerTagId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsMpGamerTagFree(int _gamerTagId) { unsafe { - if (fn__isMpGamerTagFree == null) fn__isMpGamerTagFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagFree"); + if (fn__isMpGamerTagFree == null) fn__isMpGamerTagFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMpGamerTagFree"); var success = false; var result = fn__isMpGamerTagFree(&success, _gamerTagId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetMpGamerTagVisibility(int _gamerTagId, int _component, bool _toggle, int _p3) { unsafe { - if (fn__setMpGamerTagVisibility == null) fn__setMpGamerTagVisibility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagVisibility"); + if (fn__setMpGamerTagVisibility == null) fn__setMpGamerTagVisibility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagVisibility"); var success = false; - fn__setMpGamerTagVisibility(&success, _gamerTagId, _component, _toggle, _p3); + fn__setMpGamerTagVisibility(&success, _gamerTagId, _component, (byte) (_toggle ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -53103,9 +53103,9 @@ public void SetMpGamerTagVisibility(int _gamerTagId, int _component, bool _toggl public void SetMpGamerTagEnabled(int _gamerTagId, bool _toggle) { unsafe { - if (fn__setMpGamerTagEnabled == null) fn__setMpGamerTagEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagEnabled"); + if (fn__setMpGamerTagEnabled == null) fn__setMpGamerTagEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagEnabled"); var success = false; - fn__setMpGamerTagEnabled(&success, _gamerTagId, _toggle); + fn__setMpGamerTagEnabled(&success, _gamerTagId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53113,9 +53113,9 @@ public void SetMpGamerTagEnabled(int _gamerTagId, bool _toggle) public void SetMpGamerTagIcons(int _gamerTagId, bool _toggle) { unsafe { - if (fn__setMpGamerTagIcons == null) fn__setMpGamerTagIcons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagIcons"); + if (fn__setMpGamerTagIcons == null) fn__setMpGamerTagIcons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerTagIcons"); var success = false; - fn__setMpGamerTagIcons(&success, _gamerTagId, _toggle); + fn__setMpGamerTagIcons(&success, _gamerTagId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53123,9 +53123,9 @@ public void SetMpGamerTagIcons(int _gamerTagId, bool _toggle) public void SetMpGamerHealthBarDisplay(int _gamerTagId, bool _toggle) { unsafe { - if (fn__setMpGamerHealthBarDisplay == null) fn__setMpGamerHealthBarDisplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerHealthBarDisplay"); + if (fn__setMpGamerHealthBarDisplay == null) fn__setMpGamerHealthBarDisplay = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMpGamerHealthBarDisplay"); var success = false; - fn__setMpGamerHealthBarDisplay(&success, _gamerTagId, _toggle); + fn__setMpGamerHealthBarDisplay(&success, _gamerTagId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53205,11 +53205,11 @@ public void SetMpGamerTagName(int _gamerTagId, string _string) public bool IsValidMpGamerTagMovie(int _gamerTagId) { unsafe { - if (fn__isValidMpGamerTagMovie == null) fn__isValidMpGamerTagMovie = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isValidMpGamerTagMovie"); + if (fn__isValidMpGamerTagMovie == null) fn__isValidMpGamerTagMovie = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isValidMpGamerTagMovie"); var success = false; var result = fn__isValidMpGamerTagMovie(&success, _gamerTagId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53271,24 +53271,24 @@ public void ResetGlobalActionscriptFlag(int _flagIndex) public bool IsWarningMessageActive2() { unsafe { - if (fn__isWarningMessageActive2 == null) fn__isWarningMessageActive2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWarningMessageActive2"); + if (fn__isWarningMessageActive2 == null) fn__isWarningMessageActive2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWarningMessageActive2"); var success = false; var result = fn__isWarningMessageActive2(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetWarningMessage(string _titleMsg, int _flags, string _promptMsg, bool _p3, int _p4, string _p5, string _p6, bool _showBackground, int _p8) { unsafe { - if (fn__setWarningMessage == null) fn__setWarningMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessage"); + if (fn__setWarningMessage == null) fn__setWarningMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessage"); var success = false; var ptr_titleMsg = MemoryUtils.StringToHGlobalUtf8(_titleMsg); var ptr_promptMsg = MemoryUtils.StringToHGlobalUtf8(_promptMsg); var ptr_p5 = MemoryUtils.StringToHGlobalUtf8(_p5); var ptr_p6 = MemoryUtils.StringToHGlobalUtf8(_p6); - fn__setWarningMessage(&success, ptr_titleMsg, _flags, ptr_promptMsg, _p3, _p4, ptr_p5, ptr_p6, _showBackground, _p8); + fn__setWarningMessage(&success, ptr_titleMsg, _flags, ptr_promptMsg, (byte) (_p3 ? 1 : 0), _p4, ptr_p5, ptr_p6, (byte) (_showBackground ? 1 : 0), _p8); Marshal.FreeHGlobal(ptr_titleMsg); Marshal.FreeHGlobal(ptr_promptMsg); Marshal.FreeHGlobal(ptr_p5); @@ -53300,14 +53300,14 @@ public void SetWarningMessage(string _titleMsg, int _flags, string _promptMsg, b public void SetWarningMessageWithHeader(string _entryHeader, string _entryLine1, int _instructionalKey, string _entryLine2, bool _p4, int _p5, ref int _showBackground, ref int _p7, bool _p8, int _p9) { unsafe { - if (fn__setWarningMessageWithHeader == null) fn__setWarningMessageWithHeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeader"); + if (fn__setWarningMessageWithHeader == null) fn__setWarningMessageWithHeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeader"); var success = false; var ptr_entryHeader = MemoryUtils.StringToHGlobalUtf8(_entryHeader); var ptr_entryLine1 = MemoryUtils.StringToHGlobalUtf8(_entryLine1); var ptr_entryLine2 = MemoryUtils.StringToHGlobalUtf8(_entryLine2); var ref_showBackground = _showBackground; var ref_p7 = _p7; - fn__setWarningMessageWithHeader(&success, ptr_entryHeader, ptr_entryLine1, _instructionalKey, ptr_entryLine2, _p4, _p5, &ref_showBackground, &ref_p7, _p8, _p9); + fn__setWarningMessageWithHeader(&success, ptr_entryHeader, ptr_entryLine1, _instructionalKey, ptr_entryLine2, (byte) (_p4 ? 1 : 0), _p5, &ref_showBackground, &ref_p7, (byte) (_p8 ? 1 : 0), _p9); Marshal.FreeHGlobal(ptr_entryHeader); Marshal.FreeHGlobal(ptr_entryLine1); Marshal.FreeHGlobal(ptr_entryLine2); @@ -53320,14 +53320,14 @@ public void SetWarningMessageWithHeader(string _entryHeader, string _entryLine1, public void SetWarningMessageWithHeaderAndSubstringFlags(string _entryHeader, string _entryLine1, int _instructionalKey, string _entryLine2, bool _p4, int _p5, int _additionalIntInfo, string _additionalTextInfoLine1, string _additionalTextInfoLine2, bool _showBackground, int _errorCode) { unsafe { - if (fn__setWarningMessageWithHeaderAndSubstringFlags == null) fn__setWarningMessageWithHeaderAndSubstringFlags = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeaderAndSubstringFlags"); + if (fn__setWarningMessageWithHeaderAndSubstringFlags == null) fn__setWarningMessageWithHeaderAndSubstringFlags = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeaderAndSubstringFlags"); var success = false; var ptr_entryHeader = MemoryUtils.StringToHGlobalUtf8(_entryHeader); var ptr_entryLine1 = MemoryUtils.StringToHGlobalUtf8(_entryLine1); var ptr_entryLine2 = MemoryUtils.StringToHGlobalUtf8(_entryLine2); var ptr_additionalTextInfoLine1 = MemoryUtils.StringToHGlobalUtf8(_additionalTextInfoLine1); var ptr_additionalTextInfoLine2 = MemoryUtils.StringToHGlobalUtf8(_additionalTextInfoLine2); - fn__setWarningMessageWithHeaderAndSubstringFlags(&success, ptr_entryHeader, ptr_entryLine1, _instructionalKey, ptr_entryLine2, _p4, _p5, _additionalIntInfo, ptr_additionalTextInfoLine1, ptr_additionalTextInfoLine2, _showBackground, _errorCode); + fn__setWarningMessageWithHeaderAndSubstringFlags(&success, ptr_entryHeader, ptr_entryLine1, _instructionalKey, ptr_entryLine2, (byte) (_p4 ? 1 : 0), _p5, _additionalIntInfo, ptr_additionalTextInfoLine1, ptr_additionalTextInfoLine2, (byte) (_showBackground ? 1 : 0), _errorCode); Marshal.FreeHGlobal(ptr_entryHeader); Marshal.FreeHGlobal(ptr_entryLine1); Marshal.FreeHGlobal(ptr_entryLine2); @@ -53340,14 +53340,14 @@ public void SetWarningMessageWithHeaderAndSubstringFlags(string _entryHeader, st public void SetWarningMessageWithHeaderUnk(string _entryHeader, string _entryLine1, int _flags, string _entryLine2, bool _p4, int _p5, ref int _p6, ref int _p7, bool _showBg, int _p9, int _p10) { unsafe { - if (fn__setWarningMessageWithHeaderUnk == null) fn__setWarningMessageWithHeaderUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeaderUnk"); + if (fn__setWarningMessageWithHeaderUnk == null) fn__setWarningMessageWithHeaderUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithHeaderUnk"); var success = false; var ptr_entryHeader = MemoryUtils.StringToHGlobalUtf8(_entryHeader); var ptr_entryLine1 = MemoryUtils.StringToHGlobalUtf8(_entryLine1); var ptr_entryLine2 = MemoryUtils.StringToHGlobalUtf8(_entryLine2); var ref_p6 = _p6; var ref_p7 = _p7; - fn__setWarningMessageWithHeaderUnk(&success, ptr_entryHeader, ptr_entryLine1, _flags, ptr_entryLine2, _p4, _p5, &ref_p6, &ref_p7, _showBg, _p9, _p10); + fn__setWarningMessageWithHeaderUnk(&success, ptr_entryHeader, ptr_entryLine1, _flags, ptr_entryLine2, (byte) (_p4 ? 1 : 0), _p5, &ref_p6, &ref_p7, (byte) (_showBg ? 1 : 0), _p9, _p10); Marshal.FreeHGlobal(ptr_entryHeader); Marshal.FreeHGlobal(ptr_entryLine1); Marshal.FreeHGlobal(ptr_entryLine2); @@ -53360,14 +53360,14 @@ public void SetWarningMessageWithHeaderUnk(string _entryHeader, string _entryLin public void SetWarningMessageWithAlert(string _labelTitle, string _labelMessage, int _p2, int _p3, string _labelMessage2, bool _p5, int _p6, int _p7, string _p8, string _p9, bool _background, int _errorCode) { unsafe { - if (fn__setWarningMessageWithAlert == null) fn__setWarningMessageWithAlert = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithAlert"); + if (fn__setWarningMessageWithAlert == null) fn__setWarningMessageWithAlert = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageWithAlert"); var success = false; var ptr_labelTitle = MemoryUtils.StringToHGlobalUtf8(_labelTitle); var ptr_labelMessage = MemoryUtils.StringToHGlobalUtf8(_labelMessage); var ptr_labelMessage2 = MemoryUtils.StringToHGlobalUtf8(_labelMessage2); var ptr_p8 = MemoryUtils.StringToHGlobalUtf8(_p8); var ptr_p9 = MemoryUtils.StringToHGlobalUtf8(_p9); - fn__setWarningMessageWithAlert(&success, ptr_labelTitle, ptr_labelMessage, _p2, _p3, ptr_labelMessage2, _p5, _p6, _p7, ptr_p8, ptr_p9, _background, _errorCode); + fn__setWarningMessageWithAlert(&success, ptr_labelTitle, ptr_labelMessage, _p2, _p3, ptr_labelMessage2, (byte) (_p5 ? 1 : 0), _p6, _p7, ptr_p8, ptr_p9, (byte) (_background ? 1 : 0), _errorCode); Marshal.FreeHGlobal(ptr_labelTitle); Marshal.FreeHGlobal(ptr_labelMessage); Marshal.FreeHGlobal(ptr_labelMessage2); @@ -53391,24 +53391,24 @@ public uint GetWarningMessageTitleHash() public bool SetWarningMessageListRow(int _index, string _name, int _cash, int _rp, int _lvl, int _colour) { unsafe { - if (fn__setWarningMessageListRow == null) fn__setWarningMessageListRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageListRow"); + if (fn__setWarningMessageListRow == null) fn__setWarningMessageListRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setWarningMessageListRow"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__setWarningMessageListRow(&success, _index, ptr_name, _cash, _rp, _lvl, _colour); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xDAF87174BE7454FF(int _p0) { unsafe { - if (fn__0xDAF87174BE7454FF == null) fn__0xDAF87174BE7454FF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDAF87174BE7454FF"); + if (fn__0xDAF87174BE7454FF == null) fn__0xDAF87174BE7454FF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDAF87174BE7454FF"); var success = false; var result = fn__0xDAF87174BE7454FF(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53425,11 +53425,11 @@ public void RemoveWarningMessageListItems() public bool IsWarningMessageActive() { unsafe { - if (fn__isWarningMessageActive == null) fn__isWarningMessageActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWarningMessageActive"); + if (fn__isWarningMessageActive == null) fn__isWarningMessageActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWarningMessageActive"); var success = false; var result = fn__isWarningMessageActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53446,9 +53446,9 @@ public void ClearDynamicPauseMenuErrorMessage() public void RaceGalleryFullscreen(bool _toggle) { unsafe { - if (fn__raceGalleryFullscreen == null) fn__raceGalleryFullscreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_raceGalleryFullscreen"); + if (fn__raceGalleryFullscreen == null) fn__raceGalleryFullscreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_raceGalleryFullscreen"); var success = false; - fn__raceGalleryFullscreen(&success, _toggle); + fn__raceGalleryFullscreen(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53509,9 +53509,9 @@ public int GetNorthRadarBlip() public void DisplayPlayerNameTagsOnBlips(bool _toggle) { unsafe { - if (fn__displayPlayerNameTagsOnBlips == null) fn__displayPlayerNameTagsOnBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayPlayerNameTagsOnBlips"); + if (fn__displayPlayerNameTagsOnBlips == null) fn__displayPlayerNameTagsOnBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displayPlayerNameTagsOnBlips"); var success = false; - fn__displayPlayerNameTagsOnBlips(&success, _toggle); + fn__displayPlayerNameTagsOnBlips(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53539,9 +53539,9 @@ public void _0xBF4F34A85CA2970C() public void ActivateFrontendMenu(uint _menuhash, bool _togglePause, int _component) { unsafe { - if (fn__activateFrontendMenu == null) fn__activateFrontendMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateFrontendMenu"); + if (fn__activateFrontendMenu == null) fn__activateFrontendMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateFrontendMenu"); var success = false; - fn__activateFrontendMenu(&success, _menuhash, _togglePause, _component); + fn__activateFrontendMenu(&success, _menuhash, (byte) (_togglePause ? 1 : 0), _component); if (!success) throw new Exception("Native execution failed"); } } @@ -53570,9 +53570,9 @@ public uint GetCurrentFrontendMenuVersion() public void SetPauseMenuActive(bool _toggle) { unsafe { - if (fn__setPauseMenuActive == null) fn__setPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuActive"); + if (fn__setPauseMenuActive == null) fn__setPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuActive"); var success = false; - fn__setPauseMenuActive(&success, _toggle); + fn__setPauseMenuActive(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53610,9 +53610,9 @@ public void AllowPauseMenuWhenDeadThisFrame() public void SetFrontendActive(bool _active) { unsafe { - if (fn__setFrontendActive == null) fn__setFrontendActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFrontendActive"); + if (fn__setFrontendActive == null) fn__setFrontendActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFrontendActive"); var success = false; - fn__setFrontendActive(&success, _active); + fn__setFrontendActive(&success, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53620,22 +53620,22 @@ public void SetFrontendActive(bool _active) public bool IsPauseMenuActive() { unsafe { - if (fn__isPauseMenuActive == null) fn__isPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPauseMenuActive"); + if (fn__isPauseMenuActive == null) fn__isPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPauseMenuActive"); var success = false; var result = fn__isPauseMenuActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x2F057596F2BD0061() { unsafe { - if (fn__0x2F057596F2BD0061 == null) fn__0x2F057596F2BD0061 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F057596F2BD0061"); + if (fn__0x2F057596F2BD0061 == null) fn__0x2F057596F2BD0061 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F057596F2BD0061"); var success = false; var result = fn__0x2F057596F2BD0061(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53664,11 +53664,11 @@ public Vector3 _0x5BFF36D6ED83E0AE() public bool IsPauseMenuRestarting() { unsafe { - if (fn__isPauseMenuRestarting == null) fn__isPauseMenuRestarting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPauseMenuRestarting"); + if (fn__isPauseMenuRestarting == null) fn__isPauseMenuRestarting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPauseMenuRestarting"); var success = false; var result = fn__isPauseMenuRestarting(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53737,22 +53737,22 @@ public void PauseMenuDeactivateContext(uint _contextHash) public bool PauseMenuIsContextActive(uint _contextHash) { unsafe { - if (fn__pauseMenuIsContextActive == null) fn__pauseMenuIsContextActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuIsContextActive"); + if (fn__pauseMenuIsContextActive == null) fn__pauseMenuIsContextActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuIsContextActive"); var success = false; var result = fn__pauseMenuIsContextActive(&success, _contextHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool PauseMenuIsContextMenuActive() { unsafe { - if (fn__pauseMenuIsContextMenuActive == null) fn__pauseMenuIsContextMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuIsContextMenuActive"); + if (fn__pauseMenuIsContextMenuActive == null) fn__pauseMenuIsContextMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuIsContextMenuActive"); var success = false; var result = fn__pauseMenuIsContextMenuActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53792,7 +53792,7 @@ public int _0x13C4B962653A5280() public bool _0xC8E1071177A23BE5(ref int _p0, ref int _p1, ref int _p2) { unsafe { - if (fn__0xC8E1071177A23BE5 == null) fn__0xC8E1071177A23BE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC8E1071177A23BE5"); + if (fn__0xC8E1071177A23BE5 == null) fn__0xC8E1071177A23BE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC8E1071177A23BE5"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -53802,7 +53802,7 @@ public bool _0xC8E1071177A23BE5(ref int _p0, ref int _p1, ref int _p2) _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53819,9 +53819,9 @@ public void _0x4895BDEA16E7C080(int _p0) public void PauseMenuSetBusySpinner(bool _p0, int _p1, int _p2) { unsafe { - if (fn__pauseMenuSetBusySpinner == null) fn__pauseMenuSetBusySpinner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuSetBusySpinner"); + if (fn__pauseMenuSetBusySpinner == null) fn__pauseMenuSetBusySpinner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseMenuSetBusySpinner"); var success = false; - fn__pauseMenuSetBusySpinner(&success, _p0, _p1, _p2); + fn__pauseMenuSetBusySpinner(&success, (byte) (_p0 ? 1 : 0), _p1, _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -53829,9 +53829,9 @@ public void PauseMenuSetBusySpinner(bool _p0, int _p1, int _p2) public void _0xF06EBB91A81E09E3(bool _p0) { unsafe { - if (fn__0xF06EBB91A81E09E3 == null) fn__0xF06EBB91A81E09E3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF06EBB91A81E09E3"); + if (fn__0xF06EBB91A81E09E3 == null) fn__0xF06EBB91A81E09E3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF06EBB91A81E09E3"); var success = false; - fn__0xF06EBB91A81E09E3(&success, _p0); + fn__0xF06EBB91A81E09E3(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -53839,11 +53839,11 @@ public void _0xF06EBB91A81E09E3(bool _p0) public bool IsFrontendReadyForControl() { unsafe { - if (fn__isFrontendReadyForControl == null) fn__isFrontendReadyForControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFrontendReadyForControl"); + if (fn__isFrontendReadyForControl == null) fn__isFrontendReadyForControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFrontendReadyForControl"); var success = false; var result = fn__isFrontendReadyForControl(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53870,11 +53870,11 @@ public void ReleaseControlOfFrontend() public bool _0x66E7CB63C97B7D20() { unsafe { - if (fn__0x66E7CB63C97B7D20 == null) fn__0x66E7CB63C97B7D20 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x66E7CB63C97B7D20"); + if (fn__0x66E7CB63C97B7D20 == null) fn__0x66E7CB63C97B7D20 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x66E7CB63C97B7D20"); var success = false; var result = fn__0x66E7CB63C97B7D20(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53892,33 +53892,33 @@ public int _0x593FEAE1F73392D4() public bool IsNavigatingMenuContent() { unsafe { - if (fn__isNavigatingMenuContent == null) fn__isNavigatingMenuContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavigatingMenuContent"); + if (fn__isNavigatingMenuContent == null) fn__isNavigatingMenuContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavigatingMenuContent"); var success = false; var result = fn__isNavigatingMenuContent(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xF284AC67940C6812() { unsafe { - if (fn__0xF284AC67940C6812 == null) fn__0xF284AC67940C6812 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF284AC67940C6812"); + if (fn__0xF284AC67940C6812 == null) fn__0xF284AC67940C6812 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF284AC67940C6812"); var success = false; var result = fn__0xF284AC67940C6812(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x2E22FEFA0100275E() { unsafe { - if (fn__0x2E22FEFA0100275E == null) fn__0x2E22FEFA0100275E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2E22FEFA0100275E"); + if (fn__0x2E22FEFA0100275E == null) fn__0x2E22FEFA0100275E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2E22FEFA0100275E"); var success = false; var result = fn__0x2E22FEFA0100275E(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -53965,7 +53965,7 @@ public void GetPauseMenuSelectionData(ref int _lastItemMenuId, ref int _selected public bool _0xA238192F33110615(ref int _p0, ref int _p1, ref int _p2) { unsafe { - if (fn__0xA238192F33110615 == null) fn__0xA238192F33110615 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA238192F33110615"); + if (fn__0xA238192F33110615 == null) fn__0xA238192F33110615 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA238192F33110615"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -53975,98 +53975,98 @@ public bool _0xA238192F33110615(ref int _p0, ref int _p1, ref int _p2) _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetMenuPedIntStat(int _p0, ref int _p1) { unsafe { - if (fn__getMenuPedIntStat == null) fn__getMenuPedIntStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedIntStat"); + if (fn__getMenuPedIntStat == null) fn__getMenuPedIntStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedIntStat"); var success = false; var ref_p1 = _p1; var result = fn__getMenuPedIntStat(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xCA6B2F7CE32AB653(int _p0, ref int _p1, int _p2) { unsafe { - if (fn__0xCA6B2F7CE32AB653 == null) fn__0xCA6B2F7CE32AB653 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCA6B2F7CE32AB653"); + if (fn__0xCA6B2F7CE32AB653 == null) fn__0xCA6B2F7CE32AB653 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCA6B2F7CE32AB653"); var success = false; var ref_p1 = _p1; var result = fn__0xCA6B2F7CE32AB653(&success, _p0, &ref_p1, _p2); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetMenuPedMaskedIntStat(uint _p0, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__getMenuPedMaskedIntStat == null) fn__getMenuPedMaskedIntStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedMaskedIntStat"); + if (fn__getMenuPedMaskedIntStat == null) fn__getMenuPedMaskedIntStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedMaskedIntStat"); var success = false; var ref_p1 = _p1; var result = fn__getMenuPedMaskedIntStat(&success, _p0, &ref_p1, _p2, _p3); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x24A49BEAF468DC90(int _p0, ref int _p1, int _p2, int _p3, int _p4) { unsafe { - if (fn__0x24A49BEAF468DC90 == null) fn__0x24A49BEAF468DC90 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x24A49BEAF468DC90"); + if (fn__0x24A49BEAF468DC90 == null) fn__0x24A49BEAF468DC90 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x24A49BEAF468DC90"); var success = false; var ref_p1 = _p1; var result = fn__0x24A49BEAF468DC90(&success, _p0, &ref_p1, _p2, _p3, _p4); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetMenuPedFloatStat(int _p0, ref float _p1) { unsafe { - if (fn__getMenuPedFloatStat == null) fn__getMenuPedFloatStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedFloatStat"); + if (fn__getMenuPedFloatStat == null) fn__getMenuPedFloatStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedFloatStat"); var success = false; var ref_p1 = _p1; var result = fn__getMenuPedFloatStat(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x8F08017F9D7C47BD(int _p0, ref int _p1, int _p2) { unsafe { - if (fn__0x8F08017F9D7C47BD == null) fn__0x8F08017F9D7C47BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8F08017F9D7C47BD"); + if (fn__0x8F08017F9D7C47BD == null) fn__0x8F08017F9D7C47BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8F08017F9D7C47BD"); var success = false; var ref_p1 = _p1; var result = fn__0x8F08017F9D7C47BD(&success, _p0, &ref_p1, _p2); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetMenuPedBoolStat(uint _p0, ref int _p1) { unsafe { - if (fn__getMenuPedBoolStat == null) fn__getMenuPedBoolStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedBoolStat"); + if (fn__getMenuPedBoolStat == null) fn__getMenuPedBoolStat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMenuPedBoolStat"); var success = false; var ref_p1 = _p1; var result = fn__getMenuPedBoolStat(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54094,9 +54094,9 @@ public void GivePedToPauseMenu(int _ped, int _p1) public void SetPauseMenuPedLighting(bool _state) { unsafe { - if (fn__setPauseMenuPedLighting == null) fn__setPauseMenuPedLighting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuPedLighting"); + if (fn__setPauseMenuPedLighting == null) fn__setPauseMenuPedLighting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuPedLighting"); var success = false; - fn__setPauseMenuPedLighting(&success, _state); + fn__setPauseMenuPedLighting(&success, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54104,9 +54104,9 @@ public void SetPauseMenuPedLighting(bool _state) public void SetPauseMenuPedSleepState(bool _state) { unsafe { - if (fn__setPauseMenuPedSleepState == null) fn__setPauseMenuPedSleepState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuPedSleepState"); + if (fn__setPauseMenuPedSleepState == null) fn__setPauseMenuPedSleepState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPauseMenuPedSleepState"); var success = false; - fn__setPauseMenuPedSleepState(&success, _state); + fn__setPauseMenuPedSleepState(&success, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54124,22 +54124,22 @@ public void OpenOnlinePoliciesMenu() public bool _0xF13FE2A80C05C561() { unsafe { - if (fn__0xF13FE2A80C05C561 == null) fn__0xF13FE2A80C05C561 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF13FE2A80C05C561"); + if (fn__0xF13FE2A80C05C561 == null) fn__0xF13FE2A80C05C561 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF13FE2A80C05C561"); var success = false; var result = fn__0xF13FE2A80C05C561(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsOnlinePoliciesMenuActive() { unsafe { - if (fn__isOnlinePoliciesMenuActive == null) fn__isOnlinePoliciesMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isOnlinePoliciesMenuActive"); + if (fn__isOnlinePoliciesMenuActive == null) fn__isOnlinePoliciesMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isOnlinePoliciesMenuActive"); var success = false; var result = fn__isOnlinePoliciesMenuActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54178,20 +54178,20 @@ public void SetSocialClubTour(string _name) public bool IsSocialClubActive() { unsafe { - if (fn__isSocialClubActive == null) fn__isSocialClubActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSocialClubActive"); + if (fn__isSocialClubActive == null) fn__isSocialClubActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSocialClubActive"); var success = false; var result = fn__isSocialClubActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x1185A8087587322C(bool _p0) { unsafe { - if (fn__0x1185A8087587322C == null) fn__0x1185A8087587322C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1185A8087587322C"); + if (fn__0x1185A8087587322C == null) fn__0x1185A8087587322C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1185A8087587322C"); var success = false; - fn__0x1185A8087587322C(&success, _p0); + fn__0x1185A8087587322C(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54229,11 +54229,11 @@ public void OverrideMultiplayerChatPrefix(uint _gxtEntryHash) public bool IsMultiplayerChatActive() { unsafe { - if (fn__isMultiplayerChatActive == null) fn__isMultiplayerChatActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMultiplayerChatActive"); + if (fn__isMultiplayerChatActive == null) fn__isMultiplayerChatActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMultiplayerChatActive"); var success = false; var result = fn__isMultiplayerChatActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54270,9 +54270,9 @@ public void OverrideMultiplayerChatColour(int _p0, int _hudColor) public void SetTextChatUnk(bool _p0) { unsafe { - if (fn__setTextChatUnk == null) fn__setTextChatUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextChatUnk"); + if (fn__setTextChatUnk == null) fn__setTextChatUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextChatUnk"); var success = false; - fn__setTextChatUnk(&success, _p0); + fn__setTextChatUnk(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54280,9 +54280,9 @@ public void SetTextChatUnk(bool _p0) public void FlagPlayerContextInTournament(bool _toggle) { unsafe { - if (fn__flagPlayerContextInTournament == null) fn__flagPlayerContextInTournament = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_flagPlayerContextInTournament"); + if (fn__flagPlayerContextInTournament == null) fn__flagPlayerContextInTournament = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_flagPlayerContextInTournament"); var success = false; - fn__flagPlayerContextInTournament(&success, _toggle); + fn__flagPlayerContextInTournament(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54291,9 +54291,9 @@ public void FlagPlayerContextInTournament(bool _toggle) public void SetPedHasAiBlip(int _ped, bool _hasCone) { unsafe { - if (fn__setPedHasAiBlip == null) fn__setPedHasAiBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHasAiBlip"); + if (fn__setPedHasAiBlip == null) fn__setPedHasAiBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHasAiBlip"); var success = false; - fn__setPedHasAiBlip(&success, _ped, _hasCone); + fn__setPedHasAiBlip(&success, _ped, (byte) (_hasCone ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54302,9 +54302,9 @@ public void SetPedHasAiBlip(int _ped, bool _hasCone) public void SetPedHasAiBlipWithColor(int _ped, bool _hasCone, int _color) { unsafe { - if (fn__setPedHasAiBlipWithColor == null) fn__setPedHasAiBlipWithColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHasAiBlipWithColor"); + if (fn__setPedHasAiBlipWithColor == null) fn__setPedHasAiBlipWithColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHasAiBlipWithColor"); var success = false; - fn__setPedHasAiBlipWithColor(&success, _ped, _hasCone, _color); + fn__setPedHasAiBlipWithColor(&success, _ped, (byte) (_hasCone ? 1 : 0), _color); if (!success) throw new Exception("Native execution failed"); } } @@ -54313,11 +54313,11 @@ public void SetPedHasAiBlipWithColor(int _ped, bool _hasCone, int _color) public bool DoesPedHaveAiBlip(int _ped) { unsafe { - if (fn__doesPedHaveAiBlip == null) fn__doesPedHaveAiBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPedHaveAiBlip"); + if (fn__doesPedHaveAiBlip == null) fn__doesPedHaveAiBlip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPedHaveAiBlip"); var success = false; var result = fn__doesPedHaveAiBlip(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54336,9 +54336,9 @@ public void SetPedAiBlipGangId(int _ped, int _gangId) public void SetPedAiBlipHasCone(int _ped, bool _toggle) { unsafe { - if (fn__setPedAiBlipHasCone == null) fn__setPedAiBlipHasCone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAiBlipHasCone"); + if (fn__setPedAiBlipHasCone == null) fn__setPedAiBlipHasCone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAiBlipHasCone"); var success = false; - fn__setPedAiBlipHasCone(&success, _ped, _toggle); + fn__setPedAiBlipHasCone(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54347,9 +54347,9 @@ public void SetPedAiBlipHasCone(int _ped, bool _toggle) public void SetPedAiBlipForcedOn(int _ped, bool _toggle) { unsafe { - if (fn__setPedAiBlipForcedOn == null) fn__setPedAiBlipForcedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAiBlipForcedOn"); + if (fn__setPedAiBlipForcedOn == null) fn__setPedAiBlipForcedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAiBlipForcedOn"); var success = false; - fn__setPedAiBlipForcedOn(&success, _ped, _toggle); + fn__setPedAiBlipForcedOn(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54403,11 +54403,11 @@ public int GetAiBlip(int _ped) public bool HasDirectorModeBeenTriggered() { unsafe { - if (fn__hasDirectorModeBeenTriggered == null) fn__hasDirectorModeBeenTriggered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasDirectorModeBeenTriggered"); + if (fn__hasDirectorModeBeenTriggered == null) fn__hasDirectorModeBeenTriggered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasDirectorModeBeenTriggered"); var success = false; var result = fn__hasDirectorModeBeenTriggered(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54424,9 +54424,9 @@ public void SetDirectorModeClearTriggeredFlag() public void SetPlayerIsInDirectorMode(bool _toggle) { unsafe { - if (fn__setPlayerIsInDirectorMode == null) fn__setPlayerIsInDirectorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerIsInDirectorMode"); + if (fn__setPlayerIsInDirectorMode == null) fn__setPlayerIsInDirectorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerIsInDirectorMode"); var success = false; - fn__setPlayerIsInDirectorMode(&success, _toggle); + fn__setPlayerIsInDirectorMode(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54434,9 +54434,9 @@ public void SetPlayerIsInDirectorMode(bool _toggle) public void _0x04655F9D075D0AE5(bool _toggle) { unsafe { - if (fn__0x04655F9D075D0AE5 == null) fn__0x04655F9D075D0AE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x04655F9D075D0AE5"); + if (fn__0x04655F9D075D0AE5 == null) fn__0x04655F9D075D0AE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x04655F9D075D0AE5"); var success = false; - fn__0x04655F9D075D0AE5(&success, _toggle); + fn__0x04655F9D075D0AE5(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54501,22 +54501,22 @@ public Vector3 GetOffsetFromInteriorInWorldCoords(int _interior, float _x, float public bool IsInteriorScene() { unsafe { - if (fn__isInteriorScene == null) fn__isInteriorScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorScene"); + if (fn__isInteriorScene == null) fn__isInteriorScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorScene"); var success = false; var result = fn__isInteriorScene(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsValidInterior(int _interior) { unsafe { - if (fn__isValidInterior == null) fn__isValidInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isValidInterior"); + if (fn__isValidInterior == null) fn__isValidInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isValidInterior"); var success = false; var result = fn__isValidInterior(&success, _interior); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54720,11 +54720,11 @@ public void UnpinInterior(int _interior) public bool IsInteriorReady(int _interior) { unsafe { - if (fn__isInteriorReady == null) fn__isInteriorReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorReady"); + if (fn__isInteriorReady == null) fn__isInteriorReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorReady"); var success = false; var result = fn__isInteriorReady(&success, _interior); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54776,11 +54776,11 @@ public void _0x483ACA1176CA93F1() public bool IsCollisionMarkedOutside(float _x, float _y, float _z) { unsafe { - if (fn__isCollisionMarkedOutside == null) fn__isCollisionMarkedOutside = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCollisionMarkedOutside"); + if (fn__isCollisionMarkedOutside == null) fn__isCollisionMarkedOutside = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCollisionMarkedOutside"); var success = false; var result = fn__isCollisionMarkedOutside(&success, _x, _y, _z); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54832,13 +54832,13 @@ public void DeactivateInteriorEntitySet(int _interior, string _entitySetName) public bool IsInteriorEntitySetActive(int _interior, string _entitySetName) { unsafe { - if (fn__isInteriorEntitySetActive == null) fn__isInteriorEntitySetActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorEntitySetActive"); + if (fn__isInteriorEntitySetActive == null) fn__isInteriorEntitySetActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorEntitySetActive"); var success = false; var ptr_entitySetName = MemoryUtils.StringToHGlobalUtf8(_entitySetName); var result = fn__isInteriorEntitySetActive(&success, _interior, ptr_entitySetName); Marshal.FreeHGlobal(ptr_entitySetName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -54887,9 +54887,9 @@ public void EnableScriptCullModelThisFrame(uint _mapObjectHash) public void DisableInterior(int _interior, bool _toggle) { unsafe { - if (fn__disableInterior == null) fn__disableInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableInterior"); + if (fn__disableInterior == null) fn__disableInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableInterior"); var success = false; - fn__disableInterior(&success, _interior, _toggle); + fn__disableInterior(&success, _interior, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54897,20 +54897,20 @@ public void DisableInterior(int _interior, bool _toggle) public bool IsInteriorDisabled(int _interior) { unsafe { - if (fn__isInteriorDisabled == null) fn__isInteriorDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorDisabled"); + if (fn__isInteriorDisabled == null) fn__isInteriorDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorDisabled"); var success = false; var result = fn__isInteriorDisabled(&success, _interior); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void CapInterior(int _interior, bool _toggle) { unsafe { - if (fn__capInterior == null) fn__capInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_capInterior"); + if (fn__capInterior == null) fn__capInterior = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_capInterior"); var success = false; - fn__capInterior(&success, _interior, _toggle); + fn__capInterior(&success, _interior, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54918,20 +54918,20 @@ public void CapInterior(int _interior, bool _toggle) public bool IsInteriorCapped(int _interior) { unsafe { - if (fn__isInteriorCapped == null) fn__isInteriorCapped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorCapped"); + if (fn__isInteriorCapped == null) fn__isInteriorCapped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorCapped"); var success = false; var result = fn__isInteriorCapped(&success, _interior); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x9E6542F0CE8E70A3(bool _toggle) { unsafe { - if (fn__0x9E6542F0CE8E70A3 == null) fn__0x9E6542F0CE8E70A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9E6542F0CE8E70A3"); + if (fn__0x9E6542F0CE8E70A3 == null) fn__0x9E6542F0CE8E70A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9E6542F0CE8E70A3"); var success = false; - fn__0x9E6542F0CE8E70A3(&success, _toggle); + fn__0x9E6542F0CE8E70A3(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54940,9 +54940,9 @@ public void _0x9E6542F0CE8E70A3(bool _toggle) public void _0x7241CCB7D020DB69(int _entity, bool _toggle) { unsafe { - if (fn__0x7241CCB7D020DB69 == null) fn__0x7241CCB7D020DB69 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7241CCB7D020DB69"); + if (fn__0x7241CCB7D020DB69 == null) fn__0x7241CCB7D020DB69 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7241CCB7D020DB69"); var success = false; - fn__0x7241CCB7D020DB69(&success, _entity, _toggle); + fn__0x7241CCB7D020DB69(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -54950,9 +54950,9 @@ public void _0x7241CCB7D020DB69(int _entity, bool _toggle) public int CreateItemset(bool _p0) { unsafe { - if (fn__createItemset == null) fn__createItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createItemset"); + if (fn__createItemset == null) fn__createItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createItemset"); var success = false; - var result = fn__createItemset(&success, _p0); + var result = fn__createItemset(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -54971,22 +54971,22 @@ public void DestroyItemset(int _p0) public bool IsItemsetValid(int _p0) { unsafe { - if (fn__isItemsetValid == null) fn__isItemsetValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isItemsetValid"); + if (fn__isItemsetValid == null) fn__isItemsetValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isItemsetValid"); var success = false; var result = fn__isItemsetValid(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool AddToItemset(int _p0, int _p1) { unsafe { - if (fn__addToItemset == null) fn__addToItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addToItemset"); + if (fn__addToItemset == null) fn__addToItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addToItemset"); var success = false; var result = fn__addToItemset(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -55025,11 +55025,11 @@ public int GetIndexedItemInItemset(int _p0, int _p1) public bool IsInItemset(int _p0, int _p1) { unsafe { - if (fn__isInItemset == null) fn__isInItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInItemset"); + if (fn__isInItemset == null) fn__isInItemset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInItemset"); var success = false; var result = fn__isInItemset(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -55057,20 +55057,20 @@ public int _0xF2CA003F167E21D2() public bool LoadingscreenGetLoadFreemode() { unsafe { - if (fn__loadingscreenGetLoadFreemode == null) fn__loadingscreenGetLoadFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenGetLoadFreemode"); + if (fn__loadingscreenGetLoadFreemode == null) fn__loadingscreenGetLoadFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenGetLoadFreemode"); var success = false; var result = fn__loadingscreenGetLoadFreemode(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void LoadingscreenSetLoadFreemode(bool _toggle) { unsafe { - if (fn__loadingscreenSetLoadFreemode == null) fn__loadingscreenSetLoadFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetLoadFreemode"); + if (fn__loadingscreenSetLoadFreemode == null) fn__loadingscreenSetLoadFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetLoadFreemode"); var success = false; - fn__loadingscreenSetLoadFreemode(&success, _toggle); + fn__loadingscreenSetLoadFreemode(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55078,20 +55078,20 @@ public void LoadingscreenSetLoadFreemode(bool _toggle) public bool LoadingscreenGetLoadFreemodeWithEventName() { unsafe { - if (fn__loadingscreenGetLoadFreemodeWithEventName == null) fn__loadingscreenGetLoadFreemodeWithEventName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenGetLoadFreemodeWithEventName"); + if (fn__loadingscreenGetLoadFreemodeWithEventName == null) fn__loadingscreenGetLoadFreemodeWithEventName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenGetLoadFreemodeWithEventName"); var success = false; var result = fn__loadingscreenGetLoadFreemodeWithEventName(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void LoadingscreenSetLoadFreemodeWithEventName(bool _toggle) { unsafe { - if (fn__loadingscreenSetLoadFreemodeWithEventName == null) fn__loadingscreenSetLoadFreemodeWithEventName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetLoadFreemodeWithEventName"); + if (fn__loadingscreenSetLoadFreemodeWithEventName == null) fn__loadingscreenSetLoadFreemodeWithEventName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetLoadFreemodeWithEventName"); var success = false; - fn__loadingscreenSetLoadFreemodeWithEventName(&success, _toggle); + fn__loadingscreenSetLoadFreemodeWithEventName(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55099,20 +55099,20 @@ public void LoadingscreenSetLoadFreemodeWithEventName(bool _toggle) public bool LoadingscreenIsLoadingFreemode() { unsafe { - if (fn__loadingscreenIsLoadingFreemode == null) fn__loadingscreenIsLoadingFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenIsLoadingFreemode"); + if (fn__loadingscreenIsLoadingFreemode == null) fn__loadingscreenIsLoadingFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenIsLoadingFreemode"); var success = false; var result = fn__loadingscreenIsLoadingFreemode(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void LoadingscreenSetIsLoadingFreemode(bool _toggle) { unsafe { - if (fn__loadingscreenSetIsLoadingFreemode == null) fn__loadingscreenSetIsLoadingFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetIsLoadingFreemode"); + if (fn__loadingscreenSetIsLoadingFreemode == null) fn__loadingscreenSetIsLoadingFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_loadingscreenSetIsLoadingFreemode"); var success = false; - fn__loadingscreenSetIsLoadingFreemode(&success, _toggle); + fn__loadingscreenSetIsLoadingFreemode(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55120,9 +55120,9 @@ public void LoadingscreenSetIsLoadingFreemode(bool _toggle) public void _0xFA1E0E893D915215(bool _toggle) { unsafe { - if (fn__0xFA1E0E893D915215 == null) fn__0xFA1E0E893D915215 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFA1E0E893D915215"); + if (fn__0xFA1E0E893D915215 == null) fn__0xFA1E0E893D915215 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFA1E0E893D915215"); var success = false; - fn__0xFA1E0E893D915215(&success, _toggle); + fn__0xFA1E0E893D915215(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55205,9 +55205,9 @@ public void SetTimeScale(float _timeScale) public void SetMissionFlag(bool _toggle) { unsafe { - if (fn__setMissionFlag == null) fn__setMissionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionFlag"); + if (fn__setMissionFlag == null) fn__setMissionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionFlag"); var success = false; - fn__setMissionFlag(&success, _toggle); + fn__setMissionFlag(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55215,20 +55215,20 @@ public void SetMissionFlag(bool _toggle) public bool GetMissionFlag() { unsafe { - if (fn__getMissionFlag == null) fn__getMissionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMissionFlag"); + if (fn__getMissionFlag == null) fn__getMissionFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMissionFlag"); var success = false; var result = fn__getMissionFlag(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetRandomEventFlag(bool _toggle) { unsafe { - if (fn__setRandomEventFlag == null) fn__setRandomEventFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomEventFlag"); + if (fn__setRandomEventFlag == null) fn__setRandomEventFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomEventFlag"); var success = false; - fn__setRandomEventFlag(&success, _toggle); + fn__setRandomEventFlag(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55236,11 +55236,11 @@ public void SetRandomEventFlag(bool _toggle) public bool GetRandomEventFlag() { unsafe { - if (fn__getRandomEventFlag == null) fn__getRandomEventFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomEventFlag"); + if (fn__getRandomEventFlag == null) fn__getRandomEventFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomEventFlag"); var success = false; var result = fn__getRandomEventFlag(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -55368,20 +55368,20 @@ public void _0xBA4B8D83BDC75551(string _p0) public bool HasResumedFromSuspend() { unsafe { - if (fn__hasResumedFromSuspend == null) fn__hasResumedFromSuspend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasResumedFromSuspend"); + if (fn__hasResumedFromSuspend == null) fn__hasResumedFromSuspend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasResumedFromSuspend"); var success = false; var result = fn__hasResumedFromSuspend(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x65D2EBB47E1CEC21(bool _toggle) { unsafe { - if (fn__0x65D2EBB47E1CEC21 == null) fn__0x65D2EBB47E1CEC21 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x65D2EBB47E1CEC21"); + if (fn__0x65D2EBB47E1CEC21 == null) fn__0x65D2EBB47E1CEC21 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x65D2EBB47E1CEC21"); var success = false; - fn__0x65D2EBB47E1CEC21(&success, _toggle); + fn__0x65D2EBB47E1CEC21(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55389,9 +55389,9 @@ public void _0x65D2EBB47E1CEC21(bool _toggle) public void _0x6F2135B6129620C1(bool _toggle) { unsafe { - if (fn__0x6F2135B6129620C1 == null) fn__0x6F2135B6129620C1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6F2135B6129620C1"); + if (fn__0x6F2135B6129620C1 == null) fn__0x6F2135B6129620C1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6F2135B6129620C1"); var success = false; - fn__0x6F2135B6129620C1(&success, _toggle); + fn__0x6F2135B6129620C1(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -55411,15 +55411,15 @@ public void _0x8D74E26F54B4E5C3(string _p0) public bool GetBaseElementMetadata(ref int _p0, ref int _p1, int _p2, bool _p3) { unsafe { - if (fn__getBaseElementMetadata == null) fn__getBaseElementMetadata = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBaseElementMetadata"); + if (fn__getBaseElementMetadata == null) fn__getBaseElementMetadata = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBaseElementMetadata"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; - var result = fn__getBaseElementMetadata(&success, &ref_p0, &ref_p1, _p2, _p3); + var result = fn__getBaseElementMetadata(&success, &ref_p0, &ref_p1, _p2, (byte) (_p3 ? 1 : 0)); _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -55448,26 +55448,26 @@ public uint GetNextWeatherTypeHashName() public bool IsPrevWeatherType(string _weatherType) { unsafe { - if (fn__isPrevWeatherType == null) fn__isPrevWeatherType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPrevWeatherType"); + if (fn__isPrevWeatherType == null) fn__isPrevWeatherType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPrevWeatherType"); var success = false; var ptr_weatherType = MemoryUtils.StringToHGlobalUtf8(_weatherType); var result = fn__isPrevWeatherType(&success, ptr_weatherType); Marshal.FreeHGlobal(ptr_weatherType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsNextWeatherType(string _weatherType) { unsafe { - if (fn__isNextWeatherType == null) fn__isNextWeatherType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNextWeatherType"); + if (fn__isNextWeatherType == null) fn__isNextWeatherType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNextWeatherType"); var success = false; var ptr_weatherType = MemoryUtils.StringToHGlobalUtf8(_weatherType); var result = fn__isNextWeatherType(&success, ptr_weatherType); Marshal.FreeHGlobal(ptr_weatherType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56010,20 +56010,20 @@ public int GetRandomIntInRange2(int _startRange, int _endRange) public bool GetGroundZFor3dCoord(float _x, float _y, float _z, ref float _groundZ, bool _ignoreWater, bool _p5) { unsafe { - if (fn__getGroundZFor3dCoord == null) fn__getGroundZFor3dCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZFor3dCoord"); + if (fn__getGroundZFor3dCoord == null) fn__getGroundZFor3dCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZFor3dCoord"); var success = false; var ref_groundZ = _groundZ; - var result = fn__getGroundZFor3dCoord(&success, _x, _y, _z, &ref_groundZ, _ignoreWater, _p5); + var result = fn__getGroundZFor3dCoord(&success, _x, _y, _z, &ref_groundZ, (byte) (_ignoreWater ? 1 : 0), (byte) (_p5 ? 1 : 0)); _groundZ = ref_groundZ; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetGroundZAndNormalFor3dCoord(float _x, float _y, float _z, ref float _groundZ, ref Vector3 _normal) { unsafe { - if (fn__getGroundZAndNormalFor3dCoord == null) fn__getGroundZAndNormalFor3dCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZAndNormalFor3dCoord"); + if (fn__getGroundZAndNormalFor3dCoord == null) fn__getGroundZAndNormalFor3dCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZAndNormalFor3dCoord"); var success = false; var ref_groundZ = _groundZ; var ref_normal = _normal; @@ -56031,20 +56031,20 @@ public bool GetGroundZAndNormalFor3dCoord(float _x, float _y, float _z, ref floa _groundZ = ref_groundZ; _normal = ref_normal; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetGroundZFor3dCoord2(float _x, float _y, float _z, ref float _groundZ, bool _p4, bool _p5) { unsafe { - if (fn__getGroundZFor3dCoord2 == null) fn__getGroundZFor3dCoord2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZFor3dCoord2"); + if (fn__getGroundZFor3dCoord2 == null) fn__getGroundZFor3dCoord2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGroundZFor3dCoord2"); var success = false; var ref_groundZ = _groundZ; - var result = fn__getGroundZFor3dCoord2(&success, _x, _y, _z, &ref_groundZ, _p4, _p5); + var result = fn__getGroundZFor3dCoord2(&success, _x, _y, _z, &ref_groundZ, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); _groundZ = ref_groundZ; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56106,9 +56106,9 @@ public float Atan2(float _p0, float _p1) public float GetDistanceBetweenCoords(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _useZ) { unsafe { - if (fn__getDistanceBetweenCoords == null) fn__getDistanceBetweenCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDistanceBetweenCoords"); + if (fn__getDistanceBetweenCoords == null) fn__getDistanceBetweenCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDistanceBetweenCoords"); var success = false; - var result = fn__getDistanceBetweenCoords(&success, _x1, _y1, _z1, _x2, _y2, _z2, _useZ); + var result = fn__getDistanceBetweenCoords(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_useZ ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -56139,9 +56139,9 @@ public float GetHeadingFromVector2d(float _dx, float _dy) public float _0x7F8F6405F4777AF6(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, bool _p9) { unsafe { - if (fn__0x7F8F6405F4777AF6 == null) fn__0x7F8F6405F4777AF6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7F8F6405F4777AF6"); + if (fn__0x7F8F6405F4777AF6 == null) fn__0x7F8F6405F4777AF6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7F8F6405F4777AF6"); var success = false; - var result = fn__0x7F8F6405F4777AF6(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + var result = fn__0x7F8F6405F4777AF6(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -56150,9 +56150,9 @@ public float _0x7F8F6405F4777AF6(float _p0, float _p1, float _p2, float _p3, flo public Vector3 _0x21C235BC64831E5A(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, bool _p9) { unsafe { - if (fn__0x21C235BC64831E5A == null) fn__0x21C235BC64831E5A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x21C235BC64831E5A"); + if (fn__0x21C235BC64831E5A == null) fn__0x21C235BC64831E5A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x21C235BC64831E5A"); var success = false; - var result = fn__0x21C235BC64831E5A(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + var result = fn__0x21C235BC64831E5A(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -56161,13 +56161,13 @@ public Vector3 _0x21C235BC64831E5A(float _p0, float _p1, float _p2, float _p3, f public bool _0xF56DFB7B61BE7276(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, float _p9, float _p10, float _p11, ref float _p12) { unsafe { - if (fn__0xF56DFB7B61BE7276 == null) fn__0xF56DFB7B61BE7276 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF56DFB7B61BE7276"); + if (fn__0xF56DFB7B61BE7276 == null) fn__0xF56DFB7B61BE7276 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF56DFB7B61BE7276"); var success = false; var ref_p12 = _p12; var result = fn__0xF56DFB7B61BE7276(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, _p11, &ref_p12); _p12 = ref_p12; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56240,11 +56240,11 @@ public void SlerpNearQuaternion(float _t, float _x, float _y, float _z, float _w public bool IsAreaOccupied(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, bool _p6, bool _p7, bool _p8, bool _p9, bool _p10, int _p11, bool _p12) { unsafe { - if (fn__isAreaOccupied == null) fn__isAreaOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAreaOccupied"); + if (fn__isAreaOccupied == null) fn__isAreaOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAreaOccupied"); var success = false; - var result = fn__isAreaOccupied(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, _p11, _p12); + var result = fn__isAreaOccupied(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0), (byte) (_p10 ? 1 : 0), _p11, (byte) (_p12 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56263,31 +56263,31 @@ public int _0x39455BF4F4F55186(int _p0, int _p1, int _p2, int _p3, int _p4, int public bool IsPositionOccupied(float _x, float _y, float _z, float _range, bool _p4, bool _checkVehicles, bool _checkPeds, bool _p7, bool _p8, int _ignoreEntity, bool _p10) { unsafe { - if (fn__isPositionOccupied == null) fn__isPositionOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPositionOccupied"); + if (fn__isPositionOccupied == null) fn__isPositionOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPositionOccupied"); var success = false; - var result = fn__isPositionOccupied(&success, _x, _y, _z, _range, _p4, _checkVehicles, _checkPeds, _p7, _p8, _ignoreEntity, _p10); + var result = fn__isPositionOccupied(&success, _x, _y, _z, _range, (byte) (_p4 ? 1 : 0), (byte) (_checkVehicles ? 1 : 0), (byte) (_checkPeds ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _ignoreEntity, (byte) (_p10 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPointObscuredByAMissionEntity(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, int _p6) { unsafe { - if (fn__isPointObscuredByAMissionEntity == null) fn__isPointObscuredByAMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointObscuredByAMissionEntity"); + if (fn__isPointObscuredByAMissionEntity == null) fn__isPointObscuredByAMissionEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointObscuredByAMissionEntity"); var success = false; var result = fn__isPointObscuredByAMissionEntity(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ClearArea(float _X, float _Y, float _Z, float _radius, bool _p4, bool _ignoreCopCars, bool _ignoreObjects, bool _p7) { unsafe { - if (fn__clearArea == null) fn__clearArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearArea"); + if (fn__clearArea == null) fn__clearArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearArea"); var success = false; - fn__clearArea(&success, _X, _Y, _Z, _radius, _p4, _ignoreCopCars, _ignoreObjects, _p7); + fn__clearArea(&success, _X, _Y, _Z, _radius, (byte) (_p4 ? 1 : 0), (byte) (_ignoreCopCars ? 1 : 0), (byte) (_ignoreObjects ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56295,9 +56295,9 @@ public void ClearArea(float _X, float _Y, float _Z, float _radius, bool _p4, boo public void ClearAreaLeaveVehicleHealth(float _x, float _y, float _z, float _radius, bool _p4, bool _p5, bool _p6, bool _p7) { unsafe { - if (fn__clearAreaLeaveVehicleHealth == null) fn__clearAreaLeaveVehicleHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAreaLeaveVehicleHealth"); + if (fn__clearAreaLeaveVehicleHealth == null) fn__clearAreaLeaveVehicleHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAreaLeaveVehicleHealth"); var success = false; - fn__clearAreaLeaveVehicleHealth(&success, _x, _y, _z, _radius, _p4, _p5, _p6, _p7); + fn__clearAreaLeaveVehicleHealth(&success, _x, _y, _z, _radius, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56305,9 +56305,9 @@ public void ClearAreaLeaveVehicleHealth(float _x, float _y, float _z, float _rad public void ClearAreaOfVehicles(float _x, float _y, float _z, float _radius, bool _p4, bool _p5, bool _p6, bool _p7, bool _p8, bool _p9) { unsafe { - if (fn__clearAreaOfVehicles == null) fn__clearAreaOfVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAreaOfVehicles"); + if (fn__clearAreaOfVehicles == null) fn__clearAreaOfVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAreaOfVehicles"); var success = false; - fn__clearAreaOfVehicles(&success, _x, _y, _z, _radius, _p4, _p5, _p6, _p7, _p8, _p9); + fn__clearAreaOfVehicles(&success, _x, _y, _z, _radius, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56315,9 +56315,9 @@ public void ClearAreaOfVehicles(float _x, float _y, float _z, float _radius, boo public void ClearAngledAreaOfVehicles(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, bool _p7, bool _p8, bool _p9, bool _p10, bool _p11, int _p12) { unsafe { - if (fn__clearAngledAreaOfVehicles == null) fn__clearAngledAreaOfVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAngledAreaOfVehicles"); + if (fn__clearAngledAreaOfVehicles == null) fn__clearAngledAreaOfVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearAngledAreaOfVehicles"); var success = false; - fn__clearAngledAreaOfVehicles(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, _p7, _p8, _p9, _p10, _p11, _p12); + fn__clearAngledAreaOfVehicles(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0), (byte) (_p10 ? 1 : 0), (byte) (_p11 ? 1 : 0), _p12); if (!success) throw new Exception("Native execution failed"); } } @@ -56375,9 +56375,9 @@ public void _0x7EC6F9A478A6A512() public void SetSaveMenuActive(bool _ignoreVehicle) { unsafe { - if (fn__setSaveMenuActive == null) fn__setSaveMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSaveMenuActive"); + if (fn__setSaveMenuActive == null) fn__setSaveMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSaveMenuActive"); var success = false; - fn__setSaveMenuActive(&success, _ignoreVehicle); + fn__setSaveMenuActive(&success, (byte) (_ignoreVehicle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56396,9 +56396,9 @@ public int _0x397BAA01068BAA96() public void SetCreditsActive(bool _toggle) { unsafe { - if (fn__setCreditsActive == null) fn__setCreditsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreditsActive"); + if (fn__setCreditsActive == null) fn__setCreditsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreditsActive"); var success = false; - fn__setCreditsActive(&success, _toggle); + fn__setCreditsActive(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56406,9 +56406,9 @@ public void SetCreditsActive(bool _toggle) public void _0xB51B9AB9EF81868C(bool _toggle) { unsafe { - if (fn__0xB51B9AB9EF81868C == null) fn__0xB51B9AB9EF81868C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB51B9AB9EF81868C"); + if (fn__0xB51B9AB9EF81868C == null) fn__0xB51B9AB9EF81868C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB51B9AB9EF81868C"); var success = false; - fn__0xB51B9AB9EF81868C(&success, _toggle); + fn__0xB51B9AB9EF81868C(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56416,11 +56416,11 @@ public void _0xB51B9AB9EF81868C(bool _toggle) public bool HaveCreditsReachedEnd() { unsafe { - if (fn__haveCreditsReachedEnd == null) fn__haveCreditsReachedEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveCreditsReachedEnd"); + if (fn__haveCreditsReachedEnd == null) fn__haveCreditsReachedEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveCreditsReachedEnd"); var success = false; var result = fn__haveCreditsReachedEnd(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56460,9 +56460,9 @@ public int AddHospitalRestart(float _x, float _y, float _z, float _p3, int _p4) public void DisableHospitalRestart(int _hospitalIndex, bool _toggle) { unsafe { - if (fn__disableHospitalRestart == null) fn__disableHospitalRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableHospitalRestart"); + if (fn__disableHospitalRestart == null) fn__disableHospitalRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableHospitalRestart"); var success = false; - fn__disableHospitalRestart(&success, _hospitalIndex, _toggle); + fn__disableHospitalRestart(&success, _hospitalIndex, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56481,9 +56481,9 @@ public int AddPoliceRestart(float _p0, float _p1, float _p2, float _p3, int _p4) public void DisablePoliceRestart(int _policeIndex, bool _toggle) { unsafe { - if (fn__disablePoliceRestart == null) fn__disablePoliceRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePoliceRestart"); + if (fn__disablePoliceRestart == null) fn__disablePoliceRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePoliceRestart"); var success = false; - fn__disablePoliceRestart(&success, _policeIndex, _toggle); + fn__disablePoliceRestart(&success, _policeIndex, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56511,9 +56511,9 @@ public void ClearRestartCustomPosition() public void PauseDeathArrestRestart(bool _toggle) { unsafe { - if (fn__pauseDeathArrestRestart == null) fn__pauseDeathArrestRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseDeathArrestRestart"); + if (fn__pauseDeathArrestRestart == null) fn__pauseDeathArrestRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pauseDeathArrestRestart"); var success = false; - fn__pauseDeathArrestRestart(&success, _toggle); + fn__pauseDeathArrestRestart(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56521,9 +56521,9 @@ public void PauseDeathArrestRestart(bool _toggle) public void IgnoreNextRestart(bool _toggle) { unsafe { - if (fn__ignoreNextRestart == null) fn__ignoreNextRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ignoreNextRestart"); + if (fn__ignoreNextRestart == null) fn__ignoreNextRestart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ignoreNextRestart"); var success = false; - fn__ignoreNextRestart(&success, _toggle); + fn__ignoreNextRestart(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56531,9 +56531,9 @@ public void IgnoreNextRestart(bool _toggle) public void SetFadeOutAfterDeath(bool _toggle) { unsafe { - if (fn__setFadeOutAfterDeath == null) fn__setFadeOutAfterDeath = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeOutAfterDeath"); + if (fn__setFadeOutAfterDeath == null) fn__setFadeOutAfterDeath = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeOutAfterDeath"); var success = false; - fn__setFadeOutAfterDeath(&success, _toggle); + fn__setFadeOutAfterDeath(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56541,9 +56541,9 @@ public void SetFadeOutAfterDeath(bool _toggle) public void SetFadeOutAfterArrest(bool _toggle) { unsafe { - if (fn__setFadeOutAfterArrest == null) fn__setFadeOutAfterArrest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeOutAfterArrest"); + if (fn__setFadeOutAfterArrest == null) fn__setFadeOutAfterArrest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeOutAfterArrest"); var success = false; - fn__setFadeOutAfterArrest(&success, _toggle); + fn__setFadeOutAfterArrest(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56551,9 +56551,9 @@ public void SetFadeOutAfterArrest(bool _toggle) public void SetFadeInAfterDeathArrest(bool _toggle) { unsafe { - if (fn__setFadeInAfterDeathArrest == null) fn__setFadeInAfterDeathArrest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeInAfterDeathArrest"); + if (fn__setFadeInAfterDeathArrest == null) fn__setFadeInAfterDeathArrest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeInAfterDeathArrest"); var success = false; - fn__setFadeInAfterDeathArrest(&success, _toggle); + fn__setFadeInAfterDeathArrest(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56561,9 +56561,9 @@ public void SetFadeInAfterDeathArrest(bool _toggle) public void SetFadeInAfterLoad(bool _toggle) { unsafe { - if (fn__setFadeInAfterLoad == null) fn__setFadeInAfterLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeInAfterLoad"); + if (fn__setFadeInAfterLoad == null) fn__setFadeInAfterLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFadeInAfterLoad"); var success = false; - fn__setFadeInAfterLoad(&success, _toggle); + fn__setFadeInAfterLoad(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56584,9 +56584,9 @@ public int RegisterSaveHouse(float _p0, float _p1, float _p2, float _p3, ref int public void SetSaveHouse(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__setSaveHouse == null) fn__setSaveHouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSaveHouse"); + if (fn__setSaveHouse == null) fn__setSaveHouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSaveHouse"); var success = false; - fn__setSaveHouse(&success, _p0, _p1, _p2); + fn__setSaveHouse(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56594,30 +56594,30 @@ public void SetSaveHouse(int _p0, bool _p1, bool _p2) public bool OverrideSaveHouse(bool _p0, float _p1, float _p2, float _p3, float _p4, bool _p5, float _p6, float _p7) { unsafe { - if (fn__overrideSaveHouse == null) fn__overrideSaveHouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideSaveHouse"); + if (fn__overrideSaveHouse == null) fn__overrideSaveHouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_overrideSaveHouse"); var success = false; - var result = fn__overrideSaveHouse(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + var result = fn__overrideSaveHouse(&success, (byte) (_p0 ? 1 : 0), _p1, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0), _p6, _p7); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xA4A0065E39C9F25C(ref Vector3 _p0, ref float _p1, ref bool _fadeInAfterLoad, ref bool _p3) { unsafe { - if (fn__0xA4A0065E39C9F25C == null) fn__0xA4A0065E39C9F25C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA4A0065E39C9F25C"); + if (fn__0xA4A0065E39C9F25C == null) fn__0xA4A0065E39C9F25C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA4A0065E39C9F25C"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; - var ref_fadeInAfterLoad = _fadeInAfterLoad; - var ref_p3 = _p3; + var ref_fadeInAfterLoad = (byte) (_fadeInAfterLoad ? 1 : 0); + var ref_p3 = (byte) (_p3 ? 1 : 0); var result = fn__0xA4A0065E39C9F25C(&success, &ref_p0, &ref_p1, &ref_fadeInAfterLoad, &ref_p3); _p0 = ref_p0; _p1 = ref_p1; - _fadeInAfterLoad = ref_fadeInAfterLoad; - _p3 = ref_p3; + _fadeInAfterLoad = ref_fadeInAfterLoad == 0 ? false : true; + _p3 = ref_p3 == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56634,33 +56634,33 @@ public void DoAutoSave() public bool GetIsAutoSaveOff() { unsafe { - if (fn__getIsAutoSaveOff == null) fn__getIsAutoSaveOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsAutoSaveOff"); + if (fn__getIsAutoSaveOff == null) fn__getIsAutoSaveOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsAutoSaveOff"); var success = false; var result = fn__getIsAutoSaveOff(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsAutoSaveInProgress() { unsafe { - if (fn__isAutoSaveInProgress == null) fn__isAutoSaveInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAutoSaveInProgress"); + if (fn__isAutoSaveInProgress == null) fn__isAutoSaveInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAutoSaveInProgress"); var success = false; var result = fn__isAutoSaveInProgress(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasCodeRequestedAutosave() { unsafe { - if (fn__hasCodeRequestedAutosave == null) fn__hasCodeRequestedAutosave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCodeRequestedAutosave"); + if (fn__hasCodeRequestedAutosave == null) fn__hasCodeRequestedAutosave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCodeRequestedAutosave"); var success = false; var result = fn__hasCodeRequestedAutosave(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56772,22 +56772,22 @@ public void ClearReplayStats() public bool QueueMissionRepeatLoad() { unsafe { - if (fn__queueMissionRepeatLoad == null) fn__queueMissionRepeatLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_queueMissionRepeatLoad"); + if (fn__queueMissionRepeatLoad == null) fn__queueMissionRepeatLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_queueMissionRepeatLoad"); var success = false; var result = fn__queueMissionRepeatLoad(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool QueueMissionRepeatSave() { unsafe { - if (fn__queueMissionRepeatSave == null) fn__queueMissionRepeatSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_queueMissionRepeatSave"); + if (fn__queueMissionRepeatSave == null) fn__queueMissionRepeatSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_queueMissionRepeatSave"); var success = false; var result = fn__queueMissionRepeatSave(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56816,11 +56816,11 @@ public int GetStatusOfMissionRepeatSave() public bool IsMemoryCardInUse() { unsafe { - if (fn__isMemoryCardInUse == null) fn__isMemoryCardInUse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMemoryCardInUse"); + if (fn__isMemoryCardInUse == null) fn__isMemoryCardInUse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMemoryCardInUse"); var success = false; var result = fn__isMemoryCardInUse(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56828,9 +56828,9 @@ public bool IsMemoryCardInUse() public void ShootSingleBulletBetweenCoords(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, int _damage, bool _p7, uint _weaponHash, int _ownerPed, bool _isAudible, bool _isInvisible, float _speed) { unsafe { - if (fn__shootSingleBulletBetweenCoords == null) fn__shootSingleBulletBetweenCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoords"); + if (fn__shootSingleBulletBetweenCoords == null) fn__shootSingleBulletBetweenCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoords"); var success = false; - fn__shootSingleBulletBetweenCoords(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, _p7, _weaponHash, _ownerPed, _isAudible, _isInvisible, _speed); + fn__shootSingleBulletBetweenCoords(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, (byte) (_p7 ? 1 : 0), _weaponHash, _ownerPed, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _speed); if (!success) throw new Exception("Native execution failed"); } } @@ -56841,9 +56841,9 @@ public void ShootSingleBulletBetweenCoords(float _x1, float _y1, float _z1, floa public void ShootSingleBulletBetweenCoordsIgnoreEntity(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, int _damage, bool _p7, uint _weaponHash, int _ownerPed, bool _isAudible, bool _isInvisible, float _speed, int _entity, int _p14) { unsafe { - if (fn__shootSingleBulletBetweenCoordsIgnoreEntity == null) fn__shootSingleBulletBetweenCoordsIgnoreEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoordsIgnoreEntity"); + if (fn__shootSingleBulletBetweenCoordsIgnoreEntity == null) fn__shootSingleBulletBetweenCoordsIgnoreEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoordsIgnoreEntity"); var success = false; - fn__shootSingleBulletBetweenCoordsIgnoreEntity(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, _p7, _weaponHash, _ownerPed, _isAudible, _isInvisible, _speed, _entity, _p14); + fn__shootSingleBulletBetweenCoordsIgnoreEntity(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, (byte) (_p7 ? 1 : 0), _weaponHash, _ownerPed, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _speed, _entity, _p14); if (!success) throw new Exception("Native execution failed"); } } @@ -56854,9 +56854,9 @@ public void ShootSingleBulletBetweenCoordsIgnoreEntity(float _x1, float _y1, flo public void ShootSingleBulletBetweenCoordsIgnoreEntityNew(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, int _damage, bool _p7, uint _weaponHash, int _ownerPed, bool _isAudible, bool _isInvisible, float _speed, int _entity, bool _p14, bool _p15, bool _p16, bool _p17, int _p18, int _p19, int _p20) { unsafe { - if (fn__shootSingleBulletBetweenCoordsIgnoreEntityNew == null) fn__shootSingleBulletBetweenCoordsIgnoreEntityNew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoordsIgnoreEntityNew"); + if (fn__shootSingleBulletBetweenCoordsIgnoreEntityNew == null) fn__shootSingleBulletBetweenCoordsIgnoreEntityNew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shootSingleBulletBetweenCoordsIgnoreEntityNew"); var success = false; - fn__shootSingleBulletBetweenCoordsIgnoreEntityNew(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, _p7, _weaponHash, _ownerPed, _isAudible, _isInvisible, _speed, _entity, _p14, _p15, _p16, _p17, _p18, _p19, _p20); + fn__shootSingleBulletBetweenCoordsIgnoreEntityNew(&success, _x1, _y1, _z1, _x2, _y2, _z2, _damage, (byte) (_p7 ? 1 : 0), _weaponHash, _ownerPed, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), _speed, _entity, (byte) (_p14 ? 1 : 0), (byte) (_p15 ? 1 : 0), (byte) (_p16 ? 1 : 0), (byte) (_p17 ? 1 : 0), _p18, _p19, _p20); if (!success) throw new Exception("Native execution failed"); } } @@ -56899,20 +56899,20 @@ public int GetFakeWantedLevel() public bool IsBitSet(int _address, int _offset) { unsafe { - if (fn__isBitSet == null) fn__isBitSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBitSet"); + if (fn__isBitSet == null) fn__isBitSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBitSet"); var success = false; var result = fn__isBitSet(&success, _address, _offset); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void UsingMissionCreator(bool _toggle) { unsafe { - if (fn__usingMissionCreator == null) fn__usingMissionCreator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_usingMissionCreator"); + if (fn__usingMissionCreator == null) fn__usingMissionCreator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_usingMissionCreator"); var success = false; - fn__usingMissionCreator(&success, _toggle); + fn__usingMissionCreator(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56920,9 +56920,9 @@ public void UsingMissionCreator(bool _toggle) public void AllowMissionCreatorWarp(bool _toggle) { unsafe { - if (fn__allowMissionCreatorWarp == null) fn__allowMissionCreatorWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_allowMissionCreatorWarp"); + if (fn__allowMissionCreatorWarp == null) fn__allowMissionCreatorWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_allowMissionCreatorWarp"); var success = false; - fn__allowMissionCreatorWarp(&success, _toggle); + fn__allowMissionCreatorWarp(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56930,9 +56930,9 @@ public void AllowMissionCreatorWarp(bool _toggle) public void SetMinigameInProgress(bool _toggle) { unsafe { - if (fn__setMinigameInProgress == null) fn__setMinigameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinigameInProgress"); + if (fn__setMinigameInProgress == null) fn__setMinigameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMinigameInProgress"); var success = false; - fn__setMinigameInProgress(&success, _toggle); + fn__setMinigameInProgress(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -56940,44 +56940,44 @@ public void SetMinigameInProgress(bool _toggle) public bool IsMinigameInProgress() { unsafe { - if (fn__isMinigameInProgress == null) fn__isMinigameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinigameInProgress"); + if (fn__isMinigameInProgress == null) fn__isMinigameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMinigameInProgress"); var success = false; var result = fn__isMinigameInProgress(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisAMinigameScript() { unsafe { - if (fn__isThisAMinigameScript == null) fn__isThisAMinigameScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisAMinigameScript"); + if (fn__isThisAMinigameScript == null) fn__isThisAMinigameScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisAMinigameScript"); var success = false; var result = fn__isThisAMinigameScript(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsSniperInverted() { unsafe { - if (fn__isSniperInverted == null) fn__isSniperInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSniperInverted"); + if (fn__isSniperInverted == null) fn__isSniperInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSniperInverted"); var success = false; var result = fn__isSniperInverted(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ShouldUseMetricMeasurements() { unsafe { - if (fn__shouldUseMetricMeasurements == null) fn__shouldUseMetricMeasurements = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shouldUseMetricMeasurements"); + if (fn__shouldUseMetricMeasurements == null) fn__shouldUseMetricMeasurements = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shouldUseMetricMeasurements"); var success = false; var result = fn__shouldUseMetricMeasurements(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -56995,7 +56995,7 @@ public int GetProfileSetting(int _profileSetting) public bool AreStringsEqual(string _string1, string _string2) { unsafe { - if (fn__areStringsEqual == null) fn__areStringsEqual = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areStringsEqual"); + if (fn__areStringsEqual == null) fn__areStringsEqual = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areStringsEqual"); var success = false; var ptr_string1 = MemoryUtils.StringToHGlobalUtf8(_string1); var ptr_string2 = MemoryUtils.StringToHGlobalUtf8(_string2); @@ -57003,18 +57003,18 @@ public bool AreStringsEqual(string _string1, string _string2) Marshal.FreeHGlobal(ptr_string1); Marshal.FreeHGlobal(ptr_string2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int CompareStrings(string _str1, string _str2, bool _matchCase, int _maxLength) { unsafe { - if (fn__compareStrings == null) fn__compareStrings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_compareStrings"); + if (fn__compareStrings == null) fn__compareStrings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_compareStrings"); var success = false; var ptr_str1 = MemoryUtils.StringToHGlobalUtf8(_str1); var ptr_str2 = MemoryUtils.StringToHGlobalUtf8(_str2); - var result = fn__compareStrings(&success, ptr_str1, ptr_str2, _matchCase, _maxLength); + var result = fn__compareStrings(&success, ptr_str1, ptr_str2, (byte) (_matchCase ? 1 : 0), _maxLength); Marshal.FreeHGlobal(ptr_str1); Marshal.FreeHGlobal(ptr_str2); if (!success) throw new Exception("Native execution failed"); @@ -57047,68 +57047,68 @@ public float Absf(float _value) public bool IsSniperBulletInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__isSniperBulletInArea == null) fn__isSniperBulletInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSniperBulletInArea"); + if (fn__isSniperBulletInArea == null) fn__isSniperBulletInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSniperBulletInArea"); var success = false; var result = fn__isSniperBulletInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsProjectileInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _ownedByPlayer) { unsafe { - if (fn__isProjectileInArea == null) fn__isProjectileInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileInArea"); + if (fn__isProjectileInArea == null) fn__isProjectileInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileInArea"); var success = false; - var result = fn__isProjectileInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _ownedByPlayer); + var result = fn__isProjectileInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsProjectileTypeInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, int _type, bool _ownedByPlayer) { unsafe { - if (fn__isProjectileTypeInArea == null) fn__isProjectileTypeInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeInArea"); + if (fn__isProjectileTypeInArea == null) fn__isProjectileTypeInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeInArea"); var success = false; - var result = fn__isProjectileTypeInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _type, _ownedByPlayer); + var result = fn__isProjectileTypeInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _type, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsProjectileTypeInAngledArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, int _p7, bool _ownedByPlayer) { unsafe { - if (fn__isProjectileTypeInAngledArea == null) fn__isProjectileTypeInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeInAngledArea"); + if (fn__isProjectileTypeInAngledArea == null) fn__isProjectileTypeInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeInAngledArea"); var success = false; - var result = fn__isProjectileTypeInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, _p7, _ownedByPlayer); + var result = fn__isProjectileTypeInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, _p7, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsProjectileTypeWithinDistance(float _x, float _y, float _z, uint _projectileHash, float _radius, bool _ownedByPlayer) { unsafe { - if (fn__isProjectileTypeWithinDistance == null) fn__isProjectileTypeWithinDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeWithinDistance"); + if (fn__isProjectileTypeWithinDistance == null) fn__isProjectileTypeWithinDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isProjectileTypeWithinDistance"); var success = false; - var result = fn__isProjectileTypeWithinDistance(&success, _x, _y, _z, _projectileHash, _radius, _ownedByPlayer); + var result = fn__isProjectileTypeWithinDistance(&success, _x, _y, _z, _projectileHash, _radius, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetCoordsOfProjectileTypeInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, uint _projectileHash, ref Vector3 _projectilePos, bool _ownedByPlayer) { unsafe { - if (fn__getCoordsOfProjectileTypeInArea == null) fn__getCoordsOfProjectileTypeInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCoordsOfProjectileTypeInArea"); + if (fn__getCoordsOfProjectileTypeInArea == null) fn__getCoordsOfProjectileTypeInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCoordsOfProjectileTypeInArea"); var success = false; var ref_projectilePos = _projectilePos; - var result = fn__getCoordsOfProjectileTypeInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _projectileHash, &ref_projectilePos, _ownedByPlayer); + var result = fn__getCoordsOfProjectileTypeInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _projectileHash, &ref_projectilePos, (byte) (_ownedByPlayer ? 1 : 0)); _projectilePos = ref_projectilePos; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57116,13 +57116,13 @@ public bool GetCoordsOfProjectileTypeInArea(float _x1, float _y1, float _z1, flo public bool GetCoordsOfProjectileTypeWithinDistance(int _ped, uint _weaponHash, float _distance, ref Vector3 _outCoords, bool _p4) { unsafe { - if (fn__getCoordsOfProjectileTypeWithinDistance == null) fn__getCoordsOfProjectileTypeWithinDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCoordsOfProjectileTypeWithinDistance"); + if (fn__getCoordsOfProjectileTypeWithinDistance == null) fn__getCoordsOfProjectileTypeWithinDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCoordsOfProjectileTypeWithinDistance"); var success = false; var ref_outCoords = _outCoords; - var result = fn__getCoordsOfProjectileTypeWithinDistance(&success, _ped, _weaponHash, _distance, &ref_outCoords, _p4); + var result = fn__getCoordsOfProjectileTypeWithinDistance(&success, _ped, _weaponHash, _distance, &ref_outCoords, (byte) (_p4 ? 1 : 0)); _outCoords = ref_outCoords; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57130,169 +57130,169 @@ public bool GetCoordsOfProjectileTypeWithinDistance(int _ped, uint _weaponHash, public bool GetProjectileNearPed(int _ped, uint _weaponHash, float _distance, ref Vector3 _outCoords, ref int _outProjectile, bool _p5) { unsafe { - if (fn__getProjectileNearPed == null) fn__getProjectileNearPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getProjectileNearPed"); + if (fn__getProjectileNearPed == null) fn__getProjectileNearPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getProjectileNearPed"); var success = false; var ref_outCoords = _outCoords; var ref_outProjectile = _outProjectile; - var result = fn__getProjectileNearPed(&success, _ped, _weaponHash, _distance, &ref_outCoords, &ref_outProjectile, _p5); + var result = fn__getProjectileNearPed(&success, _ped, _weaponHash, _distance, &ref_outCoords, &ref_outProjectile, (byte) (_p5 ? 1 : 0)); _outCoords = ref_outCoords; _outProjectile = ref_outProjectile; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsBulletInAngledArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, bool _ownedByPlayer) { unsafe { - if (fn__isBulletInAngledArea == null) fn__isBulletInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInAngledArea"); + if (fn__isBulletInAngledArea == null) fn__isBulletInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInAngledArea"); var success = false; - var result = fn__isBulletInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, _ownedByPlayer); + var result = fn__isBulletInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsBulletInArea(float _x, float _y, float _z, float _radius, bool _ownedByPlayer) { unsafe { - if (fn__isBulletInArea == null) fn__isBulletInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInArea"); + if (fn__isBulletInArea == null) fn__isBulletInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInArea"); var success = false; - var result = fn__isBulletInArea(&success, _x, _y, _z, _radius, _ownedByPlayer); + var result = fn__isBulletInArea(&success, _x, _y, _z, _radius, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsBulletInBox(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _ownedByPlayer) { unsafe { - if (fn__isBulletInBox == null) fn__isBulletInBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInBox"); + if (fn__isBulletInBox == null) fn__isBulletInBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBulletInBox"); var success = false; - var result = fn__isBulletInBox(&success, _x1, _y1, _z1, _x2, _y2, _z2, _ownedByPlayer); + var result = fn__isBulletInBox(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_ownedByPlayer ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasBulletImpactedInArea(float _x, float _y, float _z, float _p3, bool _p4, bool _p5) { unsafe { - if (fn__hasBulletImpactedInArea == null) fn__hasBulletImpactedInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasBulletImpactedInArea"); + if (fn__hasBulletImpactedInArea == null) fn__hasBulletImpactedInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasBulletImpactedInArea"); var success = false; - var result = fn__hasBulletImpactedInArea(&success, _x, _y, _z, _p3, _p4, _p5); + var result = fn__hasBulletImpactedInArea(&success, _x, _y, _z, _p3, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasBulletImpactedInBox(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, bool _p6, bool _p7) { unsafe { - if (fn__hasBulletImpactedInBox == null) fn__hasBulletImpactedInBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasBulletImpactedInBox"); + if (fn__hasBulletImpactedInBox == null) fn__hasBulletImpactedInBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasBulletImpactedInBox"); var success = false; - var result = fn__hasBulletImpactedInBox(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + var result = fn__hasBulletImpactedInBox(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsOrbisVersion() { unsafe { - if (fn__isOrbisVersion == null) fn__isOrbisVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isOrbisVersion"); + if (fn__isOrbisVersion == null) fn__isOrbisVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isOrbisVersion"); var success = false; var result = fn__isOrbisVersion(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDurangoVersion() { unsafe { - if (fn__isDurangoVersion == null) fn__isDurangoVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDurangoVersion"); + if (fn__isDurangoVersion == null) fn__isDurangoVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDurangoVersion"); var success = false; var result = fn__isDurangoVersion(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsXbox360Version() { unsafe { - if (fn__isXbox360Version == null) fn__isXbox360Version = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isXbox360Version"); + if (fn__isXbox360Version == null) fn__isXbox360Version = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isXbox360Version"); var success = false; var result = fn__isXbox360Version(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPs3Version() { unsafe { - if (fn__isPs3Version == null) fn__isPs3Version = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPs3Version"); + if (fn__isPs3Version == null) fn__isPs3Version = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPs3Version"); var success = false; var result = fn__isPs3Version(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPcVersion() { unsafe { - if (fn__isPcVersion == null) fn__isPcVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPcVersion"); + if (fn__isPcVersion == null) fn__isPcVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPcVersion"); var success = false; var result = fn__isPcVersion(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsAussieVersion() { unsafe { - if (fn__isAussieVersion == null) fn__isAussieVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAussieVersion"); + if (fn__isAussieVersion == null) fn__isAussieVersion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAussieVersion"); var success = false; var result = fn__isAussieVersion(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsStringNull(string _string) { unsafe { - if (fn__isStringNull == null) fn__isStringNull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStringNull"); + if (fn__isStringNull == null) fn__isStringNull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStringNull"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); var result = fn__isStringNull(&success, ptr_string); Marshal.FreeHGlobal(ptr_string); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsStringNullOrEmpty(string _string) { unsafe { - if (fn__isStringNullOrEmpty == null) fn__isStringNullOrEmpty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStringNullOrEmpty"); + if (fn__isStringNullOrEmpty == null) fn__isStringNullOrEmpty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStringNullOrEmpty"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); var result = fn__isStringNullOrEmpty(&success, ptr_string); Marshal.FreeHGlobal(ptr_string); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StringToInt(string _string, ref int _outInteger) { unsafe { - if (fn__stringToInt == null) fn__stringToInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stringToInt"); + if (fn__stringToInt == null) fn__stringToInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stringToInt"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); var ref_outInteger = _outInteger; @@ -57300,7 +57300,7 @@ public bool StringToInt(string _string, ref int _outInteger) Marshal.FreeHGlobal(ptr_string); _outInteger = ref_outInteger; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57352,9 +57352,9 @@ public int AddStuntJumpAngled(float _x1, float _y1, float _z1, float _x2, float public void _0xFB80AB299D2EE1BD(bool _toggle) { unsafe { - if (fn__0xFB80AB299D2EE1BD == null) fn__0xFB80AB299D2EE1BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFB80AB299D2EE1BD"); + if (fn__0xFB80AB299D2EE1BD == null) fn__0xFB80AB299D2EE1BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFB80AB299D2EE1BD"); var success = false; - fn__0xFB80AB299D2EE1BD(&success, _toggle); + fn__0xFB80AB299D2EE1BD(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57392,9 +57392,9 @@ public void DisableStuntJumpSet(int _p0) public void SetStuntJumpsCanTrigger(bool _toggle) { unsafe { - if (fn__setStuntJumpsCanTrigger == null) fn__setStuntJumpsCanTrigger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStuntJumpsCanTrigger"); + if (fn__setStuntJumpsCanTrigger == null) fn__setStuntJumpsCanTrigger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStuntJumpsCanTrigger"); var success = false; - fn__setStuntJumpsCanTrigger(&success, _toggle); + fn__setStuntJumpsCanTrigger(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57402,22 +57402,22 @@ public void SetStuntJumpsCanTrigger(bool _toggle) public bool IsStuntJumpInProgress() { unsafe { - if (fn__isStuntJumpInProgress == null) fn__isStuntJumpInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStuntJumpInProgress"); + if (fn__isStuntJumpInProgress == null) fn__isStuntJumpInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStuntJumpInProgress"); var success = false; var result = fn__isStuntJumpInProgress(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsStuntJumpMessageShowing() { unsafe { - if (fn__isStuntJumpMessageShowing == null) fn__isStuntJumpMessageShowing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStuntJumpMessageShowing"); + if (fn__isStuntJumpMessageShowing == null) fn__isStuntJumpMessageShowing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStuntJumpMessageShowing"); var success = false; var result = fn__isStuntJumpMessageShowing(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57456,9 +57456,9 @@ public void CancelStuntJump() public void SetGamePaused(bool _toggle) { unsafe { - if (fn__setGamePaused == null) fn__setGamePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGamePaused"); + if (fn__setGamePaused == null) fn__setGamePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGamePaused"); var success = false; - fn__setGamePaused(&success, _toggle); + fn__setGamePaused(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57466,9 +57466,9 @@ public void SetGamePaused(bool _toggle) public void SetThisScriptCanBePaused(bool _toggle) { unsafe { - if (fn__setThisScriptCanBePaused == null) fn__setThisScriptCanBePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setThisScriptCanBePaused"); + if (fn__setThisScriptCanBePaused == null) fn__setThisScriptCanBePaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setThisScriptCanBePaused"); var success = false; - fn__setThisScriptCanBePaused(&success, _toggle); + fn__setThisScriptCanBePaused(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57476,9 +57476,9 @@ public void SetThisScriptCanBePaused(bool _toggle) public void SetThisScriptCanRemoveBlipsCreatedByAnyScript(bool _toggle) { unsafe { - if (fn__setThisScriptCanRemoveBlipsCreatedByAnyScript == null) fn__setThisScriptCanRemoveBlipsCreatedByAnyScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setThisScriptCanRemoveBlipsCreatedByAnyScript"); + if (fn__setThisScriptCanRemoveBlipsCreatedByAnyScript == null) fn__setThisScriptCanRemoveBlipsCreatedByAnyScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setThisScriptCanRemoveBlipsCreatedByAnyScript"); var success = false; - fn__setThisScriptCanRemoveBlipsCreatedByAnyScript(&success, _toggle); + fn__setThisScriptCanRemoveBlipsCreatedByAnyScript(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57486,31 +57486,31 @@ public void SetThisScriptCanRemoveBlipsCreatedByAnyScript(bool _toggle) public bool HasButtonCombinationJustBeenEntered(uint _hash, int _amount) { unsafe { - if (fn__hasButtonCombinationJustBeenEntered == null) fn__hasButtonCombinationJustBeenEntered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasButtonCombinationJustBeenEntered"); + if (fn__hasButtonCombinationJustBeenEntered == null) fn__hasButtonCombinationJustBeenEntered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasButtonCombinationJustBeenEntered"); var success = false; var result = fn__hasButtonCombinationJustBeenEntered(&success, _hash, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasCheatStringJustBeenEntered(uint _hash) { unsafe { - if (fn__hasCheatStringJustBeenEntered == null) fn__hasCheatStringJustBeenEntered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCheatStringJustBeenEntered"); + if (fn__hasCheatStringJustBeenEntered == null) fn__hasCheatStringJustBeenEntered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCheatStringJustBeenEntered"); var success = false; var result = fn__hasCheatStringJustBeenEntered(&success, _hash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xFA3FFB0EEBC288A3(bool _p0) { unsafe { - if (fn__0xFA3FFB0EEBC288A3 == null) fn__0xFA3FFB0EEBC288A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFA3FFB0EEBC288A3"); + if (fn__0xFA3FFB0EEBC288A3 == null) fn__0xFA3FFB0EEBC288A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFA3FFB0EEBC288A3"); var success = false; - fn__0xFA3FFB0EEBC288A3(&success, _p0); + fn__0xFA3FFB0EEBC288A3(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57538,11 +57538,11 @@ public void SetInstancePriorityHint(int _flag) public bool IsFrontendFading() { unsafe { - if (fn__isFrontendFading == null) fn__isFrontendFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFrontendFading"); + if (fn__isFrontendFading == null) fn__isFrontendFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFrontendFading"); var success = false; var result = fn__isFrontendFading(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57580,10 +57580,10 @@ public void SetGravityLevel(int _level) public void StartSaveData(ref int _p0, int _p1, bool _p2) { unsafe { - if (fn__startSaveData == null) fn__startSaveData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startSaveData"); + if (fn__startSaveData == null) fn__startSaveData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startSaveData"); var success = false; var ref_p0 = _p0; - fn__startSaveData(&success, &ref_p0, _p1, _p2); + fn__startSaveData(&success, &ref_p0, _p1, (byte) (_p2 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -57602,9 +57602,9 @@ public void StopSaveData() public int GetSizeOfSaveData(bool _p0) { unsafe { - if (fn__getSizeOfSaveData == null) fn__getSizeOfSaveData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSizeOfSaveData"); + if (fn__getSizeOfSaveData == null) fn__getSizeOfSaveData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSizeOfSaveData"); var success = false; - var result = fn__getSizeOfSaveData(&success, _p0); + var result = fn__getSizeOfSaveData(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -57815,9 +57815,9 @@ public void CopyMemory(ref int _dst, ref int _src, int _size) public void EnableDispatchService(int _dispatchService, bool _toggle) { unsafe { - if (fn__enableDispatchService == null) fn__enableDispatchService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableDispatchService"); + if (fn__enableDispatchService == null) fn__enableDispatchService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableDispatchService"); var success = false; - fn__enableDispatchService(&success, _dispatchService, _toggle); + fn__enableDispatchService(&success, _dispatchService, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57825,9 +57825,9 @@ public void EnableDispatchService(int _dispatchService, bool _toggle) public void BlockDispatchServiceResourceCreation(int _dispatchService, bool _toggle) { unsafe { - if (fn__blockDispatchServiceResourceCreation == null) fn__blockDispatchServiceResourceCreation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockDispatchServiceResourceCreation"); + if (fn__blockDispatchServiceResourceCreation == null) fn__blockDispatchServiceResourceCreation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockDispatchServiceResourceCreation"); var success = false; - fn__blockDispatchServiceResourceCreation(&success, _dispatchService, _toggle); + fn__blockDispatchServiceResourceCreation(&success, _dispatchService, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57846,13 +57846,13 @@ public int GetNumDispatchedUnitsForPlayer(int _dispatchService) public bool CreateIncident(int _dispatchService, float _x, float _y, float _z, int _numUnits, float _radius, ref int _outIncidentID, int _p7, int _p8) { unsafe { - if (fn__createIncident == null) fn__createIncident = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createIncident"); + if (fn__createIncident == null) fn__createIncident = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createIncident"); var success = false; var ref_outIncidentID = _outIncidentID; var result = fn__createIncident(&success, _dispatchService, _x, _y, _z, _numUnits, _radius, &ref_outIncidentID, _p7, _p8); _outIncidentID = ref_outIncidentID; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57860,13 +57860,13 @@ public bool CreateIncident(int _dispatchService, float _x, float _y, float _z, i public bool CreateIncidentWithEntity(int _dispatchService, int _ped, int _numUnits, float _radius, ref int _outIncidentID, int _p5, int _p6) { unsafe { - if (fn__createIncidentWithEntity == null) fn__createIncidentWithEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createIncidentWithEntity"); + if (fn__createIncidentWithEntity == null) fn__createIncidentWithEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createIncidentWithEntity"); var success = false; var ref_outIncidentID = _outIncidentID; var result = fn__createIncidentWithEntity(&success, _dispatchService, _ped, _numUnits, _radius, &ref_outIncidentID, _p5, _p6); _outIncidentID = ref_outIncidentID; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57883,11 +57883,11 @@ public void DeleteIncident(int _incidentId) public bool IsIncidentValid(int _incidentId) { unsafe { - if (fn__isIncidentValid == null) fn__isIncidentValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isIncidentValid"); + if (fn__isIncidentValid == null) fn__isIncidentValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isIncidentValid"); var success = false; var result = fn__isIncidentValid(&success, _incidentId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -57914,22 +57914,22 @@ public void SetIncidentUnk(int _incidentId, float _p1) public bool FindSpawnPointInDirection(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _distance, ref Vector3 _spawnPoint) { unsafe { - if (fn__findSpawnPointInDirection == null) fn__findSpawnPointInDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_findSpawnPointInDirection"); + if (fn__findSpawnPointInDirection == null) fn__findSpawnPointInDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_findSpawnPointInDirection"); var success = false; var ref_spawnPoint = _spawnPoint; var result = fn__findSpawnPointInDirection(&success, _x1, _y1, _z1, _x2, _y2, _z2, _distance, &ref_spawnPoint); _spawnPoint = ref_spawnPoint; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int AddPopMultiplierArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _p6, float _p7, bool _p8, bool _p9) { unsafe { - if (fn__addPopMultiplierArea == null) fn__addPopMultiplierArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addPopMultiplierArea"); + if (fn__addPopMultiplierArea == null) fn__addPopMultiplierArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addPopMultiplierArea"); var success = false; - var result = fn__addPopMultiplierArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _p6, _p7, _p8, _p9); + var result = fn__addPopMultiplierArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _p6, _p7, (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -57938,20 +57938,20 @@ public int AddPopMultiplierArea(float _x1, float _y1, float _z1, float _x2, floa public bool DoesPopMultiplierAreaExist(int _id) { unsafe { - if (fn__doesPopMultiplierAreaExist == null) fn__doesPopMultiplierAreaExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPopMultiplierAreaExist"); + if (fn__doesPopMultiplierAreaExist == null) fn__doesPopMultiplierAreaExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPopMultiplierAreaExist"); var success = false; var result = fn__doesPopMultiplierAreaExist(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void RemovePopMultiplierArea(int _id, bool _p1) { unsafe { - if (fn__removePopMultiplierArea == null) fn__removePopMultiplierArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePopMultiplierArea"); + if (fn__removePopMultiplierArea == null) fn__removePopMultiplierArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePopMultiplierArea"); var success = false; - fn__removePopMultiplierArea(&success, _id, _p1); + fn__removePopMultiplierArea(&success, _id, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -57959,20 +57959,20 @@ public void RemovePopMultiplierArea(int _id, bool _p1) public bool IsPopMultiplierAreaUnk(int _id) { unsafe { - if (fn__isPopMultiplierAreaUnk == null) fn__isPopMultiplierAreaUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPopMultiplierAreaUnk"); + if (fn__isPopMultiplierAreaUnk == null) fn__isPopMultiplierAreaUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPopMultiplierAreaUnk"); var success = false; var result = fn__isPopMultiplierAreaUnk(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int AddPopMultiplierSphere(float _x, float _y, float _z, float _radius, float _pedMultiplier, float _vehicleMultiplier, bool _p6, bool _p7) { unsafe { - if (fn__addPopMultiplierSphere == null) fn__addPopMultiplierSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addPopMultiplierSphere"); + if (fn__addPopMultiplierSphere == null) fn__addPopMultiplierSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addPopMultiplierSphere"); var success = false; - var result = fn__addPopMultiplierSphere(&success, _x, _y, _z, _radius, _pedMultiplier, _vehicleMultiplier, _p6, _p7); + var result = fn__addPopMultiplierSphere(&success, _x, _y, _z, _radius, _pedMultiplier, _vehicleMultiplier, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -57981,20 +57981,20 @@ public int AddPopMultiplierSphere(float _x, float _y, float _z, float _radius, f public bool DoesPopMultiplierSphereExist(int _id) { unsafe { - if (fn__doesPopMultiplierSphereExist == null) fn__doesPopMultiplierSphereExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPopMultiplierSphereExist"); + if (fn__doesPopMultiplierSphereExist == null) fn__doesPopMultiplierSphereExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPopMultiplierSphereExist"); var success = false; var result = fn__doesPopMultiplierSphereExist(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void RemovePopMultiplierSphere(int _id, bool _p1) { unsafe { - if (fn__removePopMultiplierSphere == null) fn__removePopMultiplierSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePopMultiplierSphere"); + if (fn__removePopMultiplierSphere == null) fn__removePopMultiplierSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePopMultiplierSphere"); var success = false; - fn__removePopMultiplierSphere(&success, _id, _p1); + fn__removePopMultiplierSphere(&success, _id, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58003,9 +58003,9 @@ public void RemovePopMultiplierSphere(int _id, bool _p1) public void EnableTennisMode(int _ped, bool _toggle, bool _p2) { unsafe { - if (fn__enableTennisMode == null) fn__enableTennisMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableTennisMode"); + if (fn__enableTennisMode == null) fn__enableTennisMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableTennisMode"); var success = false; - fn__enableTennisMode(&success, _ped, _toggle, _p2); + fn__enableTennisMode(&success, _ped, (byte) (_toggle ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58014,11 +58014,11 @@ public void EnableTennisMode(int _ped, bool _toggle, bool _p2) public bool IsTennisMode(int _ped) { unsafe { - if (fn__isTennisMode == null) fn__isTennisMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTennisMode"); + if (fn__isTennisMode == null) fn__isTennisMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTennisMode"); var success = false; var result = fn__isTennisMode(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58026,11 +58026,11 @@ public bool IsTennisMode(int _ped) public void PlayTennisSwingAnim(int _ped, string _animDict, string _animName, float _p3, float _p4, bool _p5) { unsafe { - if (fn__playTennisSwingAnim == null) fn__playTennisSwingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playTennisSwingAnim"); + if (fn__playTennisSwingAnim == null) fn__playTennisSwingAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playTennisSwingAnim"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); - fn__playTennisSwingAnim(&success, _ped, ptr_animDict, ptr_animName, _p3, _p4, _p5); + fn__playTennisSwingAnim(&success, _ped, ptr_animDict, ptr_animName, _p3, _p4, (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animName); if (!success) throw new Exception("Native execution failed"); @@ -58041,11 +58041,11 @@ public void PlayTennisSwingAnim(int _ped, string _animDict, string _animName, fl public bool GetTennisSwingAnimComplete(int _ped) { unsafe { - if (fn__getTennisSwingAnimComplete == null) fn__getTennisSwingAnimComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTennisSwingAnimComplete"); + if (fn__getTennisSwingAnimComplete == null) fn__getTennisSwingAnimComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTennisSwingAnimComplete"); var success = false; var result = fn__getTennisSwingAnimComplete(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58053,11 +58053,11 @@ public bool GetTennisSwingAnimComplete(int _ped) public bool _0x19BFED045C647C49(int _ped) { unsafe { - if (fn__0x19BFED045C647C49 == null) fn__0x19BFED045C647C49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x19BFED045C647C49"); + if (fn__0x19BFED045C647C49 == null) fn__0x19BFED045C647C49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x19BFED045C647C49"); var success = false; var result = fn__0x19BFED045C647C49(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58065,11 +58065,11 @@ public bool _0x19BFED045C647C49(int _ped) public bool _0xE95B0C7D5BA3B96B(int _ped) { unsafe { - if (fn__0xE95B0C7D5BA3B96B == null) fn__0xE95B0C7D5BA3B96B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE95B0C7D5BA3B96B"); + if (fn__0xE95B0C7D5BA3B96B == null) fn__0xE95B0C7D5BA3B96B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE95B0C7D5BA3B96B"); var success = false; var result = fn__0xE95B0C7D5BA3B96B(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58077,9 +58077,9 @@ public bool _0xE95B0C7D5BA3B96B(int _ped) public void PlayTennisDiveAnim(int _ped, int _p1, float _p2, float _p3, float _p4, bool _p5) { unsafe { - if (fn__playTennisDiveAnim == null) fn__playTennisDiveAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playTennisDiveAnim"); + if (fn__playTennisDiveAnim == null) fn__playTennisDiveAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playTennisDiveAnim"); var success = false; - fn__playTennisDiveAnim(&success, _ped, _p1, _p2, _p3, _p4, _p5); + fn__playTennisDiveAnim(&success, _ped, _p1, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58252,9 +58252,9 @@ public void ClearTacticalAnalysisPoints() public void SetRiotModeEnabled(bool _toggle) { unsafe { - if (fn__setRiotModeEnabled == null) fn__setRiotModeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRiotModeEnabled"); + if (fn__setRiotModeEnabled == null) fn__setRiotModeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRiotModeEnabled"); var success = false; - fn__setRiotModeEnabled(&success, _toggle); + fn__setRiotModeEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58358,9 +58358,9 @@ public void NextOnscreenKeyboardResultWillDisplayUsingTheseFonts(int _p0) public void RemoveStealthKill(uint _hash, bool _p1) { unsafe { - if (fn__removeStealthKill == null) fn__removeStealthKill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeStealthKill"); + if (fn__removeStealthKill == null) fn__removeStealthKill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeStealthKill"); var success = false; - fn__removeStealthKill(&success, _hash, _p1); + fn__removeStealthKill(&success, _hash, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58368,9 +58368,9 @@ public void RemoveStealthKill(uint _hash, bool _p1) public void _0x1EAE0A6E978894A2(int _p0, bool _p1) { unsafe { - if (fn__0x1EAE0A6E978894A2 == null) fn__0x1EAE0A6E978894A2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1EAE0A6E978894A2"); + if (fn__0x1EAE0A6E978894A2 == null) fn__0x1EAE0A6E978894A2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1EAE0A6E978894A2"); var success = false; - fn__0x1EAE0A6E978894A2(&success, _p0, _p1); + fn__0x1EAE0A6E978894A2(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58444,11 +58444,11 @@ public void SetForcePlayerToJump(int _player) public bool _0x6FDDF453C0C756EC() { unsafe { - if (fn__0x6FDDF453C0C756EC == null) fn__0x6FDDF453C0C756EC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FDDF453C0C756EC"); + if (fn__0x6FDDF453C0C756EC == null) fn__0x6FDDF453C0C756EC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FDDF453C0C756EC"); var success = false; var result = fn__0x6FDDF453C0C756EC(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58465,11 +58465,11 @@ public void _0xFB00CA71DA386228() public bool AreProfileSettingsValid() { unsafe { - if (fn__areProfileSettingsValid == null) fn__areProfileSettingsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areProfileSettingsValid"); + if (fn__areProfileSettingsValid == null) fn__areProfileSettingsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areProfileSettingsValid"); var success = false; var result = fn__areProfileSettingsValid(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58527,7 +58527,7 @@ public void _0x1BB299305C3E8C13(int _p0, int _p1, int _p2, int _p3) public bool ScriptRaceGetPlayerSplitTime(int _player, ref int _p1, ref int _p2) { unsafe { - if (fn__scriptRaceGetPlayerSplitTime == null) fn__scriptRaceGetPlayerSplitTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scriptRaceGetPlayerSplitTime"); + if (fn__scriptRaceGetPlayerSplitTime == null) fn__scriptRaceGetPlayerSplitTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scriptRaceGetPlayerSplitTime"); var success = false; var ref_p1 = _p1; var ref_p2 = _p2; @@ -58535,7 +58535,7 @@ public bool ScriptRaceGetPlayerSplitTime(int _player, ref int _p1, ref int _p2) _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58582,33 +58582,33 @@ public void SaveBenchmarkRecording() public bool UiIsSingleplayerPauseMenuActive() { unsafe { - if (fn__uiIsSingleplayerPauseMenuActive == null) fn__uiIsSingleplayerPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_uiIsSingleplayerPauseMenuActive"); + if (fn__uiIsSingleplayerPauseMenuActive == null) fn__uiIsSingleplayerPauseMenuActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_uiIsSingleplayerPauseMenuActive"); var success = false; var result = fn__uiIsSingleplayerPauseMenuActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool LandingMenuIsActive() { unsafe { - if (fn__landingMenuIsActive == null) fn__landingMenuIsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_landingMenuIsActive"); + if (fn__landingMenuIsActive == null) fn__landingMenuIsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_landingMenuIsActive"); var success = false; var result = fn__landingMenuIsActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCommandLineBenchmarkValueSet() { unsafe { - if (fn__isCommandLineBenchmarkValueSet == null) fn__isCommandLineBenchmarkValueSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommandLineBenchmarkValueSet"); + if (fn__isCommandLineBenchmarkValueSet == null) fn__isCommandLineBenchmarkValueSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommandLineBenchmarkValueSet"); var success = false; var result = fn__isCommandLineBenchmarkValueSet(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58657,11 +58657,11 @@ public void ForceSocialClubUpdate() public bool HasAsyncInstallFinished() { unsafe { - if (fn__hasAsyncInstallFinished == null) fn__hasAsyncInstallFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAsyncInstallFinished"); + if (fn__hasAsyncInstallFinished == null) fn__hasAsyncInstallFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAsyncInstallFinished"); var success = false; var result = fn__hasAsyncInstallFinished(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58678,11 +58678,11 @@ public void CleanupAsyncInstall() public bool IsInPowerSavingMode() { unsafe { - if (fn__isInPowerSavingMode == null) fn__isInPowerSavingMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInPowerSavingMode"); + if (fn__isInPowerSavingMode == null) fn__isInPowerSavingMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInPowerSavingMode"); var success = false; var result = fn__isInPowerSavingMode(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -58700,9 +58700,9 @@ public int GetPowerSavingModeDuration() public void SetPlayerIsInAnimalForm(bool _toggle) { unsafe { - if (fn__setPlayerIsInAnimalForm == null) fn__setPlayerIsInAnimalForm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerIsInAnimalForm"); + if (fn__setPlayerIsInAnimalForm == null) fn__setPlayerIsInAnimalForm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerIsInAnimalForm"); var success = false; - fn__setPlayerIsInAnimalForm(&success, _toggle); + fn__setPlayerIsInAnimalForm(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58710,20 +58710,20 @@ public void SetPlayerIsInAnimalForm(bool _toggle) public bool GetIsPlayerInAnimalForm() { unsafe { - if (fn__getIsPlayerInAnimalForm == null) fn__getIsPlayerInAnimalForm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPlayerInAnimalForm"); + if (fn__getIsPlayerInAnimalForm == null) fn__getIsPlayerInAnimalForm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPlayerInAnimalForm"); var success = false; var result = fn__getIsPlayerInAnimalForm(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetPlayerRockstarEditorDisabled(bool _toggle) { unsafe { - if (fn__setPlayerRockstarEditorDisabled == null) fn__setPlayerRockstarEditorDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerRockstarEditorDisabled"); + if (fn__setPlayerRockstarEditorDisabled == null) fn__setPlayerRockstarEditorDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerRockstarEditorDisabled"); var success = false; - fn__setPlayerRockstarEditorDisabled(&success, _toggle); + fn__setPlayerRockstarEditorDisabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58837,9 +58837,9 @@ public void GetMobilePhonePosition(ref Vector3 _position) public void ScriptIsMovingMobilePhoneOffscreen(bool _toggle) { unsafe { - if (fn__scriptIsMovingMobilePhoneOffscreen == null) fn__scriptIsMovingMobilePhoneOffscreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scriptIsMovingMobilePhoneOffscreen"); + if (fn__scriptIsMovingMobilePhoneOffscreen == null) fn__scriptIsMovingMobilePhoneOffscreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scriptIsMovingMobilePhoneOffscreen"); var success = false; - fn__scriptIsMovingMobilePhoneOffscreen(&success, _toggle); + fn__scriptIsMovingMobilePhoneOffscreen(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58847,20 +58847,20 @@ public void ScriptIsMovingMobilePhoneOffscreen(bool _toggle) public bool CanPhoneBeSeenOnScreen() { unsafe { - if (fn__canPhoneBeSeenOnScreen == null) fn__canPhoneBeSeenOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPhoneBeSeenOnScreen"); + if (fn__canPhoneBeSeenOnScreen == null) fn__canPhoneBeSeenOnScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPhoneBeSeenOnScreen"); var success = false; var result = fn__canPhoneBeSeenOnScreen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetMobilePhoneUnk(bool _toggle) { unsafe { - if (fn__setMobilePhoneUnk == null) fn__setMobilePhoneUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobilePhoneUnk"); + if (fn__setMobilePhoneUnk == null) fn__setMobilePhoneUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMobilePhoneUnk"); var success = false; - fn__setMobilePhoneUnk(&success, _toggle); + fn__setMobilePhoneUnk(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58878,9 +58878,9 @@ public void CellCamMoveFinger(int _direction) public void CellCamSetLean(bool _toggle) { unsafe { - if (fn__cellCamSetLean == null) fn__cellCamSetLean = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamSetLean"); + if (fn__cellCamSetLean == null) fn__cellCamSetLean = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamSetLean"); var success = false; - fn__cellCamSetLean(&success, _toggle); + fn__cellCamSetLean(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58888,9 +58888,9 @@ public void CellCamSetLean(bool _toggle) public void CellCamActivate(bool _p0, bool _p1) { unsafe { - if (fn__cellCamActivate == null) fn__cellCamActivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamActivate"); + if (fn__cellCamActivate == null) fn__cellCamActivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamActivate"); var success = false; - fn__cellCamActivate(&success, _p0, _p1); + fn__cellCamActivate(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -58898,9 +58898,9 @@ public void CellCamActivate(bool _p0, bool _p1) public void CellCamDisableThisFrame(bool _toggle) { unsafe { - if (fn__cellCamDisableThisFrame == null) fn__cellCamDisableThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamDisableThisFrame"); + if (fn__cellCamDisableThisFrame == null) fn__cellCamDisableThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamDisableThisFrame"); var success = false; - fn__cellCamDisableThisFrame(&success, _toggle); + fn__cellCamDisableThisFrame(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59001,11 +59001,11 @@ public void _0x466DA42C89865553(float _p0) public bool CellCamIsCharVisibleNoFaceCheck(int _entity) { unsafe { - if (fn__cellCamIsCharVisibleNoFaceCheck == null) fn__cellCamIsCharVisibleNoFaceCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamIsCharVisibleNoFaceCheck"); + if (fn__cellCamIsCharVisibleNoFaceCheck == null) fn__cellCamIsCharVisibleNoFaceCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cellCamIsCharVisibleNoFaceCheck"); var success = false; var result = fn__cellCamIsCharVisibleNoFaceCheck(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -59034,9 +59034,9 @@ public void NetworkInitializeCash(int _wallet, int _bank) public void NetworkDeleteCharacter(int _characterSlot, bool _p1, bool _p2) { unsafe { - if (fn__networkDeleteCharacter == null) fn__networkDeleteCharacter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDeleteCharacter"); + if (fn__networkDeleteCharacter == null) fn__networkDeleteCharacter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDeleteCharacter"); var success = false; - fn__networkDeleteCharacter(&success, _characterSlot, _p1, _p2); + fn__networkDeleteCharacter(&success, _characterSlot, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59054,11 +59054,11 @@ public void NetworkManualDeleteCharacter(int _characterSlot) public bool NetworkGetIsHighEarner() { unsafe { - if (fn__networkGetIsHighEarner == null) fn__networkGetIsHighEarner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetIsHighEarner"); + if (fn__networkGetIsHighEarner == null) fn__networkGetIsHighEarner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetIsHighEarner"); var success = false; var result = fn__networkGetIsHighEarner(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -59099,22 +59099,22 @@ public void NetworkReceivePlayerJobshareCash(int _value, ref int _gamerHandle) public bool NetworkCanShareJobCash() { unsafe { - if (fn__networkCanShareJobCash == null) fn__networkCanShareJobCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanShareJobCash"); + if (fn__networkCanShareJobCash == null) fn__networkCanShareJobCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanShareJobCash"); var success = false; var result = fn__networkCanShareJobCash(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkRefundCash(int _index, string _context, string _reason, bool _unk) { unsafe { - if (fn__networkRefundCash == null) fn__networkRefundCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRefundCash"); + if (fn__networkRefundCash == null) fn__networkRefundCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRefundCash"); var success = false; var ptr_context = MemoryUtils.StringToHGlobalUtf8(_context); var ptr_reason = MemoryUtils.StringToHGlobalUtf8(_reason); - fn__networkRefundCash(&success, _index, ptr_context, ptr_reason, _unk); + fn__networkRefundCash(&success, _index, ptr_context, ptr_reason, (byte) (_unk ? 1 : 0)); Marshal.FreeHGlobal(ptr_context); Marshal.FreeHGlobal(ptr_reason); if (!success) throw new Exception("Native execution failed"); @@ -59124,11 +59124,11 @@ public void NetworkRefundCash(int _index, string _context, string _reason, bool public void NetworkDeductCash(int _amount, string _p1, string _p2, bool _p3, bool _p4, bool _p5) { unsafe { - if (fn__networkDeductCash == null) fn__networkDeductCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDeductCash"); + if (fn__networkDeductCash == null) fn__networkDeductCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDeductCash"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); - fn__networkDeductCash(&success, _amount, ptr_p1, ptr_p2, _p3, _p4, _p5); + fn__networkDeductCash(&success, _amount, ptr_p1, ptr_p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p1); Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); @@ -59138,88 +59138,88 @@ public void NetworkDeductCash(int _amount, string _p1, string _p2, bool _p3, boo public bool NetworkMoneyCanBet(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkMoneyCanBet == null) fn__networkMoneyCanBet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkMoneyCanBet"); + if (fn__networkMoneyCanBet == null) fn__networkMoneyCanBet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkMoneyCanBet"); var success = false; - var result = fn__networkMoneyCanBet(&success, _amount, _p1, _p2); + var result = fn__networkMoneyCanBet(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanBet(int _amount) { unsafe { - if (fn__networkCanBet == null) fn__networkCanBet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanBet"); + if (fn__networkCanBet == null) fn__networkCanBet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanBet"); var success = false; var result = fn__networkCanBet(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoCanUseGamblingType(uint _hash) { unsafe { - if (fn__networkCasinoCanUseGamblingType == null) fn__networkCasinoCanUseGamblingType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanUseGamblingType"); + if (fn__networkCasinoCanUseGamblingType == null) fn__networkCasinoCanUseGamblingType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanUseGamblingType"); var success = false; var result = fn__networkCasinoCanUseGamblingType(&success, _hash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoCanPurchaseChipsWithPvc() { unsafe { - if (fn__networkCasinoCanPurchaseChipsWithPvc == null) fn__networkCasinoCanPurchaseChipsWithPvc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanPurchaseChipsWithPvc"); + if (fn__networkCasinoCanPurchaseChipsWithPvc == null) fn__networkCasinoCanPurchaseChipsWithPvc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanPurchaseChipsWithPvc"); var success = false; var result = fn__networkCasinoCanPurchaseChipsWithPvc(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoCanGamble(int _p0) { unsafe { - if (fn__networkCasinoCanGamble == null) fn__networkCasinoCanGamble = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanGamble"); + if (fn__networkCasinoCanGamble == null) fn__networkCasinoCanGamble = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanGamble"); var success = false; var result = fn__networkCasinoCanGamble(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoCanPurchaseChipsWithPvc2() { unsafe { - if (fn__networkCasinoCanPurchaseChipsWithPvc2 == null) fn__networkCasinoCanPurchaseChipsWithPvc2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanPurchaseChipsWithPvc2"); + if (fn__networkCasinoCanPurchaseChipsWithPvc2 == null) fn__networkCasinoCanPurchaseChipsWithPvc2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoCanPurchaseChipsWithPvc2"); var success = false; var result = fn__networkCasinoCanPurchaseChipsWithPvc2(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoPurchaseChips(int _p0, int _p1) { unsafe { - if (fn__networkCasinoPurchaseChips == null) fn__networkCasinoPurchaseChips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoPurchaseChips"); + if (fn__networkCasinoPurchaseChips == null) fn__networkCasinoPurchaseChips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoPurchaseChips"); var success = false; var result = fn__networkCasinoPurchaseChips(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCasinoSellChips(int _p0, int _p1) { unsafe { - if (fn__networkCasinoSellChips == null) fn__networkCasinoSellChips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoSellChips"); + if (fn__networkCasinoSellChips == null) fn__networkCasinoSellChips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCasinoSellChips"); var success = false; var result = fn__networkCasinoSellChips(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -59236,13 +59236,13 @@ public void _0xCD0F5B5D932AE473() public bool CanPayGoon(int _p0, int _p1, int _amount, ref int _p3) { unsafe { - if (fn__canPayGoon == null) fn__canPayGoon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPayGoon"); + if (fn__canPayGoon == null) fn__canPayGoon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPayGoon"); var success = false; var ref_p3 = _p3; var result = fn__canPayGoon(&success, _p0, _p1, _amount, &ref_p3); _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -59369,10 +59369,10 @@ public void NetworkEarnFromBendJob(int _amount, string _heistHash) public void NetworkEarnFromChallengeWin(int _p0, ref int _p1, bool _p2) { unsafe { - if (fn__networkEarnFromChallengeWin == null) fn__networkEarnFromChallengeWin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEarnFromChallengeWin"); + if (fn__networkEarnFromChallengeWin == null) fn__networkEarnFromChallengeWin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEarnFromChallengeWin"); var success = false; var ref_p1 = _p1; - fn__networkEarnFromChallengeWin(&success, _p0, &ref_p1, _p2); + fn__networkEarnFromChallengeWin(&success, _p0, &ref_p1, (byte) (_p2 ? 1 : 0)); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); } @@ -59725,34 +59725,34 @@ public void NetworkEarnFmbbWageBonus(int _p0) public bool NetworkCanSpendMoney(int _p0, bool _p1, bool _p2, bool _p3, int _p4, int _p5) { unsafe { - if (fn__networkCanSpendMoney == null) fn__networkCanSpendMoney = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSpendMoney"); + if (fn__networkCanSpendMoney == null) fn__networkCanSpendMoney = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSpendMoney"); var success = false; - var result = fn__networkCanSpendMoney(&success, _p0, _p1, _p2, _p3, _p4, _p5); + var result = fn__networkCanSpendMoney(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), _p4, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanSpendMoney2(int _p0, bool _p1, bool _p2, bool _p3, ref int _p4, int _p5, int _p6) { unsafe { - if (fn__networkCanSpendMoney2 == null) fn__networkCanSpendMoney2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSpendMoney2"); + if (fn__networkCanSpendMoney2 == null) fn__networkCanSpendMoney2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSpendMoney2"); var success = false; var ref_p4 = _p4; - var result = fn__networkCanSpendMoney2(&success, _p0, _p1, _p2, _p3, &ref_p4, _p5, _p6); + var result = fn__networkCanSpendMoney2(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), &ref_p4, _p5, _p6); _p4 = ref_p4; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkBuyItem(int _amount, uint _item, int _p2, int _p3, bool _p4, string _item_name, int _p6, int _p7, int _p8, bool _p9) { unsafe { - if (fn__networkBuyItem == null) fn__networkBuyItem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyItem"); + if (fn__networkBuyItem == null) fn__networkBuyItem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyItem"); var success = false; var ptr_item_name = MemoryUtils.StringToHGlobalUtf8(_item_name); - fn__networkBuyItem(&success, _amount, _item, _p2, _p3, _p4, ptr_item_name, _p6, _p7, _p8, _p9); + fn__networkBuyItem(&success, _amount, _item, _p2, _p3, (byte) (_p4 ? 1 : 0), ptr_item_name, _p6, _p7, _p8, (byte) (_p9 ? 1 : 0)); Marshal.FreeHGlobal(ptr_item_name); if (!success) throw new Exception("Native execution failed"); } @@ -59761,9 +59761,9 @@ public void NetworkBuyItem(int _amount, uint _item, int _p2, int _p3, bool _p4, public void NetworkSpentTaxi(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentTaxi == null) fn__networkSpentTaxi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentTaxi"); + if (fn__networkSpentTaxi == null) fn__networkSpentTaxi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentTaxi"); var success = false; - fn__networkSpentTaxi(&success, _amount, _p1, _p2); + fn__networkSpentTaxi(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59771,9 +59771,9 @@ public void NetworkSpentTaxi(int _amount, bool _p1, bool _p2) public void NetworkPayEmployeeWage(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkPayEmployeeWage == null) fn__networkPayEmployeeWage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayEmployeeWage"); + if (fn__networkPayEmployeeWage == null) fn__networkPayEmployeeWage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayEmployeeWage"); var success = false; - fn__networkPayEmployeeWage(&success, _p0, _p1, _p2); + fn__networkPayEmployeeWage(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59781,9 +59781,9 @@ public void NetworkPayEmployeeWage(int _p0, bool _p1, bool _p2) public void NetworkPayUtilityBill(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkPayUtilityBill == null) fn__networkPayUtilityBill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayUtilityBill"); + if (fn__networkPayUtilityBill == null) fn__networkPayUtilityBill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayUtilityBill"); var success = false; - fn__networkPayUtilityBill(&success, _amount, _p1, _p2); + fn__networkPayUtilityBill(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59791,10 +59791,10 @@ public void NetworkPayUtilityBill(int _amount, bool _p1, bool _p2) public void NetworkPayMatchEntryFee(int _amount, string _matchId, bool _p2, bool _p3) { unsafe { - if (fn__networkPayMatchEntryFee == null) fn__networkPayMatchEntryFee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayMatchEntryFee"); + if (fn__networkPayMatchEntryFee == null) fn__networkPayMatchEntryFee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPayMatchEntryFee"); var success = false; var ptr_matchId = MemoryUtils.StringToHGlobalUtf8(_matchId); - fn__networkPayMatchEntryFee(&success, _amount, ptr_matchId, _p2, _p3); + fn__networkPayMatchEntryFee(&success, _amount, ptr_matchId, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); Marshal.FreeHGlobal(ptr_matchId); if (!success) throw new Exception("Native execution failed"); } @@ -59803,10 +59803,10 @@ public void NetworkPayMatchEntryFee(int _amount, string _matchId, bool _p2, bool public void NetworkSpentBetting(int _amount, int _p1, string _matchId, bool _p3, bool _p4) { unsafe { - if (fn__networkSpentBetting == null) fn__networkSpentBetting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBetting"); + if (fn__networkSpentBetting == null) fn__networkSpentBetting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBetting"); var success = false; var ptr_matchId = MemoryUtils.StringToHGlobalUtf8(_matchId); - fn__networkSpentBetting(&success, _amount, _p1, ptr_matchId, _p3, _p4); + fn__networkSpentBetting(&success, _amount, _p1, ptr_matchId, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); Marshal.FreeHGlobal(ptr_matchId); if (!success) throw new Exception("Native execution failed"); } @@ -59825,9 +59825,9 @@ public void NetworkSpentWager(int _p0, int _p1, int _amount) public void NetworkSpentInStripclub(int _p0, bool _p1, int _p2, bool _p3) { unsafe { - if (fn__networkSpentInStripclub == null) fn__networkSpentInStripclub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentInStripclub"); + if (fn__networkSpentInStripclub == null) fn__networkSpentInStripclub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentInStripclub"); var success = false; - fn__networkSpentInStripclub(&success, _p0, _p1, _p2, _p3); + fn__networkSpentInStripclub(&success, _p0, (byte) (_p1 ? 1 : 0), _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59835,9 +59835,9 @@ public void NetworkSpentInStripclub(int _p0, bool _p1, int _p2, bool _p3) public void NetworkBuyHealthcare(int _cost, bool _p1, bool _p2) { unsafe { - if (fn__networkBuyHealthcare == null) fn__networkBuyHealthcare = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyHealthcare"); + if (fn__networkBuyHealthcare == null) fn__networkBuyHealthcare = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyHealthcare"); var success = false; - fn__networkBuyHealthcare(&success, _cost, _p1, _p2); + fn__networkBuyHealthcare(&success, _cost, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59845,9 +59845,9 @@ public void NetworkBuyHealthcare(int _cost, bool _p1, bool _p2) public void NetworkBuyAirstrike(int _cost, bool _p1, bool _p2) { unsafe { - if (fn__networkBuyAirstrike == null) fn__networkBuyAirstrike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyAirstrike"); + if (fn__networkBuyAirstrike == null) fn__networkBuyAirstrike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyAirstrike"); var success = false; - fn__networkBuyAirstrike(&success, _cost, _p1, _p2); + fn__networkBuyAirstrike(&success, _cost, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59855,9 +59855,9 @@ public void NetworkBuyAirstrike(int _cost, bool _p1, bool _p2) public void NetworkBuyBackupGang(int _p0, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkBuyBackupGang == null) fn__networkBuyBackupGang = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyBackupGang"); + if (fn__networkBuyBackupGang == null) fn__networkBuyBackupGang = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyBackupGang"); var success = false; - fn__networkBuyBackupGang(&success, _p0, _p1, _p2, _p3); + fn__networkBuyBackupGang(&success, _p0, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59865,9 +59865,9 @@ public void NetworkBuyBackupGang(int _p0, int _p1, bool _p2, bool _p3) public void NetworkBuyHeliStrike(int _cost, bool _p1, bool _p2) { unsafe { - if (fn__networkBuyHeliStrike == null) fn__networkBuyHeliStrike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyHeliStrike"); + if (fn__networkBuyHeliStrike == null) fn__networkBuyHeliStrike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyHeliStrike"); var success = false; - fn__networkBuyHeliStrike(&success, _cost, _p1, _p2); + fn__networkBuyHeliStrike(&success, _cost, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59875,9 +59875,9 @@ public void NetworkBuyHeliStrike(int _cost, bool _p1, bool _p2) public void NetworkSpentAmmoDrop(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentAmmoDrop == null) fn__networkSpentAmmoDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentAmmoDrop"); + if (fn__networkSpentAmmoDrop == null) fn__networkSpentAmmoDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentAmmoDrop"); var success = false; - fn__networkSpentAmmoDrop(&success, _p0, _p1, _p2); + fn__networkSpentAmmoDrop(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59886,9 +59886,9 @@ public void NetworkSpentAmmoDrop(int _p0, bool _p1, bool _p2) public void NetworkBuyBounty(int _amount, int _victim, bool _p2, bool _p3) { unsafe { - if (fn__networkBuyBounty == null) fn__networkBuyBounty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyBounty"); + if (fn__networkBuyBounty == null) fn__networkBuyBounty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyBounty"); var success = false; - fn__networkBuyBounty(&success, _amount, _victim, _p2, _p3); + fn__networkBuyBounty(&success, _amount, _victim, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59896,9 +59896,9 @@ public void NetworkBuyBounty(int _amount, int _victim, bool _p2, bool _p3) public void NetworkBuyProperty(int _cost, uint _propertyName, bool _p2, bool _p3) { unsafe { - if (fn__networkBuyProperty == null) fn__networkBuyProperty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyProperty"); + if (fn__networkBuyProperty == null) fn__networkBuyProperty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyProperty"); var success = false; - fn__networkBuyProperty(&success, _cost, _propertyName, _p2, _p3); + fn__networkBuyProperty(&success, _cost, _propertyName, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59906,9 +59906,9 @@ public void NetworkBuyProperty(int _cost, uint _propertyName, bool _p2, bool _p3 public void NetworkBuySmokes(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkBuySmokes == null) fn__networkBuySmokes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuySmokes"); + if (fn__networkBuySmokes == null) fn__networkBuySmokes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuySmokes"); var success = false; - fn__networkBuySmokes(&success, _p0, _p1, _p2); + fn__networkBuySmokes(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59916,9 +59916,9 @@ public void NetworkBuySmokes(int _p0, bool _p1, bool _p2) public void NetworkSpentHeliPickup(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHeliPickup == null) fn__networkSpentHeliPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHeliPickup"); + if (fn__networkSpentHeliPickup == null) fn__networkSpentHeliPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHeliPickup"); var success = false; - fn__networkSpentHeliPickup(&success, _p0, _p1, _p2); + fn__networkSpentHeliPickup(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59926,9 +59926,9 @@ public void NetworkSpentHeliPickup(int _p0, bool _p1, bool _p2) public void NetworkSpentBoatPickup(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBoatPickup == null) fn__networkSpentBoatPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBoatPickup"); + if (fn__networkSpentBoatPickup == null) fn__networkSpentBoatPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBoatPickup"); var success = false; - fn__networkSpentBoatPickup(&success, _p0, _p1, _p2); + fn__networkSpentBoatPickup(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59936,9 +59936,9 @@ public void NetworkSpentBoatPickup(int _p0, bool _p1, bool _p2) public void NetworkSpentBullShark(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBullShark == null) fn__networkSpentBullShark = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBullShark"); + if (fn__networkSpentBullShark == null) fn__networkSpentBullShark = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBullShark"); var success = false; - fn__networkSpentBullShark(&success, _p0, _p1, _p2); + fn__networkSpentBullShark(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59946,9 +59946,9 @@ public void NetworkSpentBullShark(int _p0, bool _p1, bool _p2) public void NetworkSpentCashDrop(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentCashDrop == null) fn__networkSpentCashDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCashDrop"); + if (fn__networkSpentCashDrop == null) fn__networkSpentCashDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCashDrop"); var success = false; - fn__networkSpentCashDrop(&success, _amount, _p1, _p2); + fn__networkSpentCashDrop(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59956,9 +59956,9 @@ public void NetworkSpentCashDrop(int _amount, bool _p1, bool _p2) public void NetworkSpentHireMugger(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHireMugger == null) fn__networkSpentHireMugger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHireMugger"); + if (fn__networkSpentHireMugger == null) fn__networkSpentHireMugger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHireMugger"); var success = false; - fn__networkSpentHireMugger(&success, _p0, _p1, _p2); + fn__networkSpentHireMugger(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59966,9 +59966,9 @@ public void NetworkSpentHireMugger(int _p0, bool _p1, bool _p2) public void NetworkSpentRobbedByMugger(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentRobbedByMugger == null) fn__networkSpentRobbedByMugger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRobbedByMugger"); + if (fn__networkSpentRobbedByMugger == null) fn__networkSpentRobbedByMugger = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRobbedByMugger"); var success = false; - fn__networkSpentRobbedByMugger(&success, _amount, _p1, _p2); + fn__networkSpentRobbedByMugger(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59976,9 +59976,9 @@ public void NetworkSpentRobbedByMugger(int _amount, bool _p1, bool _p2) public void NetworkSpentHireMercenary(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHireMercenary == null) fn__networkSpentHireMercenary = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHireMercenary"); + if (fn__networkSpentHireMercenary == null) fn__networkSpentHireMercenary = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHireMercenary"); var success = false; - fn__networkSpentHireMercenary(&success, _p0, _p1, _p2); + fn__networkSpentHireMercenary(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -59986,10 +59986,10 @@ public void NetworkSpentHireMercenary(int _p0, bool _p1, bool _p2) public void NetworkSpentBuyWantedlevel(int _p0, ref int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentBuyWantedlevel == null) fn__networkSpentBuyWantedlevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyWantedlevel"); + if (fn__networkSpentBuyWantedlevel == null) fn__networkSpentBuyWantedlevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyWantedlevel"); var success = false; var ref_p1 = _p1; - fn__networkSpentBuyWantedlevel(&success, _p0, &ref_p1, _p2, _p3); + fn__networkSpentBuyWantedlevel(&success, _p0, &ref_p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); } @@ -59998,9 +59998,9 @@ public void NetworkSpentBuyWantedlevel(int _p0, ref int _p1, bool _p2, bool _p3) public void NetworkSpentBuyOfftheradar(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBuyOfftheradar == null) fn__networkSpentBuyOfftheradar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyOfftheradar"); + if (fn__networkSpentBuyOfftheradar == null) fn__networkSpentBuyOfftheradar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyOfftheradar"); var success = false; - fn__networkSpentBuyOfftheradar(&success, _p0, _p1, _p2); + fn__networkSpentBuyOfftheradar(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60008,9 +60008,9 @@ public void NetworkSpentBuyOfftheradar(int _p0, bool _p1, bool _p2) public void NetworkSpentBuyRevealPlayers(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBuyRevealPlayers == null) fn__networkSpentBuyRevealPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyRevealPlayers"); + if (fn__networkSpentBuyRevealPlayers == null) fn__networkSpentBuyRevealPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyRevealPlayers"); var success = false; - fn__networkSpentBuyRevealPlayers(&success, _p0, _p1, _p2); + fn__networkSpentBuyRevealPlayers(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60018,9 +60018,9 @@ public void NetworkSpentBuyRevealPlayers(int _p0, bool _p1, bool _p2) public void NetworkSpentCarwash(int _p0, int _p1, int _p2, bool _p3, bool _p4) { unsafe { - if (fn__networkSpentCarwash == null) fn__networkSpentCarwash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCarwash"); + if (fn__networkSpentCarwash == null) fn__networkSpentCarwash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCarwash"); var success = false; - fn__networkSpentCarwash(&success, _p0, _p1, _p2, _p3, _p4); + fn__networkSpentCarwash(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60028,9 +60028,9 @@ public void NetworkSpentCarwash(int _p0, int _p1, int _p2, bool _p3, bool _p4) public void NetworkSpentCinema(int _p0, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentCinema == null) fn__networkSpentCinema = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCinema"); + if (fn__networkSpentCinema == null) fn__networkSpentCinema = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCinema"); var success = false; - fn__networkSpentCinema(&success, _p0, _p1, _p2, _p3); + fn__networkSpentCinema(&success, _p0, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60038,9 +60038,9 @@ public void NetworkSpentCinema(int _p0, int _p1, bool _p2, bool _p3) public void NetworkSpentTelescope(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentTelescope == null) fn__networkSpentTelescope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentTelescope"); + if (fn__networkSpentTelescope == null) fn__networkSpentTelescope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentTelescope"); var success = false; - fn__networkSpentTelescope(&success, _p0, _p1, _p2); + fn__networkSpentTelescope(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60048,9 +60048,9 @@ public void NetworkSpentTelescope(int _p0, bool _p1, bool _p2) public void NetworkSpentHoldups(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHoldups == null) fn__networkSpentHoldups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHoldups"); + if (fn__networkSpentHoldups == null) fn__networkSpentHoldups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHoldups"); var success = false; - fn__networkSpentHoldups(&success, _p0, _p1, _p2); + fn__networkSpentHoldups(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60058,9 +60058,9 @@ public void NetworkSpentHoldups(int _p0, bool _p1, bool _p2) public void NetworkSpentBuyPassiveMode(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBuyPassiveMode == null) fn__networkSpentBuyPassiveMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyPassiveMode"); + if (fn__networkSpentBuyPassiveMode == null) fn__networkSpentBuyPassiveMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyPassiveMode"); var success = false; - fn__networkSpentBuyPassiveMode(&success, _p0, _p1, _p2); + fn__networkSpentBuyPassiveMode(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60068,9 +60068,9 @@ public void NetworkSpentBuyPassiveMode(int _p0, bool _p1, bool _p2) public void NetworkSpentBankInterest(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBankInterest == null) fn__networkSpentBankInterest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBankInterest"); + if (fn__networkSpentBankInterest == null) fn__networkSpentBankInterest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBankInterest"); var success = false; - fn__networkSpentBankInterest(&success, _p0, _p1, _p2); + fn__networkSpentBankInterest(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60078,9 +60078,9 @@ public void NetworkSpentBankInterest(int _p0, bool _p1, bool _p2) public void NetworkSpentProstitutes(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentProstitutes == null) fn__networkSpentProstitutes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentProstitutes"); + if (fn__networkSpentProstitutes == null) fn__networkSpentProstitutes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentProstitutes"); var success = false; - fn__networkSpentProstitutes(&success, _p0, _p1, _p2); + fn__networkSpentProstitutes(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60088,9 +60088,9 @@ public void NetworkSpentProstitutes(int _p0, bool _p1, bool _p2) public void NetworkSpentArrestBail(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentArrestBail == null) fn__networkSpentArrestBail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArrestBail"); + if (fn__networkSpentArrestBail == null) fn__networkSpentArrestBail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArrestBail"); var success = false; - fn__networkSpentArrestBail(&success, _p0, _p1, _p2); + fn__networkSpentArrestBail(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60098,10 +60098,10 @@ public void NetworkSpentArrestBail(int _p0, bool _p1, bool _p2) public void NetworkSpentPayVehicleInsurancePremium(int _amount, uint _vehicleModel, ref int _gamerHandle, bool _notBankrupt, bool _hasTheMoney) { unsafe { - if (fn__networkSpentPayVehicleInsurancePremium == null) fn__networkSpentPayVehicleInsurancePremium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPayVehicleInsurancePremium"); + if (fn__networkSpentPayVehicleInsurancePremium == null) fn__networkSpentPayVehicleInsurancePremium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPayVehicleInsurancePremium"); var success = false; var ref_gamerHandle = _gamerHandle; - fn__networkSpentPayVehicleInsurancePremium(&success, _amount, _vehicleModel, &ref_gamerHandle, _notBankrupt, _hasTheMoney); + fn__networkSpentPayVehicleInsurancePremium(&success, _amount, _vehicleModel, &ref_gamerHandle, (byte) (_notBankrupt ? 1 : 0), (byte) (_hasTheMoney ? 1 : 0)); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); } @@ -60110,10 +60110,10 @@ public void NetworkSpentPayVehicleInsurancePremium(int _amount, uint _vehicleMod public void NetworkSpentCallPlayer(int _p0, ref int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentCallPlayer == null) fn__networkSpentCallPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCallPlayer"); + if (fn__networkSpentCallPlayer == null) fn__networkSpentCallPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCallPlayer"); var success = false; var ref_p1 = _p1; - fn__networkSpentCallPlayer(&success, _p0, &ref_p1, _p2, _p3); + fn__networkSpentCallPlayer(&success, _p0, &ref_p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); } @@ -60122,9 +60122,9 @@ public void NetworkSpentCallPlayer(int _p0, ref int _p1, bool _p2, bool _p3) public void NetworkSpentBounty(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBounty == null) fn__networkSpentBounty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBounty"); + if (fn__networkSpentBounty == null) fn__networkSpentBounty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBounty"); var success = false; - fn__networkSpentBounty(&success, _p0, _p1, _p2); + fn__networkSpentBounty(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60132,9 +60132,9 @@ public void NetworkSpentBounty(int _p0, bool _p1, bool _p2) public void NetworkSpentFromRockstar(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentFromRockstar == null) fn__networkSpentFromRockstar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentFromRockstar"); + if (fn__networkSpentFromRockstar == null) fn__networkSpentFromRockstar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentFromRockstar"); var success = false; - fn__networkSpentFromRockstar(&success, _p0, _p1, _p2); + fn__networkSpentFromRockstar(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60172,9 +60172,9 @@ public string ProcessCashGift(ref int _p0, ref int _p1, string _p2) public void NetworkSpentPlayerHealthcare(int _p0, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentPlayerHealthcare == null) fn__networkSpentPlayerHealthcare = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPlayerHealthcare"); + if (fn__networkSpentPlayerHealthcare == null) fn__networkSpentPlayerHealthcare = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPlayerHealthcare"); var success = false; - fn__networkSpentPlayerHealthcare(&success, _p0, _p1, _p2, _p3); + fn__networkSpentPlayerHealthcare(&success, _p0, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60182,9 +60182,9 @@ public void NetworkSpentPlayerHealthcare(int _p0, int _p1, bool _p2, bool _p3) public void NetworkSpentNoCops(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentNoCops == null) fn__networkSpentNoCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNoCops"); + if (fn__networkSpentNoCops == null) fn__networkSpentNoCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNoCops"); var success = false; - fn__networkSpentNoCops(&success, _p0, _p1, _p2); + fn__networkSpentNoCops(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60192,9 +60192,9 @@ public void NetworkSpentNoCops(int _p0, bool _p1, bool _p2) public void NetworkSpentRequestJob(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentRequestJob == null) fn__networkSpentRequestJob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRequestJob"); + if (fn__networkSpentRequestJob == null) fn__networkSpentRequestJob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRequestJob"); var success = false; - fn__networkSpentRequestJob(&success, _p0, _p1, _p2); + fn__networkSpentRequestJob(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60202,9 +60202,9 @@ public void NetworkSpentRequestJob(int _p0, bool _p1, bool _p2) public void NetworkSpentRequestHeist(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentRequestHeist == null) fn__networkSpentRequestHeist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRequestHeist"); + if (fn__networkSpentRequestHeist == null) fn__networkSpentRequestHeist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRequestHeist"); var success = false; - fn__networkSpentRequestHeist(&success, _p0, _p1, _p2); + fn__networkSpentRequestHeist(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60212,9 +60212,9 @@ public void NetworkSpentRequestHeist(int _p0, bool _p1, bool _p2) public void NetworkBuyFairgroundRide(int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkBuyFairgroundRide == null) fn__networkBuyFairgroundRide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyFairgroundRide"); + if (fn__networkBuyFairgroundRide == null) fn__networkBuyFairgroundRide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyFairgroundRide"); var success = false; - fn__networkBuyFairgroundRide(&success, _amount, _p1, _p2, _p3); + fn__networkBuyFairgroundRide(&success, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60222,21 +60222,21 @@ public void NetworkBuyFairgroundRide(int _amount, int _p1, bool _p2, bool _p3) public bool _0x7C4FCCD2E4DEB394() { unsafe { - if (fn__0x7C4FCCD2E4DEB394 == null) fn__0x7C4FCCD2E4DEB394 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7C4FCCD2E4DEB394"); + if (fn__0x7C4FCCD2E4DEB394 == null) fn__0x7C4FCCD2E4DEB394 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7C4FCCD2E4DEB394"); var success = false; var result = fn__0x7C4FCCD2E4DEB394(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSpentJobSkip(int _amount, string _matchId, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentJobSkip == null) fn__networkSpentJobSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentJobSkip"); + if (fn__networkSpentJobSkip == null) fn__networkSpentJobSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentJobSkip"); var success = false; var ptr_matchId = MemoryUtils.StringToHGlobalUtf8(_matchId); - fn__networkSpentJobSkip(&success, _amount, ptr_matchId, _p2, _p3); + fn__networkSpentJobSkip(&success, _amount, ptr_matchId, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); Marshal.FreeHGlobal(ptr_matchId); if (!success) throw new Exception("Native execution failed"); } @@ -60245,11 +60245,11 @@ public void NetworkSpentJobSkip(int _amount, string _matchId, bool _p2, bool _p3 public bool NetworkSpentBoss(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBoss == null) fn__networkSpentBoss = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBoss"); + if (fn__networkSpentBoss == null) fn__networkSpentBoss = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBoss"); var success = false; - var result = fn__networkSpentBoss(&success, _amount, _p1, _p2); + var result = fn__networkSpentBoss(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -60276,9 +60276,9 @@ public void NetworkSpentPayBoss(int _p0, int _p1, int _p2) public void NetworkSpentMoveYacht(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentMoveYacht == null) fn__networkSpentMoveYacht = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentMoveYacht"); + if (fn__networkSpentMoveYacht == null) fn__networkSpentMoveYacht = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentMoveYacht"); var success = false; - fn__networkSpentMoveYacht(&success, _amount, _p1, _p2); + fn__networkSpentMoveYacht(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60296,9 +60296,9 @@ public void NetworkSpentRenameOrganization(int _p0, int _p1, int _p2) public void NetworkBuyContraband(int _p0, int _p1, uint _p2, bool _p3, bool _p4) { unsafe { - if (fn__networkBuyContraband == null) fn__networkBuyContraband = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyContraband"); + if (fn__networkBuyContraband == null) fn__networkBuyContraband = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBuyContraband"); var success = false; - fn__networkBuyContraband(&success, _p0, _p1, _p2, _p3, _p4); + fn__networkBuyContraband(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60416,10 +60416,10 @@ public void _0xA95F667A755725DA(int _p0, int _p1, int _p2, int _p3) public void NetworkSpentPurchaseWarehouse(int _amount, ref int _data, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentPurchaseWarehouse == null) fn__networkSpentPurchaseWarehouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPurchaseWarehouse"); + if (fn__networkSpentPurchaseWarehouse == null) fn__networkSpentPurchaseWarehouse = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentPurchaseWarehouse"); var success = false; var ref_data = _data; - fn__networkSpentPurchaseWarehouse(&success, _amount, &ref_data, _p2, _p3); + fn__networkSpentPurchaseWarehouse(&success, _amount, &ref_data, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); _data = ref_data; if (!success) throw new Exception("Native execution failed"); } @@ -60618,9 +60618,9 @@ public void NetworkSpentUpgradeHangar(int _p0, int _p1, int _p2, int _p3) public void NetworkSpentHangarUtilityCharges(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHangarUtilityCharges == null) fn__networkSpentHangarUtilityCharges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHangarUtilityCharges"); + if (fn__networkSpentHangarUtilityCharges == null) fn__networkSpentHangarUtilityCharges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHangarUtilityCharges"); var success = false; - fn__networkSpentHangarUtilityCharges(&success, _amount, _p1, _p2); + fn__networkSpentHangarUtilityCharges(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60628,9 +60628,9 @@ public void NetworkSpentHangarUtilityCharges(int _amount, bool _p1, bool _p2) public void NetworkSpentHangarStaffCharges(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentHangarStaffCharges == null) fn__networkSpentHangarStaffCharges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHangarStaffCharges"); + if (fn__networkSpentHangarStaffCharges == null) fn__networkSpentHangarStaffCharges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentHangarStaffCharges"); var success = false; - fn__networkSpentHangarStaffCharges(&success, _amount, _p1, _p2); + fn__networkSpentHangarStaffCharges(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60688,9 +60688,9 @@ public void NetworkEarnFromSellBunker(int _amount, uint _bunkerHash) public void NetworkSpentBallisticEquipment(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBallisticEquipment == null) fn__networkSpentBallisticEquipment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBallisticEquipment"); + if (fn__networkSpentBallisticEquipment == null) fn__networkSpentBallisticEquipment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBallisticEquipment"); var success = false; - fn__networkSpentBallisticEquipment(&success, _amount, _p1, _p2); + fn__networkSpentBallisticEquipment(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60902,9 +60902,9 @@ public void NetworkRivalDeliveryCompleted(int _earnedMoney) public void NetworkSpentGangopsStartStrand(int _type, int _amount, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentGangopsStartStrand == null) fn__networkSpentGangopsStartStrand = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentGangopsStartStrand"); + if (fn__networkSpentGangopsStartStrand == null) fn__networkSpentGangopsStartStrand = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentGangopsStartStrand"); var success = false; - fn__networkSpentGangopsStartStrand(&success, _type, _amount, _p2, _p3); + fn__networkSpentGangopsStartStrand(&success, _type, _amount, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -60912,9 +60912,9 @@ public void NetworkSpentGangopsStartStrand(int _type, int _amount, bool _p2, boo public void NetworkSpentGangopsTripSkip(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentGangopsTripSkip == null) fn__networkSpentGangopsTripSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentGangopsTripSkip"); + if (fn__networkSpentGangopsTripSkip == null) fn__networkSpentGangopsTripSkip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentGangopsTripSkip"); var success = false; - fn__networkSpentGangopsTripSkip(&success, _amount, _p1, _p2); + fn__networkSpentGangopsTripSkip(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61066,9 +61066,9 @@ public void _0x65482BFD0923C8A1(int _p0, int _p1, int _p2, int _p3, int _p4, int public void NetworkSpentRdrhatchetBonus(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentRdrhatchetBonus == null) fn__networkSpentRdrhatchetBonus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRdrhatchetBonus"); + if (fn__networkSpentRdrhatchetBonus == null) fn__networkSpentRdrhatchetBonus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRdrhatchetBonus"); var success = false; - fn__networkSpentRdrhatchetBonus(&success, _amount, _p1, _p2); + fn__networkSpentRdrhatchetBonus(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61077,9 +61077,9 @@ public void NetworkSpentRdrhatchetBonus(int _amount, bool _p1, bool _p2) public void NetworkSpentNightclubEntryFee(int _player, int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentNightclubEntryFee == null) fn__networkSpentNightclubEntryFee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNightclubEntryFee"); + if (fn__networkSpentNightclubEntryFee == null) fn__networkSpentNightclubEntryFee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNightclubEntryFee"); var success = false; - fn__networkSpentNightclubEntryFee(&success, _player, _amount, _p1, _p2, _p3); + fn__networkSpentNightclubEntryFee(&success, _player, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61087,9 +61087,9 @@ public void NetworkSpentNightclubEntryFee(int _player, int _amount, int _p1, boo public void NetworkSpentNightclubBarDrink(int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentNightclubBarDrink == null) fn__networkSpentNightclubBarDrink = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNightclubBarDrink"); + if (fn__networkSpentNightclubBarDrink == null) fn__networkSpentNightclubBarDrink = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentNightclubBarDrink"); var success = false; - fn__networkSpentNightclubBarDrink(&success, _amount, _p1, _p2, _p3); + fn__networkSpentNightclubBarDrink(&success, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61097,9 +61097,9 @@ public void NetworkSpentNightclubBarDrink(int _amount, int _p1, bool _p2, bool _ public void NetworkSpentBountyHunterMission(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentBountyHunterMission == null) fn__networkSpentBountyHunterMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBountyHunterMission"); + if (fn__networkSpentBountyHunterMission == null) fn__networkSpentBountyHunterMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBountyHunterMission"); var success = false; - fn__networkSpentBountyHunterMission(&success, _amount, _p1, _p2); + fn__networkSpentBountyHunterMission(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61107,9 +61107,9 @@ public void NetworkSpentBountyHunterMission(int _amount, bool _p1, bool _p2) public void NetworkSpentRehireDj(int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentRehireDj == null) fn__networkSpentRehireDj = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRehireDj"); + if (fn__networkSpentRehireDj == null) fn__networkSpentRehireDj = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentRehireDj"); var success = false; - fn__networkSpentRehireDj(&success, _amount, _p1, _p2, _p3); + fn__networkSpentRehireDj(&success, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61117,9 +61117,9 @@ public void NetworkSpentRehireDj(int _amount, int _p1, bool _p2, bool _p3) public void NetworkSpentArenaJoinSpectator(int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentArenaJoinSpectator == null) fn__networkSpentArenaJoinSpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaJoinSpectator"); + if (fn__networkSpentArenaJoinSpectator == null) fn__networkSpentArenaJoinSpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaJoinSpectator"); var success = false; - fn__networkSpentArenaJoinSpectator(&success, _amount, _p1, _p2, _p3); + fn__networkSpentArenaJoinSpectator(&success, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61147,9 +61147,9 @@ public void NetworkEarnFromArenaCareerProgression(int _amount, int _p1) public void NetworkSpentMakeItRain(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentMakeItRain == null) fn__networkSpentMakeItRain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentMakeItRain"); + if (fn__networkSpentMakeItRain == null) fn__networkSpentMakeItRain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentMakeItRain"); var success = false; - fn__networkSpentMakeItRain(&success, _amount, _p1, _p2); + fn__networkSpentMakeItRain(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61157,10 +61157,10 @@ public void NetworkSpentMakeItRain(int _amount, bool _p1, bool _p2) public void NetworkSpentBuyArena(int _amount, bool _p1, bool _p2, string _p3) { unsafe { - if (fn__networkSpentBuyArena == null) fn__networkSpentBuyArena = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyArena"); + if (fn__networkSpentBuyArena == null) fn__networkSpentBuyArena = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyArena"); var success = false; var ptr_p3 = MemoryUtils.StringToHGlobalUtf8(_p3); - fn__networkSpentBuyArena(&success, _amount, _p1, _p2, ptr_p3); + fn__networkSpentBuyArena(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), ptr_p3); Marshal.FreeHGlobal(ptr_p3); if (!success) throw new Exception("Native execution failed"); } @@ -61169,10 +61169,10 @@ public void NetworkSpentBuyArena(int _amount, bool _p1, bool _p2, string _p3) public void NetworkSpentUpgradeArena(int _amount, bool _p1, bool _p2, string _p3) { unsafe { - if (fn__networkSpentUpgradeArena == null) fn__networkSpentUpgradeArena = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentUpgradeArena"); + if (fn__networkSpentUpgradeArena == null) fn__networkSpentUpgradeArena = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentUpgradeArena"); var success = false; var ptr_p3 = MemoryUtils.StringToHGlobalUtf8(_p3); - fn__networkSpentUpgradeArena(&success, _amount, _p1, _p2, ptr_p3); + fn__networkSpentUpgradeArena(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), ptr_p3); Marshal.FreeHGlobal(ptr_p3); if (!success) throw new Exception("Native execution failed"); } @@ -61181,9 +61181,9 @@ public void NetworkSpentUpgradeArena(int _amount, bool _p1, bool _p2, string _p3 public void NetworkSpentArenaSpectatorBox(int _amount, int _p1, bool _p2, bool _p3) { unsafe { - if (fn__networkSpentArenaSpectatorBox == null) fn__networkSpentArenaSpectatorBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaSpectatorBox"); + if (fn__networkSpentArenaSpectatorBox == null) fn__networkSpentArenaSpectatorBox = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaSpectatorBox"); var success = false; - fn__networkSpentArenaSpectatorBox(&success, _amount, _p1, _p2, _p3); + fn__networkSpentArenaSpectatorBox(&success, _amount, _p1, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61191,9 +61191,9 @@ public void NetworkSpentArenaSpectatorBox(int _amount, int _p1, bool _p2, bool _ public void NetworkSpentSpinTheWheelPayment(int _amount, int _p1, bool _p2) { unsafe { - if (fn__networkSpentSpinTheWheelPayment == null) fn__networkSpentSpinTheWheelPayment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentSpinTheWheelPayment"); + if (fn__networkSpentSpinTheWheelPayment == null) fn__networkSpentSpinTheWheelPayment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentSpinTheWheelPayment"); var success = false; - fn__networkSpentSpinTheWheelPayment(&success, _amount, _p1, _p2); + fn__networkSpentSpinTheWheelPayment(&success, _amount, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61211,9 +61211,9 @@ public void NetworkEarnFromSpinTheWheelCash(int _amount) public void NetworkSpentArenaPremium(int _amount, bool _p1, bool _p2) { unsafe { - if (fn__networkSpentArenaPremium == null) fn__networkSpentArenaPremium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaPremium"); + if (fn__networkSpentArenaPremium == null) fn__networkSpentArenaPremium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentArenaPremium"); var success = false; - fn__networkSpentArenaPremium(&success, _amount, _p1, _p2); + fn__networkSpentArenaPremium(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61271,9 +61271,9 @@ public void NetworkEarnFromDailyObjectiveEvent(int _amount) public void NetworkSpentCasinoMembership(int _amount, bool _p1, bool _p2, int _p3) { unsafe { - if (fn__networkSpentCasinoMembership == null) fn__networkSpentCasinoMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCasinoMembership"); + if (fn__networkSpentCasinoMembership == null) fn__networkSpentCasinoMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCasinoMembership"); var success = false; - fn__networkSpentCasinoMembership(&success, _amount, _p1, _p2, _p3); + fn__networkSpentCasinoMembership(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -61281,10 +61281,10 @@ public void NetworkSpentCasinoMembership(int _amount, bool _p1, bool _p2, int _p public void NetworkSpentBuyCasino(int _amount, bool _p1, bool _p2, ref int _data) { unsafe { - if (fn__networkSpentBuyCasino == null) fn__networkSpentBuyCasino = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyCasino"); + if (fn__networkSpentBuyCasino == null) fn__networkSpentBuyCasino = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentBuyCasino"); var success = false; var ref_data = _data; - fn__networkSpentBuyCasino(&success, _amount, _p1, _p2, &ref_data); + fn__networkSpentBuyCasino(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), &ref_data); _data = ref_data; if (!success) throw new Exception("Native execution failed"); } @@ -61293,10 +61293,10 @@ public void NetworkSpentBuyCasino(int _amount, bool _p1, bool _p2, ref int _data public void NetworkSpentUpgradeCasino(int _amount, bool _p1, bool _p2, ref int _data) { unsafe { - if (fn__networkSpentUpgradeCasino == null) fn__networkSpentUpgradeCasino = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentUpgradeCasino"); + if (fn__networkSpentUpgradeCasino == null) fn__networkSpentUpgradeCasino = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentUpgradeCasino"); var success = false; var ref_data = _data; - fn__networkSpentUpgradeCasino(&success, _amount, _p1, _p2, &ref_data); + fn__networkSpentUpgradeCasino(&success, _amount, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), &ref_data); _data = ref_data; if (!success) throw new Exception("Native execution failed"); } @@ -61655,9 +61655,9 @@ public void NetworkSpentCarclubMembership(int _p0, int _p1, int _p2, int _p3, in public void NetworkSpentCarclub(int _p0, bool _p1, bool _p2, int _p3) { unsafe { - if (fn__networkSpentCarclub == null) fn__networkSpentCarclub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCarclub"); + if (fn__networkSpentCarclub == null) fn__networkSpentCarclub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentCarclub"); var success = false; - fn__networkSpentCarclub(&success, _p0, _p1, _p2, _p3); + fn__networkSpentCarclub(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -61795,9 +61795,9 @@ public void NetworkSpentImAbility(int _p0, int _p1, int _p2, int _p3) public void NetworkSpentFromBank(int _p0, int _p1, int _p2, bool _p3) { unsafe { - if (fn__networkSpentFromBank == null) fn__networkSpentFromBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentFromBank"); + if (fn__networkSpentFromBank == null) fn__networkSpentFromBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSpentFromBank"); var success = false; - fn__networkSpentFromBank(&success, _p0, _p1, _p2, _p3); + fn__networkSpentFromBank(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -61899,33 +61899,33 @@ public string NetworkGetStringBankWalletBalance() public bool NetworkGetVcWalletBalanceIsNotLessThan(int _amount, int _characterSlot) { unsafe { - if (fn__networkGetVcWalletBalanceIsNotLessThan == null) fn__networkGetVcWalletBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcWalletBalanceIsNotLessThan"); + if (fn__networkGetVcWalletBalanceIsNotLessThan == null) fn__networkGetVcWalletBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcWalletBalanceIsNotLessThan"); var success = false; var result = fn__networkGetVcWalletBalanceIsNotLessThan(&success, _amount, _characterSlot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetVcBankBalanceIsNotLessThan(int _amount) { unsafe { - if (fn__networkGetVcBankBalanceIsNotLessThan == null) fn__networkGetVcBankBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcBankBalanceIsNotLessThan"); + if (fn__networkGetVcBankBalanceIsNotLessThan == null) fn__networkGetVcBankBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcBankBalanceIsNotLessThan"); var success = false; var result = fn__networkGetVcBankBalanceIsNotLessThan(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetVcBankWalletBalanceIsNotLessThan(int _amount, int _characterSlot) { unsafe { - if (fn__networkGetVcBankWalletBalanceIsNotLessThan == null) fn__networkGetVcBankWalletBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcBankWalletBalanceIsNotLessThan"); + if (fn__networkGetVcBankWalletBalanceIsNotLessThan == null) fn__networkGetVcBankWalletBalanceIsNotLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetVcBankWalletBalanceIsNotLessThan"); var success = false; var result = fn__networkGetVcBankWalletBalanceIsNotLessThan(&success, _amount, _characterSlot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -61943,22 +61943,22 @@ public int NetworkGetPvcTransferBalance() public bool _0x08E8EEADFD0DC4A0(int _amount) { unsafe { - if (fn__0x08E8EEADFD0DC4A0 == null) fn__0x08E8EEADFD0DC4A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x08E8EEADFD0DC4A0"); + if (fn__0x08E8EEADFD0DC4A0 == null) fn__0x08E8EEADFD0DC4A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x08E8EEADFD0DC4A0"); var success = false; var result = fn__0x08E8EEADFD0DC4A0(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanReceivePlayerCash(int _p0, int _p1, int _p2, int _p3) { unsafe { - if (fn__networkCanReceivePlayerCash == null) fn__networkCanReceivePlayerCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanReceivePlayerCash"); + if (fn__networkCanReceivePlayerCash == null) fn__networkCanReceivePlayerCash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanReceivePlayerCash"); var success = false; var result = fn__networkCanReceivePlayerCash(&success, _p0, _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -61987,77 +61987,77 @@ public int WithdrawVc(int _amount) public bool DepositVc(int _amount) { unsafe { - if (fn__depositVc == null) fn__depositVc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_depositVc"); + if (fn__depositVc == null) fn__depositVc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_depositVc"); var success = false; var result = fn__depositVc(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xE154B48B68EF72BC(int _p0) { unsafe { - if (fn__0xE154B48B68EF72BC == null) fn__0xE154B48B68EF72BC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE154B48B68EF72BC"); + if (fn__0xE154B48B68EF72BC == null) fn__0xE154B48B68EF72BC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE154B48B68EF72BC"); var success = false; var result = fn__0xE154B48B68EF72BC(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x6FCF8DDEA146C45B(int _p0) { unsafe { - if (fn__0x6FCF8DDEA146C45B == null) fn__0x6FCF8DDEA146C45B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FCF8DDEA146C45B"); + if (fn__0x6FCF8DDEA146C45B == null) fn__0x6FCF8DDEA146C45B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6FCF8DDEA146C45B"); var success = false; var result = fn__0x6FCF8DDEA146C45B(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverUseServerTransactions() { unsafe { - if (fn__netGameserverUseServerTransactions == null) fn__netGameserverUseServerTransactions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverUseServerTransactions"); + if (fn__netGameserverUseServerTransactions == null) fn__netGameserverUseServerTransactions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverUseServerTransactions"); var success = false; var result = fn__netGameserverUseServerTransactions(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverCatalogItemExists(string _name) { unsafe { - if (fn__netGameserverCatalogItemExists == null) fn__netGameserverCatalogItemExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogItemExists"); + if (fn__netGameserverCatalogItemExists == null) fn__netGameserverCatalogItemExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogItemExists"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__netGameserverCatalogItemExists(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverCatalogItemExistsHash(uint _hash) { unsafe { - if (fn__netGameserverCatalogItemExistsHash == null) fn__netGameserverCatalogItemExistsHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogItemExistsHash"); + if (fn__netGameserverCatalogItemExistsHash == null) fn__netGameserverCatalogItemExistsHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogItemExistsHash"); var success = false; var result = fn__netGameserverCatalogItemExistsHash(&success, _hash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int NetGameserverGetPrice(uint _itemHash, uint _categoryHash, bool _p2) { unsafe { - if (fn__netGameserverGetPrice == null) fn__netGameserverGetPrice = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetPrice"); + if (fn__netGameserverGetPrice == null) fn__netGameserverGetPrice = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetPrice"); var success = false; - var result = fn__netGameserverGetPrice(&success, _itemHash, _categoryHash, _p2); + var result = fn__netGameserverGetPrice(&success, _itemHash, _categoryHash, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -62066,22 +62066,22 @@ public int NetGameserverGetPrice(uint _itemHash, uint _categoryHash, bool _p2) public bool NetGameserverCatalogIsReady() { unsafe { - if (fn__netGameserverCatalogIsReady == null) fn__netGameserverCatalogIsReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogIsReady"); + if (fn__netGameserverCatalogIsReady == null) fn__netGameserverCatalogIsReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCatalogIsReady"); var success = false; var result = fn__netGameserverCatalogIsReady(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverIsCatalogValid() { unsafe { - if (fn__netGameserverIsCatalogValid == null) fn__netGameserverIsCatalogValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsCatalogValid"); + if (fn__netGameserverIsCatalogValid == null) fn__netGameserverIsCatalogValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsCatalogValid"); var success = false; var result = fn__netGameserverIsCatalogValid(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62110,13 +62110,13 @@ public int _0x357B152EF96C30B6() public bool NetGameserverGetCatalogState(ref int _state) { unsafe { - if (fn__netGameserverGetCatalogState == null) fn__netGameserverGetCatalogState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetCatalogState"); + if (fn__netGameserverGetCatalogState == null) fn__netGameserverGetCatalogState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetCatalogState"); var success = false; var ref_state = _state; var result = fn__netGameserverGetCatalogState(&success, &ref_state); _state = ref_state; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62134,72 +62134,72 @@ public int _0xE3E5A7C64CA2C6ED() public bool _0x0395CB47B022E62C(ref int _p0) { unsafe { - if (fn__0x0395CB47B022E62C == null) fn__0x0395CB47B022E62C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0395CB47B022E62C"); + if (fn__0x0395CB47B022E62C == null) fn__0x0395CB47B022E62C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0395CB47B022E62C"); var success = false; var ref_p0 = _p0; var result = fn__0x0395CB47B022E62C(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverStartSession(int _charSlot) { unsafe { - if (fn__netGameserverStartSession == null) fn__netGameserverStartSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverStartSession"); + if (fn__netGameserverStartSession == null) fn__netGameserverStartSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverStartSession"); var success = false; var result = fn__netGameserverStartSession(&success, _charSlot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x72EB7BA9B69BF6AB() { unsafe { - if (fn__0x72EB7BA9B69BF6AB == null) fn__0x72EB7BA9B69BF6AB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x72EB7BA9B69BF6AB"); + if (fn__0x72EB7BA9B69BF6AB == null) fn__0x72EB7BA9B69BF6AB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x72EB7BA9B69BF6AB"); var success = false; var result = fn__0x72EB7BA9B69BF6AB(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x170910093218C8B9(ref int _p0) { unsafe { - if (fn__0x170910093218C8B9 == null) fn__0x170910093218C8B9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x170910093218C8B9"); + if (fn__0x170910093218C8B9 == null) fn__0x170910093218C8B9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x170910093218C8B9"); var success = false; var ref_p0 = _p0; var result = fn__0x170910093218C8B9(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC13C38E47EA5DF31(ref int _p0) { unsafe { - if (fn__0xC13C38E47EA5DF31 == null) fn__0xC13C38E47EA5DF31 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC13C38E47EA5DF31"); + if (fn__0xC13C38E47EA5DF31 == null) fn__0xC13C38E47EA5DF31 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC13C38E47EA5DF31"); var success = false; var ref_p0 = _p0; var result = fn__0xC13C38E47EA5DF31(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverIsSessionValid(int _charSlot) { unsafe { - if (fn__netGameserverIsSessionValid == null) fn__netGameserverIsSessionValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsSessionValid"); + if (fn__netGameserverIsSessionValid == null) fn__netGameserverIsSessionValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsSessionValid"); var success = false; var result = fn__netGameserverIsSessionValid(&success, _charSlot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62217,177 +62217,177 @@ public int _0x74A0FD0688F1EE45(int _p0) public bool NetGameserverSessionApplyReceivedData(int _charSlot) { unsafe { - if (fn__netGameserverSessionApplyReceivedData == null) fn__netGameserverSessionApplyReceivedData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverSessionApplyReceivedData"); + if (fn__netGameserverSessionApplyReceivedData == null) fn__netGameserverSessionApplyReceivedData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverSessionApplyReceivedData"); var success = false; var result = fn__netGameserverSessionApplyReceivedData(&success, _charSlot); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverIsSessionRefreshPending() { unsafe { - if (fn__netGameserverIsSessionRefreshPending == null) fn__netGameserverIsSessionRefreshPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsSessionRefreshPending"); + if (fn__netGameserverIsSessionRefreshPending == null) fn__netGameserverIsSessionRefreshPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverIsSessionRefreshPending"); var success = false; var result = fn__netGameserverIsSessionRefreshPending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverGetBalance(bool _inventory, bool _playerbalance) { unsafe { - if (fn__netGameserverGetBalance == null) fn__netGameserverGetBalance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetBalance"); + if (fn__netGameserverGetBalance == null) fn__netGameserverGetBalance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetBalance"); var success = false; - var result = fn__netGameserverGetBalance(&success, _inventory, _playerbalance); + var result = fn__netGameserverGetBalance(&success, (byte) (_inventory ? 1 : 0), (byte) (_playerbalance ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x613F125BA3BD2EB9() { unsafe { - if (fn__0x613F125BA3BD2EB9 == null) fn__0x613F125BA3BD2EB9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x613F125BA3BD2EB9"); + if (fn__0x613F125BA3BD2EB9 == null) fn__0x613F125BA3BD2EB9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x613F125BA3BD2EB9"); var success = false; var result = fn__0x613F125BA3BD2EB9(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverGetTransactionManagerData(ref int _p0, ref bool _p1) { unsafe { - if (fn__netGameserverGetTransactionManagerData == null) fn__netGameserverGetTransactionManagerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetTransactionManagerData"); + if (fn__netGameserverGetTransactionManagerData == null) fn__netGameserverGetTransactionManagerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverGetTransactionManagerData"); var success = false; var ref_p0 = _p0; - var ref_p1 = _p1; + var ref_p1 = (byte) (_p1 ? 1 : 0); var result = fn__netGameserverGetTransactionManagerData(&success, &ref_p0, &ref_p1); _p0 = ref_p0; - _p1 = ref_p1; + _p1 = ref_p1 == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketStart(ref int _transactionId, uint _categoryHash, uint _actionHash, int _flags) { unsafe { - if (fn__netGameserverBasketStart == null) fn__netGameserverBasketStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketStart"); + if (fn__netGameserverBasketStart == null) fn__netGameserverBasketStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketStart"); var success = false; var ref_transactionId = _transactionId; var result = fn__netGameserverBasketStart(&success, &ref_transactionId, _categoryHash, _actionHash, _flags); _transactionId = ref_transactionId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketDelete() { unsafe { - if (fn__netGameserverBasketDelete == null) fn__netGameserverBasketDelete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketDelete"); + if (fn__netGameserverBasketDelete == null) fn__netGameserverBasketDelete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketDelete"); var success = false; var result = fn__netGameserverBasketDelete(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketEnd() { unsafe { - if (fn__netGameserverBasketEnd == null) fn__netGameserverBasketEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketEnd"); + if (fn__netGameserverBasketEnd == null) fn__netGameserverBasketEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketEnd"); var success = false; var result = fn__netGameserverBasketEnd(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketAddItem(ref int _itemData, int _quantity) { unsafe { - if (fn__netGameserverBasketAddItem == null) fn__netGameserverBasketAddItem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketAddItem"); + if (fn__netGameserverBasketAddItem == null) fn__netGameserverBasketAddItem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketAddItem"); var success = false; var ref_itemData = _itemData; var result = fn__netGameserverBasketAddItem(&success, &ref_itemData, _quantity); _itemData = ref_itemData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketIsFull() { unsafe { - if (fn__netGameserverBasketIsFull == null) fn__netGameserverBasketIsFull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketIsFull"); + if (fn__netGameserverBasketIsFull == null) fn__netGameserverBasketIsFull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketIsFull"); var success = false; var result = fn__netGameserverBasketIsFull(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBasketApplyServerData(int _p0, ref int _p1) { unsafe { - if (fn__netGameserverBasketApplyServerData == null) fn__netGameserverBasketApplyServerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketApplyServerData"); + if (fn__netGameserverBasketApplyServerData == null) fn__netGameserverBasketApplyServerData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBasketApplyServerData"); var success = false; var ref_p1 = _p1; var result = fn__netGameserverBasketApplyServerData(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverCheckoutStart(int _transactionId) { unsafe { - if (fn__netGameserverCheckoutStart == null) fn__netGameserverCheckoutStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCheckoutStart"); + if (fn__netGameserverCheckoutStart == null) fn__netGameserverCheckoutStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverCheckoutStart"); var success = false; var result = fn__netGameserverCheckoutStart(&success, _transactionId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverBeginService(ref int _transactionId, uint _categoryHash, uint _itemHash, uint _actionTypeHash, int _value, int _flags) { unsafe { - if (fn__netGameserverBeginService == null) fn__netGameserverBeginService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBeginService"); + if (fn__netGameserverBeginService == null) fn__netGameserverBeginService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverBeginService"); var success = false; var ref_transactionId = _transactionId; var result = fn__netGameserverBeginService(&success, &ref_transactionId, _categoryHash, _itemHash, _actionTypeHash, _value, _flags); _transactionId = ref_transactionId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverEndService(int _transactionId) { unsafe { - if (fn__netGameserverEndService == null) fn__netGameserverEndService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverEndService"); + if (fn__netGameserverEndService == null) fn__netGameserverEndService = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverEndService"); var success = false; var result = fn__netGameserverEndService(&success, _transactionId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverDeleteCharacterSlot(int _slot, bool _transfer, uint _reason) { unsafe { - if (fn__netGameserverDeleteCharacterSlot == null) fn__netGameserverDeleteCharacterSlot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverDeleteCharacterSlot"); + if (fn__netGameserverDeleteCharacterSlot == null) fn__netGameserverDeleteCharacterSlot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverDeleteCharacterSlot"); var success = false; - var result = fn__netGameserverDeleteCharacterSlot(&success, _slot, _transfer, _reason); + var result = fn__netGameserverDeleteCharacterSlot(&success, _slot, (byte) (_transfer ? 1 : 0), _reason); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62405,33 +62405,33 @@ public int NetGameserverDeleteCharacterSlotGetStatus() public bool NetGameserverDeleteSetTelemetryNonceSeed() { unsafe { - if (fn__netGameserverDeleteSetTelemetryNonceSeed == null) fn__netGameserverDeleteSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverDeleteSetTelemetryNonceSeed"); + if (fn__netGameserverDeleteSetTelemetryNonceSeed == null) fn__netGameserverDeleteSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverDeleteSetTelemetryNonceSeed"); var success = false; var result = fn__netGameserverDeleteSetTelemetryNonceSeed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverTransferBankToWallet(int _charSlot, int _amount) { unsafe { - if (fn__netGameserverTransferBankToWallet == null) fn__netGameserverTransferBankToWallet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferBankToWallet"); + if (fn__netGameserverTransferBankToWallet == null) fn__netGameserverTransferBankToWallet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferBankToWallet"); var success = false; var result = fn__netGameserverTransferBankToWallet(&success, _charSlot, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverTransferWalletToBank(int _charSlot, int _amount) { unsafe { - if (fn__netGameserverTransferWalletToBank == null) fn__netGameserverTransferWalletToBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferWalletToBank"); + if (fn__netGameserverTransferWalletToBank == null) fn__netGameserverTransferWalletToBank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferWalletToBank"); var success = false; var result = fn__netGameserverTransferWalletToBank(&success, _charSlot, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62460,22 +62460,22 @@ public int NetGameserverTransferCashGetStatus2() public bool NetGameserverTransferCashSetTelemetryNonceSeed() { unsafe { - if (fn__netGameserverTransferCashSetTelemetryNonceSeed == null) fn__netGameserverTransferCashSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferCashSetTelemetryNonceSeed"); + if (fn__netGameserverTransferCashSetTelemetryNonceSeed == null) fn__netGameserverTransferCashSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverTransferCashSetTelemetryNonceSeed"); var success = false; var result = fn__netGameserverTransferCashSetTelemetryNonceSeed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetGameserverSetTelemetryNonceSeed(int _p0) { unsafe { - if (fn__netGameserverSetTelemetryNonceSeed == null) fn__netGameserverSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverSetTelemetryNonceSeed"); + if (fn__netGameserverSetTelemetryNonceSeed == null) fn__netGameserverSetTelemetryNonceSeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_netGameserverSetTelemetryNonceSeed"); var success = false; var result = fn__netGameserverSetTelemetryNonceSeed(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62495,33 +62495,33 @@ public string GetOnlineVersion() public bool NetworkIsSignedIn() { unsafe { - if (fn__networkIsSignedIn == null) fn__networkIsSignedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSignedIn"); + if (fn__networkIsSignedIn == null) fn__networkIsSignedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSignedIn"); var success = false; var result = fn__networkIsSignedIn(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsSignedOnline() { unsafe { - if (fn__networkIsSignedOnline == null) fn__networkIsSignedOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSignedOnline"); + if (fn__networkIsSignedOnline == null) fn__networkIsSignedOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSignedOnline"); var success = false; var result = fn__networkIsSignedOnline(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xBD545D44CCE70597() { unsafe { - if (fn__0xBD545D44CCE70597 == null) fn__0xBD545D44CCE70597 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBD545D44CCE70597"); + if (fn__0xBD545D44CCE70597 == null) fn__0xBD545D44CCE70597 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBD545D44CCE70597"); var success = false; var result = fn__0xBD545D44CCE70597(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62572,110 +62572,110 @@ public int _0xA0FA4EC6A05DA44E() public bool NetworkHasValidRosCredentials() { unsafe { - if (fn__networkHasValidRosCredentials == null) fn__networkHasValidRosCredentials = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasValidRosCredentials"); + if (fn__networkHasValidRosCredentials == null) fn__networkHasValidRosCredentials = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasValidRosCredentials"); var success = false; var result = fn__networkHasValidRosCredentials(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x8D11E61A4ABF49CC() { unsafe { - if (fn__0x8D11E61A4ABF49CC == null) fn__0x8D11E61A4ABF49CC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8D11E61A4ABF49CC"); + if (fn__0x8D11E61A4ABF49CC == null) fn__0x8D11E61A4ABF49CC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8D11E61A4ABF49CC"); var success = false; var result = fn__0x8D11E61A4ABF49CC(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsCloudAvailable() { unsafe { - if (fn__networkIsCloudAvailable == null) fn__networkIsCloudAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCloudAvailable"); + if (fn__networkIsCloudAvailable == null) fn__networkIsCloudAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCloudAvailable"); var success = false; var result = fn__networkIsCloudAvailable(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasSocialClubAccount() { unsafe { - if (fn__networkHasSocialClubAccount == null) fn__networkHasSocialClubAccount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasSocialClubAccount"); + if (fn__networkHasSocialClubAccount == null) fn__networkHasSocialClubAccount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasSocialClubAccount"); var success = false; var result = fn__networkHasSocialClubAccount(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAreSocialClubPoliciesCurrent() { unsafe { - if (fn__networkAreSocialClubPoliciesCurrent == null) fn__networkAreSocialClubPoliciesCurrent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreSocialClubPoliciesCurrent"); + if (fn__networkAreSocialClubPoliciesCurrent == null) fn__networkAreSocialClubPoliciesCurrent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreSocialClubPoliciesCurrent"); var success = false; var result = fn__networkAreSocialClubPoliciesCurrent(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsHost() { unsafe { - if (fn__networkIsHost == null) fn__networkIsHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHost"); + if (fn__networkIsHost == null) fn__networkIsHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHost"); var success = false; var result = fn__networkIsHost(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x4237E822315D8BA9() { unsafe { - if (fn__0x4237E822315D8BA9 == null) fn__0x4237E822315D8BA9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4237E822315D8BA9"); + if (fn__0x4237E822315D8BA9 == null) fn__0x4237E822315D8BA9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4237E822315D8BA9"); var success = false; var result = fn__0x4237E822315D8BA9(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveOnlinePrivileges() { unsafe { - if (fn__networkHaveOnlinePrivileges == null) fn__networkHaveOnlinePrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveOnlinePrivileges"); + if (fn__networkHaveOnlinePrivileges == null) fn__networkHaveOnlinePrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveOnlinePrivileges"); var success = false; var result = fn__networkHaveOnlinePrivileges(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasAgeRestrictedProfile() { unsafe { - if (fn__networkHasAgeRestrictedProfile == null) fn__networkHasAgeRestrictedProfile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasAgeRestrictedProfile"); + if (fn__networkHasAgeRestrictedProfile == null) fn__networkHasAgeRestrictedProfile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasAgeRestrictedProfile"); var success = false; var result = fn__networkHasAgeRestrictedProfile(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveUserContentPrivileges(int _p0) { unsafe { - if (fn__networkHaveUserContentPrivileges == null) fn__networkHaveUserContentPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveUserContentPrivileges"); + if (fn__networkHaveUserContentPrivileges == null) fn__networkHaveUserContentPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveUserContentPrivileges"); var success = false; var result = fn__networkHaveUserContentPrivileges(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62683,44 +62683,44 @@ public bool NetworkHaveUserContentPrivileges(int _p0) public bool NetworkHaveCommunicationPrivileges(int _p0, int _player) { unsafe { - if (fn__networkHaveCommunicationPrivileges == null) fn__networkHaveCommunicationPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveCommunicationPrivileges"); + if (fn__networkHaveCommunicationPrivileges == null) fn__networkHaveCommunicationPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveCommunicationPrivileges"); var success = false; var result = fn__networkHaveCommunicationPrivileges(&success, _p0, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x78321BEA235FD8CD(int _p0, bool _p1) { unsafe { - if (fn__0x78321BEA235FD8CD == null) fn__0x78321BEA235FD8CD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x78321BEA235FD8CD"); + if (fn__0x78321BEA235FD8CD == null) fn__0x78321BEA235FD8CD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x78321BEA235FD8CD"); var success = false; - var result = fn__0x78321BEA235FD8CD(&success, _p0, _p1); + var result = fn__0x78321BEA235FD8CD(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCheckUserContentPrivileges(int _p0, int _p1, bool _p2) { unsafe { - if (fn__networkCheckUserContentPrivileges == null) fn__networkCheckUserContentPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckUserContentPrivileges"); + if (fn__networkCheckUserContentPrivileges == null) fn__networkCheckUserContentPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckUserContentPrivileges"); var success = false; - var result = fn__networkCheckUserContentPrivileges(&success, _p0, _p1, _p2); + var result = fn__networkCheckUserContentPrivileges(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCheckCommunicationPrivileges(int _p0, int _p1, bool _p2) { unsafe { - if (fn__networkCheckCommunicationPrivileges == null) fn__networkCheckCommunicationPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckCommunicationPrivileges"); + if (fn__networkCheckCommunicationPrivileges == null) fn__networkCheckCommunicationPrivileges = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckCommunicationPrivileges"); var success = false; - var result = fn__networkCheckCommunicationPrivileges(&success, _p0, _p1, _p2); + var result = fn__networkCheckCommunicationPrivileges(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62760,11 +62760,11 @@ public int _0x023ACAB2DC9DC4A4() public bool NetworkHasSocialNetworkingSharingPriv() { unsafe { - if (fn__networkHasSocialNetworkingSharingPriv == null) fn__networkHasSocialNetworkingSharingPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasSocialNetworkingSharingPriv"); + if (fn__networkHasSocialNetworkingSharingPriv == null) fn__networkHasSocialNetworkingSharingPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasSocialNetworkingSharingPriv"); var success = false; var result = fn__networkHasSocialNetworkingSharingPriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62793,11 +62793,11 @@ public int _0x0CF6CC51AA18F0F8(int _p0, int _p1, int _p2) public bool _0x64E5C4CC82847B73() { unsafe { - if (fn__0x64E5C4CC82847B73 == null) fn__0x64E5C4CC82847B73 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x64E5C4CC82847B73"); + if (fn__0x64E5C4CC82847B73 == null) fn__0x64E5C4CC82847B73 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x64E5C4CC82847B73"); var success = false; var result = fn__0x64E5C4CC82847B73(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62814,11 +62814,11 @@ public void _0x1F7BC3539F9E0224() public bool NetworkHaveOnlinePrivilege2() { unsafe { - if (fn__networkHaveOnlinePrivilege2 == null) fn__networkHaveOnlinePrivilege2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveOnlinePrivilege2"); + if (fn__networkHaveOnlinePrivilege2 == null) fn__networkHaveOnlinePrivilege2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveOnlinePrivilege2"); var success = false; var result = fn__networkHaveOnlinePrivilege2(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62857,11 +62857,11 @@ public int _0x53C10C8BD774F2C9() public bool NetworkCanBail() { unsafe { - if (fn__networkCanBail == null) fn__networkCanBail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanBail"); + if (fn__networkCanBail == null) fn__networkCanBail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanBail"); var success = false; var result = fn__networkCanBail(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62920,35 +62920,35 @@ public int _0x04918A41BC9B8157(int _p0, int _p1, int _p2) public bool NetworkCanAccessMultiplayer(ref int _loadingState) { unsafe { - if (fn__networkCanAccessMultiplayer == null) fn__networkCanAccessMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanAccessMultiplayer"); + if (fn__networkCanAccessMultiplayer == null) fn__networkCanAccessMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanAccessMultiplayer"); var success = false; var ref_loadingState = _loadingState; var result = fn__networkCanAccessMultiplayer(&success, &ref_loadingState); _loadingState = ref_loadingState; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsMultiplayerDisabled() { unsafe { - if (fn__networkIsMultiplayerDisabled == null) fn__networkIsMultiplayerDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsMultiplayerDisabled"); + if (fn__networkIsMultiplayerDisabled == null) fn__networkIsMultiplayerDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsMultiplayerDisabled"); var success = false; var result = fn__networkIsMultiplayerDisabled(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanEnterMultiplayer() { unsafe { - if (fn__networkCanEnterMultiplayer == null) fn__networkCanEnterMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanEnterMultiplayer"); + if (fn__networkCanEnterMultiplayer == null) fn__networkCanEnterMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanEnterMultiplayer"); var success = false; var result = fn__networkCanEnterMultiplayer(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -62966,121 +62966,121 @@ public int NetworkSessionEnter(int _p0, int _p1, int _p2, int _maxPlayers, int _ public bool NetworkSessionFriendMatchmaking(int _p0, int _p1, int _maxPlayers, bool _p3) { unsafe { - if (fn__networkSessionFriendMatchmaking == null) fn__networkSessionFriendMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionFriendMatchmaking"); + if (fn__networkSessionFriendMatchmaking == null) fn__networkSessionFriendMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionFriendMatchmaking"); var success = false; - var result = fn__networkSessionFriendMatchmaking(&success, _p0, _p1, _maxPlayers, _p3); + var result = fn__networkSessionFriendMatchmaking(&success, _p0, _p1, _maxPlayers, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionCrewMatchmaking(int _p0, int _p1, int _p2, int _maxPlayers, bool _p4) { unsafe { - if (fn__networkSessionCrewMatchmaking == null) fn__networkSessionCrewMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionCrewMatchmaking"); + if (fn__networkSessionCrewMatchmaking == null) fn__networkSessionCrewMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionCrewMatchmaking"); var success = false; - var result = fn__networkSessionCrewMatchmaking(&success, _p0, _p1, _p2, _maxPlayers, _p4); + var result = fn__networkSessionCrewMatchmaking(&success, _p0, _p1, _p2, _maxPlayers, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionActivityQuickmatch(int _p0, int _p1, int _p2, int _p3) { unsafe { - if (fn__networkSessionActivityQuickmatch == null) fn__networkSessionActivityQuickmatch = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionActivityQuickmatch"); + if (fn__networkSessionActivityQuickmatch == null) fn__networkSessionActivityQuickmatch = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionActivityQuickmatch"); var success = false; var result = fn__networkSessionActivityQuickmatch(&success, _p0, _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionHost(int _p0, int _maxPlayers, bool _p2) { unsafe { - if (fn__networkSessionHost == null) fn__networkSessionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHost"); + if (fn__networkSessionHost == null) fn__networkSessionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHost"); var success = false; - var result = fn__networkSessionHost(&success, _p0, _maxPlayers, _p2); + var result = fn__networkSessionHost(&success, _p0, _maxPlayers, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionHostClosed(int _p0, int _maxPlayers) { unsafe { - if (fn__networkSessionHostClosed == null) fn__networkSessionHostClosed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHostClosed"); + if (fn__networkSessionHostClosed == null) fn__networkSessionHostClosed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHostClosed"); var success = false; var result = fn__networkSessionHostClosed(&success, _p0, _maxPlayers); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionHostFriendsOnly(int _p0, int _maxPlayers) { unsafe { - if (fn__networkSessionHostFriendsOnly == null) fn__networkSessionHostFriendsOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHostFriendsOnly"); + if (fn__networkSessionHostFriendsOnly == null) fn__networkSessionHostFriendsOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionHostFriendsOnly"); var success = false; var result = fn__networkSessionHostFriendsOnly(&success, _p0, _maxPlayers); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionIsClosedFriends() { unsafe { - if (fn__networkSessionIsClosedFriends == null) fn__networkSessionIsClosedFriends = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsClosedFriends"); + if (fn__networkSessionIsClosedFriends == null) fn__networkSessionIsClosedFriends = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsClosedFriends"); var success = false; var result = fn__networkSessionIsClosedFriends(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionIsClosedCrew() { unsafe { - if (fn__networkSessionIsClosedCrew == null) fn__networkSessionIsClosedCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsClosedCrew"); + if (fn__networkSessionIsClosedCrew == null) fn__networkSessionIsClosedCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsClosedCrew"); var success = false; var result = fn__networkSessionIsClosedCrew(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionIsSolo() { unsafe { - if (fn__networkSessionIsSolo == null) fn__networkSessionIsSolo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsSolo"); + if (fn__networkSessionIsSolo == null) fn__networkSessionIsSolo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsSolo"); var success = false; var result = fn__networkSessionIsSolo(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionIsPrivate() { unsafe { - if (fn__networkSessionIsPrivate == null) fn__networkSessionIsPrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsPrivate"); + if (fn__networkSessionIsPrivate == null) fn__networkSessionIsPrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsPrivate"); var success = false; var result = fn__networkSessionIsPrivate(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionEnd(bool _p0, bool _p1) { unsafe { - if (fn__networkSessionEnd == null) fn__networkSessionEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionEnd"); + if (fn__networkSessionEnd == null) fn__networkSessionEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionEnd"); var success = false; - var result = fn__networkSessionEnd(&success, _p0, _p1); + var result = fn__networkSessionEnd(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63110,11 +63110,11 @@ public void NetworkSessionKickPlayer(int _player) public bool NetworkSessionGetKickVote(int _player) { unsafe { - if (fn__networkSessionGetKickVote == null) fn__networkSessionGetKickVote = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionGetKickVote"); + if (fn__networkSessionGetKickVote == null) fn__networkSessionGetKickVote = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionGetKickVote"); var success = false; var result = fn__networkSessionGetKickVote(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63132,22 +63132,22 @@ public int _0x041C7F2A6C9894E6(int _p0, int _p1, int _p2) public bool NetworkJoinPreviouslyFailedSession() { unsafe { - if (fn__networkJoinPreviouslyFailedSession == null) fn__networkJoinPreviouslyFailedSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinPreviouslyFailedSession"); + if (fn__networkJoinPreviouslyFailedSession == null) fn__networkJoinPreviouslyFailedSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinPreviouslyFailedSession"); var success = false; var result = fn__networkJoinPreviouslyFailedSession(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkJoinPreviouslyFailedTransition() { unsafe { - if (fn__networkJoinPreviouslyFailedTransition == null) fn__networkJoinPreviouslyFailedTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinPreviouslyFailedTransition"); + if (fn__networkJoinPreviouslyFailedTransition == null) fn__networkJoinPreviouslyFailedTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinPreviouslyFailedTransition"); var success = false; var result = fn__networkJoinPreviouslyFailedTransition(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63215,9 +63215,9 @@ public void _0x4811BBAC21C5FCD5(int _p0) public void _0x5539C3EBF104A53A(bool _p0) { unsafe { - if (fn__0x5539C3EBF104A53A == null) fn__0x5539C3EBF104A53A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5539C3EBF104A53A"); + if (fn__0x5539C3EBF104A53A == null) fn__0x5539C3EBF104A53A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5539C3EBF104A53A"); var success = false; - fn__0x5539C3EBF104A53A(&success, _p0); + fn__0x5539C3EBF104A53A(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63235,9 +63235,9 @@ public void _0x702BC4D605522539(int _p0) public void NetworkSessionSetMatchmakingPropertyId(bool _p0) { unsafe { - if (fn__networkSessionSetMatchmakingPropertyId == null) fn__networkSessionSetMatchmakingPropertyId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionSetMatchmakingPropertyId"); + if (fn__networkSessionSetMatchmakingPropertyId == null) fn__networkSessionSetMatchmakingPropertyId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionSetMatchmakingPropertyId"); var success = false; - fn__networkSessionSetMatchmakingPropertyId(&success, _p0); + fn__networkSessionSetMatchmakingPropertyId(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63285,9 +63285,9 @@ public void _0x1153FA02A659051C() public void NetworkSessionValidateJoin(bool _p0) { unsafe { - if (fn__networkSessionValidateJoin == null) fn__networkSessionValidateJoin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionValidateJoin"); + if (fn__networkSessionValidateJoin == null) fn__networkSessionValidateJoin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionValidateJoin"); var success = false; - fn__networkSessionValidateJoin(&success, _p0); + fn__networkSessionValidateJoin(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63354,44 +63354,44 @@ public int NetworkGetTargetingMode() public bool NetworkFindGamersInCrew(int _p0) { unsafe { - if (fn__networkFindGamersInCrew == null) fn__networkFindGamersInCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFindGamersInCrew"); + if (fn__networkFindGamersInCrew == null) fn__networkFindGamersInCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFindGamersInCrew"); var success = false; var result = fn__networkFindGamersInCrew(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkFindMatchedGamers(int _p0, float _p1, float _p2, float _p3) { unsafe { - if (fn__networkFindMatchedGamers == null) fn__networkFindMatchedGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFindMatchedGamers"); + if (fn__networkFindMatchedGamers == null) fn__networkFindMatchedGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFindMatchedGamers"); var success = false; var result = fn__networkFindMatchedGamers(&success, _p0, _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFindingGamers() { unsafe { - if (fn__networkIsFindingGamers == null) fn__networkIsFindingGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFindingGamers"); + if (fn__networkIsFindingGamers == null) fn__networkIsFindingGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFindingGamers"); var success = false; var result = fn__networkIsFindingGamers(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDidFindGamersSucceed() { unsafe { - if (fn__networkDidFindGamersSucceed == null) fn__networkDidFindGamersSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDidFindGamersSucceed"); + if (fn__networkDidFindGamersSucceed == null) fn__networkDidFindGamersSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDidFindGamersSucceed"); var success = false; var result = fn__networkDidFindGamersSucceed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63409,13 +63409,13 @@ public int NetworkGetNumFoundGamers() public bool NetworkGetFoundGamer(ref int _p0, int _p1) { unsafe { - if (fn__networkGetFoundGamer == null) fn__networkGetFoundGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetFoundGamer"); + if (fn__networkGetFoundGamer == null) fn__networkGetFoundGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetFoundGamer"); var success = false; var ref_p0 = _p0; var result = fn__networkGetFoundGamer(&success, &ref_p0, _p1); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63432,59 +63432,59 @@ public void NetworkClearFoundGamers() public bool NetworkQueueGamerForStatus(ref int _p0) { unsafe { - if (fn__networkQueueGamerForStatus == null) fn__networkQueueGamerForStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkQueueGamerForStatus"); + if (fn__networkQueueGamerForStatus == null) fn__networkQueueGamerForStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkQueueGamerForStatus"); var success = false; var ref_p0 = _p0; var result = fn__networkQueueGamerForStatus(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetGamerStatusFromQueue() { unsafe { - if (fn__networkGetGamerStatusFromQueue == null) fn__networkGetGamerStatusFromQueue = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetGamerStatusFromQueue"); + if (fn__networkGetGamerStatusFromQueue == null) fn__networkGetGamerStatusFromQueue = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetGamerStatusFromQueue"); var success = false; var result = fn__networkGetGamerStatusFromQueue(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsGettingGamerStatus() { unsafe { - if (fn__networkIsGettingGamerStatus == null) fn__networkIsGettingGamerStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGettingGamerStatus"); + if (fn__networkIsGettingGamerStatus == null) fn__networkIsGettingGamerStatus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGettingGamerStatus"); var success = false; var result = fn__networkIsGettingGamerStatus(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDidGetGamerStatusSucceed() { unsafe { - if (fn__networkDidGetGamerStatusSucceed == null) fn__networkDidGetGamerStatusSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDidGetGamerStatusSucceed"); + if (fn__networkDidGetGamerStatusSucceed == null) fn__networkDidGetGamerStatusSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDidGetGamerStatusSucceed"); var success = false; var result = fn__networkDidGetGamerStatusSucceed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetGamerStatusResult(ref int _p0, int _p1) { unsafe { - if (fn__networkGetGamerStatusResult == null) fn__networkGetGamerStatusResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetGamerStatusResult"); + if (fn__networkGetGamerStatusResult == null) fn__networkGetGamerStatusResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetGamerStatusResult"); var success = false; var ref_p0 = _p0; var result = fn__networkGetGamerStatusResult(&success, &ref_p0, _p1); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63531,44 +63531,44 @@ public void NetworkSessionForceCancelInvite() public bool NetworkHasPendingInvite() { unsafe { - if (fn__networkHasPendingInvite == null) fn__networkHasPendingInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasPendingInvite"); + if (fn__networkHasPendingInvite == null) fn__networkHasPendingInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasPendingInvite"); var success = false; var result = fn__networkHasPendingInvite(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC42DD763159F3461() { unsafe { - if (fn__0xC42DD763159F3461 == null) fn__0xC42DD763159F3461 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC42DD763159F3461"); + if (fn__0xC42DD763159F3461 == null) fn__0xC42DD763159F3461 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC42DD763159F3461"); var success = false; var result = fn__0xC42DD763159F3461(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAcceptInvite() { unsafe { - if (fn__networkAcceptInvite == null) fn__networkAcceptInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAcceptInvite"); + if (fn__networkAcceptInvite == null) fn__networkAcceptInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAcceptInvite"); var success = false; var result = fn__networkAcceptInvite(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSessionWasInvited() { unsafe { - if (fn__networkSessionWasInvited == null) fn__networkSessionWasInvited = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionWasInvited"); + if (fn__networkSessionWasInvited == null) fn__networkSessionWasInvited = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionWasInvited"); var success = false; var result = fn__networkSessionWasInvited(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63587,31 +63587,31 @@ public void NetworkSessionGetInviter(ref int _gamerHandle) public bool _0xD313DE83394AF134() { unsafe { - if (fn__0xD313DE83394AF134 == null) fn__0xD313DE83394AF134 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD313DE83394AF134"); + if (fn__0xD313DE83394AF134 == null) fn__0xD313DE83394AF134 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD313DE83394AF134"); var success = false; var result = fn__0xD313DE83394AF134(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xBDB6F89C729CF388() { unsafe { - if (fn__0xBDB6F89C729CF388 == null) fn__0xBDB6F89C729CF388 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBDB6F89C729CF388"); + if (fn__0xBDB6F89C729CF388 == null) fn__0xBDB6F89C729CF388 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBDB6F89C729CF388"); var success = false; var result = fn__0xBDB6F89C729CF388(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSuppressInvite(bool _toggle) { unsafe { - if (fn__networkSuppressInvite == null) fn__networkSuppressInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSuppressInvite"); + if (fn__networkSuppressInvite == null) fn__networkSuppressInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSuppressInvite"); var success = false; - fn__networkSuppressInvite(&success, _toggle); + fn__networkSuppressInvite(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63619,9 +63619,9 @@ public void NetworkSuppressInvite(bool _toggle) public void NetworkBlockInvites(bool _toggle) { unsafe { - if (fn__networkBlockInvites == null) fn__networkBlockInvites = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockInvites"); + if (fn__networkBlockInvites == null) fn__networkBlockInvites = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockInvites"); var success = false; - fn__networkBlockInvites(&success, _toggle); + fn__networkBlockInvites(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63629,9 +63629,9 @@ public void NetworkBlockInvites(bool _toggle) public void NetworkBlockJoinQueueInvites(bool _toggle) { unsafe { - if (fn__networkBlockJoinQueueInvites == null) fn__networkBlockJoinQueueInvites = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockJoinQueueInvites"); + if (fn__networkBlockJoinQueueInvites == null) fn__networkBlockJoinQueueInvites = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockJoinQueueInvites"); var success = false; - fn__networkBlockJoinQueueInvites(&success, _toggle); + fn__networkBlockJoinQueueInvites(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63649,9 +63649,9 @@ public void _0xF814FEC6A19FD6E0() public void NetworkBlockKickedPlayers(bool _p0) { unsafe { - if (fn__networkBlockKickedPlayers == null) fn__networkBlockKickedPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockKickedPlayers"); + if (fn__networkBlockKickedPlayers == null) fn__networkBlockKickedPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkBlockKickedPlayers"); var success = false; - fn__networkBlockKickedPlayers(&success, _p0); + fn__networkBlockKickedPlayers(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63659,9 +63659,9 @@ public void NetworkBlockKickedPlayers(bool _p0) public void NetworkSetScriptReadyForEvents(bool _toggle) { unsafe { - if (fn__networkSetScriptReadyForEvents == null) fn__networkSetScriptReadyForEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetScriptReadyForEvents"); + if (fn__networkSetScriptReadyForEvents == null) fn__networkSetScriptReadyForEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetScriptReadyForEvents"); var success = false; - fn__networkSetScriptReadyForEvents(&success, _toggle); + fn__networkSetScriptReadyForEvents(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63669,11 +63669,11 @@ public void NetworkSetScriptReadyForEvents(bool _toggle) public bool NetworkIsOfflineInvitePending() { unsafe { - if (fn__networkIsOfflineInvitePending == null) fn__networkIsOfflineInvitePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsOfflineInvitePending"); + if (fn__networkIsOfflineInvitePending == null) fn__networkIsOfflineInvitePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsOfflineInvitePending"); var success = false; var result = fn__networkIsOfflineInvitePending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63710,66 +63710,66 @@ public void NetworkSessionLeaveSinglePlayer() public bool NetworkIsGameInProgress() { unsafe { - if (fn__networkIsGameInProgress == null) fn__networkIsGameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGameInProgress"); + if (fn__networkIsGameInProgress == null) fn__networkIsGameInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGameInProgress"); var success = false; var result = fn__networkIsGameInProgress(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsSessionActive() { unsafe { - if (fn__networkIsSessionActive == null) fn__networkIsSessionActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionActive"); + if (fn__networkIsSessionActive == null) fn__networkIsSessionActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionActive"); var success = false; var result = fn__networkIsSessionActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsInSession() { unsafe { - if (fn__networkIsInSession == null) fn__networkIsInSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInSession"); + if (fn__networkIsInSession == null) fn__networkIsInSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInSession"); var success = false; var result = fn__networkIsInSession(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsSessionStarted() { unsafe { - if (fn__networkIsSessionStarted == null) fn__networkIsSessionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionStarted"); + if (fn__networkIsSessionStarted == null) fn__networkIsSessionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionStarted"); var success = false; var result = fn__networkIsSessionStarted(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsSessionBusy() { unsafe { - if (fn__networkIsSessionBusy == null) fn__networkIsSessionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionBusy"); + if (fn__networkIsSessionBusy == null) fn__networkIsSessionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsSessionBusy"); var success = false; var result = fn__networkIsSessionBusy(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanSessionEnd() { unsafe { - if (fn__networkCanSessionEnd == null) fn__networkCanSessionEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSessionEnd"); + if (fn__networkCanSessionEnd == null) fn__networkCanSessionEnd = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSessionEnd"); var success = false; var result = fn__networkCanSessionEnd(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63787,9 +63787,9 @@ public int _0x4C9034162368E206() public void NetworkSessionMarkVisible(bool _toggle) { unsafe { - if (fn__networkSessionMarkVisible == null) fn__networkSessionMarkVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionMarkVisible"); + if (fn__networkSessionMarkVisible == null) fn__networkSessionMarkVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionMarkVisible"); var success = false; - fn__networkSessionMarkVisible(&success, _toggle); + fn__networkSessionMarkVisible(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63797,20 +63797,20 @@ public void NetworkSessionMarkVisible(bool _toggle) public bool NetworkSessionIsVisible() { unsafe { - if (fn__networkSessionIsVisible == null) fn__networkSessionIsVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsVisible"); + if (fn__networkSessionIsVisible == null) fn__networkSessionIsVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsVisible"); var success = false; var result = fn__networkSessionIsVisible(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSessionBlockJoinRequests(bool _toggle) { unsafe { - if (fn__networkSessionBlockJoinRequests == null) fn__networkSessionBlockJoinRequests = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionBlockJoinRequests"); + if (fn__networkSessionBlockJoinRequests == null) fn__networkSessionBlockJoinRequests = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionBlockJoinRequests"); var success = false; - fn__networkSessionBlockJoinRequests(&success, _toggle); + fn__networkSessionBlockJoinRequests(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63818,9 +63818,9 @@ public void NetworkSessionBlockJoinRequests(bool _toggle) public void NetworkSessionChangeSlots(int _p0, bool _p1) { unsafe { - if (fn__networkSessionChangeSlots == null) fn__networkSessionChangeSlots = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionChangeSlots"); + if (fn__networkSessionChangeSlots == null) fn__networkSessionChangeSlots = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionChangeSlots"); var success = false; - fn__networkSessionChangeSlots(&success, _p0, _p1); + fn__networkSessionChangeSlots(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63871,9 +63871,9 @@ public void NetworkSessionVoiceConnectToPlayer(ref int _p0) public void NetworkSessionVoiceRespondToRequest(bool _p0, int _p1) { unsafe { - if (fn__networkSessionVoiceRespondToRequest == null) fn__networkSessionVoiceRespondToRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionVoiceRespondToRequest"); + if (fn__networkSessionVoiceRespondToRequest == null) fn__networkSessionVoiceRespondToRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionVoiceRespondToRequest"); var success = false; - fn__networkSessionVoiceRespondToRequest(&success, _p0, _p1); + fn__networkSessionVoiceRespondToRequest(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); } } @@ -63891,11 +63891,11 @@ public void NetworkSessionVoiceSetTimeout(int _timeout) public bool NetworkSessionIsInVoiceSession() { unsafe { - if (fn__networkSessionIsInVoiceSession == null) fn__networkSessionIsInVoiceSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsInVoiceSession"); + if (fn__networkSessionIsInVoiceSession == null) fn__networkSessionIsInVoiceSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsInVoiceSession"); var success = false; var result = fn__networkSessionIsInVoiceSession(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63913,18 +63913,18 @@ public int _0xB5D3453C98456528() public bool NetworkSessionIsVoiceSessionBusy() { unsafe { - if (fn__networkSessionIsVoiceSessionBusy == null) fn__networkSessionIsVoiceSessionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsVoiceSessionBusy"); + if (fn__networkSessionIsVoiceSessionBusy == null) fn__networkSessionIsVoiceSessionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSessionIsVoiceSessionBusy"); var success = false; var result = fn__networkSessionIsVoiceSessionBusy(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSendTextMessage(string _message, ref int _gamerHandle) { unsafe { - if (fn__networkSendTextMessage == null) fn__networkSendTextMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendTextMessage"); + if (fn__networkSendTextMessage == null) fn__networkSendTextMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendTextMessage"); var success = false; var ptr_message = MemoryUtils.StringToHGlobalUtf8(_message); var ref_gamerHandle = _gamerHandle; @@ -63932,16 +63932,16 @@ public bool NetworkSendTextMessage(string _message, ref int _gamerHandle) Marshal.FreeHGlobal(ptr_message); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSetActivitySpectator(bool _toggle) { unsafe { - if (fn__networkSetActivitySpectator == null) fn__networkSetActivitySpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetActivitySpectator"); + if (fn__networkSetActivitySpectator == null) fn__networkSetActivitySpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetActivitySpectator"); var success = false; - fn__networkSetActivitySpectator(&success, _toggle); + fn__networkSetActivitySpectator(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -63949,11 +63949,11 @@ public void NetworkSetActivitySpectator(bool _toggle) public bool NetworkIsActivitySpectator() { unsafe { - if (fn__networkIsActivitySpectator == null) fn__networkIsActivitySpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySpectator"); + if (fn__networkIsActivitySpectator == null) fn__networkIsActivitySpectator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySpectator"); var success = false; var result = fn__networkIsActivitySpectator(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -63980,9 +63980,9 @@ public void NetworkSetActivitySpectatorMax(int _maxSpectators) public int NetworkGetActivityPlayerNum(bool _p0) { unsafe { - if (fn__networkGetActivityPlayerNum == null) fn__networkGetActivityPlayerNum = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetActivityPlayerNum"); + if (fn__networkGetActivityPlayerNum == null) fn__networkGetActivityPlayerNum = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetActivityPlayerNum"); var success = false; - var result = fn__networkGetActivityPlayerNum(&success, _p0); + var result = fn__networkGetActivityPlayerNum(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -63991,59 +63991,59 @@ public int NetworkGetActivityPlayerNum(bool _p0) public bool NetworkIsActivitySpectatorFromHandle(ref int _gamerHandle) { unsafe { - if (fn__networkIsActivitySpectatorFromHandle == null) fn__networkIsActivitySpectatorFromHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySpectatorFromHandle"); + if (fn__networkIsActivitySpectatorFromHandle == null) fn__networkIsActivitySpectatorFromHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySpectatorFromHandle"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsActivitySpectatorFromHandle(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHostTransition(int _p0, int _p1, int _p2, int _p3, int _p4, bool _p5, bool _p6, int _p7, int _p8, int _p9) { unsafe { - if (fn__networkHostTransition == null) fn__networkHostTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHostTransition"); + if (fn__networkHostTransition == null) fn__networkHostTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHostTransition"); var success = false; - var result = fn__networkHostTransition(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + var result = fn__networkHostTransition(&success, _p0, _p1, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), _p7, _p8, _p9); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionQuickmatch(int _p0, int _p1, int _p2, int _p3, int _p4, int _p5) { unsafe { - if (fn__networkDoTransitionQuickmatch == null) fn__networkDoTransitionQuickmatch = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatch"); + if (fn__networkDoTransitionQuickmatch == null) fn__networkDoTransitionQuickmatch = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatch"); var success = false; var result = fn__networkDoTransitionQuickmatch(&success, _p0, _p1, _p2, _p3, _p4, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionQuickmatchAsync(int _p0, int _p1, int _p2, int _p3, int _p4, int _p5) { unsafe { - if (fn__networkDoTransitionQuickmatchAsync == null) fn__networkDoTransitionQuickmatchAsync = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatchAsync"); + if (fn__networkDoTransitionQuickmatchAsync == null) fn__networkDoTransitionQuickmatchAsync = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatchAsync"); var success = false; var result = fn__networkDoTransitionQuickmatchAsync(&success, _p0, _p1, _p2, _p3, _p4, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionQuickmatchWithGroup(int _p0, int _p1, int _p2, int _p3, ref int _p4, int _p5, int _p6, int _p7) { unsafe { - if (fn__networkDoTransitionQuickmatchWithGroup == null) fn__networkDoTransitionQuickmatchWithGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatchWithGroup"); + if (fn__networkDoTransitionQuickmatchWithGroup == null) fn__networkDoTransitionQuickmatchWithGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionQuickmatchWithGroup"); var success = false; var ref_p4 = _p4; var result = fn__networkDoTransitionQuickmatchWithGroup(&success, _p0, _p1, _p2, _p3, &ref_p4, _p5, _p6, _p7); _p4 = ref_p4; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64081,44 +64081,44 @@ public void _0xB13E88E655E5A3BC() public bool NetworkIsTransitionClosedFriends() { unsafe { - if (fn__networkIsTransitionClosedFriends == null) fn__networkIsTransitionClosedFriends = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionClosedFriends"); + if (fn__networkIsTransitionClosedFriends == null) fn__networkIsTransitionClosedFriends = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionClosedFriends"); var success = false; var result = fn__networkIsTransitionClosedFriends(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionClosedCrew() { unsafe { - if (fn__networkIsTransitionClosedCrew == null) fn__networkIsTransitionClosedCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionClosedCrew"); + if (fn__networkIsTransitionClosedCrew == null) fn__networkIsTransitionClosedCrew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionClosedCrew"); var success = false; var result = fn__networkIsTransitionClosedCrew(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionSolo() { unsafe { - if (fn__networkIsTransitionSolo == null) fn__networkIsTransitionSolo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionSolo"); + if (fn__networkIsTransitionSolo == null) fn__networkIsTransitionSolo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionSolo"); var success = false; var result = fn__networkIsTransitionSolo(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionPrivate() { unsafe { - if (fn__networkIsTransitionPrivate == null) fn__networkIsTransitionPrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionPrivate"); + if (fn__networkIsTransitionPrivate == null) fn__networkIsTransitionPrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionPrivate"); var success = false; var result = fn__networkIsTransitionPrivate(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64136,9 +64136,9 @@ public int _0x617F49C2668E6155() public void _0x261E97AD7BCF3D40(bool _p0) { unsafe { - if (fn__0x261E97AD7BCF3D40 == null) fn__0x261E97AD7BCF3D40 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x261E97AD7BCF3D40"); + if (fn__0x261E97AD7BCF3D40 == null) fn__0x261E97AD7BCF3D40 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x261E97AD7BCF3D40"); var success = false; - fn__0x261E97AD7BCF3D40(&success, _p0); + fn__0x261E97AD7BCF3D40(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64146,9 +64146,9 @@ public void _0x261E97AD7BCF3D40(bool _p0) public void _0x39917E1B4CB0F911(bool _p0) { unsafe { - if (fn__0x39917E1B4CB0F911 == null) fn__0x39917E1B4CB0F911 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x39917E1B4CB0F911"); + if (fn__0x39917E1B4CB0F911 == null) fn__0x39917E1B4CB0F911 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x39917E1B4CB0F911"); var success = false; - fn__0x39917E1B4CB0F911(&success, _p0); + fn__0x39917E1B4CB0F911(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64188,13 +64188,13 @@ public void NetworkClearTransitionCreatorHandle() public bool NetworkInviteGamersToTransition(ref int _p0, int _p1) { unsafe { - if (fn__networkInviteGamersToTransition == null) fn__networkInviteGamersToTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkInviteGamersToTransition"); + if (fn__networkInviteGamersToTransition == null) fn__networkInviteGamersToTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkInviteGamersToTransition"); var success = false; var ref_p0 = _p0; var result = fn__networkInviteGamersToTransition(&success, &ref_p0, _p1); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64213,31 +64213,31 @@ public void NetworkSetGamerInvitedToTransition(ref int _gamerHandle) public bool NetworkLeaveTransition() { unsafe { - if (fn__networkLeaveTransition == null) fn__networkLeaveTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeaveTransition"); + if (fn__networkLeaveTransition == null) fn__networkLeaveTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeaveTransition"); var success = false; var result = fn__networkLeaveTransition(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkLaunchTransition() { unsafe { - if (fn__networkLaunchTransition == null) fn__networkLaunchTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLaunchTransition"); + if (fn__networkLaunchTransition == null) fn__networkLaunchTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLaunchTransition"); var success = false; var result = fn__networkLaunchTransition(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xA2E9C1AB8A92E8CD(bool _toggle) { unsafe { - if (fn__0xA2E9C1AB8A92E8CD == null) fn__0xA2E9C1AB8A92E8CD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA2E9C1AB8A92E8CD"); + if (fn__0xA2E9C1AB8A92E8CD == null) fn__0xA2E9C1AB8A92E8CD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA2E9C1AB8A92E8CD"); var success = false; - fn__0xA2E9C1AB8A92E8CD(&success, _toggle); + fn__0xA2E9C1AB8A92E8CD(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64255,61 +64255,61 @@ public void NetworkBailTransition(int _p0, int _p1, int _p2) public bool NetworkDoTransitionToGame(bool _p0, int _maxPlayers) { unsafe { - if (fn__networkDoTransitionToGame == null) fn__networkDoTransitionToGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToGame"); + if (fn__networkDoTransitionToGame == null) fn__networkDoTransitionToGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToGame"); var success = false; - var result = fn__networkDoTransitionToGame(&success, _p0, _maxPlayers); + var result = fn__networkDoTransitionToGame(&success, (byte) (_p0 ? 1 : 0), _maxPlayers); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionToNewGame(bool _p0, int _maxPlayers, bool _p2) { unsafe { - if (fn__networkDoTransitionToNewGame == null) fn__networkDoTransitionToNewGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToNewGame"); + if (fn__networkDoTransitionToNewGame == null) fn__networkDoTransitionToNewGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToNewGame"); var success = false; - var result = fn__networkDoTransitionToNewGame(&success, _p0, _maxPlayers, _p2); + var result = fn__networkDoTransitionToNewGame(&success, (byte) (_p0 ? 1 : 0), _maxPlayers, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionToFreemode(ref int _p0, int _p1, bool _p2, int _players, bool _p4) { unsafe { - if (fn__networkDoTransitionToFreemode == null) fn__networkDoTransitionToFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToFreemode"); + if (fn__networkDoTransitionToFreemode == null) fn__networkDoTransitionToFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToFreemode"); var success = false; var ref_p0 = _p0; - var result = fn__networkDoTransitionToFreemode(&success, &ref_p0, _p1, _p2, _players, _p4); + var result = fn__networkDoTransitionToFreemode(&success, &ref_p0, _p1, (byte) (_p2 ? 1 : 0), _players, (byte) (_p4 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoTransitionToNewFreemode(ref int _p0, ref int _p1, int _players, bool _p3, bool _p4, bool _p5) { unsafe { - if (fn__networkDoTransitionToNewFreemode == null) fn__networkDoTransitionToNewFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToNewFreemode"); + if (fn__networkDoTransitionToNewFreemode == null) fn__networkDoTransitionToNewFreemode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoTransitionToNewFreemode"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; - var result = fn__networkDoTransitionToNewFreemode(&success, &ref_p0, &ref_p1, _players, _p3, _p4, _p5); + var result = fn__networkDoTransitionToNewFreemode(&success, &ref_p0, &ref_p1, _players, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionToGame() { unsafe { - if (fn__networkIsTransitionToGame == null) fn__networkIsTransitionToGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionToGame"); + if (fn__networkIsTransitionToGame == null) fn__networkIsTransitionToGame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionToGame"); var success = false; var result = fn__networkIsTransitionToGame(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64339,10 +64339,10 @@ public void NetworkApplyTransitionParameter(int _p0, int _p1) public void NetworkApplyTransitionParameterString(int _p0, string _string, bool _p2) { unsafe { - if (fn__networkApplyTransitionParameterString == null) fn__networkApplyTransitionParameterString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkApplyTransitionParameterString"); + if (fn__networkApplyTransitionParameterString == null) fn__networkApplyTransitionParameterString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkApplyTransitionParameterString"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); - fn__networkApplyTransitionParameterString(&success, _p0, ptr_string, _p2); + fn__networkApplyTransitionParameterString(&success, _p0, ptr_string, (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_string); if (!success) throw new Exception("Native execution failed"); } @@ -64351,120 +64351,120 @@ public void NetworkApplyTransitionParameterString(int _p0, string _string, bool public bool NetworkSendTransitionGamerInstruction(ref int _gamerHandle, string _p1, int _p2, int _p3, bool _p4) { unsafe { - if (fn__networkSendTransitionGamerInstruction == null) fn__networkSendTransitionGamerInstruction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendTransitionGamerInstruction"); + if (fn__networkSendTransitionGamerInstruction == null) fn__networkSendTransitionGamerInstruction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendTransitionGamerInstruction"); var success = false; var ref_gamerHandle = _gamerHandle; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); - var result = fn__networkSendTransitionGamerInstruction(&success, &ref_gamerHandle, ptr_p1, _p2, _p3, _p4); + var result = fn__networkSendTransitionGamerInstruction(&success, &ref_gamerHandle, ptr_p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); _gamerHandle = ref_gamerHandle; Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkMarkTransitionGamerAsFullyJoined(ref int _p0) { unsafe { - if (fn__networkMarkTransitionGamerAsFullyJoined == null) fn__networkMarkTransitionGamerAsFullyJoined = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkMarkTransitionGamerAsFullyJoined"); + if (fn__networkMarkTransitionGamerAsFullyJoined == null) fn__networkMarkTransitionGamerAsFullyJoined = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkMarkTransitionGamerAsFullyJoined"); var success = false; var ref_p0 = _p0; var result = fn__networkMarkTransitionGamerAsFullyJoined(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionHost() { unsafe { - if (fn__networkIsTransitionHost == null) fn__networkIsTransitionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionHost"); + if (fn__networkIsTransitionHost == null) fn__networkIsTransitionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionHost"); var success = false; var result = fn__networkIsTransitionHost(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionHostFromHandle(ref int _gamerHandle) { unsafe { - if (fn__networkIsTransitionHostFromHandle == null) fn__networkIsTransitionHostFromHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionHostFromHandle"); + if (fn__networkIsTransitionHostFromHandle == null) fn__networkIsTransitionHostFromHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionHostFromHandle"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsTransitionHostFromHandle(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetTransitionHost(ref int _gamerHandle) { unsafe { - if (fn__networkGetTransitionHost == null) fn__networkGetTransitionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetTransitionHost"); + if (fn__networkGetTransitionHost == null) fn__networkGetTransitionHost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetTransitionHost"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkGetTransitionHost(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsInTransition() { unsafe { - if (fn__networkIsInTransition == null) fn__networkIsInTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInTransition"); + if (fn__networkIsInTransition == null) fn__networkIsInTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInTransition"); var success = false; var result = fn__networkIsInTransition(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionStarted() { unsafe { - if (fn__networkIsTransitionStarted == null) fn__networkIsTransitionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionStarted"); + if (fn__networkIsTransitionStarted == null) fn__networkIsTransitionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionStarted"); var success = false; var result = fn__networkIsTransitionStarted(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionBusy() { unsafe { - if (fn__networkIsTransitionBusy == null) fn__networkIsTransitionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionBusy"); + if (fn__networkIsTransitionBusy == null) fn__networkIsTransitionBusy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionBusy"); var success = false; var result = fn__networkIsTransitionBusy(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTransitionMatchmaking() { unsafe { - if (fn__networkIsTransitionMatchmaking == null) fn__networkIsTransitionMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionMatchmaking"); + if (fn__networkIsTransitionMatchmaking == null) fn__networkIsTransitionMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionMatchmaking"); var success = false; var result = fn__networkIsTransitionMatchmaking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC571D0E77D8BBC29() { unsafe { - if (fn__0xC571D0E77D8BBC29 == null) fn__0xC571D0E77D8BBC29 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC571D0E77D8BBC29"); + if (fn__0xC571D0E77D8BBC29 == null) fn__0xC571D0E77D8BBC29 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC571D0E77D8BBC29"); var success = false; var result = fn__0xC571D0E77D8BBC29(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64521,20 +64521,20 @@ public void NetworkCloseTransitionMatchmaking() public bool NetworkIsTransitionOpenToMatchmaking() { unsafe { - if (fn__networkIsTransitionOpenToMatchmaking == null) fn__networkIsTransitionOpenToMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionOpenToMatchmaking"); + if (fn__networkIsTransitionOpenToMatchmaking == null) fn__networkIsTransitionOpenToMatchmaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionOpenToMatchmaking"); var success = false; var result = fn__networkIsTransitionOpenToMatchmaking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSetTransitionVisibilityLock(bool _p0, bool _p1) { unsafe { - if (fn__networkSetTransitionVisibilityLock == null) fn__networkSetTransitionVisibilityLock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetTransitionVisibilityLock"); + if (fn__networkSetTransitionVisibilityLock == null) fn__networkSetTransitionVisibilityLock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetTransitionVisibilityLock"); var success = false; - fn__networkSetTransitionVisibilityLock(&success, _p0, _p1); + fn__networkSetTransitionVisibilityLock(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64542,11 +64542,11 @@ public void NetworkSetTransitionVisibilityLock(bool _p0, bool _p1) public bool NetworkIsTransitionVisibilityLocked() { unsafe { - if (fn__networkIsTransitionVisibilityLocked == null) fn__networkIsTransitionVisibilityLocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionVisibilityLocked"); + if (fn__networkIsTransitionVisibilityLocked == null) fn__networkIsTransitionVisibilityLocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTransitionVisibilityLocked"); var success = false; var result = fn__networkIsTransitionVisibilityLocked(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64573,9 +64573,9 @@ public void NetworkChangeTransitionSlots(int _p0, int _p1) public void _0x973D76AA760A6CB6(bool _p0) { unsafe { - if (fn__0x973D76AA760A6CB6 == null) fn__0x973D76AA760A6CB6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x973D76AA760A6CB6"); + if (fn__0x973D76AA760A6CB6 == null) fn__0x973D76AA760A6CB6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x973D76AA760A6CB6"); var success = false; - fn__0x973D76AA760A6CB6(&success, _p0); + fn__0x973D76AA760A6CB6(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64584,22 +64584,22 @@ public void _0x973D76AA760A6CB6(bool _p0) public bool NetworkHasPlayerStartedTransition(int _player) { unsafe { - if (fn__networkHasPlayerStartedTransition == null) fn__networkHasPlayerStartedTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasPlayerStartedTransition"); + if (fn__networkHasPlayerStartedTransition == null) fn__networkHasPlayerStartedTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasPlayerStartedTransition"); var success = false; var result = fn__networkHasPlayerStartedTransition(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAreTransitionDetailsValid(int _p0) { unsafe { - if (fn__networkAreTransitionDetailsValid == null) fn__networkAreTransitionDetailsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreTransitionDetailsValid"); + if (fn__networkAreTransitionDetailsValid == null) fn__networkAreTransitionDetailsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreTransitionDetailsValid"); var success = false; var result = fn__networkAreTransitionDetailsValid(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64607,57 +64607,57 @@ public bool NetworkAreTransitionDetailsValid(int _p0) public bool NetworkJoinTransition(int _player) { unsafe { - if (fn__networkJoinTransition == null) fn__networkJoinTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinTransition"); + if (fn__networkJoinTransition == null) fn__networkJoinTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkJoinTransition"); var success = false; var result = fn__networkJoinTransition(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasInvitedGamerToTransition(ref int _p0) { unsafe { - if (fn__networkHasInvitedGamerToTransition == null) fn__networkHasInvitedGamerToTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasInvitedGamerToTransition"); + if (fn__networkHasInvitedGamerToTransition == null) fn__networkHasInvitedGamerToTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasInvitedGamerToTransition"); var success = false; var ref_p0 = _p0; var result = fn__networkHasInvitedGamerToTransition(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x3F9990BF5F22759C(ref int _p0) { unsafe { - if (fn__0x3F9990BF5F22759C == null) fn__0x3F9990BF5F22759C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3F9990BF5F22759C"); + if (fn__0x3F9990BF5F22759C == null) fn__0x3F9990BF5F22759C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3F9990BF5F22759C"); var success = false; var ref_p0 = _p0; var result = fn__0x3F9990BF5F22759C(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsActivitySession() { unsafe { - if (fn__networkIsActivitySession == null) fn__networkIsActivitySession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySession"); + if (fn__networkIsActivitySession == null) fn__networkIsActivitySession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsActivitySession"); var success = false; var result = fn__networkIsActivitySession(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x4A9FDE3A5A6D0437(bool _toggle) { unsafe { - if (fn__0x4A9FDE3A5A6D0437 == null) fn__0x4A9FDE3A5A6D0437 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4A9FDE3A5A6D0437"); + if (fn__0x4A9FDE3A5A6D0437 == null) fn__0x4A9FDE3A5A6D0437 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4A9FDE3A5A6D0437"); var success = false; - fn__0x4A9FDE3A5A6D0437(&success, _toggle); + fn__0x4A9FDE3A5A6D0437(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -64665,7 +64665,7 @@ public void _0x4A9FDE3A5A6D0437(bool _toggle) public bool NetworkSendInviteViaPresence(ref int _gamerHandle, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__networkSendInviteViaPresence == null) fn__networkSendInviteViaPresence = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendInviteViaPresence"); + if (fn__networkSendInviteViaPresence == null) fn__networkSendInviteViaPresence = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendInviteViaPresence"); var success = false; var ref_gamerHandle = _gamerHandle; var ref_p1 = _p1; @@ -64673,14 +64673,14 @@ public bool NetworkSendInviteViaPresence(ref int _gamerHandle, ref int _p1, int _gamerHandle = ref_gamerHandle; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSendPresenceTransitionInvite(ref int _p0, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__networkSendPresenceTransitionInvite == null) fn__networkSendPresenceTransitionInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendPresenceTransitionInvite"); + if (fn__networkSendPresenceTransitionInvite == null) fn__networkSendPresenceTransitionInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSendPresenceTransitionInvite"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -64688,14 +64688,14 @@ public bool NetworkSendPresenceTransitionInvite(ref int _p0, ref int _p1, int _p _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x1171A97A3D3981B6(ref int _p0, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__0x1171A97A3D3981B6 == null) fn__0x1171A97A3D3981B6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1171A97A3D3981B6"); + if (fn__0x1171A97A3D3981B6 == null) fn__0x1171A97A3D3981B6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1171A97A3D3981B6"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -64703,7 +64703,7 @@ public bool _0x1171A97A3D3981B6(ref int _p0, ref int _p1, int _p2, int _p3) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64732,22 +64732,22 @@ public int NetworkGetNumPresenceInvites() public bool NetworkAcceptPresenceInvite(int _p0) { unsafe { - if (fn__networkAcceptPresenceInvite == null) fn__networkAcceptPresenceInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAcceptPresenceInvite"); + if (fn__networkAcceptPresenceInvite == null) fn__networkAcceptPresenceInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAcceptPresenceInvite"); var success = false; var result = fn__networkAcceptPresenceInvite(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRemovePresenceInvite(int _p0) { unsafe { - if (fn__networkRemovePresenceInvite == null) fn__networkRemovePresenceInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRemovePresenceInvite"); + if (fn__networkRemovePresenceInvite == null) fn__networkRemovePresenceInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRemovePresenceInvite"); var success = false; var result = fn__networkRemovePresenceInvite(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64776,13 +64776,13 @@ public int NetworkGetPresenceInviteInviter(int _p0) public bool NetworkGetPresenceInviteHandle(int _p0, ref int _p1) { unsafe { - if (fn__networkGetPresenceInviteHandle == null) fn__networkGetPresenceInviteHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteHandle"); + if (fn__networkGetPresenceInviteHandle == null) fn__networkGetPresenceInviteHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteHandle"); var success = false; var ref_p1 = _p1; var result = fn__networkGetPresenceInviteHandle(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64833,33 +64833,33 @@ public int NetworkGetPresenceInvitePlaylistCurrent(int _p0) public bool NetworkGetPresenceInviteFromAdmin(int _p0) { unsafe { - if (fn__networkGetPresenceInviteFromAdmin == null) fn__networkGetPresenceInviteFromAdmin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteFromAdmin"); + if (fn__networkGetPresenceInviteFromAdmin == null) fn__networkGetPresenceInviteFromAdmin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteFromAdmin"); var success = false; var result = fn__networkGetPresenceInviteFromAdmin(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetPresenceInviteIsTournament(int _p0) { unsafe { - if (fn__networkGetPresenceInviteIsTournament == null) fn__networkGetPresenceInviteIsTournament = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteIsTournament"); + if (fn__networkGetPresenceInviteIsTournament == null) fn__networkGetPresenceInviteIsTournament = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPresenceInviteIsTournament"); var success = false; var result = fn__networkGetPresenceInviteIsTournament(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasFollowInvite() { unsafe { - if (fn__networkHasFollowInvite == null) fn__networkHasFollowInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasFollowInvite"); + if (fn__networkHasFollowInvite == null) fn__networkHasFollowInvite = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasFollowInvite"); var success = false; var result = fn__networkHasFollowInvite(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64930,7 +64930,7 @@ public void _0xF083835B70BA9BFE() public bool NetworkInviteGamers(ref int _p0, int _p1, ref int _p2, ref int _p3) { unsafe { - if (fn__networkInviteGamers == null) fn__networkInviteGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkInviteGamers"); + if (fn__networkInviteGamers == null) fn__networkInviteGamers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkInviteGamers"); var success = false; var ref_p0 = _p0; var ref_p2 = _p2; @@ -64940,33 +64940,33 @@ public bool NetworkInviteGamers(ref int _p0, int _p1, ref int _p2, ref int _p3) _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasInvitedGamer(ref int _p0) { unsafe { - if (fn__networkHasInvitedGamer == null) fn__networkHasInvitedGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasInvitedGamer"); + if (fn__networkHasInvitedGamer == null) fn__networkHasInvitedGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasInvitedGamer"); var success = false; var ref_p0 = _p0; var result = fn__networkHasInvitedGamer(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x71DC455F5CD1C2B1(ref int _gamerHandle) { unsafe { - if (fn__0x71DC455F5CD1C2B1 == null) fn__0x71DC455F5CD1C2B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x71DC455F5CD1C2B1"); + if (fn__0x71DC455F5CD1C2B1 == null) fn__0x71DC455F5CD1C2B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x71DC455F5CD1C2B1"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__0x71DC455F5CD1C2B1(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -64984,26 +64984,26 @@ public int _0x3855FB5EB2C5E8B2(int _p0) public bool NetworkGetCurrentlySelectedGamerHandleFromInviteMenu(ref int _p0) { unsafe { - if (fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu == null) fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetCurrentlySelectedGamerHandleFromInviteMenu"); + if (fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu == null) fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetCurrentlySelectedGamerHandleFromInviteMenu"); var success = false; var ref_p0 = _p0; var result = fn__networkGetCurrentlySelectedGamerHandleFromInviteMenu(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSetCurrentlySelectedGamerHandleFromInviteMenu(ref int _p0) { unsafe { - if (fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu == null) fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetCurrentlySelectedGamerHandleFromInviteMenu"); + if (fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu == null) fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetCurrentlySelectedGamerHandleFromInviteMenu"); var success = false; var ref_p0 = _p0; var result = fn__networkSetCurrentlySelectedGamerHandleFromInviteMenu(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65022,13 +65022,13 @@ public void NetworkSetInviteOnCallForInviteMenu(ref int _p0) public bool NetworkCheckDataManagerSucceededForHandle(int _p0, ref int _p1) { unsafe { - if (fn__networkCheckDataManagerSucceededForHandle == null) fn__networkCheckDataManagerSucceededForHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckDataManagerSucceededForHandle"); + if (fn__networkCheckDataManagerSucceededForHandle == null) fn__networkCheckDataManagerSucceededForHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCheckDataManagerSucceededForHandle"); var success = false; var ref_p1 = _p1; var result = fn__networkCheckDataManagerSucceededForHandle(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65060,20 +65060,20 @@ public void _0x0D77A82DC2D0DA59(ref int _p0, ref int _p1) public bool FilloutPmPlayerList(ref int _gamerHandle, int _p1, int _p2) { unsafe { - if (fn__filloutPmPlayerList == null) fn__filloutPmPlayerList = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_filloutPmPlayerList"); + if (fn__filloutPmPlayerList == null) fn__filloutPmPlayerList = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_filloutPmPlayerList"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__filloutPmPlayerList(&success, &ref_gamerHandle, _p1, _p2); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FilloutPmPlayerListWithNames(ref int _p0, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__filloutPmPlayerListWithNames == null) fn__filloutPmPlayerListWithNames = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_filloutPmPlayerListWithNames"); + if (fn__filloutPmPlayerListWithNames == null) fn__filloutPmPlayerListWithNames = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_filloutPmPlayerListWithNames"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -65081,42 +65081,42 @@ public bool FilloutPmPlayerListWithNames(ref int _p0, ref int _p1, int _p2, int _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool RefreshPlayerListStats(int _p0) { unsafe { - if (fn__refreshPlayerListStats == null) fn__refreshPlayerListStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_refreshPlayerListStats"); + if (fn__refreshPlayerListStats == null) fn__refreshPlayerListStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_refreshPlayerListStats"); var success = false; var result = fn__refreshPlayerListStats(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkSetCurrentDataManagerHandle(ref int _p0) { unsafe { - if (fn__networkSetCurrentDataManagerHandle == null) fn__networkSetCurrentDataManagerHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetCurrentDataManagerHandle"); + if (fn__networkSetCurrentDataManagerHandle == null) fn__networkSetCurrentDataManagerHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetCurrentDataManagerHandle"); var success = false; var ref_p0 = _p0; var result = fn__networkSetCurrentDataManagerHandle(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsInPlatformParty() { unsafe { - if (fn__networkIsInPlatformParty == null) fn__networkIsInPlatformParty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInPlatformParty"); + if (fn__networkIsInPlatformParty == null) fn__networkIsInPlatformParty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInPlatformParty"); var success = false; var result = fn__networkIsInPlatformParty(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65147,24 +65147,24 @@ public int NetworkGetPlatformPartyMembers(ref int _data, int _dataSize) public bool NetworkIsInPlatformPartyChat() { unsafe { - if (fn__networkIsInPlatformPartyChat == null) fn__networkIsInPlatformPartyChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInPlatformPartyChat"); + if (fn__networkIsInPlatformPartyChat == null) fn__networkIsInPlatformPartyChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInPlatformPartyChat"); var success = false; var result = fn__networkIsInPlatformPartyChat(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsChattingInPlatformParty(ref int _gamerHandle) { unsafe { - if (fn__networkIsChattingInPlatformParty == null) fn__networkIsChattingInPlatformParty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsChattingInPlatformParty"); + if (fn__networkIsChattingInPlatformParty == null) fn__networkIsChattingInPlatformParty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsChattingInPlatformParty"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsChattingInPlatformParty(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65182,11 +65182,11 @@ public int _0x2BF66D2E7414F686() public bool _0x14922ED3E38761F0() { unsafe { - if (fn__0x14922ED3E38761F0 == null) fn__0x14922ED3E38761F0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x14922ED3E38761F0"); + if (fn__0x14922ED3E38761F0 == null) fn__0x14922ED3E38761F0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x14922ED3E38761F0"); var success = false; var result = fn__0x14922ED3E38761F0(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65255,11 +65255,11 @@ public int NetworkGetRandomIntRanged(int _rangeStart, int _rangeEnd) public bool NetworkPlayerIsCheater() { unsafe { - if (fn__networkPlayerIsCheater == null) fn__networkPlayerIsCheater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsCheater"); + if (fn__networkPlayerIsCheater == null) fn__networkPlayerIsCheater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsCheater"); var success = false; var result = fn__networkPlayerIsCheater(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65277,11 +65277,11 @@ public int NetworkPlayerGetCheaterReason() public bool NetworkPlayerIsBadsport() { unsafe { - if (fn__networkPlayerIsBadsport == null) fn__networkPlayerIsBadsport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsBadsport"); + if (fn__networkPlayerIsBadsport == null) fn__networkPlayerIsBadsport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsBadsport"); var success = false; var result = fn__networkPlayerIsBadsport(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65289,11 +65289,11 @@ public bool NetworkPlayerIsBadsport() public bool TriggerScriptCrcCheckOnPlayer(int _player, int _p1, uint _scriptHash) { unsafe { - if (fn__triggerScriptCrcCheckOnPlayer == null) fn__triggerScriptCrcCheckOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScriptCrcCheckOnPlayer"); + if (fn__triggerScriptCrcCheckOnPlayer == null) fn__triggerScriptCrcCheckOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_triggerScriptCrcCheckOnPlayer"); var success = false; var result = fn__triggerScriptCrcCheckOnPlayer(&success, _player, _p1, _scriptHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65323,24 +65323,24 @@ public int _0xF287F506767CC8A9() public bool RemoteCheatDetected(int _player, int _a, int _b) { unsafe { - if (fn__remoteCheatDetected == null) fn__remoteCheatDetected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_remoteCheatDetected"); + if (fn__remoteCheatDetected == null) fn__remoteCheatDetected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_remoteCheatDetected"); var success = false; var result = fn__remoteCheatDetected(&success, _player, _a, _b); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool BadSportPlayerLeftDetected(ref int _gamerHandle, int _event, int _amountReceived) { unsafe { - if (fn__badSportPlayerLeftDetected == null) fn__badSportPlayerLeftDetected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_badSportPlayerLeftDetected"); + if (fn__badSportPlayerLeftDetected == null) fn__badSportPlayerLeftDetected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_badSportPlayerLeftDetected"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__badSportPlayerLeftDetected(&success, &ref_gamerHandle, _event, _amountReceived); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65358,9 +65358,9 @@ public void NetworkApplyPedScarData(int _ped, int _p1) public void NetworkSetThisScriptIsNetworkScript(int _maxNumMissionParticipants, bool _p1, int _instanceId) { unsafe { - if (fn__networkSetThisScriptIsNetworkScript == null) fn__networkSetThisScriptIsNetworkScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetThisScriptIsNetworkScript"); + if (fn__networkSetThisScriptIsNetworkScript == null) fn__networkSetThisScriptIsNetworkScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetThisScriptIsNetworkScript"); var success = false; - fn__networkSetThisScriptIsNetworkScript(&success, _maxNumMissionParticipants, _p1, _instanceId); + fn__networkSetThisScriptIsNetworkScript(&success, _maxNumMissionParticipants, (byte) (_p1 ? 1 : 0), _instanceId); if (!success) throw new Exception("Native execution failed"); } } @@ -65368,22 +65368,22 @@ public void NetworkSetThisScriptIsNetworkScript(int _maxNumMissionParticipants, public bool NetworkIsThisScriptMarked(int _p0, bool _p1, int _p2) { unsafe { - if (fn__networkIsThisScriptMarked == null) fn__networkIsThisScriptMarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsThisScriptMarked"); + if (fn__networkIsThisScriptMarked == null) fn__networkIsThisScriptMarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsThisScriptMarked"); var success = false; - var result = fn__networkIsThisScriptMarked(&success, _p0, _p1, _p2); + var result = fn__networkIsThisScriptMarked(&success, _p0, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetThisScriptIsNetworkScript() { unsafe { - if (fn__networkGetThisScriptIsNetworkScript == null) fn__networkGetThisScriptIsNetworkScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetThisScriptIsNetworkScript"); + if (fn__networkGetThisScriptIsNetworkScript == null) fn__networkGetThisScriptIsNetworkScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetThisScriptIsNetworkScript"); var success = false; var result = fn__networkGetThisScriptIsNetworkScript(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65477,11 +65477,11 @@ public void NetworkFinishBroadcastingData() public bool NetworkHasReceivedHostBroadcastData() { unsafe { - if (fn__networkHasReceivedHostBroadcastData == null) fn__networkHasReceivedHostBroadcastData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasReceivedHostBroadcastData"); + if (fn__networkHasReceivedHostBroadcastData == null) fn__networkHasReceivedHostBroadcastData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasReceivedHostBroadcastData"); var success = false; var result = fn__networkHasReceivedHostBroadcastData(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65535,11 +65535,11 @@ public int NetworkGetNumConnectedPlayers() public bool NetworkIsPlayerConnected(int _player) { unsafe { - if (fn__networkIsPlayerConnected == null) fn__networkIsPlayerConnected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerConnected"); + if (fn__networkIsPlayerConnected == null) fn__networkIsPlayerConnected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerConnected"); var success = false; var result = fn__networkIsPlayerConnected(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65557,11 +65557,11 @@ public int NetworkGetTotalNumPlayers() public bool NetworkIsParticipantActive(int _p0) { unsafe { - if (fn__networkIsParticipantActive == null) fn__networkIsParticipantActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsParticipantActive"); + if (fn__networkIsParticipantActive == null) fn__networkIsParticipantActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsParticipantActive"); var success = false; var result = fn__networkIsParticipantActive(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65569,11 +65569,11 @@ public bool NetworkIsParticipantActive(int _p0) public bool NetworkIsPlayerActive(int _player) { unsafe { - if (fn__networkIsPlayerActive == null) fn__networkIsPlayerActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerActive"); + if (fn__networkIsPlayerActive == null) fn__networkIsPlayerActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerActive"); var success = false; var result = fn__networkIsPlayerActive(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65581,22 +65581,22 @@ public bool NetworkIsPlayerActive(int _player) public bool NetworkIsPlayerAParticipant(int _player) { unsafe { - if (fn__networkIsPlayerAParticipant == null) fn__networkIsPlayerAParticipant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerAParticipant"); + if (fn__networkIsPlayerAParticipant == null) fn__networkIsPlayerAParticipant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerAParticipant"); var success = false; var result = fn__networkIsPlayerAParticipant(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsHostOfThisScript() { unsafe { - if (fn__networkIsHostOfThisScript == null) fn__networkIsHostOfThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHostOfThisScript"); + if (fn__networkIsHostOfThisScript == null) fn__networkIsHostOfThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHostOfThisScript"); var success = false; var result = fn__networkIsHostOfThisScript(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65638,24 +65638,24 @@ public void NetworkSetMissionFinished() public bool NetworkIsScriptActive(string _scriptName, int _player, bool _p2, int _p3) { unsafe { - if (fn__networkIsScriptActive == null) fn__networkIsScriptActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsScriptActive"); + if (fn__networkIsScriptActive == null) fn__networkIsScriptActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsScriptActive"); var success = false; var ptr_scriptName = MemoryUtils.StringToHGlobalUtf8(_scriptName); - var result = fn__networkIsScriptActive(&success, ptr_scriptName, _player, _p2, _p3); + var result = fn__networkIsScriptActive(&success, ptr_scriptName, _player, (byte) (_p2 ? 1 : 0), _p3); Marshal.FreeHGlobal(ptr_scriptName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsScriptActiveByHash(uint _scriptHash, int _p1, bool _p2, int _p3) { unsafe { - if (fn__networkIsScriptActiveByHash == null) fn__networkIsScriptActiveByHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsScriptActiveByHash"); + if (fn__networkIsScriptActiveByHash == null) fn__networkIsScriptActiveByHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsScriptActiveByHash"); var success = false; - var result = fn__networkIsScriptActiveByHash(&success, _scriptHash, _p1, _p2, _p3); + var result = fn__networkIsScriptActiveByHash(&success, _scriptHash, _p1, (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65711,13 +65711,13 @@ public uint NetworkGetPositionHashOfThisScript() public bool NetworkIsPlayerAParticipantOnScript(int _player1, string _script, int _player2) { unsafe { - if (fn__networkIsPlayerAParticipantOnScript == null) fn__networkIsPlayerAParticipantOnScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerAParticipantOnScript"); + if (fn__networkIsPlayerAParticipantOnScript == null) fn__networkIsPlayerAParticipantOnScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerAParticipantOnScript"); var success = false; var ptr_script = MemoryUtils.StringToHGlobalUtf8(_script); var result = fn__networkIsPlayerAParticipantOnScript(&success, _player1, ptr_script, _player2); Marshal.FreeHGlobal(ptr_script); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65812,13 +65812,13 @@ public int _0x83660B734994124D(int _p0, int _p1, int _p2) public bool NetworkGetDestroyerOfEntity(int _p0, int _p1, ref uint _weaponHash) { unsafe { - if (fn__networkGetDestroyerOfEntity == null) fn__networkGetDestroyerOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetDestroyerOfEntity"); + if (fn__networkGetDestroyerOfEntity == null) fn__networkGetDestroyerOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetDestroyerOfEntity"); var success = false; var ref_weaponHash = _weaponHash; var result = fn__networkGetDestroyerOfEntity(&success, _p0, _p1, &ref_weaponHash); _weaponHash = ref_weaponHash; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65839,9 +65839,9 @@ public int NetworkGetEntityKillerOfPlayer(int _player, ref uint _weaponHash) public void NetworkResurrectLocalPlayer(float _x, float _y, float _z, float _heading, bool _unk, bool _changetime, int _p6) { unsafe { - if (fn__networkResurrectLocalPlayer == null) fn__networkResurrectLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkResurrectLocalPlayer"); + if (fn__networkResurrectLocalPlayer == null) fn__networkResurrectLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkResurrectLocalPlayer"); var success = false; - fn__networkResurrectLocalPlayer(&success, _x, _y, _z, _heading, _unk, _changetime, _p6); + fn__networkResurrectLocalPlayer(&success, _x, _y, _z, _heading, (byte) (_unk ? 1 : 0), (byte) (_changetime ? 1 : 0), _p6); if (!success) throw new Exception("Native execution failed"); } } @@ -65859,11 +65859,11 @@ public void NetworkSetLocalPlayerInvincibleTime(int _time) public bool NetworkIsLocalPlayerInvincible() { unsafe { - if (fn__networkIsLocalPlayerInvincible == null) fn__networkIsLocalPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsLocalPlayerInvincible"); + if (fn__networkIsLocalPlayerInvincible == null) fn__networkIsLocalPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsLocalPlayerInvincible"); var success = false; var result = fn__networkIsLocalPlayerInvincible(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65871,9 +65871,9 @@ public bool NetworkIsLocalPlayerInvincible() public void NetworkDisableInvincibleFlashing(int _player, bool _toggle) { unsafe { - if (fn__networkDisableInvincibleFlashing == null) fn__networkDisableInvincibleFlashing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDisableInvincibleFlashing"); + if (fn__networkDisableInvincibleFlashing == null) fn__networkDisableInvincibleFlashing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDisableInvincibleFlashing"); var success = false; - fn__networkDisableInvincibleFlashing(&success, _player, _toggle); + fn__networkDisableInvincibleFlashing(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -65892,9 +65892,9 @@ public void NetworkPedForceGameStateUpdate(int _ped) public void NetworkSetLocalPlayerSyncLookAt(bool _toggle) { unsafe { - if (fn__networkSetLocalPlayerSyncLookAt == null) fn__networkSetLocalPlayerSyncLookAt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetLocalPlayerSyncLookAt"); + if (fn__networkSetLocalPlayerSyncLookAt == null) fn__networkSetLocalPlayerSyncLookAt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetLocalPlayerSyncLookAt"); var success = false; - fn__networkSetLocalPlayerSyncLookAt(&success, _toggle); + fn__networkSetLocalPlayerSyncLookAt(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -65903,11 +65903,11 @@ public void NetworkSetLocalPlayerSyncLookAt(bool _toggle) public bool NetworkHasEntityBeenRegisteredWithThisThread(int _entity) { unsafe { - if (fn__networkHasEntityBeenRegisteredWithThisThread == null) fn__networkHasEntityBeenRegisteredWithThisThread = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasEntityBeenRegisteredWithThisThread"); + if (fn__networkHasEntityBeenRegisteredWithThisThread == null) fn__networkHasEntityBeenRegisteredWithThisThread = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasEntityBeenRegisteredWithThisThread"); var success = false; var result = fn__networkHasEntityBeenRegisteredWithThisThread(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65938,11 +65938,11 @@ public int NetworkGetEntityFromNetworkId(int _netId) public bool NetworkGetEntityIsNetworked(int _entity) { unsafe { - if (fn__networkGetEntityIsNetworked == null) fn__networkGetEntityIsNetworked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetEntityIsNetworked"); + if (fn__networkGetEntityIsNetworked == null) fn__networkGetEntityIsNetworked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetEntityIsNetworked"); var success = false; var result = fn__networkGetEntityIsNetworked(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65950,11 +65950,11 @@ public bool NetworkGetEntityIsNetworked(int _entity) public bool NetworkGetEntityIsLocal(int _entity) { unsafe { - if (fn__networkGetEntityIsLocal == null) fn__networkGetEntityIsLocal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetEntityIsLocal"); + if (fn__networkGetEntityIsLocal == null) fn__networkGetEntityIsLocal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetEntityIsLocal"); var success = false; var result = fn__networkGetEntityIsLocal(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -65983,55 +65983,55 @@ public void NetworkUnregisterNetworkedEntity(int _entity) public bool NetworkDoesNetworkIdExist(int _netId) { unsafe { - if (fn__networkDoesNetworkIdExist == null) fn__networkDoesNetworkIdExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesNetworkIdExist"); + if (fn__networkDoesNetworkIdExist == null) fn__networkDoesNetworkIdExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesNetworkIdExist"); var success = false; var result = fn__networkDoesNetworkIdExist(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoesEntityExistWithNetworkId(int _netId) { unsafe { - if (fn__networkDoesEntityExistWithNetworkId == null) fn__networkDoesEntityExistWithNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesEntityExistWithNetworkId"); + if (fn__networkDoesEntityExistWithNetworkId == null) fn__networkDoesEntityExistWithNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesEntityExistWithNetworkId"); var success = false; var result = fn__networkDoesEntityExistWithNetworkId(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRequestControlOfNetworkId(int _netId) { unsafe { - if (fn__networkRequestControlOfNetworkId == null) fn__networkRequestControlOfNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfNetworkId"); + if (fn__networkRequestControlOfNetworkId == null) fn__networkRequestControlOfNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfNetworkId"); var success = false; var result = fn__networkRequestControlOfNetworkId(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasControlOfNetworkId(int _netId) { unsafe { - if (fn__networkHasControlOfNetworkId == null) fn__networkHasControlOfNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfNetworkId"); + if (fn__networkHasControlOfNetworkId == null) fn__networkHasControlOfNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfNetworkId"); var success = false; var result = fn__networkHasControlOfNetworkId(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsNetworkIdAClone(int _netId) { unsafe { - if (fn__networkIsNetworkIdAClone == null) fn__networkIsNetworkIdAClone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsNetworkIdAClone"); + if (fn__networkIsNetworkIdAClone == null) fn__networkIsNetworkIdAClone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsNetworkIdAClone"); var success = false; var result = fn__networkIsNetworkIdAClone(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66039,22 +66039,22 @@ public bool NetworkIsNetworkIdAClone(int _netId) public bool NetworkRequestControlOfEntity(int _entity) { unsafe { - if (fn__networkRequestControlOfEntity == null) fn__networkRequestControlOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfEntity"); + if (fn__networkRequestControlOfEntity == null) fn__networkRequestControlOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfEntity"); var success = false; var result = fn__networkRequestControlOfEntity(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRequestControlOfDoor(int _doorID) { unsafe { - if (fn__networkRequestControlOfDoor == null) fn__networkRequestControlOfDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfDoor"); + if (fn__networkRequestControlOfDoor == null) fn__networkRequestControlOfDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestControlOfDoor"); var success = false; var result = fn__networkRequestControlOfDoor(&success, _doorID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66062,44 +66062,44 @@ public bool NetworkRequestControlOfDoor(int _doorID) public bool NetworkHasControlOfEntity(int _entity) { unsafe { - if (fn__networkHasControlOfEntity == null) fn__networkHasControlOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfEntity"); + if (fn__networkHasControlOfEntity == null) fn__networkHasControlOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfEntity"); var success = false; var result = fn__networkHasControlOfEntity(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasControlOfPickup(int _pickup) { unsafe { - if (fn__networkHasControlOfPickup == null) fn__networkHasControlOfPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfPickup"); + if (fn__networkHasControlOfPickup == null) fn__networkHasControlOfPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfPickup"); var success = false; var result = fn__networkHasControlOfPickup(&success, _pickup); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasControlOfDoor(uint _doorHash) { unsafe { - if (fn__networkHasControlOfDoor == null) fn__networkHasControlOfDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfDoor"); + if (fn__networkHasControlOfDoor == null) fn__networkHasControlOfDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasControlOfDoor"); var success = false; var result = fn__networkHasControlOfDoor(&success, _doorHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsDoorNetworked(uint _doorHash) { unsafe { - if (fn__networkIsDoorNetworked == null) fn__networkIsDoorNetworked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsDoorNetworked"); + if (fn__networkIsDoorNetworked == null) fn__networkIsDoorNetworked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsDoorNetworked"); var success = false; var result = fn__networkIsDoorNetworked(&success, _doorHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66275,35 +66275,35 @@ public void NetworkHandleFromFriend(int _friendIndex, ref int _gamerHandle, int public bool NetworkGamertagFromHandleStart(ref int _gamerHandle) { unsafe { - if (fn__networkGamertagFromHandleStart == null) fn__networkGamertagFromHandleStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandleStart"); + if (fn__networkGamertagFromHandleStart == null) fn__networkGamertagFromHandleStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandleStart"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkGamertagFromHandleStart(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGamertagFromHandlePending() { unsafe { - if (fn__networkGamertagFromHandlePending == null) fn__networkGamertagFromHandlePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandlePending"); + if (fn__networkGamertagFromHandlePending == null) fn__networkGamertagFromHandlePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandlePending"); var success = false; var result = fn__networkGamertagFromHandlePending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGamertagFromHandleSucceeded() { unsafe { - if (fn__networkGamertagFromHandleSucceeded == null) fn__networkGamertagFromHandleSucceeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandleSucceeded"); + if (fn__networkGamertagFromHandleSucceeded == null) fn__networkGamertagFromHandleSucceeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamertagFromHandleSucceeded"); var success = false; var result = fn__networkGamertagFromHandleSucceeded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66349,7 +66349,7 @@ public int NetworkGetDisplaynamesFromHandles(int _p0, int _p1, int _p2) public bool NetworkAreHandlesTheSame(ref int _gamerHandle1, ref int _gamerHandle2) { unsafe { - if (fn__networkAreHandlesTheSame == null) fn__networkAreHandlesTheSame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreHandlesTheSame"); + if (fn__networkAreHandlesTheSame == null) fn__networkAreHandlesTheSame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAreHandlesTheSame"); var success = false; var ref_gamerHandle1 = _gamerHandle1; var ref_gamerHandle2 = _gamerHandle2; @@ -66357,20 +66357,20 @@ public bool NetworkAreHandlesTheSame(ref int _gamerHandle1, ref int _gamerHandle _gamerHandle1 = ref_gamerHandle1; _gamerHandle2 = ref_gamerHandle2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsHandleValid(ref int _gamerHandle, int _gamerHandleSize) { unsafe { - if (fn__networkIsHandleValid == null) fn__networkIsHandleValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHandleValid"); + if (fn__networkIsHandleValid == null) fn__networkIsHandleValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsHandleValid"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsHandleValid(&success, &ref_gamerHandle, _gamerHandleSize); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66405,13 +66405,13 @@ public string NetworkMemberIdFromGamerHandle(ref int _gamerHandle) public bool NetworkIsGamerInMySession(ref int _gamerHandle) { unsafe { - if (fn__networkIsGamerInMySession == null) fn__networkIsGamerInMySession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerInMySession"); + if (fn__networkIsGamerInMySession == null) fn__networkIsGamerInMySession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerInMySession"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsGamerInMySession(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66461,11 +66461,11 @@ public string NetworkPlayerGetUserid(int _player, ref int _userID) public bool NetworkPlayerIsRockstarDev(int _player) { unsafe { - if (fn__networkPlayerIsRockstarDev == null) fn__networkPlayerIsRockstarDev = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsRockstarDev"); + if (fn__networkPlayerIsRockstarDev == null) fn__networkPlayerIsRockstarDev = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIsRockstarDev"); var success = false; var result = fn__networkPlayerIsRockstarDev(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66473,11 +66473,11 @@ public bool NetworkPlayerIsRockstarDev(int _player) public bool NetworkPlayerIndexIsCheater(int _player) { unsafe { - if (fn__networkPlayerIndexIsCheater == null) fn__networkPlayerIndexIsCheater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIndexIsCheater"); + if (fn__networkPlayerIndexIsCheater == null) fn__networkPlayerIndexIsCheater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerIndexIsCheater"); var success = false; var result = fn__networkPlayerIndexIsCheater(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66507,13 +66507,13 @@ public int _0x37D5F739FD494675(int _p0) public bool NetworkIsInactiveProfile(ref int _p0) { unsafe { - if (fn__networkIsInactiveProfile == null) fn__networkIsInactiveProfile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInactiveProfile"); + if (fn__networkIsInactiveProfile == null) fn__networkIsInactiveProfile = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInactiveProfile"); var success = false; var ref_p0 = _p0; var result = fn__networkIsInactiveProfile(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66568,65 +66568,65 @@ public string NetworkGetFriendNameFromIndex(int _friendIndex) public bool NetworkIsFriendOnline(string _name) { unsafe { - if (fn__networkIsFriendOnline == null) fn__networkIsFriendOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendOnline"); + if (fn__networkIsFriendOnline == null) fn__networkIsFriendOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendOnline"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__networkIsFriendOnline(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFriendHandleOnline(ref int _gamerHandle) { unsafe { - if (fn__networkIsFriendHandleOnline == null) fn__networkIsFriendHandleOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendHandleOnline"); + if (fn__networkIsFriendHandleOnline == null) fn__networkIsFriendHandleOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendHandleOnline"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsFriendHandleOnline(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFriendInSameTitle(string _friendName) { unsafe { - if (fn__networkIsFriendInSameTitle == null) fn__networkIsFriendInSameTitle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendInSameTitle"); + if (fn__networkIsFriendInSameTitle == null) fn__networkIsFriendInSameTitle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendInSameTitle"); var success = false; var ptr_friendName = MemoryUtils.StringToHGlobalUtf8(_friendName); var result = fn__networkIsFriendInSameTitle(&success, ptr_friendName); Marshal.FreeHGlobal(ptr_friendName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFriendInMultiplayer(string _friendName) { unsafe { - if (fn__networkIsFriendInMultiplayer == null) fn__networkIsFriendInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendInMultiplayer"); + if (fn__networkIsFriendInMultiplayer == null) fn__networkIsFriendInMultiplayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendInMultiplayer"); var success = false; var ptr_friendName = MemoryUtils.StringToHGlobalUtf8(_friendName); var result = fn__networkIsFriendInMultiplayer(&success, ptr_friendName); Marshal.FreeHGlobal(ptr_friendName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFriend(ref int _gamerHandle) { unsafe { - if (fn__networkIsFriend == null) fn__networkIsFriend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriend"); + if (fn__networkIsFriend == null) fn__networkIsFriend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriend"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsFriend(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66655,7 +66655,7 @@ public int NetworkIsAddingFriend() public bool NetworkAddFriend(ref int _gamerHandle, string _message) { unsafe { - if (fn__networkAddFriend == null) fn__networkAddFriend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAddFriend"); + if (fn__networkAddFriend == null) fn__networkAddFriend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAddFriend"); var success = false; var ref_gamerHandle = _gamerHandle; var ptr_message = MemoryUtils.StringToHGlobalUtf8(_message); @@ -66663,27 +66663,27 @@ public bool NetworkAddFriend(ref int _gamerHandle, string _message) _gamerHandle = ref_gamerHandle; Marshal.FreeHGlobal(ptr_message); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsFriendIndexOnline(int _friendIndex) { unsafe { - if (fn__networkIsFriendIndexOnline == null) fn__networkIsFriendIndexOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendIndexOnline"); + if (fn__networkIsFriendIndexOnline == null) fn__networkIsFriendIndexOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsFriendIndexOnline"); var success = false; var result = fn__networkIsFriendIndexOnline(&success, _friendIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSetPlayerIsPassive(bool _toggle) { unsafe { - if (fn__networkSetPlayerIsPassive == null) fn__networkSetPlayerIsPassive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetPlayerIsPassive"); + if (fn__networkSetPlayerIsPassive == null) fn__networkSetPlayerIsPassive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetPlayerIsPassive"); var success = false; - fn__networkSetPlayerIsPassive(&success, _toggle); + fn__networkSetPlayerIsPassive(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -66692,22 +66692,22 @@ public void NetworkSetPlayerIsPassive(bool _toggle) public bool NetworkGetPlayerOwnsWaypoint(int _player) { unsafe { - if (fn__networkGetPlayerOwnsWaypoint == null) fn__networkGetPlayerOwnsWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPlayerOwnsWaypoint"); + if (fn__networkGetPlayerOwnsWaypoint == null) fn__networkGetPlayerOwnsWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPlayerOwnsWaypoint"); var success = false; var result = fn__networkGetPlayerOwnsWaypoint(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanSetWaypoint() { unsafe { - if (fn__networkCanSetWaypoint == null) fn__networkCanSetWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSetWaypoint"); + if (fn__networkCanSetWaypoint == null) fn__networkCanSetWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanSetWaypoint"); var success = false; var result = fn__networkCanSetWaypoint(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66746,20 +66746,20 @@ public int _0x26F07DD83A5F7F98() public bool NetworkHasHeadset() { unsafe { - if (fn__networkHasHeadset == null) fn__networkHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasHeadset"); + if (fn__networkHasHeadset == null) fn__networkHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasHeadset"); var success = false; var result = fn__networkHasHeadset(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x7D395EA61622E116(bool _p0) { unsafe { - if (fn__0x7D395EA61622E116 == null) fn__0x7D395EA61622E116 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7D395EA61622E116"); + if (fn__0x7D395EA61622E116 == null) fn__0x7D395EA61622E116 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7D395EA61622E116"); var success = false; - fn__0x7D395EA61622E116(&success, _p0); + fn__0x7D395EA61622E116(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -66767,167 +66767,167 @@ public void _0x7D395EA61622E116(bool _p0) public bool NetworkIsLocalTalking() { unsafe { - if (fn__networkIsLocalTalking == null) fn__networkIsLocalTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsLocalTalking"); + if (fn__networkIsLocalTalking == null) fn__networkIsLocalTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsLocalTalking"); var success = false; var result = fn__networkIsLocalTalking(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGamerHasHeadset(ref int _gamerHandle) { unsafe { - if (fn__networkGamerHasHeadset == null) fn__networkGamerHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamerHasHeadset"); + if (fn__networkGamerHasHeadset == null) fn__networkGamerHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGamerHasHeadset"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkGamerHasHeadset(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsGamerTalking(ref int _gamerHandle) { unsafe { - if (fn__networkIsGamerTalking == null) fn__networkIsGamerTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerTalking"); + if (fn__networkIsGamerTalking == null) fn__networkIsGamerTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerTalking"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsGamerTalking(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanCommunicateWithGamer2(ref int _gamerHandle) { unsafe { - if (fn__networkCanCommunicateWithGamer2 == null) fn__networkCanCommunicateWithGamer2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanCommunicateWithGamer2"); + if (fn__networkCanCommunicateWithGamer2 == null) fn__networkCanCommunicateWithGamer2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanCommunicateWithGamer2"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkCanCommunicateWithGamer2(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanCommunicateWithGamer(ref int _gamerHandle) { unsafe { - if (fn__networkCanCommunicateWithGamer == null) fn__networkCanCommunicateWithGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanCommunicateWithGamer"); + if (fn__networkCanCommunicateWithGamer == null) fn__networkCanCommunicateWithGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanCommunicateWithGamer"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkCanCommunicateWithGamer(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsGamerMutedByMe(ref int _gamerHandle) { unsafe { - if (fn__networkIsGamerMutedByMe == null) fn__networkIsGamerMutedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerMutedByMe"); + if (fn__networkIsGamerMutedByMe == null) fn__networkIsGamerMutedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerMutedByMe"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsGamerMutedByMe(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAmIMutedByGamer(ref int _gamerHandle) { unsafe { - if (fn__networkAmIMutedByGamer == null) fn__networkAmIMutedByGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIMutedByGamer"); + if (fn__networkAmIMutedByGamer == null) fn__networkAmIMutedByGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIMutedByGamer"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkAmIMutedByGamer(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsGamerBlockedByMe(ref int _gamerHandle) { unsafe { - if (fn__networkIsGamerBlockedByMe == null) fn__networkIsGamerBlockedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerBlockedByMe"); + if (fn__networkIsGamerBlockedByMe == null) fn__networkIsGamerBlockedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsGamerBlockedByMe"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkIsGamerBlockedByMe(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAmIBlockedByGamer(ref int _gamerHandle) { unsafe { - if (fn__networkAmIBlockedByGamer == null) fn__networkAmIBlockedByGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIBlockedByGamer"); + if (fn__networkAmIBlockedByGamer == null) fn__networkAmIBlockedByGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIBlockedByGamer"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkAmIBlockedByGamer(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanViewGamerUserContent(ref int _gamerHandle) { unsafe { - if (fn__networkCanViewGamerUserContent == null) fn__networkCanViewGamerUserContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanViewGamerUserContent"); + if (fn__networkCanViewGamerUserContent == null) fn__networkCanViewGamerUserContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanViewGamerUserContent"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkCanViewGamerUserContent(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasViewGamerUserContentResult(ref int _gamerHandle) { unsafe { - if (fn__networkHasViewGamerUserContentResult == null) fn__networkHasViewGamerUserContentResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasViewGamerUserContentResult"); + if (fn__networkHasViewGamerUserContentResult == null) fn__networkHasViewGamerUserContentResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasViewGamerUserContentResult"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkHasViewGamerUserContentResult(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanPlayMultiplayerWithGamer(ref int _gamerHandle) { unsafe { - if (fn__networkCanPlayMultiplayerWithGamer == null) fn__networkCanPlayMultiplayerWithGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanPlayMultiplayerWithGamer"); + if (fn__networkCanPlayMultiplayerWithGamer == null) fn__networkCanPlayMultiplayerWithGamer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanPlayMultiplayerWithGamer"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkCanPlayMultiplayerWithGamer(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkCanGamerPlayMultiplayerWithMe(ref int _gamerHandle) { unsafe { - if (fn__networkCanGamerPlayMultiplayerWithMe == null) fn__networkCanGamerPlayMultiplayerWithMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanGamerPlayMultiplayerWithMe"); + if (fn__networkCanGamerPlayMultiplayerWithMe == null) fn__networkCanGamerPlayMultiplayerWithMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCanGamerPlayMultiplayerWithMe"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkCanGamerPlayMultiplayerWithMe(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66935,11 +66935,11 @@ public bool NetworkCanGamerPlayMultiplayerWithMe(ref int _gamerHandle) public bool NetworkIsPlayerTalking(int _player) { unsafe { - if (fn__networkIsPlayerTalking == null) fn__networkIsPlayerTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerTalking"); + if (fn__networkIsPlayerTalking == null) fn__networkIsPlayerTalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerTalking"); var success = false; var result = fn__networkIsPlayerTalking(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66947,11 +66947,11 @@ public bool NetworkIsPlayerTalking(int _player) public bool NetworkPlayerHasHeadset(int _player) { unsafe { - if (fn__networkPlayerHasHeadset == null) fn__networkPlayerHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerHasHeadset"); + if (fn__networkPlayerHasHeadset == null) fn__networkPlayerHasHeadset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkPlayerHasHeadset"); var success = false; var result = fn__networkPlayerHasHeadset(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66959,11 +66959,11 @@ public bool NetworkPlayerHasHeadset(int _player) public bool NetworkIsPlayerMutedByMe(int _player) { unsafe { - if (fn__networkIsPlayerMutedByMe == null) fn__networkIsPlayerMutedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerMutedByMe"); + if (fn__networkIsPlayerMutedByMe == null) fn__networkIsPlayerMutedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerMutedByMe"); var success = false; var result = fn__networkIsPlayerMutedByMe(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66971,11 +66971,11 @@ public bool NetworkIsPlayerMutedByMe(int _player) public bool NetworkAmIMutedByPlayer(int _player) { unsafe { - if (fn__networkAmIMutedByPlayer == null) fn__networkAmIMutedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIMutedByPlayer"); + if (fn__networkAmIMutedByPlayer == null) fn__networkAmIMutedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIMutedByPlayer"); var success = false; var result = fn__networkAmIMutedByPlayer(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66983,11 +66983,11 @@ public bool NetworkAmIMutedByPlayer(int _player) public bool NetworkIsPlayerBlockedByMe(int _player) { unsafe { - if (fn__networkIsPlayerBlockedByMe == null) fn__networkIsPlayerBlockedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerBlockedByMe"); + if (fn__networkIsPlayerBlockedByMe == null) fn__networkIsPlayerBlockedByMe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerBlockedByMe"); var success = false; var result = fn__networkIsPlayerBlockedByMe(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -66995,11 +66995,11 @@ public bool NetworkIsPlayerBlockedByMe(int _player) public bool NetworkAmIBlockedByPlayer(int _player) { unsafe { - if (fn__networkAmIBlockedByPlayer == null) fn__networkAmIBlockedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIBlockedByPlayer"); + if (fn__networkAmIBlockedByPlayer == null) fn__networkAmIBlockedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAmIBlockedByPlayer"); var success = false; var result = fn__networkAmIBlockedByPlayer(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67039,9 +67039,9 @@ public float NetworkGetTalkerProximity() public void NetworkSetVoiceActive(bool _toggle) { unsafe { - if (fn__networkSetVoiceActive == null) fn__networkSetVoiceActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetVoiceActive"); + if (fn__networkSetVoiceActive == null) fn__networkSetVoiceActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetVoiceActive"); var success = false; - fn__networkSetVoiceActive(&success, _toggle); + fn__networkSetVoiceActive(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67049,9 +67049,9 @@ public void NetworkSetVoiceActive(bool _toggle) public void _0xCFEB46DCD7D8D5EB(bool _p0) { unsafe { - if (fn__0xCFEB46DCD7D8D5EB == null) fn__0xCFEB46DCD7D8D5EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCFEB46DCD7D8D5EB"); + if (fn__0xCFEB46DCD7D8D5EB == null) fn__0xCFEB46DCD7D8D5EB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCFEB46DCD7D8D5EB"); var success = false; - fn__0xCFEB46DCD7D8D5EB(&success, _p0); + fn__0xCFEB46DCD7D8D5EB(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67059,9 +67059,9 @@ public void _0xCFEB46DCD7D8D5EB(bool _p0) public void NetworkOverrideTransitionChat(bool _p0) { unsafe { - if (fn__networkOverrideTransitionChat == null) fn__networkOverrideTransitionChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideTransitionChat"); + if (fn__networkOverrideTransitionChat == null) fn__networkOverrideTransitionChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideTransitionChat"); var success = false; - fn__networkOverrideTransitionChat(&success, _p0); + fn__networkOverrideTransitionChat(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67069,9 +67069,9 @@ public void NetworkOverrideTransitionChat(bool _p0) public void NetworkSetTeamOnlyChat(bool _toggle) { unsafe { - if (fn__networkSetTeamOnlyChat == null) fn__networkSetTeamOnlyChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetTeamOnlyChat"); + if (fn__networkSetTeamOnlyChat == null) fn__networkSetTeamOnlyChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetTeamOnlyChat"); var success = false; - fn__networkSetTeamOnlyChat(&success, _toggle); + fn__networkSetTeamOnlyChat(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67100,9 +67100,9 @@ public int _0x4348BFDA56023A2F(int _p0, int _p1) public void NetworkOverrideTeamRestrictions(int _team, bool _toggle) { unsafe { - if (fn__networkOverrideTeamRestrictions == null) fn__networkOverrideTeamRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideTeamRestrictions"); + if (fn__networkOverrideTeamRestrictions == null) fn__networkOverrideTeamRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideTeamRestrictions"); var success = false; - fn__networkOverrideTeamRestrictions(&success, _team, _toggle); + fn__networkOverrideTeamRestrictions(&success, _team, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67110,9 +67110,9 @@ public void NetworkOverrideTeamRestrictions(int _team, bool _toggle) public void NetworkSetOverrideSpectatorMode(bool _toggle) { unsafe { - if (fn__networkSetOverrideSpectatorMode == null) fn__networkSetOverrideSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetOverrideSpectatorMode"); + if (fn__networkSetOverrideSpectatorMode == null) fn__networkSetOverrideSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetOverrideSpectatorMode"); var success = false; - fn__networkSetOverrideSpectatorMode(&success, _toggle); + fn__networkSetOverrideSpectatorMode(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67120,9 +67120,9 @@ public void NetworkSetOverrideSpectatorMode(bool _toggle) public void _0x3C5C1E2C2FF814B1(bool _toggle) { unsafe { - if (fn__0x3C5C1E2C2FF814B1 == null) fn__0x3C5C1E2C2FF814B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3C5C1E2C2FF814B1"); + if (fn__0x3C5C1E2C2FF814B1 == null) fn__0x3C5C1E2C2FF814B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3C5C1E2C2FF814B1"); var success = false; - fn__0x3C5C1E2C2FF814B1(&success, _toggle); + fn__0x3C5C1E2C2FF814B1(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67130,9 +67130,9 @@ public void _0x3C5C1E2C2FF814B1(bool _toggle) public void _0x9D7AFCBF21C51712(bool _toggle) { unsafe { - if (fn__0x9D7AFCBF21C51712 == null) fn__0x9D7AFCBF21C51712 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9D7AFCBF21C51712"); + if (fn__0x9D7AFCBF21C51712 == null) fn__0x9D7AFCBF21C51712 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9D7AFCBF21C51712"); var success = false; - fn__0x9D7AFCBF21C51712(&success, _toggle); + fn__0x9D7AFCBF21C51712(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67140,9 +67140,9 @@ public void _0x9D7AFCBF21C51712(bool _toggle) public void NetworkSetNoSpectatorChat(bool _toggle) { unsafe { - if (fn__networkSetNoSpectatorChat == null) fn__networkSetNoSpectatorChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetNoSpectatorChat"); + if (fn__networkSetNoSpectatorChat == null) fn__networkSetNoSpectatorChat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetNoSpectatorChat"); var success = false; - fn__networkSetNoSpectatorChat(&success, _toggle); + fn__networkSetNoSpectatorChat(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67150,9 +67150,9 @@ public void NetworkSetNoSpectatorChat(bool _toggle) public void _0x6A5D89D7769A40D8(bool _toggle) { unsafe { - if (fn__0x6A5D89D7769A40D8 == null) fn__0x6A5D89D7769A40D8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A5D89D7769A40D8"); + if (fn__0x6A5D89D7769A40D8 == null) fn__0x6A5D89D7769A40D8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A5D89D7769A40D8"); var success = false; - fn__0x6A5D89D7769A40D8(&success, _toggle); + fn__0x6A5D89D7769A40D8(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67161,9 +67161,9 @@ public void _0x6A5D89D7769A40D8(bool _toggle) public void NetworkOverrideChatRestrictions(int _player, bool _toggle) { unsafe { - if (fn__networkOverrideChatRestrictions == null) fn__networkOverrideChatRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideChatRestrictions"); + if (fn__networkOverrideChatRestrictions == null) fn__networkOverrideChatRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideChatRestrictions"); var success = false; - fn__networkOverrideChatRestrictions(&success, _player, _toggle); + fn__networkOverrideChatRestrictions(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67172,9 +67172,9 @@ public void NetworkOverrideChatRestrictions(int _player, bool _toggle) public void NetworkOverrideSendRestrictions(int _player, bool _toggle) { unsafe { - if (fn__networkOverrideSendRestrictions == null) fn__networkOverrideSendRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideSendRestrictions"); + if (fn__networkOverrideSendRestrictions == null) fn__networkOverrideSendRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideSendRestrictions"); var success = false; - fn__networkOverrideSendRestrictions(&success, _player, _toggle); + fn__networkOverrideSendRestrictions(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67182,9 +67182,9 @@ public void NetworkOverrideSendRestrictions(int _player, bool _toggle) public void NetworkOverrideSendRestrictionsAll(bool _toggle) { unsafe { - if (fn__networkOverrideSendRestrictionsAll == null) fn__networkOverrideSendRestrictionsAll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideSendRestrictionsAll"); + if (fn__networkOverrideSendRestrictionsAll == null) fn__networkOverrideSendRestrictionsAll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideSendRestrictionsAll"); var success = false; - fn__networkOverrideSendRestrictionsAll(&success, _toggle); + fn__networkOverrideSendRestrictionsAll(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67193,9 +67193,9 @@ public void NetworkOverrideSendRestrictionsAll(bool _toggle) public void NetworkOverrideReceiveRestrictions(int _player, bool _toggle) { unsafe { - if (fn__networkOverrideReceiveRestrictions == null) fn__networkOverrideReceiveRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideReceiveRestrictions"); + if (fn__networkOverrideReceiveRestrictions == null) fn__networkOverrideReceiveRestrictions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideReceiveRestrictions"); var success = false; - fn__networkOverrideReceiveRestrictions(&success, _player, _toggle); + fn__networkOverrideReceiveRestrictions(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67203,9 +67203,9 @@ public void NetworkOverrideReceiveRestrictions(int _player, bool _toggle) public void NetworkOverrideReceiveRestrictionsAll(bool _toggle) { unsafe { - if (fn__networkOverrideReceiveRestrictionsAll == null) fn__networkOverrideReceiveRestrictionsAll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideReceiveRestrictionsAll"); + if (fn__networkOverrideReceiveRestrictionsAll == null) fn__networkOverrideReceiveRestrictionsAll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkOverrideReceiveRestrictionsAll"); var success = false; - fn__networkOverrideReceiveRestrictionsAll(&success, _toggle); + fn__networkOverrideReceiveRestrictionsAll(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67288,9 +67288,9 @@ public void _0xADB57E5B663CCA8B(int _p0, ref float _p1, ref float _p2) public void _0x8EF52ACAECC51D9C(bool _toggle) { unsafe { - if (fn__0x8EF52ACAECC51D9C == null) fn__0x8EF52ACAECC51D9C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8EF52ACAECC51D9C"); + if (fn__0x8EF52ACAECC51D9C == null) fn__0x8EF52ACAECC51D9C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8EF52ACAECC51D9C"); var success = false; - fn__0x8EF52ACAECC51D9C(&success, _toggle); + fn__0x8EF52ACAECC51D9C(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67298,11 +67298,11 @@ public void _0x8EF52ACAECC51D9C(bool _toggle) public bool NetworkIsTextChatActive() { unsafe { - if (fn__networkIsTextChatActive == null) fn__networkIsTextChatActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTextChatActive"); + if (fn__networkIsTextChatActive == null) fn__networkIsTextChatActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTextChatActive"); var success = false; var result = fn__networkIsTextChatActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67319,20 +67319,20 @@ public void ShutdownAndLaunchSinglePlayerGame() public bool ShutdownAndLoadMostRecentSave() { unsafe { - if (fn__shutdownAndLoadMostRecentSave == null) fn__shutdownAndLoadMostRecentSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shutdownAndLoadMostRecentSave"); + if (fn__shutdownAndLoadMostRecentSave == null) fn__shutdownAndLoadMostRecentSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_shutdownAndLoadMostRecentSave"); var success = false; var result = fn__shutdownAndLoadMostRecentSave(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSetFriendlyFireOption(bool _toggle) { unsafe { - if (fn__networkSetFriendlyFireOption == null) fn__networkSetFriendlyFireOption = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetFriendlyFireOption"); + if (fn__networkSetFriendlyFireOption == null) fn__networkSetFriendlyFireOption = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetFriendlyFireOption"); var success = false; - fn__networkSetFriendlyFireOption(&success, _toggle); + fn__networkSetFriendlyFireOption(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67374,9 +67374,9 @@ public int NetworkGetTimeoutTime() public void NetworkLeavePedBehindBeforeWarp(int _player, float _x, float _y, float _z, bool _p4, bool _p5) { unsafe { - if (fn__networkLeavePedBehindBeforeWarp == null) fn__networkLeavePedBehindBeforeWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeavePedBehindBeforeWarp"); + if (fn__networkLeavePedBehindBeforeWarp == null) fn__networkLeavePedBehindBeforeWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeavePedBehindBeforeWarp"); var success = false; - fn__networkLeavePedBehindBeforeWarp(&success, _player, _x, _y, _z, _p4, _p5); + fn__networkLeavePedBehindBeforeWarp(&success, _player, _x, _y, _z, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67385,9 +67385,9 @@ public void NetworkLeavePedBehindBeforeWarp(int _player, float _x, float _y, flo public void NetworkLeavePedBehindBeforeCutscene(int _player, bool _p1) { unsafe { - if (fn__networkLeavePedBehindBeforeCutscene == null) fn__networkLeavePedBehindBeforeCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeavePedBehindBeforeCutscene"); + if (fn__networkLeavePedBehindBeforeCutscene == null) fn__networkLeavePedBehindBeforeCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkLeavePedBehindBeforeCutscene"); var success = false; - fn__networkLeavePedBehindBeforeCutscene(&success, _player, _p1); + fn__networkLeavePedBehindBeforeCutscene(&success, _player, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67429,31 +67429,31 @@ public int _0x2E4C123D1C8A710E(int _p0, int _p1, int _p2, int _p3, int _p4, int public bool NetworkClanServiceIsValid() { unsafe { - if (fn__networkClanServiceIsValid == null) fn__networkClanServiceIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanServiceIsValid"); + if (fn__networkClanServiceIsValid == null) fn__networkClanServiceIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanServiceIsValid"); var success = false; var result = fn__networkClanServiceIsValid(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanPlayerIsActive(ref int _gamerHandle) { unsafe { - if (fn__networkClanPlayerIsActive == null) fn__networkClanPlayerIsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanPlayerIsActive"); + if (fn__networkClanPlayerIsActive == null) fn__networkClanPlayerIsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanPlayerIsActive"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkClanPlayerIsActive(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanPlayerGetDesc(ref int _clanDesc, int _bufferSize, ref int _gamerHandle) { unsafe { - if (fn__networkClanPlayerGetDesc == null) fn__networkClanPlayerGetDesc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanPlayerGetDesc"); + if (fn__networkClanPlayerGetDesc == null) fn__networkClanPlayerGetDesc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanPlayerGetDesc"); var success = false; var ref_clanDesc = _clanDesc; var ref_gamerHandle = _gamerHandle; @@ -67461,20 +67461,20 @@ public bool NetworkClanPlayerGetDesc(ref int _clanDesc, int _bufferSize, ref int _clanDesc = ref_clanDesc; _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanIsRockstarClan(ref int _clanDesc, int _bufferSize) { unsafe { - if (fn__networkClanIsRockstarClan == null) fn__networkClanIsRockstarClan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanIsRockstarClan"); + if (fn__networkClanIsRockstarClan == null) fn__networkClanIsRockstarClan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanIsRockstarClan"); var success = false; var ref_clanDesc = _clanDesc; var result = fn__networkClanIsRockstarClan(&success, &ref_clanDesc, _bufferSize); _clanDesc = ref_clanDesc; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67509,63 +67509,63 @@ public int NetworkClanGetLocalMembershipsCount() public bool NetworkClanGetMembershipDesc(ref int _memberDesc, int _p1) { unsafe { - if (fn__networkClanGetMembershipDesc == null) fn__networkClanGetMembershipDesc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembershipDesc"); + if (fn__networkClanGetMembershipDesc == null) fn__networkClanGetMembershipDesc = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembershipDesc"); var success = false; var ref_memberDesc = _memberDesc; var result = fn__networkClanGetMembershipDesc(&success, &ref_memberDesc, _p1); _memberDesc = ref_memberDesc; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanDownloadMembership(ref int _gamerHandle) { unsafe { - if (fn__networkClanDownloadMembership == null) fn__networkClanDownloadMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanDownloadMembership"); + if (fn__networkClanDownloadMembership == null) fn__networkClanDownloadMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanDownloadMembership"); var success = false; var ref_gamerHandle = _gamerHandle; var result = fn__networkClanDownloadMembership(&success, &ref_gamerHandle); _gamerHandle = ref_gamerHandle; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanDownloadMembershipPending(ref int _p0) { unsafe { - if (fn__networkClanDownloadMembershipPending == null) fn__networkClanDownloadMembershipPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanDownloadMembershipPending"); + if (fn__networkClanDownloadMembershipPending == null) fn__networkClanDownloadMembershipPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanDownloadMembershipPending"); var success = false; var ref_p0 = _p0; var result = fn__networkClanDownloadMembershipPending(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanAnyDownloadMembershipPending() { unsafe { - if (fn__networkClanAnyDownloadMembershipPending == null) fn__networkClanAnyDownloadMembershipPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanAnyDownloadMembershipPending"); + if (fn__networkClanAnyDownloadMembershipPending == null) fn__networkClanAnyDownloadMembershipPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanAnyDownloadMembershipPending"); var success = false; var result = fn__networkClanAnyDownloadMembershipPending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanRemoteMembershipsAreInCache(ref int _p0) { unsafe { - if (fn__networkClanRemoteMembershipsAreInCache == null) fn__networkClanRemoteMembershipsAreInCache = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanRemoteMembershipsAreInCache"); + if (fn__networkClanRemoteMembershipsAreInCache == null) fn__networkClanRemoteMembershipsAreInCache = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanRemoteMembershipsAreInCache"); var success = false; var ref_p0 = _p0; var result = fn__networkClanRemoteMembershipsAreInCache(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67585,20 +67585,20 @@ public int NetworkClanGetMembershipCount(ref int _p0) public bool NetworkClanGetMembershipValid(ref int _p0, int _p1) { unsafe { - if (fn__networkClanGetMembershipValid == null) fn__networkClanGetMembershipValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembershipValid"); + if (fn__networkClanGetMembershipValid == null) fn__networkClanGetMembershipValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembershipValid"); var success = false; var ref_p0 = _p0; var result = fn__networkClanGetMembershipValid(&success, &ref_p0, _p1); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanGetMembership(ref int _p0, ref int _clanMembership, int _p2) { unsafe { - if (fn__networkClanGetMembership == null) fn__networkClanGetMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembership"); + if (fn__networkClanGetMembership == null) fn__networkClanGetMembership = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetMembership"); var success = false; var ref_p0 = _p0; var ref_clanMembership = _clanMembership; @@ -67606,25 +67606,25 @@ public bool NetworkClanGetMembership(ref int _p0, ref int _clanMembership, int _ _p0 = ref_p0; _clanMembership = ref_clanMembership; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanJoin(int _clanDesc) { unsafe { - if (fn__networkClanJoin == null) fn__networkClanJoin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanJoin"); + if (fn__networkClanJoin == null) fn__networkClanJoin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanJoin"); var success = false; var result = fn__networkClanJoin(&success, _clanDesc); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanAnimation(string _animDict, string _animName) { unsafe { - if (fn__networkClanAnimation == null) fn__networkClanAnimation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanAnimation"); + if (fn__networkClanAnimation == null) fn__networkClanAnimation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanAnimation"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); @@ -67632,20 +67632,20 @@ public bool NetworkClanAnimation(string _animDict, string _animName) Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x2B51EDBEFC301339(int _p0, string _p1) { unsafe { - if (fn__0x2B51EDBEFC301339 == null) fn__0x2B51EDBEFC301339 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2B51EDBEFC301339"); + if (fn__0x2B51EDBEFC301339 == null) fn__0x2B51EDBEFC301339 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2B51EDBEFC301339"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var result = fn__0x2B51EDBEFC301339(&success, _p0, ptr_p1); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67663,7 +67663,7 @@ public int _0xC32EA7A2F6CA7557() public bool NetworkClanGetEmblemTxdName(ref int _netHandle, ref string _txdName) { unsafe { - if (fn__networkClanGetEmblemTxdName == null) fn__networkClanGetEmblemTxdName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetEmblemTxdName"); + if (fn__networkClanGetEmblemTxdName == null) fn__networkClanGetEmblemTxdName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanGetEmblemTxdName"); var success = false; var ref_netHandle = _netHandle; var ptr_txdName = MemoryUtils.StringToHGlobalUtf8(_txdName); @@ -67674,31 +67674,31 @@ public bool NetworkClanGetEmblemTxdName(ref int _netHandle, ref string _txdName) if (ref_txdName != ptr_txdName) freeString(ref_txdName); Marshal.FreeHGlobal(ptr_txdName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanRequestEmblem(int _p0) { unsafe { - if (fn__networkClanRequestEmblem == null) fn__networkClanRequestEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanRequestEmblem"); + if (fn__networkClanRequestEmblem == null) fn__networkClanRequestEmblem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanRequestEmblem"); var success = false; var result = fn__networkClanRequestEmblem(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkClanIsEmblemReady(int _p0, ref int _p1) { unsafe { - if (fn__networkClanIsEmblemReady == null) fn__networkClanIsEmblemReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanIsEmblemReady"); + if (fn__networkClanIsEmblemReady == null) fn__networkClanIsEmblemReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkClanIsEmblemReady"); var success = false; var ref_p1 = _p1; var result = fn__networkClanIsEmblemReady(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67736,13 +67736,13 @@ public void NetworkGetPrimaryClanDataCancel() public bool NetworkGetPrimaryClanDataStart(ref int _p0, int _p1) { unsafe { - if (fn__networkGetPrimaryClanDataStart == null) fn__networkGetPrimaryClanDataStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPrimaryClanDataStart"); + if (fn__networkGetPrimaryClanDataStart == null) fn__networkGetPrimaryClanDataStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPrimaryClanDataStart"); var success = false; var ref_p0 = _p0; var result = fn__networkGetPrimaryClanDataStart(&success, &ref_p0, _p1); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -67771,7 +67771,7 @@ public int NetworkGetPrimaryClanDataSuccess() public bool NetworkGetPrimaryClanDataNew(ref int _p0, ref int _p1) { unsafe { - if (fn__networkGetPrimaryClanDataNew == null) fn__networkGetPrimaryClanDataNew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPrimaryClanDataNew"); + if (fn__networkGetPrimaryClanDataNew == null) fn__networkGetPrimaryClanDataNew = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetPrimaryClanDataNew"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -67779,16 +67779,16 @@ public bool NetworkGetPrimaryClanDataNew(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetNetworkIdCanMigrate(int _netId, bool _toggle) { unsafe { - if (fn__setNetworkIdCanMigrate == null) fn__setNetworkIdCanMigrate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdCanMigrate"); + if (fn__setNetworkIdCanMigrate == null) fn__setNetworkIdCanMigrate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdCanMigrate"); var success = false; - fn__setNetworkIdCanMigrate(&success, _netId, _toggle); + fn__setNetworkIdCanMigrate(&success, _netId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67796,9 +67796,9 @@ public void SetNetworkIdCanMigrate(int _netId, bool _toggle) public void SetNetworkIdExistsOnAllMachines(int _netId, bool _toggle) { unsafe { - if (fn__setNetworkIdExistsOnAllMachines == null) fn__setNetworkIdExistsOnAllMachines = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdExistsOnAllMachines"); + if (fn__setNetworkIdExistsOnAllMachines == null) fn__setNetworkIdExistsOnAllMachines = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdExistsOnAllMachines"); var success = false; - fn__setNetworkIdExistsOnAllMachines(&success, _netId, _toggle); + fn__setNetworkIdExistsOnAllMachines(&success, _netId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67807,9 +67807,9 @@ public void SetNetworkIdExistsOnAllMachines(int _netId, bool _toggle) public void SetNetworkIdAlwaysExistsForPlayer(int _netId, int _player, bool _toggle) { unsafe { - if (fn__setNetworkIdAlwaysExistsForPlayer == null) fn__setNetworkIdAlwaysExistsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdAlwaysExistsForPlayer"); + if (fn__setNetworkIdAlwaysExistsForPlayer == null) fn__setNetworkIdAlwaysExistsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdAlwaysExistsForPlayer"); var success = false; - fn__setNetworkIdAlwaysExistsForPlayer(&success, _netId, _player, _toggle); + fn__setNetworkIdAlwaysExistsForPlayer(&success, _netId, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67828,9 +67828,9 @@ public void _0x9D724B400A7E8FFC(int _p0, int _p1) public void NetworkSetEntityCanBlend(int _entity, bool _toggle) { unsafe { - if (fn__networkSetEntityCanBlend == null) fn__networkSetEntityCanBlend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityCanBlend"); + if (fn__networkSetEntityCanBlend == null) fn__networkSetEntityCanBlend = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityCanBlend"); var success = false; - fn__networkSetEntityCanBlend(&success, _entity, _toggle); + fn__networkSetEntityCanBlend(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67849,9 +67849,9 @@ public void _0x0379DAF89BA09AA5(int _p0, int _p1) public void NetworkSetEntityInvisibleToNetwork(int _entity, bool _toggle) { unsafe { - if (fn__networkSetEntityInvisibleToNetwork == null) fn__networkSetEntityInvisibleToNetwork = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityInvisibleToNetwork"); + if (fn__networkSetEntityInvisibleToNetwork == null) fn__networkSetEntityInvisibleToNetwork = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityInvisibleToNetwork"); var success = false; - fn__networkSetEntityInvisibleToNetwork(&success, _entity, _toggle); + fn__networkSetEntityInvisibleToNetwork(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67859,9 +67859,9 @@ public void NetworkSetEntityInvisibleToNetwork(int _entity, bool _toggle) public void SetNetworkIdVisibleInCutscene(int _netId, bool _p1, bool _p2) { unsafe { - if (fn__setNetworkIdVisibleInCutscene == null) fn__setNetworkIdVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdVisibleInCutscene"); + if (fn__setNetworkIdVisibleInCutscene == null) fn__setNetworkIdVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkIdVisibleInCutscene"); var success = false; - fn__setNetworkIdVisibleInCutscene(&success, _netId, _p1, _p2); + fn__setNetworkIdVisibleInCutscene(&success, _netId, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67889,9 +67889,9 @@ public void _0x76B3F29D3F967692(int _p0, int _p1) public void SetNetworkCutsceneEntities(bool _toggle) { unsafe { - if (fn__setNetworkCutsceneEntities == null) fn__setNetworkCutsceneEntities = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkCutsceneEntities"); + if (fn__setNetworkCutsceneEntities == null) fn__setNetworkCutsceneEntities = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkCutsceneEntities"); var success = false; - fn__setNetworkCutsceneEntities(&success, _toggle); + fn__setNetworkCutsceneEntities(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67899,9 +67899,9 @@ public void SetNetworkCutsceneEntities(bool _toggle) public void _0x3FA36981311FA4FF(int _netId, bool _state) { unsafe { - if (fn__0x3FA36981311FA4FF == null) fn__0x3FA36981311FA4FF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3FA36981311FA4FF"); + if (fn__0x3FA36981311FA4FF == null) fn__0x3FA36981311FA4FF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3FA36981311FA4FF"); var success = false; - fn__0x3FA36981311FA4FF(&success, _netId, _state); + fn__0x3FA36981311FA4FF(&success, _netId, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67909,20 +67909,20 @@ public void _0x3FA36981311FA4FF(int _netId, bool _state) public bool IsNetworkIdOwnedByParticipant(int _netId) { unsafe { - if (fn__isNetworkIdOwnedByParticipant == null) fn__isNetworkIdOwnedByParticipant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNetworkIdOwnedByParticipant"); + if (fn__isNetworkIdOwnedByParticipant == null) fn__isNetworkIdOwnedByParticipant = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNetworkIdOwnedByParticipant"); var success = false; var result = fn__isNetworkIdOwnedByParticipant(&success, _netId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetLocalPlayerVisibleInCutscene(bool _p0, bool _p1) { unsafe { - if (fn__setLocalPlayerVisibleInCutscene == null) fn__setLocalPlayerVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerVisibleInCutscene"); + if (fn__setLocalPlayerVisibleInCutscene == null) fn__setLocalPlayerVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerVisibleInCutscene"); var success = false; - fn__setLocalPlayerVisibleInCutscene(&success, _p0, _p1); + fn__setLocalPlayerVisibleInCutscene(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67930,9 +67930,9 @@ public void SetLocalPlayerVisibleInCutscene(bool _p0, bool _p1) public void SetLocalPlayerInvisibleLocally(bool _p0) { unsafe { - if (fn__setLocalPlayerInvisibleLocally == null) fn__setLocalPlayerInvisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerInvisibleLocally"); + if (fn__setLocalPlayerInvisibleLocally == null) fn__setLocalPlayerInvisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerInvisibleLocally"); var success = false; - fn__setLocalPlayerInvisibleLocally(&success, _p0); + fn__setLocalPlayerInvisibleLocally(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67940,9 +67940,9 @@ public void SetLocalPlayerInvisibleLocally(bool _p0) public void SetLocalPlayerVisibleLocally(bool _p0) { unsafe { - if (fn__setLocalPlayerVisibleLocally == null) fn__setLocalPlayerVisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerVisibleLocally"); + if (fn__setLocalPlayerVisibleLocally == null) fn__setLocalPlayerVisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerVisibleLocally"); var success = false; - fn__setLocalPlayerVisibleLocally(&success, _p0); + fn__setLocalPlayerVisibleLocally(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67951,9 +67951,9 @@ public void SetLocalPlayerVisibleLocally(bool _p0) public void SetPlayerInvisibleLocally(int _player, bool _toggle) { unsafe { - if (fn__setPlayerInvisibleLocally == null) fn__setPlayerInvisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvisibleLocally"); + if (fn__setPlayerInvisibleLocally == null) fn__setPlayerInvisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvisibleLocally"); var success = false; - fn__setPlayerInvisibleLocally(&success, _player, _toggle); + fn__setPlayerInvisibleLocally(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67962,9 +67962,9 @@ public void SetPlayerInvisibleLocally(int _player, bool _toggle) public void SetPlayerVisibleLocally(int _player, bool _toggle) { unsafe { - if (fn__setPlayerVisibleLocally == null) fn__setPlayerVisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerVisibleLocally"); + if (fn__setPlayerVisibleLocally == null) fn__setPlayerVisibleLocally = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerVisibleLocally"); var success = false; - fn__setPlayerVisibleLocally(&success, _player, _toggle); + fn__setPlayerVisibleLocally(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67972,9 +67972,9 @@ public void SetPlayerVisibleLocally(int _player, bool _toggle) public void FadeOutLocalPlayer(bool _p0) { unsafe { - if (fn__fadeOutLocalPlayer == null) fn__fadeOutLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_fadeOutLocalPlayer"); + if (fn__fadeOutLocalPlayer == null) fn__fadeOutLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_fadeOutLocalPlayer"); var success = false; - fn__fadeOutLocalPlayer(&success, _p0); + fn__fadeOutLocalPlayer(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67983,9 +67983,9 @@ public void FadeOutLocalPlayer(bool _p0) public void NetworkFadeOutEntity(int _entity, bool _normal, bool _slow) { unsafe { - if (fn__networkFadeOutEntity == null) fn__networkFadeOutEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFadeOutEntity"); + if (fn__networkFadeOutEntity == null) fn__networkFadeOutEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFadeOutEntity"); var success = false; - fn__networkFadeOutEntity(&success, _entity, _normal, _slow); + fn__networkFadeOutEntity(&success, _entity, (byte) (_normal ? 1 : 0), (byte) (_slow ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -67994,9 +67994,9 @@ public void NetworkFadeOutEntity(int _entity, bool _normal, bool _slow) public void NetworkFadeInEntity(int _entity, bool _state, int _p2) { unsafe { - if (fn__networkFadeInEntity == null) fn__networkFadeInEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFadeInEntity"); + if (fn__networkFadeInEntity == null) fn__networkFadeInEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkFadeInEntity"); var success = false; - fn__networkFadeInEntity(&success, _entity, _state, _p2); + fn__networkFadeInEntity(&success, _entity, (byte) (_state ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -68005,11 +68005,11 @@ public void NetworkFadeInEntity(int _entity, bool _state, int _p2) public bool NetworkIsPlayerFading(int _player) { unsafe { - if (fn__networkIsPlayerFading == null) fn__networkIsPlayerFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerFading"); + if (fn__networkIsPlayerFading == null) fn__networkIsPlayerFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerFading"); var success = false; var result = fn__networkIsPlayerFading(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68017,11 +68017,11 @@ public bool NetworkIsPlayerFading(int _player) public bool NetworkIsEntityFading(int _entity) { unsafe { - if (fn__networkIsEntityFading == null) fn__networkIsEntityFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsEntityFading"); + if (fn__networkIsEntityFading == null) fn__networkIsEntityFading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsEntityFading"); var success = false; var result = fn__networkIsEntityFading(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68029,20 +68029,20 @@ public bool NetworkIsEntityFading(int _entity) public bool IsPlayerInCutscene(int _player) { unsafe { - if (fn__isPlayerInCutscene == null) fn__isPlayerInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerInCutscene"); + if (fn__isPlayerInCutscene == null) fn__isPlayerInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerInCutscene"); var success = false; var result = fn__isPlayerInCutscene(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetEntityVisibleInCutscene(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__setEntityVisibleInCutscene == null) fn__setEntityVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityVisibleInCutscene"); + if (fn__setEntityVisibleInCutscene == null) fn__setEntityVisibleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityVisibleInCutscene"); var success = false; - fn__setEntityVisibleInCutscene(&success, _p0, _p1, _p2); + fn__setEntityVisibleInCutscene(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68072,20 +68072,20 @@ public void SetEntityLocallyVisible(int _entity) public bool IsDamageTrackerActiveOnNetworkId(int _netID) { unsafe { - if (fn__isDamageTrackerActiveOnNetworkId == null) fn__isDamageTrackerActiveOnNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDamageTrackerActiveOnNetworkId"); + if (fn__isDamageTrackerActiveOnNetworkId == null) fn__isDamageTrackerActiveOnNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDamageTrackerActiveOnNetworkId"); var success = false; var result = fn__isDamageTrackerActiveOnNetworkId(&success, _netID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ActivateDamageTrackerOnNetworkId(int _netID, bool _toggle) { unsafe { - if (fn__activateDamageTrackerOnNetworkId == null) fn__activateDamageTrackerOnNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateDamageTrackerOnNetworkId"); + if (fn__activateDamageTrackerOnNetworkId == null) fn__activateDamageTrackerOnNetworkId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateDamageTrackerOnNetworkId"); var success = false; - fn__activateDamageTrackerOnNetworkId(&success, _netID, _toggle); + fn__activateDamageTrackerOnNetworkId(&success, _netID, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68094,11 +68094,11 @@ public void ActivateDamageTrackerOnNetworkId(int _netID, bool _toggle) public bool IsDamageTrackerActiveOnPlayer(int _player) { unsafe { - if (fn__isDamageTrackerActiveOnPlayer == null) fn__isDamageTrackerActiveOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDamageTrackerActiveOnPlayer"); + if (fn__isDamageTrackerActiveOnPlayer == null) fn__isDamageTrackerActiveOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDamageTrackerActiveOnPlayer"); var success = false; var result = fn__isDamageTrackerActiveOnPlayer(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68106,9 +68106,9 @@ public bool IsDamageTrackerActiveOnPlayer(int _player) public void ActivateDamageTrackerOnPlayer(int _player, bool _toggle) { unsafe { - if (fn__activateDamageTrackerOnPlayer == null) fn__activateDamageTrackerOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateDamageTrackerOnPlayer"); + if (fn__activateDamageTrackerOnPlayer == null) fn__activateDamageTrackerOnPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_activateDamageTrackerOnPlayer"); var success = false; - fn__activateDamageTrackerOnPlayer(&success, _player, _toggle); + fn__activateDamageTrackerOnPlayer(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68116,22 +68116,22 @@ public void ActivateDamageTrackerOnPlayer(int _player, bool _toggle) public bool IsSphereVisibleToAnotherMachine(float _p0, float _p1, float _p2, float _p3) { unsafe { - if (fn__isSphereVisibleToAnotherMachine == null) fn__isSphereVisibleToAnotherMachine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisibleToAnotherMachine"); + if (fn__isSphereVisibleToAnotherMachine == null) fn__isSphereVisibleToAnotherMachine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisibleToAnotherMachine"); var success = false; var result = fn__isSphereVisibleToAnotherMachine(&success, _p0, _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsSphereVisibleToPlayer(int _p0, float _p1, float _p2, float _p3, float _p4) { unsafe { - if (fn__isSphereVisibleToPlayer == null) fn__isSphereVisibleToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisibleToPlayer"); + if (fn__isSphereVisibleToPlayer == null) fn__isSphereVisibleToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSphereVisibleToPlayer"); var success = false; var result = fn__isSphereVisibleToPlayer(&success, _p0, _p1, _p2, _p3, _p4); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68198,44 +68198,44 @@ public void ReserveNetworkLocalVehicles(int _amount) public bool CanRegisterMissionObjects(int _amount) { unsafe { - if (fn__canRegisterMissionObjects == null) fn__canRegisterMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionObjects"); + if (fn__canRegisterMissionObjects == null) fn__canRegisterMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionObjects"); var success = false; var result = fn__canRegisterMissionObjects(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanRegisterMissionPeds(int _amount) { unsafe { - if (fn__canRegisterMissionPeds == null) fn__canRegisterMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionPeds"); + if (fn__canRegisterMissionPeds == null) fn__canRegisterMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionPeds"); var success = false; var result = fn__canRegisterMissionPeds(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanRegisterMissionVehicles(int _amount) { unsafe { - if (fn__canRegisterMissionVehicles == null) fn__canRegisterMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionVehicles"); + if (fn__canRegisterMissionVehicles == null) fn__canRegisterMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionVehicles"); var success = false; var result = fn__canRegisterMissionVehicles(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanRegisterMissionPickups(int _amount) { unsafe { - if (fn__canRegisterMissionPickups == null) fn__canRegisterMissionPickups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionPickups"); + if (fn__canRegisterMissionPickups == null) fn__canRegisterMissionPickups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionPickups"); var success = false; var result = fn__canRegisterMissionPickups(&success, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68253,20 +68253,20 @@ public int _0xE16AA70CE9BEEDC3(int _p0) public bool CanRegisterMissionEntities(int _ped_amt, int _vehicle_amt, int _object_amt, int _pickup_amt) { unsafe { - if (fn__canRegisterMissionEntities == null) fn__canRegisterMissionEntities = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionEntities"); + if (fn__canRegisterMissionEntities == null) fn__canRegisterMissionEntities = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canRegisterMissionEntities"); var success = false; var result = fn__canRegisterMissionEntities(&success, _ped_amt, _vehicle_amt, _object_amt, _pickup_amt); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int GetNumReservedMissionObjects(bool _p0, int _p1) { unsafe { - if (fn__getNumReservedMissionObjects == null) fn__getNumReservedMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionObjects"); + if (fn__getNumReservedMissionObjects == null) fn__getNumReservedMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionObjects"); var success = false; - var result = fn__getNumReservedMissionObjects(&success, _p0, _p1); + var result = fn__getNumReservedMissionObjects(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68275,9 +68275,9 @@ public int GetNumReservedMissionObjects(bool _p0, int _p1) public int GetNumReservedMissionPeds(bool _p0, int _p1) { unsafe { - if (fn__getNumReservedMissionPeds == null) fn__getNumReservedMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionPeds"); + if (fn__getNumReservedMissionPeds == null) fn__getNumReservedMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionPeds"); var success = false; - var result = fn__getNumReservedMissionPeds(&success, _p0, _p1); + var result = fn__getNumReservedMissionPeds(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68286,9 +68286,9 @@ public int GetNumReservedMissionPeds(bool _p0, int _p1) public int GetNumReservedMissionVehicles(bool _p0, int _p1) { unsafe { - if (fn__getNumReservedMissionVehicles == null) fn__getNumReservedMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionVehicles"); + if (fn__getNumReservedMissionVehicles == null) fn__getNumReservedMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumReservedMissionVehicles"); var success = false; - var result = fn__getNumReservedMissionVehicles(&success, _p0, _p1); + var result = fn__getNumReservedMissionVehicles(&success, (byte) (_p0 ? 1 : 0), _p1); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68297,9 +68297,9 @@ public int GetNumReservedMissionVehicles(bool _p0, int _p1) public int GetNumCreatedMissionObjects(bool _p0) { unsafe { - if (fn__getNumCreatedMissionObjects == null) fn__getNumCreatedMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionObjects"); + if (fn__getNumCreatedMissionObjects == null) fn__getNumCreatedMissionObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionObjects"); var success = false; - var result = fn__getNumCreatedMissionObjects(&success, _p0); + var result = fn__getNumCreatedMissionObjects(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68308,9 +68308,9 @@ public int GetNumCreatedMissionObjects(bool _p0) public int GetNumCreatedMissionPeds(bool _p0) { unsafe { - if (fn__getNumCreatedMissionPeds == null) fn__getNumCreatedMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionPeds"); + if (fn__getNumCreatedMissionPeds == null) fn__getNumCreatedMissionPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionPeds"); var success = false; - var result = fn__getNumCreatedMissionPeds(&success, _p0); + var result = fn__getNumCreatedMissionPeds(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68319,9 +68319,9 @@ public int GetNumCreatedMissionPeds(bool _p0) public int GetNumCreatedMissionVehicles(bool _p0) { unsafe { - if (fn__getNumCreatedMissionVehicles == null) fn__getNumCreatedMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionVehicles"); + if (fn__getNumCreatedMissionVehicles == null) fn__getNumCreatedMissionVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumCreatedMissionVehicles"); var success = false; - var result = fn__getNumCreatedMissionVehicles(&success, _p0); + var result = fn__getNumCreatedMissionVehicles(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68426,11 +68426,11 @@ public int GetNetworkTimeAccurate() public bool HasNetworkTimeStarted() { unsafe { - if (fn__hasNetworkTimeStarted == null) fn__hasNetworkTimeStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasNetworkTimeStarted"); + if (fn__hasNetworkTimeStarted == null) fn__hasNetworkTimeStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasNetworkTimeStarted"); var success = false; var result = fn__hasNetworkTimeStarted(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68448,33 +68448,33 @@ public int GetTimeOffset(int _timeA, int _timeB) public bool IsTimeLessThan(int _timeA, int _timeB) { unsafe { - if (fn__isTimeLessThan == null) fn__isTimeLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeLessThan"); + if (fn__isTimeLessThan == null) fn__isTimeLessThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeLessThan"); var success = false; var result = fn__isTimeLessThan(&success, _timeA, _timeB); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsTimeMoreThan(int _timeA, int _timeB) { unsafe { - if (fn__isTimeMoreThan == null) fn__isTimeMoreThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeMoreThan"); + if (fn__isTimeMoreThan == null) fn__isTimeMoreThan = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeMoreThan"); var success = false; var result = fn__isTimeMoreThan(&success, _timeA, _timeB); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsTimeEqualTo(int _timeA, int _timeB) { unsafe { - if (fn__isTimeEqualTo == null) fn__isTimeEqualTo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeEqualTo"); + if (fn__isTimeEqualTo == null) fn__isTimeEqualTo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTimeEqualTo"); var success = false; var result = fn__isTimeEqualTo(&success, _timeA, _timeB); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68542,9 +68542,9 @@ public void ConvertPosixTime(int _posixTime, ref int _timeStructure) public void NetworkSetInSpectatorMode(bool _toggle, int _playerPed) { unsafe { - if (fn__networkSetInSpectatorMode == null) fn__networkSetInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInSpectatorMode"); + if (fn__networkSetInSpectatorMode == null) fn__networkSetInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInSpectatorMode"); var success = false; - fn__networkSetInSpectatorMode(&success, _toggle, _playerPed); + fn__networkSetInSpectatorMode(&success, (byte) (_toggle ? 1 : 0), _playerPed); if (!success) throw new Exception("Native execution failed"); } } @@ -68553,9 +68553,9 @@ public void NetworkSetInSpectatorMode(bool _toggle, int _playerPed) public void NetworkSetInSpectatorModeExtended(bool _toggle, int _playerPed, bool _p2) { unsafe { - if (fn__networkSetInSpectatorModeExtended == null) fn__networkSetInSpectatorModeExtended = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInSpectatorModeExtended"); + if (fn__networkSetInSpectatorModeExtended == null) fn__networkSetInSpectatorModeExtended = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInSpectatorModeExtended"); var success = false; - fn__networkSetInSpectatorModeExtended(&success, _toggle, _playerPed, _p2); + fn__networkSetInSpectatorModeExtended(&success, (byte) (_toggle ? 1 : 0), _playerPed, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68563,9 +68563,9 @@ public void NetworkSetInSpectatorModeExtended(bool _toggle, int _playerPed, bool public void NetworkSetInFreeCamMode(bool _toggle) { unsafe { - if (fn__networkSetInFreeCamMode == null) fn__networkSetInFreeCamMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInFreeCamMode"); + if (fn__networkSetInFreeCamMode == null) fn__networkSetInFreeCamMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInFreeCamMode"); var success = false; - fn__networkSetInFreeCamMode(&success, _toggle); + fn__networkSetInFreeCamMode(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68574,9 +68574,9 @@ public void NetworkSetInFreeCamMode(bool _toggle) public void NetworkSetChoiceMigrateOptions(bool _toggle, int _player) { unsafe { - if (fn__networkSetChoiceMigrateOptions == null) fn__networkSetChoiceMigrateOptions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetChoiceMigrateOptions"); + if (fn__networkSetChoiceMigrateOptions == null) fn__networkSetChoiceMigrateOptions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetChoiceMigrateOptions"); var success = false; - fn__networkSetChoiceMigrateOptions(&success, _toggle, _player); + fn__networkSetChoiceMigrateOptions(&success, (byte) (_toggle ? 1 : 0), _player); if (!success) throw new Exception("Native execution failed"); } } @@ -68584,20 +68584,20 @@ public void NetworkSetChoiceMigrateOptions(bool _toggle, int _player) public bool NetworkIsInSpectatorMode() { unsafe { - if (fn__networkIsInSpectatorMode == null) fn__networkIsInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInSpectatorMode"); + if (fn__networkIsInSpectatorMode == null) fn__networkIsInSpectatorMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInSpectatorMode"); var success = false; var result = fn__networkIsInSpectatorMode(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkSetInMpCutscene(bool _p0, bool _p1) { unsafe { - if (fn__networkSetInMpCutscene == null) fn__networkSetInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInMpCutscene"); + if (fn__networkSetInMpCutscene == null) fn__networkSetInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetInMpCutscene"); var success = false; - fn__networkSetInMpCutscene(&success, _p0, _p1); + fn__networkSetInMpCutscene(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68605,11 +68605,11 @@ public void NetworkSetInMpCutscene(bool _p0, bool _p1) public bool NetworkIsInMpCutscene() { unsafe { - if (fn__networkIsInMpCutscene == null) fn__networkIsInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInMpCutscene"); + if (fn__networkIsInMpCutscene == null) fn__networkIsInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInMpCutscene"); var success = false; var result = fn__networkIsInMpCutscene(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68617,11 +68617,11 @@ public bool NetworkIsInMpCutscene() public bool NetworkIsPlayerInMpCutscene(int _player) { unsafe { - if (fn__networkIsPlayerInMpCutscene == null) fn__networkIsPlayerInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerInMpCutscene"); + if (fn__networkIsPlayerInMpCutscene == null) fn__networkIsPlayerInMpCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerInMpCutscene"); var success = false; var result = fn__networkIsPlayerInMpCutscene(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68649,9 +68649,9 @@ public void SetNetworkVehicleRespotTimer(int _netId, int _time, int _p2, int _p3 public void SetNetworkVehicleAsGhost(int _vehicle, bool _toggle) { unsafe { - if (fn__setNetworkVehicleAsGhost == null) fn__setNetworkVehicleAsGhost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkVehicleAsGhost"); + if (fn__setNetworkVehicleAsGhost == null) fn__setNetworkVehicleAsGhost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkVehicleAsGhost"); var success = false; - fn__setNetworkVehicleAsGhost(&success, _vehicle, _toggle); + fn__setNetworkVehicleAsGhost(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68671,9 +68671,9 @@ public void SetNetworkVehiclePositionUpdateMultiplier(int _vehicle, float _multi public void SetNetworkEnableVehiclePositionCorrection(int _vehicle, bool _toggle) { unsafe { - if (fn__setNetworkEnableVehiclePositionCorrection == null) fn__setNetworkEnableVehiclePositionCorrection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkEnableVehiclePositionCorrection"); + if (fn__setNetworkEnableVehiclePositionCorrection == null) fn__setNetworkEnableVehiclePositionCorrection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNetworkEnableVehiclePositionCorrection"); var success = false; - fn__setNetworkEnableVehiclePositionCorrection(&success, _vehicle, _toggle); + fn__setNetworkEnableVehiclePositionCorrection(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68681,9 +68681,9 @@ public void SetNetworkEnableVehiclePositionCorrection(int _vehicle, bool _toggle public void SetLocalPlayerAsGhost(bool _toggle, bool _p1) { unsafe { - if (fn__setLocalPlayerAsGhost == null) fn__setLocalPlayerAsGhost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerAsGhost"); + if (fn__setLocalPlayerAsGhost == null) fn__setLocalPlayerAsGhost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerAsGhost"); var success = false; - fn__setLocalPlayerAsGhost(&success, _toggle, _p1); + fn__setLocalPlayerAsGhost(&success, (byte) (_toggle ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68692,20 +68692,20 @@ public void SetLocalPlayerAsGhost(bool _toggle, bool _p1) public bool IsEntityGhostedToLocalPlayer(int _entity) { unsafe { - if (fn__isEntityGhostedToLocalPlayer == null) fn__isEntityGhostedToLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityGhostedToLocalPlayer"); + if (fn__isEntityGhostedToLocalPlayer == null) fn__isEntityGhostedToLocalPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityGhostedToLocalPlayer"); var success = false; var result = fn__isEntityGhostedToLocalPlayer(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x13F1FCB111B820B0(bool _p0) { unsafe { - if (fn__0x13F1FCB111B820B0 == null) fn__0x13F1FCB111B820B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x13F1FCB111B820B0"); + if (fn__0x13F1FCB111B820B0 == null) fn__0x13F1FCB111B820B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x13F1FCB111B820B0"); var success = false; - fn__0x13F1FCB111B820B0(&success, _p0); + fn__0x13F1FCB111B820B0(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68714,9 +68714,9 @@ public void _0x13F1FCB111B820B0(bool _p0) public void SetRelationshipToPlayer(int _player, bool _p1) { unsafe { - if (fn__setRelationshipToPlayer == null) fn__setRelationshipToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRelationshipToPlayer"); + if (fn__setRelationshipToPlayer == null) fn__setRelationshipToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRelationshipToPlayer"); var success = false; - fn__setRelationshipToPlayer(&success, _player, _p1); + fn__setRelationshipToPlayer(&success, _player, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68745,9 +68745,9 @@ public void ResetGhostedEntityAlpha() public void NetworkSetEntityGhostedWithOwner(int _entity, bool _p1) { unsafe { - if (fn__networkSetEntityGhostedWithOwner == null) fn__networkSetEntityGhostedWithOwner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityGhostedWithOwner"); + if (fn__networkSetEntityGhostedWithOwner == null) fn__networkSetEntityGhostedWithOwner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetEntityGhostedWithOwner"); var success = false; - fn__networkSetEntityGhostedWithOwner(&success, _entity, _p1); + fn__networkSetEntityGhostedWithOwner(&success, _entity, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68755,9 +68755,9 @@ public void NetworkSetEntityGhostedWithOwner(int _entity, bool _p1) public void _0xD7B6C73CAD419BCF(bool _p0) { unsafe { - if (fn__0xD7B6C73CAD419BCF == null) fn__0xD7B6C73CAD419BCF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD7B6C73CAD419BCF"); + if (fn__0xD7B6C73CAD419BCF == null) fn__0xD7B6C73CAD419BCF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD7B6C73CAD419BCF"); var success = false; - fn__0xD7B6C73CAD419BCF(&success, _p0); + fn__0xD7B6C73CAD419BCF(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68766,20 +68766,20 @@ public void _0xD7B6C73CAD419BCF(bool _p0) public bool _0x7EF7649B64D7FF10(int _entity) { unsafe { - if (fn__0x7EF7649B64D7FF10 == null) fn__0x7EF7649B64D7FF10 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7EF7649B64D7FF10"); + if (fn__0x7EF7649B64D7FF10 == null) fn__0x7EF7649B64D7FF10 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7EF7649B64D7FF10"); var success = false; var result = fn__0x7EF7649B64D7FF10(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void UsePlayerColourInsteadOfTeamColour(bool _toggle) { unsafe { - if (fn__usePlayerColourInsteadOfTeamColour == null) fn__usePlayerColourInsteadOfTeamColour = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_usePlayerColourInsteadOfTeamColour"); + if (fn__usePlayerColourInsteadOfTeamColour == null) fn__usePlayerColourInsteadOfTeamColour = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_usePlayerColourInsteadOfTeamColour"); var success = false; - fn__usePlayerColourInsteadOfTeamColour(&success, _toggle); + fn__usePlayerColourInsteadOfTeamColour(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -68787,9 +68787,9 @@ public void UsePlayerColourInsteadOfTeamColour(bool _toggle) public int NetworkCreateSynchronisedScene(float _x, float _y, float _z, float _xRot, float _yRot, float _zRot, int _rotationOrder, bool _useOcclusionPortal, bool _looped, float _p9, float _animTime, float _p11) { unsafe { - if (fn__networkCreateSynchronisedScene == null) fn__networkCreateSynchronisedScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCreateSynchronisedScene"); + if (fn__networkCreateSynchronisedScene == null) fn__networkCreateSynchronisedScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkCreateSynchronisedScene"); var success = false; - var result = fn__networkCreateSynchronisedScene(&success, _x, _y, _z, _xRot, _yRot, _zRot, _rotationOrder, _useOcclusionPortal, _looped, _p9, _animTime, _p11); + var result = fn__networkCreateSynchronisedScene(&success, _x, _y, _z, _xRot, _yRot, _zRot, _rotationOrder, (byte) (_useOcclusionPortal ? 1 : 0), (byte) (_looped ? 1 : 0), _p9, _animTime, _p11); if (!success) throw new Exception("Native execution failed"); return result; } @@ -68938,11 +68938,11 @@ public int _0xFB1F9381E80FA13F(int _p0, int _p1) public bool NetworkStartRespawnSearchForPlayer(int _player, float _x, float _y, float _z, float _radius, float _p5, float _p6, float _p7, int _flags) { unsafe { - if (fn__networkStartRespawnSearchForPlayer == null) fn__networkStartRespawnSearchForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkStartRespawnSearchForPlayer"); + if (fn__networkStartRespawnSearchForPlayer == null) fn__networkStartRespawnSearchForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkStartRespawnSearchForPlayer"); var success = false; var result = fn__networkStartRespawnSearchForPlayer(&success, _player, _x, _y, _z, _radius, _p5, _p6, _p7, _flags); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -68950,11 +68950,11 @@ public bool NetworkStartRespawnSearchForPlayer(int _player, float _x, float _y, public bool NetworkStartRespawnSearchInAngledAreaForPlayer(int _player, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, float _p8, float _p9, float _p10, int _flags) { unsafe { - if (fn__networkStartRespawnSearchInAngledAreaForPlayer == null) fn__networkStartRespawnSearchInAngledAreaForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkStartRespawnSearchInAngledAreaForPlayer"); + if (fn__networkStartRespawnSearchInAngledAreaForPlayer == null) fn__networkStartRespawnSearchInAngledAreaForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkStartRespawnSearchInAngledAreaForPlayer"); var success = false; var result = fn__networkStartRespawnSearchInAngledAreaForPlayer(&success, _player, _x1, _y1, _z1, _x2, _y2, _z2, _width, _p8, _p9, _p10, _flags); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69039,33 +69039,33 @@ public void NetworkEndTutorialSession() public bool NetworkIsInTutorialSession() { unsafe { - if (fn__networkIsInTutorialSession == null) fn__networkIsInTutorialSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInTutorialSession"); + if (fn__networkIsInTutorialSession == null) fn__networkIsInTutorialSession = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsInTutorialSession"); var success = false; var result = fn__networkIsInTutorialSession(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xB37E4E6A2388CA7B() { unsafe { - if (fn__0xB37E4E6A2388CA7B == null) fn__0xB37E4E6A2388CA7B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB37E4E6A2388CA7B"); + if (fn__0xB37E4E6A2388CA7B == null) fn__0xB37E4E6A2388CA7B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB37E4E6A2388CA7B"); var success = false; var result = fn__0xB37E4E6A2388CA7B(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsTutorialSessionChangePending() { unsafe { - if (fn__networkIsTutorialSessionChangePending == null) fn__networkIsTutorialSessionChangePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTutorialSessionChangePending"); + if (fn__networkIsTutorialSessionChangePending == null) fn__networkIsTutorialSessionChangePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTutorialSessionChangePending"); var success = false; var result = fn__networkIsTutorialSessionChangePending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69085,11 +69085,11 @@ public int NetworkGetPlayerTutorialSessionInstance(int _player) public bool NetworkIsPlayerEqualToIndex(int _player, int _index) { unsafe { - if (fn__networkIsPlayerEqualToIndex == null) fn__networkIsPlayerEqualToIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerEqualToIndex"); + if (fn__networkIsPlayerEqualToIndex == null) fn__networkIsPlayerEqualToIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerEqualToIndex"); var success = false; var result = fn__networkIsPlayerEqualToIndex(&success, _player, _index); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69097,9 +69097,9 @@ public bool NetworkIsPlayerEqualToIndex(int _player, int _index) public void NetworkConcealPlayer(int _player, bool _toggle, bool _p2) { unsafe { - if (fn__networkConcealPlayer == null) fn__networkConcealPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkConcealPlayer"); + if (fn__networkConcealPlayer == null) fn__networkConcealPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkConcealPlayer"); var success = false; - fn__networkConcealPlayer(&success, _player, _toggle, _p2); + fn__networkConcealPlayer(&success, _player, (byte) (_toggle ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69108,11 +69108,11 @@ public void NetworkConcealPlayer(int _player, bool _toggle, bool _p2) public bool NetworkIsPlayerConcealed(int _player) { unsafe { - if (fn__networkIsPlayerConcealed == null) fn__networkIsPlayerConcealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerConcealed"); + if (fn__networkIsPlayerConcealed == null) fn__networkIsPlayerConcealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsPlayerConcealed"); var success = false; var result = fn__networkIsPlayerConcealed(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69120,9 +69120,9 @@ public bool NetworkIsPlayerConcealed(int _player) public void NetworkConcealEntity(int _entity, bool _toggle) { unsafe { - if (fn__networkConcealEntity == null) fn__networkConcealEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkConcealEntity"); + if (fn__networkConcealEntity == null) fn__networkConcealEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkConcealEntity"); var success = false; - fn__networkConcealEntity(&success, _entity, _toggle); + fn__networkConcealEntity(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69131,11 +69131,11 @@ public void NetworkConcealEntity(int _entity, bool _toggle) public bool NetworkIsEntityConcealed(int _entity) { unsafe { - if (fn__networkIsEntityConcealed == null) fn__networkIsEntityConcealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsEntityConcealed"); + if (fn__networkIsEntityConcealed == null) fn__networkIsEntityConcealed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsEntityConcealed"); var success = false; var result = fn__networkIsEntityConcealed(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69172,11 +69172,11 @@ public void NetworkClearClockTimeOverride() public bool NetworkIsClockTimeOverridden() { unsafe { - if (fn__networkIsClockTimeOverridden == null) fn__networkIsClockTimeOverridden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsClockTimeOverridden"); + if (fn__networkIsClockTimeOverridden == null) fn__networkIsClockTimeOverridden = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsClockTimeOverridden"); var success = false; var result = fn__networkIsClockTimeOverridden(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69227,53 +69227,53 @@ public int _0x2B1C623823DB0D9D(int _p0, int _p1, int _p2, int _p3, int _p4, int public bool NetworkRemoveEntityArea(int _p0) { unsafe { - if (fn__networkRemoveEntityArea == null) fn__networkRemoveEntityArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRemoveEntityArea"); + if (fn__networkRemoveEntityArea == null) fn__networkRemoveEntityArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRemoveEntityArea"); var success = false; var result = fn__networkRemoveEntityArea(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkEntityAreaDoesExist(int _areaHandle) { unsafe { - if (fn__networkEntityAreaDoesExist == null) fn__networkEntityAreaDoesExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEntityAreaDoesExist"); + if (fn__networkEntityAreaDoesExist == null) fn__networkEntityAreaDoesExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEntityAreaDoesExist"); var success = false; var result = fn__networkEntityAreaDoesExist(&success, _areaHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x4DF7CFFF471A7FB1(int _p0) { unsafe { - if (fn__0x4DF7CFFF471A7FB1 == null) fn__0x4DF7CFFF471A7FB1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4DF7CFFF471A7FB1"); + if (fn__0x4DF7CFFF471A7FB1 == null) fn__0x4DF7CFFF471A7FB1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4DF7CFFF471A7FB1"); var success = false; var result = fn__0x4DF7CFFF471A7FB1(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkEntityAreaIsOccupied(int _areaHandle) { unsafe { - if (fn__networkEntityAreaIsOccupied == null) fn__networkEntityAreaIsOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEntityAreaIsOccupied"); + if (fn__networkEntityAreaIsOccupied == null) fn__networkEntityAreaIsOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkEntityAreaIsOccupied"); var success = false; var result = fn__networkEntityAreaIsOccupied(&success, _areaHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void NetworkUseHighPrecisionBlending(int _netID, bool _toggle) { unsafe { - if (fn__networkUseHighPrecisionBlending == null) fn__networkUseHighPrecisionBlending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUseHighPrecisionBlending"); + if (fn__networkUseHighPrecisionBlending == null) fn__networkUseHighPrecisionBlending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUseHighPrecisionBlending"); var success = false; - fn__networkUseHighPrecisionBlending(&success, _netID, _toggle); + fn__networkUseHighPrecisionBlending(&success, _netID, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69301,22 +69301,22 @@ public void _0x95BAF97C82464629(int _p0, int _p1) public bool NetworkRequestCloudBackgroundScripts() { unsafe { - if (fn__networkRequestCloudBackgroundScripts == null) fn__networkRequestCloudBackgroundScripts = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestCloudBackgroundScripts"); + if (fn__networkRequestCloudBackgroundScripts == null) fn__networkRequestCloudBackgroundScripts = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRequestCloudBackgroundScripts"); var success = false; var result = fn__networkRequestCloudBackgroundScripts(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsCloudBackgroundScriptRequestPending() { unsafe { - if (fn__networkIsCloudBackgroundScriptRequestPending == null) fn__networkIsCloudBackgroundScriptRequestPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCloudBackgroundScriptRequestPending"); + if (fn__networkIsCloudBackgroundScriptRequestPending == null) fn__networkIsCloudBackgroundScriptRequestPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCloudBackgroundScriptRequestPending"); var success = false; var result = fn__networkIsCloudBackgroundScriptRequestPending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69333,11 +69333,11 @@ public void NetworkRequestCloudTunables() public bool NetworkIsTunableCloudRequestPending() { unsafe { - if (fn__networkIsTunableCloudRequestPending == null) fn__networkIsTunableCloudRequestPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTunableCloudRequestPending"); + if (fn__networkIsTunableCloudRequestPending == null) fn__networkIsTunableCloudRequestPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsTunableCloudRequestPending"); var success = false; var result = fn__networkIsTunableCloudRequestPending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69355,7 +69355,7 @@ public int NetworkGetTunableCloudCrc() public bool NetworkDoesTunableExist(string _tunableContext, string _tunableName) { unsafe { - if (fn__networkDoesTunableExist == null) fn__networkDoesTunableExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesTunableExist"); + if (fn__networkDoesTunableExist == null) fn__networkDoesTunableExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesTunableExist"); var success = false; var ptr_tunableContext = MemoryUtils.StringToHGlobalUtf8(_tunableContext); var ptr_tunableName = MemoryUtils.StringToHGlobalUtf8(_tunableName); @@ -69363,14 +69363,14 @@ public bool NetworkDoesTunableExist(string _tunableContext, string _tunableName) Marshal.FreeHGlobal(ptr_tunableContext); Marshal.FreeHGlobal(ptr_tunableName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableInt(string _tunableContext, string _tunableName, ref int _value) { unsafe { - if (fn__networkAccessTunableInt == null) fn__networkAccessTunableInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableInt"); + if (fn__networkAccessTunableInt == null) fn__networkAccessTunableInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableInt"); var success = false; var ptr_tunableContext = MemoryUtils.StringToHGlobalUtf8(_tunableContext); var ptr_tunableName = MemoryUtils.StringToHGlobalUtf8(_tunableName); @@ -69380,14 +69380,14 @@ public bool NetworkAccessTunableInt(string _tunableContext, string _tunableName, Marshal.FreeHGlobal(ptr_tunableName); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableFloat(string _tunableContext, string _tunableName, ref float _value) { unsafe { - if (fn__networkAccessTunableFloat == null) fn__networkAccessTunableFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableFloat"); + if (fn__networkAccessTunableFloat == null) fn__networkAccessTunableFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableFloat"); var success = false; var ptr_tunableContext = MemoryUtils.StringToHGlobalUtf8(_tunableContext); var ptr_tunableName = MemoryUtils.StringToHGlobalUtf8(_tunableName); @@ -69397,14 +69397,14 @@ public bool NetworkAccessTunableFloat(string _tunableContext, string _tunableNam Marshal.FreeHGlobal(ptr_tunableName); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableBool(string _tunableContext, string _tunableName) { unsafe { - if (fn__networkAccessTunableBool == null) fn__networkAccessTunableBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableBool"); + if (fn__networkAccessTunableBool == null) fn__networkAccessTunableBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableBool"); var success = false; var ptr_tunableContext = MemoryUtils.StringToHGlobalUtf8(_tunableContext); var ptr_tunableName = MemoryUtils.StringToHGlobalUtf8(_tunableName); @@ -69412,116 +69412,116 @@ public bool NetworkAccessTunableBool(string _tunableContext, string _tunableName Marshal.FreeHGlobal(ptr_tunableContext); Marshal.FreeHGlobal(ptr_tunableName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkDoesTunableExistHash(uint _tunableContext, uint _tunableName) { unsafe { - if (fn__networkDoesTunableExistHash == null) fn__networkDoesTunableExistHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesTunableExistHash"); + if (fn__networkDoesTunableExistHash == null) fn__networkDoesTunableExistHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDoesTunableExistHash"); var success = false; var result = fn__networkDoesTunableExistHash(&success, _tunableContext, _tunableName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAllocateTunablesRegistrationDataMap() { unsafe { - if (fn__networkAllocateTunablesRegistrationDataMap == null) fn__networkAllocateTunablesRegistrationDataMap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAllocateTunablesRegistrationDataMap"); + if (fn__networkAllocateTunablesRegistrationDataMap == null) fn__networkAllocateTunablesRegistrationDataMap = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAllocateTunablesRegistrationDataMap"); var success = false; var result = fn__networkAllocateTunablesRegistrationDataMap(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableIntHash(uint _tunableContext, uint _tunableName, ref int _value) { unsafe { - if (fn__networkAccessTunableIntHash == null) fn__networkAccessTunableIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableIntHash"); + if (fn__networkAccessTunableIntHash == null) fn__networkAccessTunableIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableIntHash"); var success = false; var ref_value = _value; var result = fn__networkAccessTunableIntHash(&success, _tunableContext, _tunableName, &ref_value); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRegisterTunableIntHash(uint _contextHash, uint _nameHash, ref int _value) { unsafe { - if (fn__networkRegisterTunableIntHash == null) fn__networkRegisterTunableIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableIntHash"); + if (fn__networkRegisterTunableIntHash == null) fn__networkRegisterTunableIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableIntHash"); var success = false; var ref_value = _value; var result = fn__networkRegisterTunableIntHash(&success, _contextHash, _nameHash, &ref_value); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableFloatHash(uint _tunableContext, uint _tunableName, ref float _value) { unsafe { - if (fn__networkAccessTunableFloatHash == null) fn__networkAccessTunableFloatHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableFloatHash"); + if (fn__networkAccessTunableFloatHash == null) fn__networkAccessTunableFloatHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableFloatHash"); var success = false; var ref_value = _value; var result = fn__networkAccessTunableFloatHash(&success, _tunableContext, _tunableName, &ref_value); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRegisterTunableFloatHash(uint _contextHash, uint _nameHash, ref float _value) { unsafe { - if (fn__networkRegisterTunableFloatHash == null) fn__networkRegisterTunableFloatHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableFloatHash"); + if (fn__networkRegisterTunableFloatHash == null) fn__networkRegisterTunableFloatHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableFloatHash"); var success = false; var ref_value = _value; var result = fn__networkRegisterTunableFloatHash(&success, _contextHash, _nameHash, &ref_value); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkAccessTunableBoolHash(uint _tunableContext, uint _tunableName) { unsafe { - if (fn__networkAccessTunableBoolHash == null) fn__networkAccessTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableBoolHash"); + if (fn__networkAccessTunableBoolHash == null) fn__networkAccessTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAccessTunableBoolHash"); var success = false; var result = fn__networkAccessTunableBoolHash(&success, _tunableContext, _tunableName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkRegisterTunableBoolHash(uint _contextHash, uint _nameHash, ref bool _value) { unsafe { - if (fn__networkRegisterTunableBoolHash == null) fn__networkRegisterTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableBoolHash"); + if (fn__networkRegisterTunableBoolHash == null) fn__networkRegisterTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkRegisterTunableBoolHash"); var success = false; - var ref_value = _value; + var ref_value = (byte) (_value ? 1 : 0); var result = fn__networkRegisterTunableBoolHash(&success, _contextHash, _nameHash, &ref_value); - _value = ref_value; + _value = ref_value == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkTryAccessTunableBoolHash(uint _tunableContext, uint _tunableName, bool _defaultValue) { unsafe { - if (fn__networkTryAccessTunableBoolHash == null) fn__networkTryAccessTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkTryAccessTunableBoolHash"); + if (fn__networkTryAccessTunableBoolHash == null) fn__networkTryAccessTunableBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkTryAccessTunableBoolHash"); var success = false; - var result = fn__networkTryAccessTunableBoolHash(&success, _tunableContext, _tunableName, _defaultValue); + var result = fn__networkTryAccessTunableBoolHash(&success, _tunableContext, _tunableName, (byte) (_defaultValue ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69571,11 +69571,11 @@ public int NetworkGetNumBodyTrackers() public bool _0x2E0BF682CC778D49(int _p0) { unsafe { - if (fn__0x2E0BF682CC778D49 == null) fn__0x2E0BF682CC778D49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2E0BF682CC778D49"); + if (fn__0x2E0BF682CC778D49 == null) fn__0x2E0BF682CC778D49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2E0BF682CC778D49"); var success = false; var result = fn__0x2E0BF682CC778D49(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69585,11 +69585,11 @@ public bool _0x2E0BF682CC778D49(int _p0) public bool _0x0EDE326D47CD0F3E(int _ped, int _player) { unsafe { - if (fn__0x0EDE326D47CD0F3E == null) fn__0x0EDE326D47CD0F3E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0EDE326D47CD0F3E"); + if (fn__0x0EDE326D47CD0F3E == null) fn__0x0EDE326D47CD0F3E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0EDE326D47CD0F3E"); var success = false; var result = fn__0x0EDE326D47CD0F3E(&success, _ped, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69597,9 +69597,9 @@ public bool _0x0EDE326D47CD0F3E(int _ped, int _player) public void NetworkSetVehicleWheelsDestructible(int _entity, bool _toggle) { unsafe { - if (fn__networkSetVehicleWheelsDestructible == null) fn__networkSetVehicleWheelsDestructible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetVehicleWheelsDestructible"); + if (fn__networkSetVehicleWheelsDestructible == null) fn__networkSetVehicleWheelsDestructible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkSetVehicleWheelsDestructible"); var success = false; - fn__networkSetVehicleWheelsDestructible(&success, _entity, _toggle); + fn__networkSetVehicleWheelsDestructible(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69608,9 +69608,9 @@ public void NetworkSetVehicleWheelsDestructible(int _entity, bool _toggle) public void _0x38B7C51AB1EDC7D8(int _entity, bool _toggle) { unsafe { - if (fn__0x38B7C51AB1EDC7D8 == null) fn__0x38B7C51AB1EDC7D8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x38B7C51AB1EDC7D8"); + if (fn__0x38B7C51AB1EDC7D8 == null) fn__0x38B7C51AB1EDC7D8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x38B7C51AB1EDC7D8"); var success = false; - fn__0x38B7C51AB1EDC7D8(&success, _entity, _toggle); + fn__0x38B7C51AB1EDC7D8(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69629,9 +69629,9 @@ public void _0x3FC795691834481D(int _p0, int _p1) public void NetworkExplodeVehicle(int _vehicle, bool _isAudible, bool _isInvisible, bool _p3) { unsafe { - if (fn__networkExplodeVehicle == null) fn__networkExplodeVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkExplodeVehicle"); + if (fn__networkExplodeVehicle == null) fn__networkExplodeVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkExplodeVehicle"); var success = false; - fn__networkExplodeVehicle(&success, _vehicle, _isAudible, _isInvisible, _p3); + fn__networkExplodeVehicle(&success, _vehicle, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69721,9 +69721,9 @@ public void _0x367EF5E2F439B4C6(int _p0) public void _0x94538037EE44F5CF(bool _p0) { unsafe { - if (fn__0x94538037EE44F5CF == null) fn__0x94538037EE44F5CF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x94538037EE44F5CF"); + if (fn__0x94538037EE44F5CF == null) fn__0x94538037EE44F5CF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x94538037EE44F5CF"); var success = false; - fn__0x94538037EE44F5CF(&success, _p0); + fn__0x94538037EE44F5CF(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69742,11 +69742,11 @@ public void NetworkCacheLocalPlayerHeadBlendData() public bool NetworkHasCachedPlayerHeadBlendData(int _player) { unsafe { - if (fn__networkHasCachedPlayerHeadBlendData == null) fn__networkHasCachedPlayerHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasCachedPlayerHeadBlendData"); + if (fn__networkHasCachedPlayerHeadBlendData == null) fn__networkHasCachedPlayerHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasCachedPlayerHeadBlendData"); var success = false; var result = fn__networkHasCachedPlayerHeadBlendData(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69756,11 +69756,11 @@ public bool NetworkHasCachedPlayerHeadBlendData(int _player) public bool NetworkApplyCachedPlayerHeadBlendData(int _ped, int _player) { unsafe { - if (fn__networkApplyCachedPlayerHeadBlendData == null) fn__networkApplyCachedPlayerHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkApplyCachedPlayerHeadBlendData"); + if (fn__networkApplyCachedPlayerHeadBlendData == null) fn__networkApplyCachedPlayerHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkApplyCachedPlayerHeadBlendData"); var success = false; var result = fn__networkApplyCachedPlayerHeadBlendData(&success, _ped, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69778,11 +69778,11 @@ public int GetNumCommerceItems() public bool IsCommerceDataValid() { unsafe { - if (fn__isCommerceDataValid == null) fn__isCommerceDataValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommerceDataValid"); + if (fn__isCommerceDataValid == null) fn__isCommerceDataValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommerceDataValid"); var success = false; var result = fn__isCommerceDataValid(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69799,11 +69799,11 @@ public void _0xB606E6CC59664972(int _p0) public bool _0x1D4DC17C38FEAFF0() { unsafe { - if (fn__0x1D4DC17C38FEAFF0 == null) fn__0x1D4DC17C38FEAFF0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D4DC17C38FEAFF0"); + if (fn__0x1D4DC17C38FEAFF0 == null) fn__0x1D4DC17C38FEAFF0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D4DC17C38FEAFF0"); var success = false; var result = fn__0x1D4DC17C38FEAFF0(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69887,20 +69887,20 @@ public void OpenCommerceStore(string _p0, string _p1, int _p2) public bool IsCommerceStoreOpen() { unsafe { - if (fn__isCommerceStoreOpen == null) fn__isCommerceStoreOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommerceStoreOpen"); + if (fn__isCommerceStoreOpen == null) fn__isCommerceStoreOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCommerceStoreOpen"); var success = false; var result = fn__isCommerceStoreOpen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetStoreEnabled(bool _toggle) { unsafe { - if (fn__setStoreEnabled == null) fn__setStoreEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStoreEnabled"); + if (fn__setStoreEnabled == null) fn__setStoreEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStoreEnabled"); var success = false; - fn__setStoreEnabled(&success, _toggle); + fn__setStoreEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -69908,11 +69908,11 @@ public void SetStoreEnabled(bool _toggle) public bool RequestCommerceItemImage(int _index) { unsafe { - if (fn__requestCommerceItemImage == null) fn__requestCommerceItemImage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestCommerceItemImage"); + if (fn__requestCommerceItemImage == null) fn__requestCommerceItemImage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestCommerceItemImage"); var success = false; var result = fn__requestCommerceItemImage(&success, _index); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69942,11 +69942,11 @@ public string GetCommerceItemTexturename(int _index) public bool IsStoreAvailableToUser() { unsafe { - if (fn__isStoreAvailableToUser == null) fn__isStoreAvailableToUser = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStoreAvailableToUser"); + if (fn__isStoreAvailableToUser == null) fn__isStoreAvailableToUser = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStoreAvailableToUser"); var success = false; var result = fn__isStoreAvailableToUser(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -69973,11 +69973,11 @@ public void _0x444C4525ECE0A4B9() public bool _0x59328EB08C5CEB2B() { unsafe { - if (fn__0x59328EB08C5CEB2B == null) fn__0x59328EB08C5CEB2B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x59328EB08C5CEB2B"); + if (fn__0x59328EB08C5CEB2B == null) fn__0x59328EB08C5CEB2B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x59328EB08C5CEB2B"); var success = false; var result = fn__0x59328EB08C5CEB2B(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70029,22 +70029,22 @@ public int CloudDeleteMemberFile(string _p0) public bool CloudHasRequestCompleted(int _handle) { unsafe { - if (fn__cloudHasRequestCompleted == null) fn__cloudHasRequestCompleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudHasRequestCompleted"); + if (fn__cloudHasRequestCompleted == null) fn__cloudHasRequestCompleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudHasRequestCompleted"); var success = false; var result = fn__cloudHasRequestCompleted(&success, _handle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CloudDidRequestSucceed(int _handle) { unsafe { - if (fn__cloudDidRequestSucceed == null) fn__cloudDidRequestSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudDidRequestSucceed"); + if (fn__cloudDidRequestSucceed == null) fn__cloudDidRequestSucceed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudDidRequestSucceed"); var success = false; var result = fn__cloudDidRequestSucceed(&success, _handle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70061,22 +70061,22 @@ public void CloudCheckAvailability() public bool CloudIsCheckingAvailability() { unsafe { - if (fn__cloudIsCheckingAvailability == null) fn__cloudIsCheckingAvailability = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudIsCheckingAvailability"); + if (fn__cloudIsCheckingAvailability == null) fn__cloudIsCheckingAvailability = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudIsCheckingAvailability"); var success = false; var result = fn__cloudIsCheckingAvailability(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CloudGetAvailabilityCheckResult() { unsafe { - if (fn__cloudGetAvailabilityCheckResult == null) fn__cloudGetAvailabilityCheckResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudGetAvailabilityCheckResult"); + if (fn__cloudGetAvailabilityCheckResult == null) fn__cloudGetAvailabilityCheckResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_cloudGetAvailabilityCheckResult"); var success = false; var result = fn__cloudGetAvailabilityCheckResult(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70126,7 +70126,7 @@ public void ClearLaunchParams() public bool UgcCopyContent(ref int _p0, ref int _p1) { unsafe { - if (fn__ugcCopyContent == null) fn__ugcCopyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCopyContent"); + if (fn__ugcCopyContent == null) fn__ugcCopyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcCopyContent"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -70134,7 +70134,7 @@ public bool UgcCopyContent(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70152,11 +70152,11 @@ public int _0x9FEDF86898F100E9() public bool UgcHasCreateFinished() { unsafe { - if (fn__ugcHasCreateFinished == null) fn__ugcHasCreateFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasCreateFinished"); + if (fn__ugcHasCreateFinished == null) fn__ugcHasCreateFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasCreateFinished"); var success = false; var result = fn__ugcHasCreateFinished(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70206,76 +70206,76 @@ public void UgcClearCreateResult() public bool UgcQueryMyContent(int _p0, int _p1, ref int _p2, int _p3, int _p4, int _p5) { unsafe { - if (fn__ugcQueryMyContent == null) fn__ugcQueryMyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryMyContent"); + if (fn__ugcQueryMyContent == null) fn__ugcQueryMyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryMyContent"); var success = false; var ref_p2 = _p2; var result = fn__ugcQueryMyContent(&success, _p0, _p1, &ref_p2, _p3, _p4, _p5); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x692D58DF40657E8C(int _p0, int _p1, int _p2, string _p3, int _p4, bool _p5) { unsafe { - if (fn__0x692D58DF40657E8C == null) fn__0x692D58DF40657E8C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x692D58DF40657E8C"); + if (fn__0x692D58DF40657E8C == null) fn__0x692D58DF40657E8C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x692D58DF40657E8C"); var success = false; var ptr_p3 = MemoryUtils.StringToHGlobalUtf8(_p3); - var result = fn__0x692D58DF40657E8C(&success, _p0, _p1, _p2, ptr_p3, _p4, _p5); + var result = fn__0x692D58DF40657E8C(&success, _p0, _p1, _p2, ptr_p3, _p4, (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcQueryByContentId(string _contentId, bool _latestVersion, string _contentTypeName) { unsafe { - if (fn__ugcQueryByContentId == null) fn__ugcQueryByContentId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryByContentId"); + if (fn__ugcQueryByContentId == null) fn__ugcQueryByContentId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryByContentId"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); - var result = fn__ugcQueryByContentId(&success, ptr_contentId, _latestVersion, ptr_contentTypeName); + var result = fn__ugcQueryByContentId(&success, ptr_contentId, (byte) (_latestVersion ? 1 : 0), ptr_contentTypeName); Marshal.FreeHGlobal(ptr_contentId); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcQueryByContentIds(ref int _data, int _count, bool _latestVersion, string _contentTypeName) { unsafe { - if (fn__ugcQueryByContentIds == null) fn__ugcQueryByContentIds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryByContentIds"); + if (fn__ugcQueryByContentIds == null) fn__ugcQueryByContentIds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryByContentIds"); var success = false; var ref_data = _data; var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); - var result = fn__ugcQueryByContentIds(&success, &ref_data, _count, _latestVersion, ptr_contentTypeName); + var result = fn__ugcQueryByContentIds(&success, &ref_data, _count, (byte) (_latestVersion ? 1 : 0), ptr_contentTypeName); _data = ref_data; Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcQueryRecentlyCreatedContent(int _offset, int _count, string _contentTypeName, int _p3) { unsafe { - if (fn__ugcQueryRecentlyCreatedContent == null) fn__ugcQueryRecentlyCreatedContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryRecentlyCreatedContent"); + if (fn__ugcQueryRecentlyCreatedContent == null) fn__ugcQueryRecentlyCreatedContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcQueryRecentlyCreatedContent"); var success = false; var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); var result = fn__ugcQueryRecentlyCreatedContent(&success, _offset, _count, ptr_contentTypeName, _p3); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetBookmarkedContent(int _p0, int _p1, string _p2, ref int _p3) { unsafe { - if (fn__ugcGetBookmarkedContent == null) fn__ugcGetBookmarkedContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetBookmarkedContent"); + if (fn__ugcGetBookmarkedContent == null) fn__ugcGetBookmarkedContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetBookmarkedContent"); var success = false; var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); var ref_p3 = _p3; @@ -70283,14 +70283,14 @@ public bool UgcGetBookmarkedContent(int _p0, int _p1, string _p2, ref int _p3) Marshal.FreeHGlobal(ptr_p2); _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetMyContent(int _p0, int _p1, string _p2, ref int _p3) { unsafe { - if (fn__ugcGetMyContent == null) fn__ugcGetMyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetMyContent"); + if (fn__ugcGetMyContent == null) fn__ugcGetMyContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetMyContent"); var success = false; var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); var ref_p3 = _p3; @@ -70298,14 +70298,14 @@ public bool UgcGetMyContent(int _p0, int _p1, string _p2, ref int _p3) Marshal.FreeHGlobal(ptr_p2); _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetFriendContent(int _p0, int _p1, string _p2, ref int _p3) { unsafe { - if (fn__ugcGetFriendContent == null) fn__ugcGetFriendContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetFriendContent"); + if (fn__ugcGetFriendContent == null) fn__ugcGetFriendContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetFriendContent"); var success = false; var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); var ref_p3 = _p3; @@ -70313,14 +70313,14 @@ public bool UgcGetFriendContent(int _p0, int _p1, string _p2, ref int _p3) Marshal.FreeHGlobal(ptr_p2); _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetCrewContent(int _p0, int _p1, int _p2, string _p3, ref int _p4) { unsafe { - if (fn__ugcGetCrewContent == null) fn__ugcGetCrewContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetCrewContent"); + if (fn__ugcGetCrewContent == null) fn__ugcGetCrewContent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetCrewContent"); var success = false; var ptr_p3 = MemoryUtils.StringToHGlobalUtf8(_p3); var ref_p4 = _p4; @@ -70328,14 +70328,14 @@ public bool UgcGetCrewContent(int _p0, int _p1, int _p2, string _p3, ref int _p4 Marshal.FreeHGlobal(ptr_p3); _p4 = ref_p4; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetGetByCategory(int _p0, int _p1, int _p2, string _p3, ref int _p4) { unsafe { - if (fn__ugcGetGetByCategory == null) fn__ugcGetGetByCategory = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetGetByCategory"); + if (fn__ugcGetGetByCategory == null) fn__ugcGetGetByCategory = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetGetByCategory"); var success = false; var ptr_p3 = MemoryUtils.StringToHGlobalUtf8(_p3); var ref_p4 = _p4; @@ -70343,14 +70343,14 @@ public bool UgcGetGetByCategory(int _p0, int _p1, int _p2, string _p3, ref int _ Marshal.FreeHGlobal(ptr_p3); _p4 = ref_p4; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SetBalanceAddMachine(string _contentId, string _contentTypeName) { unsafe { - if (fn__setBalanceAddMachine == null) fn__setBalanceAddMachine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBalanceAddMachine"); + if (fn__setBalanceAddMachine == null) fn__setBalanceAddMachine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBalanceAddMachine"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); @@ -70358,14 +70358,14 @@ public bool SetBalanceAddMachine(string _contentId, string _contentTypeName) Marshal.FreeHGlobal(ptr_contentId); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SetBalanceAddMachines(ref int _data, int _dataCount, string _contentTypeName) { unsafe { - if (fn__setBalanceAddMachines == null) fn__setBalanceAddMachines = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBalanceAddMachines"); + if (fn__setBalanceAddMachines == null) fn__setBalanceAddMachines = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBalanceAddMachines"); var success = false; var ref_data = _data; var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); @@ -70373,14 +70373,14 @@ public bool SetBalanceAddMachines(ref int _data, int _dataCount, string _content _data = ref_data; Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xA7862BC5ED1DFD7E(int _p0, int _p1, ref int _p2, ref int _p3) { unsafe { - if (fn__0xA7862BC5ED1DFD7E == null) fn__0xA7862BC5ED1DFD7E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA7862BC5ED1DFD7E"); + if (fn__0xA7862BC5ED1DFD7E == null) fn__0xA7862BC5ED1DFD7E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA7862BC5ED1DFD7E"); var success = false; var ref_p2 = _p2; var ref_p3 = _p3; @@ -70388,14 +70388,14 @@ public bool _0xA7862BC5ED1DFD7E(int _p0, int _p1, ref int _p2, ref int _p3) _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x97A770BEEF227E2B(int _p0, int _p1, ref int _p2, ref int _p3) { unsafe { - if (fn__0x97A770BEEF227E2B == null) fn__0x97A770BEEF227E2B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x97A770BEEF227E2B"); + if (fn__0x97A770BEEF227E2B == null) fn__0x97A770BEEF227E2B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x97A770BEEF227E2B"); var success = false; var ref_p2 = _p2; var ref_p3 = _p3; @@ -70403,14 +70403,14 @@ public bool _0x97A770BEEF227E2B(int _p0, int _p1, ref int _p2, ref int _p3) _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x5324A0E3E4CE3570(int _p0, int _p1, ref int _p2, ref int _p3) { unsafe { - if (fn__0x5324A0E3E4CE3570 == null) fn__0x5324A0E3E4CE3570 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5324A0E3E4CE3570"); + if (fn__0x5324A0E3E4CE3570 == null) fn__0x5324A0E3E4CE3570 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5324A0E3E4CE3570"); var success = false; var ref_p2 = _p2; var ref_p3 = _p3; @@ -70418,7 +70418,7 @@ public bool _0x5324A0E3E4CE3570(int _p0, int _p1, ref int _p2, ref int _p3) _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70435,22 +70435,22 @@ public void UgcCancelQuery() public bool UgcIsGetting() { unsafe { - if (fn__ugcIsGetting == null) fn__ugcIsGetting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcIsGetting"); + if (fn__ugcIsGetting == null) fn__ugcIsGetting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcIsGetting"); var success = false; var result = fn__ugcIsGetting(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcHasGetFinished() { unsafe { - if (fn__ugcHasGetFinished == null) fn__ugcHasGetFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasGetFinished"); + if (fn__ugcHasGetFinished == null) fn__ugcHasGetFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasGetFinished"); var success = false; var result = fn__ugcHasGetFinished(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70546,24 +70546,24 @@ public string UgcGetContentUserId(int _p0) public bool _0x584770794D758C18(int _p0, ref int _p1) { unsafe { - if (fn__0x584770794D758C18 == null) fn__0x584770794D758C18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x584770794D758C18"); + if (fn__0x584770794D758C18 == null) fn__0x584770794D758C18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x584770794D758C18"); var success = false; var ref_p1 = _p1; var result = fn__0x584770794D758C18(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x8C8D2739BA44AF0F(int _p0) { unsafe { - if (fn__0x8C8D2739BA44AF0F == null) fn__0x8C8D2739BA44AF0F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8C8D2739BA44AF0F"); + if (fn__0x8C8D2739BA44AF0F == null) fn__0x8C8D2739BA44AF0F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8C8D2739BA44AF0F"); var success = false; var result = fn__0x8C8D2739BA44AF0F(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70581,11 +70581,11 @@ public int UgcGetContentUserName(int _p0) public bool _0xAEAB987727C5A8A4(int _p0) { unsafe { - if (fn__0xAEAB987727C5A8A4 == null) fn__0xAEAB987727C5A8A4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAEAB987727C5A8A4"); + if (fn__0xAEAB987727C5A8A4 == null) fn__0xAEAB987727C5A8A4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAEAB987727C5A8A4"); var success = false; var result = fn__0xAEAB987727C5A8A4(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70687,22 +70687,22 @@ public int UgcGetContentFileVersion(int _p0, int _p1) public bool _0x1D610EB0FEA716D9(int _p0) { unsafe { - if (fn__0x1D610EB0FEA716D9 == null) fn__0x1D610EB0FEA716D9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D610EB0FEA716D9"); + if (fn__0x1D610EB0FEA716D9 == null) fn__0x1D610EB0FEA716D9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D610EB0FEA716D9"); var success = false; var result = fn__0x1D610EB0FEA716D9(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x7FCC39C46C3C03BD(int _p0) { unsafe { - if (fn__0x7FCC39C46C3C03BD == null) fn__0x7FCC39C46C3C03BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7FCC39C46C3C03BD"); + if (fn__0x7FCC39C46C3C03BD == null) fn__0x7FCC39C46C3C03BD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7FCC39C46C3C03BD"); var success = false; var result = fn__0x7FCC39C46C3C03BD(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70720,22 +70720,22 @@ public int UgcGetContentLanguage(int _p0) public bool UgcGetContentIsPublished(int _p0) { unsafe { - if (fn__ugcGetContentIsPublished == null) fn__ugcGetContentIsPublished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentIsPublished"); + if (fn__ugcGetContentIsPublished == null) fn__ugcGetContentIsPublished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentIsPublished"); var success = false; var result = fn__ugcGetContentIsPublished(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetContentIsVerified(int _p0) { unsafe { - if (fn__ugcGetContentIsVerified == null) fn__ugcGetContentIsVerified = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentIsVerified"); + if (fn__ugcGetContentIsVerified == null) fn__ugcGetContentIsVerified = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentIsVerified"); var success = false; var result = fn__ugcGetContentIsVerified(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70786,22 +70786,22 @@ public int UgcGetContentRatingNegativeCount(int _p0, int _p1) public bool UgcGetContentHasPlayerRecord(int _p0) { unsafe { - if (fn__ugcGetContentHasPlayerRecord == null) fn__ugcGetContentHasPlayerRecord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentHasPlayerRecord"); + if (fn__ugcGetContentHasPlayerRecord == null) fn__ugcGetContentHasPlayerRecord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentHasPlayerRecord"); var success = false; var result = fn__ugcGetContentHasPlayerRecord(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcGetContentHasPlayerBookmarked(int _p0) { unsafe { - if (fn__ugcGetContentHasPlayerBookmarked == null) fn__ugcGetContentHasPlayerBookmarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentHasPlayerBookmarked"); + if (fn__ugcGetContentHasPlayerBookmarked == null) fn__ugcGetContentHasPlayerBookmarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcGetContentHasPlayerBookmarked"); var success = false; var result = fn__ugcGetContentHasPlayerBookmarked(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70845,33 +70845,33 @@ public int UgcRequestCachedDescription(int _p0) public bool _0x2D5DC831176D0114(int _p0) { unsafe { - if (fn__0x2D5DC831176D0114 == null) fn__0x2D5DC831176D0114 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2D5DC831176D0114"); + if (fn__0x2D5DC831176D0114 == null) fn__0x2D5DC831176D0114 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2D5DC831176D0114"); var success = false; var result = fn__0x2D5DC831176D0114(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xEBFA8D50ADDC54C4(int _p0) { unsafe { - if (fn__0xEBFA8D50ADDC54C4 == null) fn__0xEBFA8D50ADDC54C4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEBFA8D50ADDC54C4"); + if (fn__0xEBFA8D50ADDC54C4 == null) fn__0xEBFA8D50ADDC54C4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEBFA8D50ADDC54C4"); var success = false; var result = fn__0xEBFA8D50ADDC54C4(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x162C23CA83ED0A62(int _p0) { unsafe { - if (fn__0x162C23CA83ED0A62 == null) fn__0x162C23CA83ED0A62 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x162C23CA83ED0A62"); + if (fn__0x162C23CA83ED0A62 == null) fn__0x162C23CA83ED0A62 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x162C23CA83ED0A62"); var success = false; var result = fn__0x162C23CA83ED0A62(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70889,11 +70889,11 @@ public int UgcGetCachedDescription(int _p0, int _p1) public bool _0x5A34CD9C3C5BEC44(int _p0) { unsafe { - if (fn__0x5A34CD9C3C5BEC44 == null) fn__0x5A34CD9C3C5BEC44 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5A34CD9C3C5BEC44"); + if (fn__0x5A34CD9C3C5BEC44 == null) fn__0x5A34CD9C3C5BEC44 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5A34CD9C3C5BEC44"); var success = false; var result = fn__0x5A34CD9C3C5BEC44(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70910,7 +70910,7 @@ public void _0x68103E2247887242() public bool UgcPublish(string _contentId, string _baseContentId, string _contentTypeName) { unsafe { - if (fn__ugcPublish == null) fn__ugcPublish = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcPublish"); + if (fn__ugcPublish == null) fn__ugcPublish = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcPublish"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_baseContentId = MemoryUtils.StringToHGlobalUtf8(_baseContentId); @@ -70920,37 +70920,37 @@ public bool UgcPublish(string _contentId, string _baseContentId, string _content Marshal.FreeHGlobal(ptr_baseContentId); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcSetBookmarked(string _contentId, bool _bookmarked, string _contentTypeName) { unsafe { - if (fn__ugcSetBookmarked == null) fn__ugcSetBookmarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetBookmarked"); + if (fn__ugcSetBookmarked == null) fn__ugcSetBookmarked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetBookmarked"); var success = false; var ptr_contentId = MemoryUtils.StringToHGlobalUtf8(_contentId); var ptr_contentTypeName = MemoryUtils.StringToHGlobalUtf8(_contentTypeName); - var result = fn__ugcSetBookmarked(&success, ptr_contentId, _bookmarked, ptr_contentTypeName); + var result = fn__ugcSetBookmarked(&success, ptr_contentId, (byte) (_bookmarked ? 1 : 0), ptr_contentTypeName); Marshal.FreeHGlobal(ptr_contentId); Marshal.FreeHGlobal(ptr_contentTypeName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool UgcSetDeleted(ref int _p0, bool _p1, string _p2) { unsafe { - if (fn__ugcSetDeleted == null) fn__ugcSetDeleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetDeleted"); + if (fn__ugcSetDeleted == null) fn__ugcSetDeleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetDeleted"); var success = false; var ref_p0 = _p0; var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); - var result = fn__ugcSetDeleted(&success, &ref_p0, _p1, ptr_p2); + var result = fn__ugcSetDeleted(&success, &ref_p0, (byte) (_p1 ? 1 : 0), ptr_p2); _p0 = ref_p0; Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -70968,11 +70968,11 @@ public int _0x45E816772E93A9DB() public bool UgcHasModifyFinished() { unsafe { - if (fn__ugcHasModifyFinished == null) fn__ugcHasModifyFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasModifyFinished"); + if (fn__ugcHasModifyFinished == null) fn__ugcHasModifyFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcHasModifyFinished"); var success = false; var result = fn__ugcHasModifyFinished(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71011,7 +71011,7 @@ public void UgcClearModifyResult() public bool _0xB746D20B17F2A229(ref int _p0, ref int _p1) { unsafe { - if (fn__0xB746D20B17F2A229 == null) fn__0xB746D20B17F2A229 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB746D20B17F2A229"); + if (fn__0xB746D20B17F2A229 == null) fn__0xB746D20B17F2A229 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB746D20B17F2A229"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -71019,7 +71019,7 @@ public bool _0xB746D20B17F2A229(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71059,11 +71059,11 @@ public int UgcGetCreatorNum() public bool UgcPoliciesMakePrivate(int _p0) { unsafe { - if (fn__ugcPoliciesMakePrivate == null) fn__ugcPoliciesMakePrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcPoliciesMakePrivate"); + if (fn__ugcPoliciesMakePrivate == null) fn__ugcPoliciesMakePrivate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcPoliciesMakePrivate"); var success = false; var result = fn__ugcPoliciesMakePrivate(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71080,9 +71080,9 @@ public void UgcClearOfflineQuery() public void UgcSetQueryDataFromOffline(bool _p0) { unsafe { - if (fn__ugcSetQueryDataFromOffline == null) fn__ugcSetQueryDataFromOffline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetQueryDataFromOffline"); + if (fn__ugcSetQueryDataFromOffline == null) fn__ugcSetQueryDataFromOffline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcSetQueryDataFromOffline"); var success = false; - fn__ugcSetQueryDataFromOffline(&success, _p0); + fn__ugcSetQueryDataFromOffline(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71090,9 +71090,9 @@ public void UgcSetQueryDataFromOffline(bool _p0) public void _0xFD75DABC0957BF33(bool _p0) { unsafe { - if (fn__0xFD75DABC0957BF33 == null) fn__0xFD75DABC0957BF33 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFD75DABC0957BF33"); + if (fn__0xFD75DABC0957BF33 == null) fn__0xFD75DABC0957BF33 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFD75DABC0957BF33"); var success = false; - fn__0xFD75DABC0957BF33(&success, _p0); + fn__0xFD75DABC0957BF33(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71100,91 +71100,91 @@ public void _0xFD75DABC0957BF33(bool _p0) public bool UgcIsLanguageSupported(int _p0) { unsafe { - if (fn__ugcIsLanguageSupported == null) fn__ugcIsLanguageSupported = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcIsLanguageSupported"); + if (fn__ugcIsLanguageSupported == null) fn__ugcIsLanguageSupported = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcIsLanguageSupported"); var success = false; var result = fn__ugcIsLanguageSupported(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookSetHeistComplete(string _heistName, int _cashEarned, int _xpEarned) { unsafe { - if (fn__facebookSetHeistComplete == null) fn__facebookSetHeistComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetHeistComplete"); + if (fn__facebookSetHeistComplete == null) fn__facebookSetHeistComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetHeistComplete"); var success = false; var ptr_heistName = MemoryUtils.StringToHGlobalUtf8(_heistName); var result = fn__facebookSetHeistComplete(&success, ptr_heistName, _cashEarned, _xpEarned); Marshal.FreeHGlobal(ptr_heistName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookSetCreateCharacterComplete() { unsafe { - if (fn__facebookSetCreateCharacterComplete == null) fn__facebookSetCreateCharacterComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetCreateCharacterComplete"); + if (fn__facebookSetCreateCharacterComplete == null) fn__facebookSetCreateCharacterComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetCreateCharacterComplete"); var success = false; var result = fn__facebookSetCreateCharacterComplete(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookSetMilestoneComplete(int _milestoneId) { unsafe { - if (fn__facebookSetMilestoneComplete == null) fn__facebookSetMilestoneComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetMilestoneComplete"); + if (fn__facebookSetMilestoneComplete == null) fn__facebookSetMilestoneComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookSetMilestoneComplete"); var success = false; var result = fn__facebookSetMilestoneComplete(&success, _milestoneId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookIsSendingData() { unsafe { - if (fn__facebookIsSendingData == null) fn__facebookIsSendingData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookIsSendingData"); + if (fn__facebookIsSendingData == null) fn__facebookIsSendingData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookIsSendingData"); var success = false; var result = fn__facebookIsSendingData(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookDoUnkCheck() { unsafe { - if (fn__facebookDoUnkCheck == null) fn__facebookDoUnkCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookDoUnkCheck"); + if (fn__facebookDoUnkCheck == null) fn__facebookDoUnkCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookDoUnkCheck"); var success = false; var result = fn__facebookDoUnkCheck(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool FacebookIsAvailable() { unsafe { - if (fn__facebookIsAvailable == null) fn__facebookIsAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookIsAvailable"); + if (fn__facebookIsAvailable == null) fn__facebookIsAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_facebookIsAvailable"); var success = false; var result = fn__facebookIsAvailable(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int TextureDownloadRequest(ref int _gamerHandle, string _filePath, string _name, bool _p3) { unsafe { - if (fn__textureDownloadRequest == null) fn__textureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_textureDownloadRequest"); + if (fn__textureDownloadRequest == null) fn__textureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_textureDownloadRequest"); var success = false; var ref_gamerHandle = _gamerHandle; var ptr_filePath = MemoryUtils.StringToHGlobalUtf8(_filePath); var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - var result = fn__textureDownloadRequest(&success, &ref_gamerHandle, ptr_filePath, ptr_name, _p3); + var result = fn__textureDownloadRequest(&success, &ref_gamerHandle, ptr_filePath, ptr_name, (byte) (_p3 ? 1 : 0)); _gamerHandle = ref_gamerHandle; Marshal.FreeHGlobal(ptr_filePath); Marshal.FreeHGlobal(ptr_name); @@ -71196,11 +71196,11 @@ public int TextureDownloadRequest(ref int _gamerHandle, string _filePath, string public int TitleTextureDownloadRequest(string _filePath, string _name, bool _p2) { unsafe { - if (fn__titleTextureDownloadRequest == null) fn__titleTextureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_titleTextureDownloadRequest"); + if (fn__titleTextureDownloadRequest == null) fn__titleTextureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_titleTextureDownloadRequest"); var success = false; var ptr_filePath = MemoryUtils.StringToHGlobalUtf8(_filePath); var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - var result = fn__titleTextureDownloadRequest(&success, ptr_filePath, ptr_name, _p2); + var result = fn__titleTextureDownloadRequest(&success, ptr_filePath, ptr_name, (byte) (_p2 ? 1 : 0)); Marshal.FreeHGlobal(ptr_filePath); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); @@ -71211,11 +71211,11 @@ public int TitleTextureDownloadRequest(string _filePath, string _name, bool _p2) public int UgcTextureDownloadRequest(string _p0, int _p1, int _p2, int _p3, string _p4, bool _p5) { unsafe { - if (fn__ugcTextureDownloadRequest == null) fn__ugcTextureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcTextureDownloadRequest"); + if (fn__ugcTextureDownloadRequest == null) fn__ugcTextureDownloadRequest = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ugcTextureDownloadRequest"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ptr_p4 = MemoryUtils.StringToHGlobalUtf8(_p4); - var result = fn__ugcTextureDownloadRequest(&success, ptr_p0, _p1, _p2, _p3, ptr_p4, _p5); + var result = fn__ugcTextureDownloadRequest(&success, ptr_p0, _p1, _p2, _p3, ptr_p4, (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p0); Marshal.FreeHGlobal(ptr_p4); if (!success) throw new Exception("Native execution failed"); @@ -71236,11 +71236,11 @@ public void TextureDownloadRelease(int _p0) public bool TextureDownloadHasFailed(int _p0) { unsafe { - if (fn__textureDownloadHasFailed == null) fn__textureDownloadHasFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_textureDownloadHasFailed"); + if (fn__textureDownloadHasFailed == null) fn__textureDownloadHasFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_textureDownloadHasFailed"); var success = false; var result = fn__textureDownloadHasFailed(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71271,117 +71271,117 @@ public int GetStatusOfTextureDownload(int _p0) public bool _0x60EDD13EB3AC1FF3() { unsafe { - if (fn__0x60EDD13EB3AC1FF3 == null) fn__0x60EDD13EB3AC1FF3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x60EDD13EB3AC1FF3"); + if (fn__0x60EDD13EB3AC1FF3 == null) fn__0x60EDD13EB3AC1FF3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x60EDD13EB3AC1FF3"); var success = false; var result = fn__0x60EDD13EB3AC1FF3(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkShouldShowConnectivityTroubleshooting() { unsafe { - if (fn__networkShouldShowConnectivityTroubleshooting == null) fn__networkShouldShowConnectivityTroubleshooting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkShouldShowConnectivityTroubleshooting"); + if (fn__networkShouldShowConnectivityTroubleshooting == null) fn__networkShouldShowConnectivityTroubleshooting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkShouldShowConnectivityTroubleshooting"); var success = false; var result = fn__networkShouldShowConnectivityTroubleshooting(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkIsCableConnected() { unsafe { - if (fn__networkIsCableConnected == null) fn__networkIsCableConnected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCableConnected"); + if (fn__networkIsCableConnected == null) fn__networkIsCableConnected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsCableConnected"); var success = false; var result = fn__networkIsCableConnected(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetRosPrivilege9() { unsafe { - if (fn__networkGetRosPrivilege9 == null) fn__networkGetRosPrivilege9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege9"); + if (fn__networkGetRosPrivilege9 == null) fn__networkGetRosPrivilege9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege9"); var success = false; var result = fn__networkGetRosPrivilege9(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveRosSocialClubPriv() { unsafe { - if (fn__networkHaveRosSocialClubPriv == null) fn__networkHaveRosSocialClubPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosSocialClubPriv"); + if (fn__networkHaveRosSocialClubPriv == null) fn__networkHaveRosSocialClubPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosSocialClubPriv"); var success = false; var result = fn__networkHaveRosSocialClubPriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveRosBannedPriv() { unsafe { - if (fn__networkHaveRosBannedPriv == null) fn__networkHaveRosBannedPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosBannedPriv"); + if (fn__networkHaveRosBannedPriv == null) fn__networkHaveRosBannedPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosBannedPriv"); var success = false; var result = fn__networkHaveRosBannedPriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveRosCreateTicketPriv() { unsafe { - if (fn__networkHaveRosCreateTicketPriv == null) fn__networkHaveRosCreateTicketPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosCreateTicketPriv"); + if (fn__networkHaveRosCreateTicketPriv == null) fn__networkHaveRosCreateTicketPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosCreateTicketPriv"); var success = false; var result = fn__networkHaveRosCreateTicketPriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveRosMultiplayerPriv() { unsafe { - if (fn__networkHaveRosMultiplayerPriv == null) fn__networkHaveRosMultiplayerPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosMultiplayerPriv"); + if (fn__networkHaveRosMultiplayerPriv == null) fn__networkHaveRosMultiplayerPriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosMultiplayerPriv"); var success = false; var result = fn__networkHaveRosMultiplayerPriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHaveRosLeaderboardWritePriv() { unsafe { - if (fn__networkHaveRosLeaderboardWritePriv == null) fn__networkHaveRosLeaderboardWritePriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosLeaderboardWritePriv"); + if (fn__networkHaveRosLeaderboardWritePriv == null) fn__networkHaveRosLeaderboardWritePriv = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHaveRosLeaderboardWritePriv"); var success = false; var result = fn__networkHaveRosLeaderboardWritePriv(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasRosPrivilege(int _index) { unsafe { - if (fn__networkHasRosPrivilege == null) fn__networkHasRosPrivilege = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasRosPrivilege"); + if (fn__networkHasRosPrivilege == null) fn__networkHasRosPrivilege = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasRosPrivilege"); var success = false; var result = fn__networkHasRosPrivilege(&success, _index); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkHasRosPrivilegeEndDate(int _privilege, ref int _banType, ref int _timeData) { unsafe { - if (fn__networkHasRosPrivilegeEndDate == null) fn__networkHasRosPrivilegeEndDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasRosPrivilegeEndDate"); + if (fn__networkHasRosPrivilegeEndDate == null) fn__networkHasRosPrivilegeEndDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasRosPrivilegeEndDate"); var success = false; var ref_banType = _banType; var ref_timeData = _timeData; @@ -71389,29 +71389,29 @@ public bool NetworkHasRosPrivilegeEndDate(int _privilege, ref int _banType, ref _banType = ref_banType; _timeData = ref_timeData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetRosPrivilege24() { unsafe { - if (fn__networkGetRosPrivilege24 == null) fn__networkGetRosPrivilege24 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege24"); + if (fn__networkGetRosPrivilege24 == null) fn__networkGetRosPrivilege24 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege24"); var success = false; var result = fn__networkGetRosPrivilege24(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NetworkGetRosPrivilege25() { unsafe { - if (fn__networkGetRosPrivilege25 == null) fn__networkGetRosPrivilege25 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege25"); + if (fn__networkGetRosPrivilege25 == null) fn__networkGetRosPrivilege25 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkGetRosPrivilege25"); var success = false; var result = fn__networkGetRosPrivilege25(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71462,11 +71462,11 @@ public void _0xCA59CCAE5D01E4CE() public bool NetworkHasGameBeenAltered() { unsafe { - if (fn__networkHasGameBeenAltered == null) fn__networkHasGameBeenAltered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasGameBeenAltered"); + if (fn__networkHasGameBeenAltered == null) fn__networkHasGameBeenAltered = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkHasGameBeenAltered"); var success = false; var result = fn__networkHasGameBeenAltered(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71483,9 +71483,9 @@ public void NetworkUpdatePlayerScars() public void NetworkDisableLeaveRemotePedBehind(bool _toggle) { unsafe { - if (fn__networkDisableLeaveRemotePedBehind == null) fn__networkDisableLeaveRemotePedBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDisableLeaveRemotePedBehind"); + if (fn__networkDisableLeaveRemotePedBehind == null) fn__networkDisableLeaveRemotePedBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkDisableLeaveRemotePedBehind"); var success = false; - fn__networkDisableLeaveRemotePedBehind(&success, _toggle); + fn__networkDisableLeaveRemotePedBehind(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71494,9 +71494,9 @@ public void NetworkDisableLeaveRemotePedBehind(bool _toggle) public void NetworkAllowLocalEntityAttachment(int _entity, bool _toggle) { unsafe { - if (fn__networkAllowLocalEntityAttachment == null) fn__networkAllowLocalEntityAttachment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAllowLocalEntityAttachment"); + if (fn__networkAllowLocalEntityAttachment == null) fn__networkAllowLocalEntityAttachment = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkAllowLocalEntityAttachment"); var success = false; - fn__networkAllowLocalEntityAttachment(&success, _entity, _toggle); + fn__networkAllowLocalEntityAttachment(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71547,11 +71547,11 @@ public void _0x45A83257ED02D9BC() public bool NetworkIsConnectionEndpointRelayServer(int _player) { unsafe { - if (fn__networkIsConnectionEndpointRelayServer == null) fn__networkIsConnectionEndpointRelayServer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsConnectionEndpointRelayServer"); + if (fn__networkIsConnectionEndpointRelayServer == null) fn__networkIsConnectionEndpointRelayServer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkIsConnectionEndpointRelayServer"); var success = false; var result = fn__networkIsConnectionEndpointRelayServer(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71743,9 +71743,9 @@ public void NetworkUgcNav(int _p0, int _p1) public int CreateObject(uint _modelHash, float _x, float _y, float _z, bool _isNetwork, bool _bScriptHostObj, bool _dynamic) { unsafe { - if (fn__createObject == null) fn__createObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createObject"); + if (fn__createObject == null) fn__createObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createObject"); var success = false; - var result = fn__createObject(&success, _modelHash, _x, _y, _z, _isNetwork, _bScriptHostObj, _dynamic); + var result = fn__createObject(&success, _modelHash, _x, _y, _z, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostObj ? 1 : 0), (byte) (_dynamic ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -71754,9 +71754,9 @@ public int CreateObject(uint _modelHash, float _x, float _y, float _z, bool _isN public int CreateObjectNoOffset(uint _modelHash, float _x, float _y, float _z, bool _isNetwork, bool _bScriptHostObj, bool _dynamic) { unsafe { - if (fn__createObjectNoOffset == null) fn__createObjectNoOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createObjectNoOffset"); + if (fn__createObjectNoOffset == null) fn__createObjectNoOffset = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createObjectNoOffset"); var success = false; - var result = fn__createObjectNoOffset(&success, _modelHash, _x, _y, _z, _isNetwork, _bScriptHostObj, _dynamic); + var result = fn__createObjectNoOffset(&success, _modelHash, _x, _y, _z, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostObj ? 1 : 0), (byte) (_dynamic ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -71777,53 +71777,53 @@ public void DeleteObject(ref int _object) public bool PlaceObjectOnGroundProperly(int _object) { unsafe { - if (fn__placeObjectOnGroundProperly == null) fn__placeObjectOnGroundProperly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_placeObjectOnGroundProperly"); + if (fn__placeObjectOnGroundProperly == null) fn__placeObjectOnGroundProperly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_placeObjectOnGroundProperly"); var success = false; var result = fn__placeObjectOnGroundProperly(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool PlaceObjectOnGroundProperly2(int _object) { unsafe { - if (fn__placeObjectOnGroundProperly2 == null) fn__placeObjectOnGroundProperly2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_placeObjectOnGroundProperly2"); + if (fn__placeObjectOnGroundProperly2 == null) fn__placeObjectOnGroundProperly2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_placeObjectOnGroundProperly2"); var success = false; var result = fn__placeObjectOnGroundProperly2(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xAFE24E4D29249E4A(int _object, float _p1, float _p2, bool _p3) { unsafe { - if (fn__0xAFE24E4D29249E4A == null) fn__0xAFE24E4D29249E4A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAFE24E4D29249E4A"); + if (fn__0xAFE24E4D29249E4A == null) fn__0xAFE24E4D29249E4A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAFE24E4D29249E4A"); var success = false; - var result = fn__0xAFE24E4D29249E4A(&success, _object, _p1, _p2, _p3); + var result = fn__0xAFE24E4D29249E4A(&success, _object, _p1, _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SlideObject(int _object, float _toX, float _toY, float _toZ, float _speedX, float _speedY, float _speedZ, bool _collision) { unsafe { - if (fn__slideObject == null) fn__slideObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_slideObject"); + if (fn__slideObject == null) fn__slideObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_slideObject"); var success = false; - var result = fn__slideObject(&success, _object, _toX, _toY, _toZ, _speedX, _speedY, _speedZ, _collision); + var result = fn__slideObject(&success, _object, _toX, _toY, _toZ, _speedX, _speedY, _speedZ, (byte) (_collision ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetObjectTargettable(int _object, bool _targettable) { unsafe { - if (fn__setObjectTargettable == null) fn__setObjectTargettable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectTargettable"); + if (fn__setObjectTargettable == null) fn__setObjectTargettable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectTargettable"); var success = false; - fn__setObjectTargettable(&success, _object, _targettable); + fn__setObjectTargettable(&success, _object, (byte) (_targettable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71831,9 +71831,9 @@ public void SetObjectTargettable(int _object, bool _targettable) public void SetObjectForceVehiclesToAvoid(int _object, bool _toggle) { unsafe { - if (fn__setObjectForceVehiclesToAvoid == null) fn__setObjectForceVehiclesToAvoid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectForceVehiclesToAvoid"); + if (fn__setObjectForceVehiclesToAvoid == null) fn__setObjectForceVehiclesToAvoid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectForceVehiclesToAvoid"); var success = false; - fn__setObjectForceVehiclesToAvoid(&success, _object, _toggle); + fn__setObjectForceVehiclesToAvoid(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71841,9 +71841,9 @@ public void SetObjectForceVehiclesToAvoid(int _object, bool _toggle) public int GetClosestObjectOfType(float _x, float _y, float _z, float _radius, uint _modelHash, bool _isMission, bool _p6, bool _p7) { unsafe { - if (fn__getClosestObjectOfType == null) fn__getClosestObjectOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestObjectOfType"); + if (fn__getClosestObjectOfType == null) fn__getClosestObjectOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestObjectOfType"); var success = false; - var result = fn__getClosestObjectOfType(&success, _x, _y, _z, _radius, _modelHash, _isMission, _p6, _p7); + var result = fn__getClosestObjectOfType(&success, _x, _y, _z, _radius, _modelHash, (byte) (_isMission ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -71852,33 +71852,33 @@ public int GetClosestObjectOfType(float _x, float _y, float _z, float _radius, u public bool HasObjectBeenBroken(int _object, int _p1) { unsafe { - if (fn__hasObjectBeenBroken == null) fn__hasObjectBeenBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasObjectBeenBroken"); + if (fn__hasObjectBeenBroken == null) fn__hasObjectBeenBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasObjectBeenBroken"); var success = false; var result = fn__hasObjectBeenBroken(&success, _object, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasClosestObjectOfTypeBeenBroken(float _p0, float _p1, float _p2, float _p3, uint _modelHash, int _p5) { unsafe { - if (fn__hasClosestObjectOfTypeBeenBroken == null) fn__hasClosestObjectOfTypeBeenBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClosestObjectOfTypeBeenBroken"); + if (fn__hasClosestObjectOfTypeBeenBroken == null) fn__hasClosestObjectOfTypeBeenBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClosestObjectOfTypeBeenBroken"); var success = false; var result = fn__hasClosestObjectOfTypeBeenBroken(&success, _p0, _p1, _p2, _p3, _modelHash, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasClosestObjectOfTypeBeenCompletelyDestroyed(float _x, float _y, float _z, float _radius, uint _modelHash, bool _p5) { unsafe { - if (fn__hasClosestObjectOfTypeBeenCompletelyDestroyed == null) fn__hasClosestObjectOfTypeBeenCompletelyDestroyed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClosestObjectOfTypeBeenCompletelyDestroyed"); + if (fn__hasClosestObjectOfTypeBeenCompletelyDestroyed == null) fn__hasClosestObjectOfTypeBeenCompletelyDestroyed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClosestObjectOfTypeBeenCompletelyDestroyed"); var success = false; - var result = fn__hasClosestObjectOfTypeBeenCompletelyDestroyed(&success, _x, _y, _z, _radius, _modelHash, _p5); + var result = fn__hasClosestObjectOfTypeBeenCompletelyDestroyed(&success, _x, _y, _z, _radius, _modelHash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -71922,9 +71922,9 @@ public int GetCoordsAndRotationOfClosestObjectOfType(float _x, float _y, float _ public void SetStateOfClosestDoorOfType(uint _type, float _x, float _y, float _z, bool _locked, float _heading, bool _p6) { unsafe { - if (fn__setStateOfClosestDoorOfType == null) fn__setStateOfClosestDoorOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStateOfClosestDoorOfType"); + if (fn__setStateOfClosestDoorOfType == null) fn__setStateOfClosestDoorOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStateOfClosestDoorOfType"); var success = false; - fn__setStateOfClosestDoorOfType(&success, _type, _x, _y, _z, _locked, _heading, _p6); + fn__setStateOfClosestDoorOfType(&success, _type, _x, _y, _z, (byte) (_locked ? 1 : 0), _heading, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71932,12 +71932,12 @@ public void SetStateOfClosestDoorOfType(uint _type, float _x, float _y, float _z public void GetStateOfClosestDoorOfType(uint _type, float _x, float _y, float _z, ref bool _locked, ref float _heading) { unsafe { - if (fn__getStateOfClosestDoorOfType == null) fn__getStateOfClosestDoorOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getStateOfClosestDoorOfType"); + if (fn__getStateOfClosestDoorOfType == null) fn__getStateOfClosestDoorOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getStateOfClosestDoorOfType"); var success = false; - var ref_locked = _locked; + var ref_locked = (byte) (_locked ? 1 : 0); var ref_heading = _heading; fn__getStateOfClosestDoorOfType(&success, _type, _x, _y, _z, &ref_locked, &ref_heading); - _locked = ref_locked; + _locked = ref_locked == 0 ? false : true; _heading = ref_heading; if (!success) throw new Exception("Native execution failed"); } @@ -71946,9 +71946,9 @@ public void GetStateOfClosestDoorOfType(uint _type, float _x, float _y, float _z public void DoorControl(uint _modelHash, float _x, float _y, float _z, bool _locked, float _xRotMult, float _yRotMult, float _zRotMult) { unsafe { - if (fn__doorControl == null) fn__doorControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorControl"); + if (fn__doorControl == null) fn__doorControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorControl"); var success = false; - fn__doorControl(&success, _modelHash, _x, _y, _z, _locked, _xRotMult, _yRotMult, _zRotMult); + fn__doorControl(&success, _modelHash, _x, _y, _z, (byte) (_locked ? 1 : 0), _xRotMult, _yRotMult, _zRotMult); if (!success) throw new Exception("Native execution failed"); } } @@ -71966,9 +71966,9 @@ public void _0x006E4B040ED37EC3(int _p0) public void AddDoorToSystem(uint _doorHash, uint _modelHash, float _x, float _y, float _z, bool _p5, bool _scriptDoor, bool _isLocal) { unsafe { - if (fn__addDoorToSystem == null) fn__addDoorToSystem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addDoorToSystem"); + if (fn__addDoorToSystem == null) fn__addDoorToSystem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addDoorToSystem"); var success = false; - fn__addDoorToSystem(&success, _doorHash, _modelHash, _x, _y, _z, _p5, _scriptDoor, _isLocal); + fn__addDoorToSystem(&success, _doorHash, _modelHash, _x, _y, _z, (byte) (_p5 ? 1 : 0), (byte) (_scriptDoor ? 1 : 0), (byte) (_isLocal ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -71986,9 +71986,9 @@ public void RemoveDoorFromSystem(uint _doorHash) public void DoorSystemSetDoorState(uint _doorHash, int _state, bool _requestDoor, bool _forceUpdate) { unsafe { - if (fn__doorSystemSetDoorState == null) fn__doorSystemSetDoorState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetDoorState"); + if (fn__doorSystemSetDoorState == null) fn__doorSystemSetDoorState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetDoorState"); var success = false; - fn__doorSystemSetDoorState(&success, _doorHash, _state, _requestDoor, _forceUpdate); + fn__doorSystemSetDoorState(&success, _doorHash, _state, (byte) (_requestDoor ? 1 : 0), (byte) (_forceUpdate ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72018,9 +72018,9 @@ public int DoorSystemGetDoorPendingState(uint _doorHash) public void DoorSystemSetAutomaticRate(uint _doorHash, float _rate, bool _requestDoor, bool _forceUpdate) { unsafe { - if (fn__doorSystemSetAutomaticRate == null) fn__doorSystemSetAutomaticRate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetAutomaticRate"); + if (fn__doorSystemSetAutomaticRate == null) fn__doorSystemSetAutomaticRate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetAutomaticRate"); var success = false; - fn__doorSystemSetAutomaticRate(&success, _doorHash, _rate, _requestDoor, _forceUpdate); + fn__doorSystemSetAutomaticRate(&success, _doorHash, _rate, (byte) (_requestDoor ? 1 : 0), (byte) (_forceUpdate ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72028,9 +72028,9 @@ public void DoorSystemSetAutomaticRate(uint _doorHash, float _rate, bool _reques public void DoorSystemSetAutomaticDistance(uint _doorHash, float _distance, bool _requestDoor, bool _forceUpdate) { unsafe { - if (fn__doorSystemSetAutomaticDistance == null) fn__doorSystemSetAutomaticDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetAutomaticDistance"); + if (fn__doorSystemSetAutomaticDistance == null) fn__doorSystemSetAutomaticDistance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetAutomaticDistance"); var success = false; - fn__doorSystemSetAutomaticDistance(&success, _doorHash, _distance, _requestDoor, _forceUpdate); + fn__doorSystemSetAutomaticDistance(&success, _doorHash, _distance, (byte) (_requestDoor ? 1 : 0), (byte) (_forceUpdate ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72038,9 +72038,9 @@ public void DoorSystemSetAutomaticDistance(uint _doorHash, float _distance, bool public void DoorSystemSetOpenRatio(uint _doorHash, float _ajar, bool _requestDoor, bool _forceUpdate) { unsafe { - if (fn__doorSystemSetOpenRatio == null) fn__doorSystemSetOpenRatio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetOpenRatio"); + if (fn__doorSystemSetOpenRatio == null) fn__doorSystemSetOpenRatio = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetOpenRatio"); var success = false; - fn__doorSystemSetOpenRatio(&success, _doorHash, _ajar, _requestDoor, _forceUpdate); + fn__doorSystemSetOpenRatio(&success, _doorHash, _ajar, (byte) (_requestDoor ? 1 : 0), (byte) (_forceUpdate ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72070,9 +72070,9 @@ public float DoorSystemGetOpenRatio(uint _doorHash) public void DoorSystemSetSpringRemoved(uint _doorHash, bool _removed, bool _requestDoor, bool _forceUpdate) { unsafe { - if (fn__doorSystemSetSpringRemoved == null) fn__doorSystemSetSpringRemoved = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetSpringRemoved"); + if (fn__doorSystemSetSpringRemoved == null) fn__doorSystemSetSpringRemoved = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetSpringRemoved"); var success = false; - fn__doorSystemSetSpringRemoved(&success, _doorHash, _removed, _requestDoor, _forceUpdate); + fn__doorSystemSetSpringRemoved(&success, _doorHash, (byte) (_removed ? 1 : 0), (byte) (_requestDoor ? 1 : 0), (byte) (_forceUpdate ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72080,9 +72080,9 @@ public void DoorSystemSetSpringRemoved(uint _doorHash, bool _removed, bool _requ public void DoorSystemSetHoldOpen(uint _doorHash, bool _toggle) { unsafe { - if (fn__doorSystemSetHoldOpen == null) fn__doorSystemSetHoldOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetHoldOpen"); + if (fn__doorSystemSetHoldOpen == null) fn__doorSystemSetHoldOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemSetHoldOpen"); var success = false; - fn__doorSystemSetHoldOpen(&success, _doorHash, _toggle); + fn__doorSystemSetHoldOpen(&success, _doorHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72090,9 +72090,9 @@ public void DoorSystemSetHoldOpen(uint _doorHash, bool _toggle) public void _0xA85A21582451E951(uint _doorHash, bool _p1) { unsafe { - if (fn__0xA85A21582451E951 == null) fn__0xA85A21582451E951 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA85A21582451E951"); + if (fn__0xA85A21582451E951 == null) fn__0xA85A21582451E951 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA85A21582451E951"); var success = false; - fn__0xA85A21582451E951(&success, _doorHash, _p1); + fn__0xA85A21582451E951(&success, _doorHash, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72100,31 +72100,31 @@ public void _0xA85A21582451E951(uint _doorHash, bool _p1) public bool IsDoorRegisteredWithSystem(uint _doorHash) { unsafe { - if (fn__isDoorRegisteredWithSystem == null) fn__isDoorRegisteredWithSystem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDoorRegisteredWithSystem"); + if (fn__isDoorRegisteredWithSystem == null) fn__isDoorRegisteredWithSystem = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDoorRegisteredWithSystem"); var success = false; var result = fn__isDoorRegisteredWithSystem(&success, _doorHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDoorClosed(uint _doorHash) { unsafe { - if (fn__isDoorClosed == null) fn__isDoorClosed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDoorClosed"); + if (fn__isDoorClosed == null) fn__isDoorClosed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDoorClosed"); var success = false; var result = fn__isDoorClosed(&success, _doorHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xC7F29CA00F46350E(bool _p0) { unsafe { - if (fn__0xC7F29CA00F46350E == null) fn__0xC7F29CA00F46350E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC7F29CA00F46350E"); + if (fn__0xC7F29CA00F46350E == null) fn__0xC7F29CA00F46350E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC7F29CA00F46350E"); var success = false; - fn__0xC7F29CA00F46350E(&success, _p0); + fn__0xC7F29CA00F46350E(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72142,35 +72142,35 @@ public void _0x701FDA1E82076BA4() public bool DoorSystemGetIsPhysicsLoaded(int _p0) { unsafe { - if (fn__doorSystemGetIsPhysicsLoaded == null) fn__doorSystemGetIsPhysicsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemGetIsPhysicsLoaded"); + if (fn__doorSystemGetIsPhysicsLoaded == null) fn__doorSystemGetIsPhysicsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemGetIsPhysicsLoaded"); var success = false; var result = fn__doorSystemGetIsPhysicsLoaded(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoorSystemFindExistingDoor(float _x, float _y, float _z, uint _modelHash, ref uint _outDoorHash) { unsafe { - if (fn__doorSystemFindExistingDoor == null) fn__doorSystemFindExistingDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemFindExistingDoor"); + if (fn__doorSystemFindExistingDoor == null) fn__doorSystemFindExistingDoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doorSystemFindExistingDoor"); var success = false; var ref_outDoorHash = _outDoorHash; var result = fn__doorSystemFindExistingDoor(&success, _x, _y, _z, _modelHash, &ref_outDoorHash); _outDoorHash = ref_outDoorHash; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsGarageEmpty(uint _garageHash, bool _p1, int _p2) { unsafe { - if (fn__isGarageEmpty == null) fn__isGarageEmpty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGarageEmpty"); + if (fn__isGarageEmpty == null) fn__isGarageEmpty = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isGarageEmpty"); var success = false; - var result = fn__isGarageEmpty(&success, _garageHash, _p1, _p2); + var result = fn__isGarageEmpty(&success, _garageHash, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72178,11 +72178,11 @@ public bool IsGarageEmpty(uint _garageHash, bool _p1, int _p2) public bool IsPlayerEntirelyInsideGarage(uint _garageHash, int _player, float _p2, int _p3) { unsafe { - if (fn__isPlayerEntirelyInsideGarage == null) fn__isPlayerEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerEntirelyInsideGarage"); + if (fn__isPlayerEntirelyInsideGarage == null) fn__isPlayerEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerEntirelyInsideGarage"); var success = false; var result = fn__isPlayerEntirelyInsideGarage(&success, _garageHash, _player, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72190,33 +72190,33 @@ public bool IsPlayerEntirelyInsideGarage(uint _garageHash, int _player, float _p public bool IsPlayerPartiallyInsideGarage(uint _garageHash, int _player, int _p2) { unsafe { - if (fn__isPlayerPartiallyInsideGarage == null) fn__isPlayerPartiallyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPartiallyInsideGarage"); + if (fn__isPlayerPartiallyInsideGarage == null) fn__isPlayerPartiallyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPartiallyInsideGarage"); var success = false; var result = fn__isPlayerPartiallyInsideGarage(&success, _garageHash, _player, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool AreEntitiesEntirelyInsideGarage(uint _garageHash, bool _p1, bool _p2, bool _p3, int _p4) { unsafe { - if (fn__areEntitiesEntirelyInsideGarage == null) fn__areEntitiesEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areEntitiesEntirelyInsideGarage"); + if (fn__areEntitiesEntirelyInsideGarage == null) fn__areEntitiesEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areEntitiesEntirelyInsideGarage"); var success = false; - var result = fn__areEntitiesEntirelyInsideGarage(&success, _garageHash, _p1, _p2, _p3, _p4); + var result = fn__areEntitiesEntirelyInsideGarage(&success, _garageHash, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), _p4); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsAnyEntityEntirelyInsideGarage(uint _garageHash, bool _p1, bool _p2, bool _p3, int _p4) { unsafe { - if (fn__isAnyEntityEntirelyInsideGarage == null) fn__isAnyEntityEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyEntityEntirelyInsideGarage"); + if (fn__isAnyEntityEntirelyInsideGarage == null) fn__isAnyEntityEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyEntityEntirelyInsideGarage"); var success = false; - var result = fn__isAnyEntityEntirelyInsideGarage(&success, _garageHash, _p1, _p2, _p3, _p4); + var result = fn__isAnyEntityEntirelyInsideGarage(&success, _garageHash, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), _p4); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72224,11 +72224,11 @@ public bool IsAnyEntityEntirelyInsideGarage(uint _garageHash, bool _p1, bool _p2 public bool IsObjectEntirelyInsideGarage(uint _garageHash, int _entity, float _p2, int _p3) { unsafe { - if (fn__isObjectEntirelyInsideGarage == null) fn__isObjectEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectEntirelyInsideGarage"); + if (fn__isObjectEntirelyInsideGarage == null) fn__isObjectEntirelyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectEntirelyInsideGarage"); var success = false; var result = fn__isObjectEntirelyInsideGarage(&success, _garageHash, _entity, _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72236,20 +72236,20 @@ public bool IsObjectEntirelyInsideGarage(uint _garageHash, int _entity, float _p public bool IsObjectPartiallyInsideGarage(uint _garageHash, int _entity, int _p2) { unsafe { - if (fn__isObjectPartiallyInsideGarage == null) fn__isObjectPartiallyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectPartiallyInsideGarage"); + if (fn__isObjectPartiallyInsideGarage == null) fn__isObjectPartiallyInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectPartiallyInsideGarage"); var success = false; var result = fn__isObjectPartiallyInsideGarage(&success, _garageHash, _entity, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void ClearGarageArea(uint _garageHash, bool _isNetwork) { unsafe { - if (fn__clearGarageArea == null) fn__clearGarageArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearGarageArea"); + if (fn__clearGarageArea == null) fn__clearGarageArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearGarageArea"); var success = false; - fn__clearGarageArea(&success, _garageHash, _isNetwork); + fn__clearGarageArea(&success, _garageHash, (byte) (_isNetwork ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72257,9 +72257,9 @@ public void ClearGarageArea(uint _garageHash, bool _isNetwork) public void ClearObjectsInsideGarage(uint _garageHash, bool _vehicles, bool _peds, bool _objects, bool _isNetwork) { unsafe { - if (fn__clearObjectsInsideGarage == null) fn__clearObjectsInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearObjectsInsideGarage"); + if (fn__clearObjectsInsideGarage == null) fn__clearObjectsInsideGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clearObjectsInsideGarage"); var success = false; - fn__clearObjectsInsideGarage(&success, _garageHash, _vehicles, _peds, _objects, _isNetwork); + fn__clearObjectsInsideGarage(&success, _garageHash, (byte) (_vehicles ? 1 : 0), (byte) (_peds ? 1 : 0), (byte) (_objects ? 1 : 0), (byte) (_isNetwork ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72267,9 +72267,9 @@ public void ClearObjectsInsideGarage(uint _garageHash, bool _vehicles, bool _ped public void _0x659F9D71F52843F8(int _id, bool _toggle) { unsafe { - if (fn__0x659F9D71F52843F8 == null) fn__0x659F9D71F52843F8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x659F9D71F52843F8"); + if (fn__0x659F9D71F52843F8 == null) fn__0x659F9D71F52843F8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x659F9D71F52843F8"); var success = false; - fn__0x659F9D71F52843F8(&success, _id, _toggle); + fn__0x659F9D71F52843F8(&success, _id, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72277,9 +72277,9 @@ public void _0x659F9D71F52843F8(int _id, bool _toggle) public void EnableSavingInGarage(uint _garageHash, bool _toggle) { unsafe { - if (fn__enableSavingInGarage == null) fn__enableSavingInGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableSavingInGarage"); + if (fn__enableSavingInGarage == null) fn__enableSavingInGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableSavingInGarage"); var success = false; - fn__enableSavingInGarage(&success, _garageHash, _toggle); + fn__enableSavingInGarage(&success, _garageHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72297,31 +72297,31 @@ public void _0x66A49D021870FE88() public bool DoesObjectOfTypeExistAtCoords(float _x, float _y, float _z, float _radius, uint _hash, bool _p5) { unsafe { - if (fn__doesObjectOfTypeExistAtCoords == null) fn__doesObjectOfTypeExistAtCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesObjectOfTypeExistAtCoords"); + if (fn__doesObjectOfTypeExistAtCoords == null) fn__doesObjectOfTypeExistAtCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesObjectOfTypeExistAtCoords"); var success = false; - var result = fn__doesObjectOfTypeExistAtCoords(&success, _x, _y, _z, _radius, _hash, _p5); + var result = fn__doesObjectOfTypeExistAtCoords(&success, _x, _y, _z, _radius, _hash, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPointInAngledArea(float _xPos, float _yPos, float _zPos, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, bool _debug, bool _includeZ) { unsafe { - if (fn__isPointInAngledArea == null) fn__isPointInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointInAngledArea"); + if (fn__isPointInAngledArea == null) fn__isPointInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointInAngledArea"); var success = false; - var result = fn__isPointInAngledArea(&success, _xPos, _yPos, _zPos, _x1, _y1, _z1, _x2, _y2, _z2, _width, _debug, _includeZ); + var result = fn__isPointInAngledArea(&success, _xPos, _yPos, _zPos, _x1, _y1, _z1, _x2, _y2, _z2, _width, (byte) (_debug ? 1 : 0), (byte) (_includeZ ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetObjectAllowLowLodBuoyancy(int _object, bool _toggle) { unsafe { - if (fn__setObjectAllowLowLodBuoyancy == null) fn__setObjectAllowLowLodBuoyancy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectAllowLowLodBuoyancy"); + if (fn__setObjectAllowLowLodBuoyancy == null) fn__setObjectAllowLowLodBuoyancy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectAllowLowLodBuoyancy"); var success = false; - fn__setObjectAllowLowLodBuoyancy(&success, _object, _toggle); + fn__setObjectAllowLowLodBuoyancy(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72339,9 +72339,9 @@ public void SetObjectPhysicsParams(int _object, float _weight, float _p2, float public float GetObjectFragmentDamageHealth(int _p0, bool _p1) { unsafe { - if (fn__getObjectFragmentDamageHealth == null) fn__getObjectFragmentDamageHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getObjectFragmentDamageHealth"); + if (fn__getObjectFragmentDamageHealth == null) fn__getObjectFragmentDamageHealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getObjectFragmentDamageHealth"); var success = false; - var result = fn__getObjectFragmentDamageHealth(&success, _p0, _p1); + var result = fn__getObjectFragmentDamageHealth(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72350,9 +72350,9 @@ public float GetObjectFragmentDamageHealth(int _p0, bool _p1) public void SetActivateObjectPhysicsAsSoonAsItIsUnfrozen(int _object, bool _toggle) { unsafe { - if (fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen == null) fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setActivateObjectPhysicsAsSoonAsItIsUnfrozen"); + if (fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen == null) fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setActivateObjectPhysicsAsSoonAsItIsUnfrozen"); var success = false; - fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen(&success, _object, _toggle); + fn__setActivateObjectPhysicsAsSoonAsItIsUnfrozen(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72360,22 +72360,22 @@ public void SetActivateObjectPhysicsAsSoonAsItIsUnfrozen(int _object, bool _togg public bool IsAnyObjectNearPoint(float _x, float _y, float _z, float _range, bool _p4) { unsafe { - if (fn__isAnyObjectNearPoint == null) fn__isAnyObjectNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyObjectNearPoint"); + if (fn__isAnyObjectNearPoint == null) fn__isAnyObjectNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyObjectNearPoint"); var success = false; - var result = fn__isAnyObjectNearPoint(&success, _x, _y, _z, _range, _p4); + var result = fn__isAnyObjectNearPoint(&success, _x, _y, _z, _range, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsObjectNearPoint(uint _objectHash, float _x, float _y, float _z, float _range) { unsafe { - if (fn__isObjectNearPoint == null) fn__isObjectNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectNearPoint"); + if (fn__isObjectNearPoint == null) fn__isObjectNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectNearPoint"); var success = false; var result = fn__isObjectNearPoint(&success, _objectHash, _x, _y, _z, _range); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72392,9 +72392,9 @@ public void RemoveObjectHighDetailModel(int _object) public void BreakObjectFragmentChild(int _p0, int _p1, bool _p2) { unsafe { - if (fn__breakObjectFragmentChild == null) fn__breakObjectFragmentChild = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_breakObjectFragmentChild"); + if (fn__breakObjectFragmentChild == null) fn__breakObjectFragmentChild = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_breakObjectFragmentChild"); var success = false; - fn__breakObjectFragmentChild(&success, _p0, _p1, _p2); + fn__breakObjectFragmentChild(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72432,20 +72432,20 @@ public void TrackObjectVisibility(int _object) public bool IsObjectVisible(int _object) { unsafe { - if (fn__isObjectVisible == null) fn__isObjectVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectVisible"); + if (fn__isObjectVisible == null) fn__isObjectVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectVisible"); var success = false; var result = fn__isObjectVisible(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xC6033D32241F6FB5(int _object, bool _toggle) { unsafe { - if (fn__0xC6033D32241F6FB5 == null) fn__0xC6033D32241F6FB5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC6033D32241F6FB5"); + if (fn__0xC6033D32241F6FB5 == null) fn__0xC6033D32241F6FB5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC6033D32241F6FB5"); var success = false; - fn__0xC6033D32241F6FB5(&success, _object, _toggle); + fn__0xC6033D32241F6FB5(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72453,9 +72453,9 @@ public void _0xC6033D32241F6FB5(int _object, bool _toggle) public void _0xEB6F1A9B5510A5D2(int _p0, bool _p1) { unsafe { - if (fn__0xEB6F1A9B5510A5D2 == null) fn__0xEB6F1A9B5510A5D2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEB6F1A9B5510A5D2"); + if (fn__0xEB6F1A9B5510A5D2 == null) fn__0xEB6F1A9B5510A5D2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xEB6F1A9B5510A5D2"); var success = false; - fn__0xEB6F1A9B5510A5D2(&success, _p0, _p1); + fn__0xEB6F1A9B5510A5D2(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72463,9 +72463,9 @@ public void _0xEB6F1A9B5510A5D2(int _p0, bool _p1) public void SetUnkGlobalBoolRelatedToDamage(bool _value) { unsafe { - if (fn__setUnkGlobalBoolRelatedToDamage == null) fn__setUnkGlobalBoolRelatedToDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUnkGlobalBoolRelatedToDamage"); + if (fn__setUnkGlobalBoolRelatedToDamage == null) fn__setUnkGlobalBoolRelatedToDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUnkGlobalBoolRelatedToDamage"); var success = false; - fn__setUnkGlobalBoolRelatedToDamage(&success, _value); + fn__setUnkGlobalBoolRelatedToDamage(&success, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72473,9 +72473,9 @@ public void SetUnkGlobalBoolRelatedToDamage(bool _value) public void SetCreateWeaponObjectLightSource(int _object, bool _toggle) { unsafe { - if (fn__setCreateWeaponObjectLightSource == null) fn__setCreateWeaponObjectLightSource = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateWeaponObjectLightSource"); + if (fn__setCreateWeaponObjectLightSource == null) fn__setCreateWeaponObjectLightSource = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateWeaponObjectLightSource"); var success = false; - fn__setCreateWeaponObjectLightSource(&success, _object, _toggle); + fn__setCreateWeaponObjectLightSource(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72517,11 +72517,11 @@ public int GetStateOfRayfireMapObject(int _object) public bool DoesRayfireMapObjectExist(int _object) { unsafe { - if (fn__doesRayfireMapObjectExist == null) fn__doesRayfireMapObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRayfireMapObjectExist"); + if (fn__doesRayfireMapObjectExist == null) fn__doesRayfireMapObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRayfireMapObjectExist"); var success = false; var result = fn__doesRayfireMapObjectExist(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72539,9 +72539,9 @@ public float GetRayfireMapObjectAnimPhase(int _object) public int CreatePickup(uint _pickupHash, float _posX, float _posY, float _posZ, int _p4, int _value, bool _p6, uint _modelHash) { unsafe { - if (fn__createPickup == null) fn__createPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPickup"); + if (fn__createPickup == null) fn__createPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPickup"); var success = false; - var result = fn__createPickup(&success, _pickupHash, _posX, _posY, _posZ, _p4, _value, _p6, _modelHash); + var result = fn__createPickup(&success, _pickupHash, _posX, _posY, _posZ, _p4, _value, (byte) (_p6 ? 1 : 0), _modelHash); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72550,9 +72550,9 @@ public int CreatePickup(uint _pickupHash, float _posX, float _posY, float _posZ, public int CreatePickupRotate(uint _pickupHash, float _posX, float _posY, float _posZ, float _rotX, float _rotY, float _rotZ, int _flag, int _amount, int _p9, bool _p10, uint _modelHash) { unsafe { - if (fn__createPickupRotate == null) fn__createPickupRotate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPickupRotate"); + if (fn__createPickupRotate == null) fn__createPickupRotate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPickupRotate"); var success = false; - var result = fn__createPickupRotate(&success, _pickupHash, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _flag, _amount, _p9, _p10, _modelHash); + var result = fn__createPickupRotate(&success, _pickupHash, _posX, _posY, _posZ, _rotX, _rotY, _rotZ, _flag, _amount, _p9, (byte) (_p10 ? 1 : 0), _modelHash); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72581,9 +72581,9 @@ public void _0x826D1EE4D1CAFC78(int _p0, int _p1) public int CreateAmbientPickup(uint _pickupHash, float _posX, float _posY, float _posZ, int _flags, int _value, uint _modelHash, bool _p7, bool _p8) { unsafe { - if (fn__createAmbientPickup == null) fn__createAmbientPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createAmbientPickup"); + if (fn__createAmbientPickup == null) fn__createAmbientPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createAmbientPickup"); var success = false; - var result = fn__createAmbientPickup(&success, _pickupHash, _posX, _posY, _posZ, _flags, _value, _modelHash, _p7, _p8); + var result = fn__createAmbientPickup(&success, _pickupHash, _posX, _posY, _posZ, _flags, _value, _modelHash, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72592,9 +72592,9 @@ public int CreateAmbientPickup(uint _pickupHash, float _posX, float _posY, float public int CreateNonNetworkedAmbientPickup(uint _pickupHash, float _posX, float _posY, float _posZ, int _flags, int _value, uint _modelHash, bool _p7, bool _p8) { unsafe { - if (fn__createNonNetworkedAmbientPickup == null) fn__createNonNetworkedAmbientPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNonNetworkedAmbientPickup"); + if (fn__createNonNetworkedAmbientPickup == null) fn__createNonNetworkedAmbientPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNonNetworkedAmbientPickup"); var success = false; - var result = fn__createNonNetworkedAmbientPickup(&success, _pickupHash, _posX, _posY, _posZ, _flags, _value, _modelHash, _p7, _p8); + var result = fn__createNonNetworkedAmbientPickup(&success, _pickupHash, _posX, _posY, _posZ, _flags, _value, _modelHash, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72613,9 +72613,9 @@ public void _0x1E3F1B1B891A2AAA(int _p0, int _p1) public int CreatePortablePickup(uint _pickupHash, float _x, float _y, float _z, bool _placeOnGround, uint _modelHash) { unsafe { - if (fn__createPortablePickup == null) fn__createPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPortablePickup"); + if (fn__createPortablePickup == null) fn__createPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPortablePickup"); var success = false; - var result = fn__createPortablePickup(&success, _pickupHash, _x, _y, _z, _placeOnGround, _modelHash); + var result = fn__createPortablePickup(&success, _pickupHash, _x, _y, _z, (byte) (_placeOnGround ? 1 : 0), _modelHash); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72624,9 +72624,9 @@ public int CreatePortablePickup(uint _pickupHash, float _x, float _y, float _z, public int CreateNonNetworkedPortablePickup(uint _pickupHash, float _x, float _y, float _z, bool _placeOnGround, uint _modelHash) { unsafe { - if (fn__createNonNetworkedPortablePickup == null) fn__createNonNetworkedPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNonNetworkedPortablePickup"); + if (fn__createNonNetworkedPortablePickup == null) fn__createNonNetworkedPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNonNetworkedPortablePickup"); var success = false; - var result = fn__createNonNetworkedPortablePickup(&success, _pickupHash, _x, _y, _z, _placeOnGround, _modelHash); + var result = fn__createNonNetworkedPortablePickup(&success, _pickupHash, _x, _y, _z, (byte) (_placeOnGround ? 1 : 0), _modelHash); if (!success) throw new Exception("Native execution failed"); return result; } @@ -72656,9 +72656,9 @@ public void DetachPortablePickupFromPed(int _pickupObject) public void HidePickup(int _pickupObject, bool _toggle) { unsafe { - if (fn__hidePickup == null) fn__hidePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePickup"); + if (fn__hidePickup == null) fn__hidePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePickup"); var success = false; - fn__hidePickup(&success, _pickupObject, _toggle); + fn__hidePickup(&success, _pickupObject, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72676,9 +72676,9 @@ public void SetMaxNumPortablePickupsCarriedByPlayer(uint _modelHash, int _p1) public void SetLocalPlayerCanCollectPortablePickups(bool _p0) { unsafe { - if (fn__setLocalPlayerCanCollectPortablePickups == null) fn__setLocalPlayerCanCollectPortablePickups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerCanCollectPortablePickups"); + if (fn__setLocalPlayerCanCollectPortablePickups == null) fn__setLocalPlayerCanCollectPortablePickups = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerCanCollectPortablePickups"); var success = false; - fn__setLocalPlayerCanCollectPortablePickups(&success, _p0); + fn__setLocalPlayerCanCollectPortablePickups(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72748,11 +72748,11 @@ public void RemoveAllPickupsOfType(uint _pickupHash) public bool HasPickupBeenCollected(int _pickup) { unsafe { - if (fn__hasPickupBeenCollected == null) fn__hasPickupBeenCollected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPickupBeenCollected"); + if (fn__hasPickupBeenCollected == null) fn__hasPickupBeenCollected = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPickupBeenCollected"); var success = false; var result = fn__hasPickupBeenCollected(&success, _pickup); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72779,22 +72779,22 @@ public void CreateMoneyPickups(float _x, float _y, float _z, int _value, int _am public bool DoesPickupExist(int _pickup) { unsafe { - if (fn__doesPickupExist == null) fn__doesPickupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupExist"); + if (fn__doesPickupExist == null) fn__doesPickupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupExist"); var success = false; var result = fn__doesPickupExist(&success, _pickup); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesPickupObjectExist(int _pickupObject) { unsafe { - if (fn__doesPickupObjectExist == null) fn__doesPickupObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupObjectExist"); + if (fn__doesPickupObjectExist == null) fn__doesPickupObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupObjectExist"); var success = false; var result = fn__doesPickupObjectExist(&success, _pickupObject); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72812,33 +72812,33 @@ public int GetPickupObject(int _pickup) public bool IsObjectAPortablePickup(int _object) { unsafe { - if (fn__isObjectAPortablePickup == null) fn__isObjectAPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectAPortablePickup"); + if (fn__isObjectAPortablePickup == null) fn__isObjectAPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectAPortablePickup"); var success = false; var result = fn__isObjectAPortablePickup(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsObjectAPickup(int _object) { unsafe { - if (fn__isObjectAPickup == null) fn__isObjectAPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectAPickup"); + if (fn__isObjectAPickup == null) fn__isObjectAPickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isObjectAPickup"); var success = false; var result = fn__isObjectAPickup(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesPickupOfTypeExistInArea(uint _pickupHash, float _x, float _y, float _z, float _radius) { unsafe { - if (fn__doesPickupOfTypeExistInArea == null) fn__doesPickupOfTypeExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupOfTypeExistInArea"); + if (fn__doesPickupOfTypeExistInArea == null) fn__doesPickupOfTypeExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesPickupOfTypeExistInArea"); var success = false; var result = fn__doesPickupOfTypeExistInArea(&success, _pickupHash, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -72866,9 +72866,9 @@ public void ForcePickupRegenerate(int _p0) public void ToggleUsePickupsForPlayer(int _player, uint _pickupHash, bool _toggle) { unsafe { - if (fn__toggleUsePickupsForPlayer == null) fn__toggleUsePickupsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleUsePickupsForPlayer"); + if (fn__toggleUsePickupsForPlayer == null) fn__toggleUsePickupsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleUsePickupsForPlayer"); var success = false; - fn__toggleUsePickupsForPlayer(&success, _player, _pickupHash, _toggle); + fn__toggleUsePickupsForPlayer(&success, _player, _pickupHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72876,9 +72876,9 @@ public void ToggleUsePickupsForPlayer(int _player, uint _pickupHash, bool _toggl public void SetLocalPlayerCanUsePickupsWithThisModel(uint _modelHash, bool _toggle) { unsafe { - if (fn__setLocalPlayerCanUsePickupsWithThisModel == null) fn__setLocalPlayerCanUsePickupsWithThisModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerCanUsePickupsWithThisModel"); + if (fn__setLocalPlayerCanUsePickupsWithThisModel == null) fn__setLocalPlayerCanUsePickupsWithThisModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLocalPlayerCanUsePickupsWithThisModel"); var success = false; - fn__setLocalPlayerCanUsePickupsWithThisModel(&success, _modelHash, _toggle); + fn__setLocalPlayerCanUsePickupsWithThisModel(&success, _modelHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72896,9 +72896,9 @@ public void _0xFDC07C58E8AAB715(uint _pickupHash) public void SetTeamPickupObject(int _object, int _p1, bool _p2) { unsafe { - if (fn__setTeamPickupObject == null) fn__setTeamPickupObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTeamPickupObject"); + if (fn__setTeamPickupObject == null) fn__setTeamPickupObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTeamPickupObject"); var success = false; - fn__setTeamPickupObject(&success, _object, _p1, _p2); + fn__setTeamPickupObject(&success, _object, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72906,9 +72906,9 @@ public void SetTeamPickupObject(int _object, int _p1, bool _p2) public void PreventCollectionOfPortablePickup(int _object, bool _p1, bool _p2) { unsafe { - if (fn__preventCollectionOfPortablePickup == null) fn__preventCollectionOfPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preventCollectionOfPortablePickup"); + if (fn__preventCollectionOfPortablePickup == null) fn__preventCollectionOfPortablePickup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_preventCollectionOfPortablePickup"); var success = false; - fn__preventCollectionOfPortablePickup(&success, _object, _p1, _p2); + fn__preventCollectionOfPortablePickup(&success, _object, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -72936,9 +72936,9 @@ public void _0x0596843B34B95CE5(int _p0, int _p1) public void _0xA08FE5E49BDC39DD(int _p0, float _p1, bool _p2) { unsafe { - if (fn__0xA08FE5E49BDC39DD == null) fn__0xA08FE5E49BDC39DD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA08FE5E49BDC39DD"); + if (fn__0xA08FE5E49BDC39DD == null) fn__0xA08FE5E49BDC39DD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA08FE5E49BDC39DD"); var success = false; - fn__0xA08FE5E49BDC39DD(&success, _p0, _p1, _p2); + fn__0xA08FE5E49BDC39DD(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73008,9 +73008,9 @@ public float GetPickupGenerationRangeMultiplier() public void _0x31F924B53EADDF65(bool _p0) { unsafe { - if (fn__0x31F924B53EADDF65 == null) fn__0x31F924B53EADDF65 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x31F924B53EADDF65"); + if (fn__0x31F924B53EADDF65 == null) fn__0x31F924B53EADDF65 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x31F924B53EADDF65"); var success = false; - fn__0x31F924B53EADDF65(&success, _p0); + fn__0x31F924B53EADDF65(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73088,9 +73088,9 @@ public void _0x641F272B52E2F0F8(int _p0, int _p1) public void _0x4C134B4DF76025D0(int _pickup, bool _toggle) { unsafe { - if (fn__0x4C134B4DF76025D0 == null) fn__0x4C134B4DF76025D0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4C134B4DF76025D0"); + if (fn__0x4C134B4DF76025D0 == null) fn__0x4C134B4DF76025D0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4C134B4DF76025D0"); var success = false; - fn__0x4C134B4DF76025D0(&success, _pickup, _toggle); + fn__0x4C134B4DF76025D0(&success, _pickup, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73098,9 +73098,9 @@ public void _0x4C134B4DF76025D0(int _pickup, bool _toggle) public void _0xAA059C615DE9DD03(int _pickup, bool _toggle) { unsafe { - if (fn__0xAA059C615DE9DD03 == null) fn__0xAA059C615DE9DD03 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAA059C615DE9DD03"); + if (fn__0xAA059C615DE9DD03 == null) fn__0xAA059C615DE9DD03 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAA059C615DE9DD03"); var success = false; - fn__0xAA059C615DE9DD03(&success, _pickup, _toggle); + fn__0xAA059C615DE9DD03(&success, _pickup, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73158,9 +73158,9 @@ public void _0x7813E8B8C4AE4799(int _pickup) public void _0xBFFE53AE7E67FCDC(int _pickup, bool _toggle) { unsafe { - if (fn__0xBFFE53AE7E67FCDC == null) fn__0xBFFE53AE7E67FCDC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBFFE53AE7E67FCDC"); + if (fn__0xBFFE53AE7E67FCDC == null) fn__0xBFFE53AE7E67FCDC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBFFE53AE7E67FCDC"); var success = false; - fn__0xBFFE53AE7E67FCDC(&success, _pickup, _toggle); + fn__0xBFFE53AE7E67FCDC(&success, _pickup, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73169,9 +73169,9 @@ public void _0xBFFE53AE7E67FCDC(int _pickup, bool _toggle) public void _0xD05A3241B9A86F19(int _entity, bool _toggle) { unsafe { - if (fn__0xD05A3241B9A86F19 == null) fn__0xD05A3241B9A86F19 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD05A3241B9A86F19"); + if (fn__0xD05A3241B9A86F19 == null) fn__0xD05A3241B9A86F19 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD05A3241B9A86F19"); var success = false; - fn__0xD05A3241B9A86F19(&success, _entity, _toggle); + fn__0xD05A3241B9A86F19(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73179,9 +73179,9 @@ public void _0xD05A3241B9A86F19(int _entity, bool _toggle) public void _0xB2D0BDE54F0E8E5A(int _object, bool _toggle) { unsafe { - if (fn__0xB2D0BDE54F0E8E5A == null) fn__0xB2D0BDE54F0E8E5A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB2D0BDE54F0E8E5A"); + if (fn__0xB2D0BDE54F0E8E5A == null) fn__0xB2D0BDE54F0E8E5A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB2D0BDE54F0E8E5A"); var success = false; - fn__0xB2D0BDE54F0E8E5A(&success, _object, _toggle); + fn__0xB2D0BDE54F0E8E5A(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73211,11 +73211,11 @@ public uint GetPickupHashFromWeapon(uint _weaponHash) public bool IsPickupWeaponObjectValid(int _object) { unsafe { - if (fn__isPickupWeaponObjectValid == null) fn__isPickupWeaponObjectValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPickupWeaponObjectValid"); + if (fn__isPickupWeaponObjectValid == null) fn__isPickupWeaponObjectValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPickupWeaponObjectValid"); var success = false; var result = fn__isPickupWeaponObjectValid(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73243,20 +73243,20 @@ public void SetObjectTextureVariation(int _object, int _textureVariation) public bool SetTextureVariationOfClosestObjectOfType(float _x, float _y, float _z, float _radius, uint _modelHash, int _textureVariation) { unsafe { - if (fn__setTextureVariationOfClosestObjectOfType == null) fn__setTextureVariationOfClosestObjectOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextureVariationOfClosestObjectOfType"); + if (fn__setTextureVariationOfClosestObjectOfType == null) fn__setTextureVariationOfClosestObjectOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTextureVariationOfClosestObjectOfType"); var success = false; var result = fn__setTextureVariationOfClosestObjectOfType(&success, _x, _y, _z, _radius, _modelHash, _textureVariation); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int SetObjectLightColor(int _object, bool _p1, int _r, int _g, int _b) { unsafe { - if (fn__setObjectLightColor == null) fn__setObjectLightColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectLightColor"); + if (fn__setObjectLightColor == null) fn__setObjectLightColor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setObjectLightColor"); var success = false; - var result = fn__setObjectLightColor(&success, _object, _p1, _r, _g, _b); + var result = fn__setObjectLightColor(&success, _object, (byte) (_p1 ? 1 : 0), _r, _g, _b); if (!success) throw new Exception("Native execution failed"); return result; } @@ -73265,20 +73265,20 @@ public int SetObjectLightColor(int _object, bool _p1, int _r, int _g, int _b) public bool _0xADF084FB8F075D06(int _object) { unsafe { - if (fn__0xADF084FB8F075D06 == null) fn__0xADF084FB8F075D06 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xADF084FB8F075D06"); + if (fn__0xADF084FB8F075D06 == null) fn__0xADF084FB8F075D06 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xADF084FB8F075D06"); var success = false; var result = fn__0xADF084FB8F075D06(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x3B2FD68DB5F8331C(int _object, bool _toggle) { unsafe { - if (fn__0x3B2FD68DB5F8331C == null) fn__0x3B2FD68DB5F8331C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3B2FD68DB5F8331C"); + if (fn__0x3B2FD68DB5F8331C == null) fn__0x3B2FD68DB5F8331C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3B2FD68DB5F8331C"); var success = false; - fn__0x3B2FD68DB5F8331C(&success, _object, _toggle); + fn__0x3B2FD68DB5F8331C(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73357,9 +73357,9 @@ public void _0x63ECF581BC70E363(int _p0, int _p1) public void SetEnableArenaPropPhysics(int _object, bool _toggle, int _p2) { unsafe { - if (fn__setEnableArenaPropPhysics == null) fn__setEnableArenaPropPhysics = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableArenaPropPhysics"); + if (fn__setEnableArenaPropPhysics == null) fn__setEnableArenaPropPhysics = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableArenaPropPhysics"); var success = false; - fn__setEnableArenaPropPhysics(&success, _object, _toggle, _p2); + fn__setEnableArenaPropPhysics(&success, _object, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -73368,9 +73368,9 @@ public void SetEnableArenaPropPhysics(int _object, bool _toggle, int _p2) public void SetEnableArenaPropPhysicsOnPed(int _object, bool _toggle, int _p2, int _ped) { unsafe { - if (fn__setEnableArenaPropPhysicsOnPed == null) fn__setEnableArenaPropPhysicsOnPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableArenaPropPhysicsOnPed"); + if (fn__setEnableArenaPropPhysicsOnPed == null) fn__setEnableArenaPropPhysicsOnPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableArenaPropPhysicsOnPed"); var success = false; - fn__setEnableArenaPropPhysicsOnPed(&success, _object, _toggle, _p2, _ped); + fn__setEnableArenaPropPhysicsOnPed(&success, _object, (byte) (_toggle ? 1 : 0), _p2, _ped); if (!success) throw new Exception("Native execution failed"); } } @@ -73378,9 +73378,9 @@ public void SetEnableArenaPropPhysicsOnPed(int _object, bool _toggle, int _p2, i public void _0x734E1714D077DA9A(int _object, bool _toggle) { unsafe { - if (fn__0x734E1714D077DA9A == null) fn__0x734E1714D077DA9A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x734E1714D077DA9A"); + if (fn__0x734E1714D077DA9A == null) fn__0x734E1714D077DA9A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x734E1714D077DA9A"); var success = false; - fn__0x734E1714D077DA9A(&success, _object, _toggle); + fn__0x734E1714D077DA9A(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73388,9 +73388,9 @@ public void _0x734E1714D077DA9A(int _object, bool _toggle) public void _0x1A6CBB06E2D0D79D(int _object, bool _p1) { unsafe { - if (fn__0x1A6CBB06E2D0D79D == null) fn__0x1A6CBB06E2D0D79D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1A6CBB06E2D0D79D"); + if (fn__0x1A6CBB06E2D0D79D == null) fn__0x1A6CBB06E2D0D79D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1A6CBB06E2D0D79D"); var success = false; - fn__0x1A6CBB06E2D0D79D(&success, _object, _p1); + fn__0x1A6CBB06E2D0D79D(&success, _object, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73398,11 +73398,11 @@ public void _0x1A6CBB06E2D0D79D(int _object, bool _p1) public bool GetIsArenaPropPhysicsDisabled(int _object, int _p1) { unsafe { - if (fn__getIsArenaPropPhysicsDisabled == null) fn__getIsArenaPropPhysicsDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsArenaPropPhysicsDisabled"); + if (fn__getIsArenaPropPhysicsDisabled == null) fn__getIsArenaPropPhysicsDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsArenaPropPhysicsDisabled"); var success = false; var result = fn__getIsArenaPropPhysicsDisabled(&success, _object, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73420,9 +73420,9 @@ public int _0x3BD770D281982DB5(int _p0, int _p1) public void _0x1C57C94A6446492A(int _object, bool _toggle) { unsafe { - if (fn__0x1C57C94A6446492A == null) fn__0x1C57C94A6446492A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1C57C94A6446492A"); + if (fn__0x1C57C94A6446492A == null) fn__0x1C57C94A6446492A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1C57C94A6446492A"); var success = false; - fn__0x1C57C94A6446492A(&success, _object, _toggle); + fn__0x1C57C94A6446492A(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73430,9 +73430,9 @@ public void _0x1C57C94A6446492A(int _object, bool _toggle) public void _0xB5B7742424BD4445(int _object, bool _toggle) { unsafe { - if (fn__0xB5B7742424BD4445 == null) fn__0xB5B7742424BD4445 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB5B7742424BD4445"); + if (fn__0xB5B7742424BD4445 == null) fn__0xB5B7742424BD4445 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB5B7742424BD4445"); var success = false; - fn__0xB5B7742424BD4445(&success, _object, _toggle); + fn__0xB5B7742424BD4445(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73440,55 +73440,55 @@ public void _0xB5B7742424BD4445(int _object, bool _toggle) public bool IsControlEnabled(int _padIndex, int _control) { unsafe { - if (fn__isControlEnabled == null) fn__isControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlEnabled"); + if (fn__isControlEnabled == null) fn__isControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlEnabled"); var success = false; var result = fn__isControlEnabled(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsControlPressed(int _padIndex, int _control) { unsafe { - if (fn__isControlPressed == null) fn__isControlPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlPressed"); + if (fn__isControlPressed == null) fn__isControlPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlPressed"); var success = false; var result = fn__isControlPressed(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsControlReleased(int _padIndex, int _control) { unsafe { - if (fn__isControlReleased == null) fn__isControlReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlReleased"); + if (fn__isControlReleased == null) fn__isControlReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlReleased"); var success = false; var result = fn__isControlReleased(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsControlJustPressed(int _padIndex, int _control) { unsafe { - if (fn__isControlJustPressed == null) fn__isControlJustPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlJustPressed"); + if (fn__isControlJustPressed == null) fn__isControlJustPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlJustPressed"); var success = false; var result = fn__isControlJustPressed(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsControlJustReleased(int _padIndex, int _control) { unsafe { - if (fn__isControlJustReleased == null) fn__isControlJustReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlJustReleased"); + if (fn__isControlJustReleased == null) fn__isControlJustReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isControlJustReleased"); var success = false; var result = fn__isControlJustReleased(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73517,9 +73517,9 @@ public float GetControlNormal(int _padIndex, int _control) public void _0x5B73C77D9EB66E24(bool _p0) { unsafe { - if (fn__0x5B73C77D9EB66E24 == null) fn__0x5B73C77D9EB66E24 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5B73C77D9EB66E24"); + if (fn__0x5B73C77D9EB66E24 == null) fn__0x5B73C77D9EB66E24 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5B73C77D9EB66E24"); var success = false; - fn__0x5B73C77D9EB66E24(&success, _p0); + fn__0x5B73C77D9EB66E24(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73538,55 +73538,55 @@ public float GetControlUnboundNormal(int _padIndex, int _control) public bool SetControlNormal(int _padIndex, int _control, float _amount) { unsafe { - if (fn__setControlNormal == null) fn__setControlNormal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setControlNormal"); + if (fn__setControlNormal == null) fn__setControlNormal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setControlNormal"); var success = false; var result = fn__setControlNormal(&success, _padIndex, _control, _amount); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDisabledControlPressed(int _padIndex, int _control) { unsafe { - if (fn__isDisabledControlPressed == null) fn__isDisabledControlPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlPressed"); + if (fn__isDisabledControlPressed == null) fn__isDisabledControlPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlPressed"); var success = false; var result = fn__isDisabledControlPressed(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDisabledControlReleased(int _padIndex, int _control) { unsafe { - if (fn__isDisabledControlReleased == null) fn__isDisabledControlReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlReleased"); + if (fn__isDisabledControlReleased == null) fn__isDisabledControlReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlReleased"); var success = false; var result = fn__isDisabledControlReleased(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDisabledControlJustPressed(int _padIndex, int _control) { unsafe { - if (fn__isDisabledControlJustPressed == null) fn__isDisabledControlJustPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlJustPressed"); + if (fn__isDisabledControlJustPressed == null) fn__isDisabledControlJustPressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlJustPressed"); var success = false; var result = fn__isDisabledControlJustPressed(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsDisabledControlJustReleased(int _padIndex, int _control) { unsafe { - if (fn__isDisabledControlJustReleased == null) fn__isDisabledControlJustReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlJustReleased"); + if (fn__isDisabledControlJustReleased == null) fn__isDisabledControlJustReleased = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDisabledControlJustReleased"); var success = false; var result = fn__isDisabledControlJustReleased(&success, _padIndex, _control); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73626,64 +73626,64 @@ public int _0xD7D22F5592AED8BA(int _p0) public bool IsUsingKeyboard(int _padIndex) { unsafe { - if (fn__isUsingKeyboard == null) fn__isUsingKeyboard = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isUsingKeyboard"); + if (fn__isUsingKeyboard == null) fn__isUsingKeyboard = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isUsingKeyboard"); var success = false; var result = fn__isUsingKeyboard(&success, _padIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsUsingKeyboard2(int _padIndex) { unsafe { - if (fn__isUsingKeyboard2 == null) fn__isUsingKeyboard2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isUsingKeyboard2"); + if (fn__isUsingKeyboard2 == null) fn__isUsingKeyboard2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isUsingKeyboard2"); var success = false; var result = fn__isUsingKeyboard2(&success, _padIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SetCursorLocation(float _x, float _y) { unsafe { - if (fn__setCursorLocation == null) fn__setCursorLocation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCursorLocation"); + if (fn__setCursorLocation == null) fn__setCursorLocation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCursorLocation"); var success = false; var result = fn__setCursorLocation(&success, _x, _y); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x23F09EADC01449D6(int _padIndex) { unsafe { - if (fn__0x23F09EADC01449D6 == null) fn__0x23F09EADC01449D6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x23F09EADC01449D6"); + if (fn__0x23F09EADC01449D6 == null) fn__0x23F09EADC01449D6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x23F09EADC01449D6"); var success = false; var result = fn__0x23F09EADC01449D6(&success, _padIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x6CD79468A1E595C6(int _padIndex) { unsafe { - if (fn__0x6CD79468A1E595C6 == null) fn__0x6CD79468A1E595C6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6CD79468A1E595C6"); + if (fn__0x6CD79468A1E595C6 == null) fn__0x6CD79468A1E595C6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6CD79468A1E595C6"); var success = false; var result = fn__0x6CD79468A1E595C6(&success, _padIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public string GetControlInstructionalButton(int _padIndex, int _control, bool _p2) { unsafe { - if (fn__getControlInstructionalButton == null) fn__getControlInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getControlInstructionalButton"); + if (fn__getControlInstructionalButton == null) fn__getControlInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getControlInstructionalButton"); var success = false; - var result = fn__getControlInstructionalButton(&success, _padIndex, _control, _p2); + var result = fn__getControlInstructionalButton(&success, _padIndex, _control, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); var strResult = Marshal.PtrToStringUTF8(result); freeString(result); @@ -73694,9 +73694,9 @@ public string GetControlInstructionalButton(int _padIndex, int _control, bool _p public string GetControlGroupInstructionalButton(int _padIndex, int _controlGroup, bool _p2) { unsafe { - if (fn__getControlGroupInstructionalButton == null) fn__getControlGroupInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getControlGroupInstructionalButton"); + if (fn__getControlGroupInstructionalButton == null) fn__getControlGroupInstructionalButton = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getControlGroupInstructionalButton"); var success = false; - var result = fn__getControlGroupInstructionalButton(&success, _padIndex, _controlGroup, _p2); + var result = fn__getControlGroupInstructionalButton(&success, _padIndex, _controlGroup, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); var strResult = Marshal.PtrToStringUTF8(result); freeString(result); @@ -73777,22 +73777,22 @@ public void _0xA0CEFCEA390AAB9B(int _p0) public bool IsLookInverted() { unsafe { - if (fn__isLookInverted == null) fn__isLookInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isLookInverted"); + if (fn__isLookInverted == null) fn__isLookInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isLookInverted"); var success = false; var result = fn__isLookInverted(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xE1615EC03B3BB4FD() { unsafe { - if (fn__0xE1615EC03B3BB4FD == null) fn__0xE1615EC03B3BB4FD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE1615EC03B3BB4FD"); + if (fn__0xE1615EC03B3BB4FD == null) fn__0xE1615EC03B3BB4FD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE1615EC03B3BB4FD"); var success = false; var result = fn__0xE1615EC03B3BB4FD(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73832,31 +73832,31 @@ public int _0x25AAA32BDC98F2A3() public bool GetIsUsingAlternateDriveby() { unsafe { - if (fn__getIsUsingAlternateDriveby == null) fn__getIsUsingAlternateDriveby = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsUsingAlternateDriveby"); + if (fn__getIsUsingAlternateDriveby == null) fn__getIsUsingAlternateDriveby = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsUsingAlternateDriveby"); var success = false; var result = fn__getIsUsingAlternateDriveby(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetAllowMovementWhileZoomed() { unsafe { - if (fn__getAllowMovementWhileZoomed == null) fn__getAllowMovementWhileZoomed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAllowMovementWhileZoomed"); + if (fn__getAllowMovementWhileZoomed == null) fn__getAllowMovementWhileZoomed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAllowMovementWhileZoomed"); var success = false; var result = fn__getAllowMovementWhileZoomed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetPlayerpadShakesWhenControllerDisabled(bool _toggle) { unsafe { - if (fn__setPlayerpadShakesWhenControllerDisabled == null) fn__setPlayerpadShakesWhenControllerDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerpadShakesWhenControllerDisabled"); + if (fn__setPlayerpadShakesWhenControllerDisabled == null) fn__setPlayerpadShakesWhenControllerDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerpadShakesWhenControllerDisabled"); var success = false; - fn__setPlayerpadShakesWhenControllerDisabled(&success, _toggle); + fn__setPlayerpadShakesWhenControllerDisabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73874,9 +73874,9 @@ public void SetInputExclusive(int _padIndex, int _control) public void DisableControlAction(int _padIndex, int _control, bool _disable) { unsafe { - if (fn__disableControlAction == null) fn__disableControlAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableControlAction"); + if (fn__disableControlAction == null) fn__disableControlAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableControlAction"); var success = false; - fn__disableControlAction(&success, _padIndex, _control, _disable); + fn__disableControlAction(&success, _padIndex, _control, (byte) (_disable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73884,9 +73884,9 @@ public void DisableControlAction(int _padIndex, int _control, bool _disable) public void EnableControlAction(int _padIndex, int _control, bool _enable) { unsafe { - if (fn__enableControlAction == null) fn__enableControlAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableControlAction"); + if (fn__enableControlAction == null) fn__enableControlAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableControlAction"); var success = false; - fn__enableControlAction(&success, _padIndex, _control, _enable); + fn__enableControlAction(&success, _padIndex, _control, (byte) (_enable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73914,26 +73914,26 @@ public void EnableAllControlActions(int _padIndex) public bool SwitchToInputMappingScheme(string _name) { unsafe { - if (fn__switchToInputMappingScheme == null) fn__switchToInputMappingScheme = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchToInputMappingScheme"); + if (fn__switchToInputMappingScheme == null) fn__switchToInputMappingScheme = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchToInputMappingScheme"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__switchToInputMappingScheme(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SwitchToInputMappingScheme2(string _name) { unsafe { - if (fn__switchToInputMappingScheme2 == null) fn__switchToInputMappingScheme2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchToInputMappingScheme2"); + if (fn__switchToInputMappingScheme2 == null) fn__switchToInputMappingScheme2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchToInputMappingScheme2"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__switchToInputMappingScheme2(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -73960,9 +73960,9 @@ public void DisableInputGroup(int _padIndex) public void SetRoadsInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _nodeEnabled, bool _unknown2) { unsafe { - if (fn__setRoadsInArea == null) fn__setRoadsInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRoadsInArea"); + if (fn__setRoadsInArea == null) fn__setRoadsInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRoadsInArea"); var success = false; - fn__setRoadsInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _nodeEnabled, _unknown2); + fn__setRoadsInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_nodeEnabled ? 1 : 0), (byte) (_unknown2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73970,9 +73970,9 @@ public void SetRoadsInArea(float _x1, float _y1, float _z1, float _x2, float _y2 public void SetRoadsInAngledArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, float _width, bool _unknown1, bool _unknown2, bool _unknown3) { unsafe { - if (fn__setRoadsInAngledArea == null) fn__setRoadsInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRoadsInAngledArea"); + if (fn__setRoadsInAngledArea == null) fn__setRoadsInAngledArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRoadsInAngledArea"); var success = false; - fn__setRoadsInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, _unknown1, _unknown2, _unknown3); + fn__setRoadsInAngledArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _width, (byte) (_unknown1 ? 1 : 0), (byte) (_unknown2 ? 1 : 0), (byte) (_unknown3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -73980,9 +73980,9 @@ public void SetRoadsInAngledArea(float _x1, float _y1, float _z1, float _x2, flo public void SetPedPathsInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _unknown, int _p7) { unsafe { - if (fn__setPedPathsInArea == null) fn__setPedPathsInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathsInArea"); + if (fn__setPedPathsInArea == null) fn__setPedPathsInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathsInArea"); var success = false; - fn__setPedPathsInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _unknown, _p7); + fn__setPedPathsInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_unknown ? 1 : 0), _p7); if (!success) throw new Exception("Native execution failed"); } } @@ -73990,46 +73990,46 @@ public void SetPedPathsInArea(float _x1, float _y1, float _z1, float _x2, float public bool GetSafeCoordForPed(float _x, float _y, float _z, bool _onGround, ref Vector3 _outPosition, int _flags) { unsafe { - if (fn__getSafeCoordForPed == null) fn__getSafeCoordForPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSafeCoordForPed"); + if (fn__getSafeCoordForPed == null) fn__getSafeCoordForPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSafeCoordForPed"); var success = false; var ref_outPosition = _outPosition; - var result = fn__getSafeCoordForPed(&success, _x, _y, _z, _onGround, &ref_outPosition, _flags); + var result = fn__getSafeCoordForPed(&success, _x, _y, _z, (byte) (_onGround ? 1 : 0), &ref_outPosition, _flags); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetClosestVehicleNode(float _x, float _y, float _z, ref Vector3 _outPosition, int _nodeType, float _p5, float _p6) { unsafe { - if (fn__getClosestVehicleNode == null) fn__getClosestVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestVehicleNode"); + if (fn__getClosestVehicleNode == null) fn__getClosestVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestVehicleNode"); var success = false; var ref_outPosition = _outPosition; var result = fn__getClosestVehicleNode(&success, _x, _y, _z, &ref_outPosition, _nodeType, _p5, _p6); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetClosestMajorVehicleNode(float _x, float _y, float _z, ref Vector3 _outPosition, float _unknown1, int _unknown2) { unsafe { - if (fn__getClosestMajorVehicleNode == null) fn__getClosestMajorVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestMajorVehicleNode"); + if (fn__getClosestMajorVehicleNode == null) fn__getClosestMajorVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestMajorVehicleNode"); var success = false; var ref_outPosition = _outPosition; var result = fn__getClosestMajorVehicleNode(&success, _x, _y, _z, &ref_outPosition, _unknown1, _unknown2); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetClosestVehicleNodeWithHeading(float _x, float _y, float _z, ref Vector3 _outPosition, ref float _outHeading, int _nodeType, float _p6, int _p7) { unsafe { - if (fn__getClosestVehicleNodeWithHeading == null) fn__getClosestVehicleNodeWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestVehicleNodeWithHeading"); + if (fn__getClosestVehicleNodeWithHeading == null) fn__getClosestVehicleNodeWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestVehicleNodeWithHeading"); var success = false; var ref_outPosition = _outPosition; var ref_outHeading = _outHeading; @@ -74037,20 +74037,20 @@ public bool GetClosestVehicleNodeWithHeading(float _x, float _y, float _z, ref V _outPosition = ref_outPosition; _outHeading = ref_outHeading; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetNthClosestVehicleNode(float _x, float _y, float _z, int _nthClosest, ref Vector3 _outPosition, int _unknown1, int _unknown2, int _unknown3) { unsafe { - if (fn__getNthClosestVehicleNode == null) fn__getNthClosestVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNode"); + if (fn__getNthClosestVehicleNode == null) fn__getNthClosestVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNode"); var success = false; var ref_outPosition = _outPosition; var result = fn__getNthClosestVehicleNode(&success, _x, _y, _z, _nthClosest, &ref_outPosition, _unknown1, _unknown2, _unknown3); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74068,7 +74068,7 @@ public int GetNthClosestVehicleNodeId(float _x, float _y, float _z, int _nth, in public bool GetNthClosestVehicleNodeWithHeading(float _x, float _y, float _z, int _nthClosest, ref Vector3 _outPosition, ref float _outHeading, ref int _unknown1, int _unknown2, float _unknown3, float _unknown4) { unsafe { - if (fn__getNthClosestVehicleNodeWithHeading == null) fn__getNthClosestVehicleNodeWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNodeWithHeading"); + if (fn__getNthClosestVehicleNodeWithHeading == null) fn__getNthClosestVehicleNodeWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNodeWithHeading"); var success = false; var ref_outPosition = _outPosition; var ref_outHeading = _outHeading; @@ -74078,7 +74078,7 @@ public bool GetNthClosestVehicleNodeWithHeading(float _x, float _y, float _z, in _outHeading = ref_outHeading; _unknown1 = ref_unknown1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74100,7 +74100,7 @@ public int GetNthClosestVehicleNodeIdWithHeading(float _x, float _y, float _z, i public bool GetNthClosestVehicleNodeFavourDirection(float _x, float _y, float _z, float _desiredX, float _desiredY, float _desiredZ, int _nthClosest, ref Vector3 _outPosition, ref float _outHeading, int _nodetype, float _p10, int _p11) { unsafe { - if (fn__getNthClosestVehicleNodeFavourDirection == null) fn__getNthClosestVehicleNodeFavourDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNodeFavourDirection"); + if (fn__getNthClosestVehicleNodeFavourDirection == null) fn__getNthClosestVehicleNodeFavourDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNthClosestVehicleNodeFavourDirection"); var success = false; var ref_outPosition = _outPosition; var ref_outHeading = _outHeading; @@ -74108,14 +74108,14 @@ public bool GetNthClosestVehicleNodeFavourDirection(float _x, float _y, float _z _outPosition = ref_outPosition; _outHeading = ref_outHeading; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetVehicleNodeProperties(float _x, float _y, float _z, ref int _density, ref int _flags) { unsafe { - if (fn__getVehicleNodeProperties == null) fn__getVehicleNodeProperties = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeProperties"); + if (fn__getVehicleNodeProperties == null) fn__getVehicleNodeProperties = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeProperties"); var success = false; var ref_density = _density; var ref_flags = _flags; @@ -74123,18 +74123,18 @@ public bool GetVehicleNodeProperties(float _x, float _y, float _z, ref int _dens _density = ref_density; _flags = ref_flags; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsVehicleNodeIdValid(int _vehicleNodeId) { unsafe { - if (fn__isVehicleNodeIdValid == null) fn__isVehicleNodeIdValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleNodeIdValid"); + if (fn__isVehicleNodeIdValid == null) fn__isVehicleNodeIdValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleNodeIdValid"); var success = false; var result = fn__isVehicleNodeIdValid(&success, _vehicleNodeId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74153,36 +74153,36 @@ public void GetVehicleNodePosition(int _nodeId, ref Vector3 _outPosition) public bool GetVehicleNodeIsGpsAllowed(int _nodeID) { unsafe { - if (fn__getVehicleNodeIsGpsAllowed == null) fn__getVehicleNodeIsGpsAllowed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeIsGpsAllowed"); + if (fn__getVehicleNodeIsGpsAllowed == null) fn__getVehicleNodeIsGpsAllowed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeIsGpsAllowed"); var success = false; var result = fn__getVehicleNodeIsGpsAllowed(&success, _nodeID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetVehicleNodeIsSwitchedOff(int _nodeID) { unsafe { - if (fn__getVehicleNodeIsSwitchedOff == null) fn__getVehicleNodeIsSwitchedOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeIsSwitchedOff"); + if (fn__getVehicleNodeIsSwitchedOff == null) fn__getVehicleNodeIsSwitchedOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleNodeIsSwitchedOff"); var success = false; var result = fn__getVehicleNodeIsSwitchedOff(&success, _nodeID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int GetClosestRoad(float _x, float _y, float _z, float _p3, int _p4, ref Vector3 _p5, ref Vector3 _p6, ref int _p7, ref int _p8, ref float _p9, bool _p10) { unsafe { - if (fn__getClosestRoad == null) fn__getClosestRoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestRoad"); + if (fn__getClosestRoad == null) fn__getClosestRoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestRoad"); var success = false; var ref_p5 = _p5; var ref_p6 = _p6; var ref_p7 = _p7; var ref_p8 = _p8; var ref_p9 = _p9; - var result = fn__getClosestRoad(&success, _x, _y, _z, _p3, _p4, &ref_p5, &ref_p6, &ref_p7, &ref_p8, &ref_p9, _p10); + var result = fn__getClosestRoad(&success, _x, _y, _z, _p3, _p4, &ref_p5, &ref_p6, &ref_p7, &ref_p8, &ref_p9, (byte) (_p10 ? 1 : 0)); _p5 = ref_p5; _p6 = ref_p6; _p7 = ref_p7; @@ -74196,9 +74196,9 @@ public int GetClosestRoad(float _x, float _y, float _z, float _p3, int _p4, ref public void SetAllPathsCacheBoundingstruct(bool _toggle) { unsafe { - if (fn__setAllPathsCacheBoundingstruct == null) fn__setAllPathsCacheBoundingstruct = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllPathsCacheBoundingstruct"); + if (fn__setAllPathsCacheBoundingstruct == null) fn__setAllPathsCacheBoundingstruct = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllPathsCacheBoundingstruct"); var success = false; - fn__setAllPathsCacheBoundingstruct(&success, _toggle); + fn__setAllPathsCacheBoundingstruct(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -74216,22 +74216,22 @@ public void SetAiGlobalPathNodesType(int _type) public bool AreNodesLoadedForArea(float _x1, float _y1, float _x2, float _y2) { unsafe { - if (fn__areNodesLoadedForArea == null) fn__areNodesLoadedForArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areNodesLoadedForArea"); + if (fn__areNodesLoadedForArea == null) fn__areNodesLoadedForArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areNodesLoadedForArea"); var success = false; var result = fn__areNodesLoadedForArea(&success, _x1, _y1, _x2, _y2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool RequestPathsPreferAccurateBoundingstruct(float _x1, float _y1, float _x2, float _y2) { unsafe { - if (fn__requestPathsPreferAccurateBoundingstruct == null) fn__requestPathsPreferAccurateBoundingstruct = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPathsPreferAccurateBoundingstruct"); + if (fn__requestPathsPreferAccurateBoundingstruct == null) fn__requestPathsPreferAccurateBoundingstruct = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPathsPreferAccurateBoundingstruct"); var success = false; var result = fn__requestPathsPreferAccurateBoundingstruct(&success, _x1, _y1, _x2, _y2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74288,15 +74288,15 @@ public void SetPedPathsBackToOriginal(int _p0, int _p1, int _p2, int _p3, int _p public bool GetRandomVehicleNode(float _x, float _y, float _z, float _radius, bool _p4, bool _p5, bool _p6, ref Vector3 _outPosition, ref int _nodeId) { unsafe { - if (fn__getRandomVehicleNode == null) fn__getRandomVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomVehicleNode"); + if (fn__getRandomVehicleNode == null) fn__getRandomVehicleNode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomVehicleNode"); var success = false; var ref_outPosition = _outPosition; var ref_nodeId = _nodeId; - var result = fn__getRandomVehicleNode(&success, _x, _y, _z, _radius, _p4, _p5, _p6, &ref_outPosition, &ref_nodeId); + var result = fn__getRandomVehicleNode(&success, _x, _y, _z, _radius, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), &ref_outPosition, &ref_nodeId); _outPosition = ref_outPosition; _nodeId = ref_nodeId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74317,12 +74317,12 @@ public void GetStreetNameAtCoord(float _x, float _y, float _z, ref uint _streetN public int GenerateDirectionsToCoord(float _x, float _y, float _z, bool _p3, ref int _direction, ref float _p5, ref float _distToNxJunction) { unsafe { - if (fn__generateDirectionsToCoord == null) fn__generateDirectionsToCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_generateDirectionsToCoord"); + if (fn__generateDirectionsToCoord == null) fn__generateDirectionsToCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_generateDirectionsToCoord"); var success = false; var ref_direction = _direction; var ref_p5 = _p5; var ref_distToNxJunction = _distToNxJunction; - var result = fn__generateDirectionsToCoord(&success, _x, _y, _z, _p3, &ref_direction, &ref_p5, &ref_distToNxJunction); + var result = fn__generateDirectionsToCoord(&success, _x, _y, _z, (byte) (_p3 ? 1 : 0), &ref_direction, &ref_p5, &ref_distToNxJunction); _direction = ref_direction; _p5 = ref_p5; _distToNxJunction = ref_distToNxJunction; @@ -74334,9 +74334,9 @@ public int GenerateDirectionsToCoord(float _x, float _y, float _z, bool _p3, ref public void SetIgnoreNoGpsFlag(bool _toggle) { unsafe { - if (fn__setIgnoreNoGpsFlag == null) fn__setIgnoreNoGpsFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreNoGpsFlag"); + if (fn__setIgnoreNoGpsFlag == null) fn__setIgnoreNoGpsFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreNoGpsFlag"); var success = false; - fn__setIgnoreNoGpsFlag(&success, _toggle); + fn__setIgnoreNoGpsFlag(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -74344,9 +74344,9 @@ public void SetIgnoreNoGpsFlag(bool _toggle) public void SetIgnoreSecondaryRouteNodes(bool _toggle) { unsafe { - if (fn__setIgnoreSecondaryRouteNodes == null) fn__setIgnoreSecondaryRouteNodes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreSecondaryRouteNodes"); + if (fn__setIgnoreSecondaryRouteNodes == null) fn__setIgnoreSecondaryRouteNodes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreSecondaryRouteNodes"); var success = false; - fn__setIgnoreSecondaryRouteNodes(&success, _toggle); + fn__setIgnoreSecondaryRouteNodes(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -74386,37 +74386,37 @@ public int _0xF3162836C28F9DA5(int _p0, int _p1, int _p2, int _p3) public bool GetGpsBlipRouteFound() { unsafe { - if (fn__getGpsBlipRouteFound == null) fn__getGpsBlipRouteFound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGpsBlipRouteFound"); + if (fn__getGpsBlipRouteFound == null) fn__getGpsBlipRouteFound = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getGpsBlipRouteFound"); var success = false; var result = fn__getGpsBlipRouteFound(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetRoadSidePointWithHeading(float _x, float _y, float _z, float _heading, ref Vector3 _outPosition) { unsafe { - if (fn__getRoadSidePointWithHeading == null) fn__getRoadSidePointWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRoadSidePointWithHeading"); + if (fn__getRoadSidePointWithHeading == null) fn__getRoadSidePointWithHeading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRoadSidePointWithHeading"); var success = false; var ref_outPosition = _outPosition; var result = fn__getRoadSidePointWithHeading(&success, _x, _y, _z, _heading, &ref_outPosition); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetPointOnRoadSide(float _x, float _y, float _z, int _p3, ref Vector3 _outPosition) { unsafe { - if (fn__getPointOnRoadSide == null) fn__getPointOnRoadSide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPointOnRoadSide"); + if (fn__getPointOnRoadSide == null) fn__getPointOnRoadSide = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPointOnRoadSide"); var success = false; var ref_outPosition = _outPosition; var result = fn__getPointOnRoadSide(&success, _x, _y, _z, _p3, &ref_outPosition); _outPosition = ref_outPosition; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74424,11 +74424,11 @@ public bool GetPointOnRoadSide(float _x, float _y, float _z, int _p3, ref Vector public bool IsPointOnRoad(float _x, float _y, float _z, int _vehicle) { unsafe { - if (fn__isPointOnRoad == null) fn__isPointOnRoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointOnRoad"); + if (fn__isPointOnRoad == null) fn__isPointOnRoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPointOnRoad"); var success = false; var result = fn__isPointOnRoad(&success, _x, _y, _z, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74486,11 +74486,11 @@ public void RemoveNavmeshRequiredRegions() public bool IsNavmeshRequiredRegionOwnedByAnyThread() { unsafe { - if (fn__isNavmeshRequiredRegionOwnedByAnyThread == null) fn__isNavmeshRequiredRegionOwnedByAnyThread = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavmeshRequiredRegionOwnedByAnyThread"); + if (fn__isNavmeshRequiredRegionOwnedByAnyThread == null) fn__isNavmeshRequiredRegionOwnedByAnyThread = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavmeshRequiredRegionOwnedByAnyThread"); var success = false; var result = fn__isNavmeshRequiredRegionOwnedByAnyThread(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74507,22 +74507,22 @@ public void DisableNavmeshInArea(int _p0, int _p1, int _p2, int _p3, int _p4, in public bool AreAllNavmeshRegionsLoaded() { unsafe { - if (fn__areAllNavmeshRegionsLoaded == null) fn__areAllNavmeshRegionsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAllNavmeshRegionsLoaded"); + if (fn__areAllNavmeshRegionsLoaded == null) fn__areAllNavmeshRegionsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAllNavmeshRegionsLoaded"); var success = false; var result = fn__areAllNavmeshRegionsLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsNavmeshLoadedInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__isNavmeshLoadedInArea == null) fn__isNavmeshLoadedInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavmeshLoadedInArea"); + if (fn__isNavmeshLoadedInArea == null) fn__isNavmeshLoadedInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNavmeshLoadedInArea"); var success = false; var result = fn__isNavmeshLoadedInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74540,9 +74540,9 @@ public int _0x01708E8DD3FF8C65(float _p0, float _p1, float _p2, float _p3, float public int AddNavmeshBlockingObject(float _p0, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, bool _p7, int _p8) { unsafe { - if (fn__addNavmeshBlockingObject == null) fn__addNavmeshBlockingObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addNavmeshBlockingObject"); + if (fn__addNavmeshBlockingObject == null) fn__addNavmeshBlockingObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addNavmeshBlockingObject"); var success = false; - var result = fn__addNavmeshBlockingObject(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8); + var result = fn__addNavmeshBlockingObject(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, (byte) (_p7 ? 1 : 0), _p8); if (!success) throw new Exception("Native execution failed"); return result; } @@ -74571,11 +74571,11 @@ public void RemoveNavmeshBlockingObject(int _p0) public bool DoesNavmeshBlockingObjectExist(int _p0) { unsafe { - if (fn__doesNavmeshBlockingObjectExist == null) fn__doesNavmeshBlockingObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesNavmeshBlockingObjectExist"); + if (fn__doesNavmeshBlockingObjectExist == null) fn__doesNavmeshBlockingObjectExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesNavmeshBlockingObjectExist"); var success = false; var result = fn__doesNavmeshBlockingObjectExist(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74637,9 +74637,9 @@ public float CalculateTravelDistanceBetweenPoints(float _x1, float _y1, float _z public int CreatePed(int _pedType, uint _modelHash, float _x, float _y, float _z, float _heading, bool _isNetwork, bool _bScriptHostPed) { unsafe { - if (fn__createPed == null) fn__createPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPed"); + if (fn__createPed == null) fn__createPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPed"); var success = false; - var result = fn__createPed(&success, _pedType, _modelHash, _x, _y, _z, _heading, _isNetwork, _bScriptHostPed); + var result = fn__createPed(&success, _pedType, _modelHash, _x, _y, _z, _heading, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostPed ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -74661,9 +74661,9 @@ public void DeletePed(ref int _ped) public int ClonePed(int _ped, bool _isNetwork, bool _bScriptHostPed, bool _copyHeadBlendFlag) { unsafe { - if (fn__clonePed == null) fn__clonePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePed"); + if (fn__clonePed == null) fn__clonePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePed"); var success = false; - var result = fn__clonePed(&success, _ped, _isNetwork, _bScriptHostPed, _copyHeadBlendFlag); + var result = fn__clonePed(&success, _ped, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostPed ? 1 : 0), (byte) (_copyHeadBlendFlag ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -74673,9 +74673,9 @@ public int ClonePed(int _ped, bool _isNetwork, bool _bScriptHostPed, bool _copyH public int ClonePedEx(int _ped, bool _isNetwork, bool _bScriptHostPed, bool _copyHeadBlendFlag, bool _p4) { unsafe { - if (fn__clonePedEx == null) fn__clonePedEx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePedEx"); + if (fn__clonePedEx == null) fn__clonePedEx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePedEx"); var success = false; - var result = fn__clonePedEx(&success, _ped, _isNetwork, _bScriptHostPed, _copyHeadBlendFlag, _p4); + var result = fn__clonePedEx(&success, _ped, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostPed ? 1 : 0), (byte) (_copyHeadBlendFlag ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -74700,9 +74700,9 @@ public void ClonePedToTarget(int _ped, int _targetPed) public void ClonePedToTargetEx(int _ped, int _targetPed, bool _p2) { unsafe { - if (fn__clonePedToTargetEx == null) fn__clonePedToTargetEx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePedToTargetEx"); + if (fn__clonePedToTargetEx == null) fn__clonePedToTargetEx = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_clonePedToTargetEx"); var success = false; - fn__clonePedToTargetEx(&success, _ped, _targetPed, _p2); + fn__clonePedToTargetEx(&success, _ped, _targetPed, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -74713,11 +74713,11 @@ public void ClonePedToTargetEx(int _ped, int _targetPed, bool _p2) public bool IsPedInVehicle(int _ped, int _vehicle, bool _atGetIn) { unsafe { - if (fn__isPedInVehicle == null) fn__isPedInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInVehicle"); + if (fn__isPedInVehicle == null) fn__isPedInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInVehicle"); var success = false; - var result = fn__isPedInVehicle(&success, _ped, _vehicle, _atGetIn); + var result = fn__isPedInVehicle(&success, _ped, _vehicle, (byte) (_atGetIn ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74725,11 +74725,11 @@ public bool IsPedInVehicle(int _ped, int _vehicle, bool _atGetIn) public bool IsPedInModel(int _ped, uint _modelHash) { unsafe { - if (fn__isPedInModel == null) fn__isPedInModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInModel"); + if (fn__isPedInModel == null) fn__isPedInModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInModel"); var success = false; var result = fn__isPedInModel(&success, _ped, _modelHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74737,22 +74737,22 @@ public bool IsPedInModel(int _ped, uint _modelHash) public bool IsPedInAnyVehicle(int _ped, bool _atGetIn) { unsafe { - if (fn__isPedInAnyVehicle == null) fn__isPedInAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyVehicle"); + if (fn__isPedInAnyVehicle == null) fn__isPedInAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyVehicle"); var success = false; - var result = fn__isPedInAnyVehicle(&success, _ped, _atGetIn); + var result = fn__isPedInAnyVehicle(&success, _ped, (byte) (_atGetIn ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCopPedInArea3d(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__isCopPedInArea3d == null) fn__isCopPedInArea3d = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCopPedInArea3d"); + if (fn__isCopPedInArea3d == null) fn__isCopPedInArea3d = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCopPedInArea3d"); var success = false; var result = fn__isCopPedInArea3d(&success, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74760,11 +74760,11 @@ public bool IsCopPedInArea3d(float _x1, float _y1, float _z1, float _x2, float _ public bool IsPedInjured(int _ped) { unsafe { - if (fn__isPedInjured == null) fn__isPedInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInjured"); + if (fn__isPedInjured == null) fn__isPedInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInjured"); var success = false; var result = fn__isPedInjured(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74772,11 +74772,11 @@ public bool IsPedInjured(int _ped) public bool IsPedHurt(int _ped) { unsafe { - if (fn__isPedHurt == null) fn__isPedHurt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHurt"); + if (fn__isPedHurt == null) fn__isPedHurt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHurt"); var success = false; var result = fn__isPedHurt(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74784,11 +74784,11 @@ public bool IsPedHurt(int _ped) public bool IsPedFatallyInjured(int _ped) { unsafe { - if (fn__isPedFatallyInjured == null) fn__isPedFatallyInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFatallyInjured"); + if (fn__isPedFatallyInjured == null) fn__isPedFatallyInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFatallyInjured"); var success = false; var result = fn__isPedFatallyInjured(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74796,11 +74796,11 @@ public bool IsPedFatallyInjured(int _ped) public bool IsPedDeadOrDying(int _ped, bool _p1) { unsafe { - if (fn__isPedDeadOrDying == null) fn__isPedDeadOrDying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDeadOrDying"); + if (fn__isPedDeadOrDying == null) fn__isPedDeadOrDying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDeadOrDying"); var success = false; - var result = fn__isPedDeadOrDying(&success, _ped, _p1); + var result = fn__isPedDeadOrDying(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74808,11 +74808,11 @@ public bool IsPedDeadOrDying(int _ped, bool _p1) public bool IsConversationPedDead(int _ped) { unsafe { - if (fn__isConversationPedDead == null) fn__isConversationPedDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isConversationPedDead"); + if (fn__isConversationPedDead == null) fn__isConversationPedDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isConversationPedDead"); var success = false; var result = fn__isConversationPedDead(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74820,11 +74820,11 @@ public bool IsConversationPedDead(int _ped) public bool IsPedAimingFromCover(int _ped) { unsafe { - if (fn__isPedAimingFromCover == null) fn__isPedAimingFromCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedAimingFromCover"); + if (fn__isPedAimingFromCover == null) fn__isPedAimingFromCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedAimingFromCover"); var success = false; var result = fn__isPedAimingFromCover(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74832,11 +74832,11 @@ public bool IsPedAimingFromCover(int _ped) public bool IsPedReloading(int _ped) { unsafe { - if (fn__isPedReloading == null) fn__isPedReloading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedReloading"); + if (fn__isPedReloading == null) fn__isPedReloading = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedReloading"); var success = false; var result = fn__isPedReloading(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74844,11 +74844,11 @@ public bool IsPedReloading(int _ped) public bool IsPedAPlayer(int _ped) { unsafe { - if (fn__isPedAPlayer == null) fn__isPedAPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedAPlayer"); + if (fn__isPedAPlayer == null) fn__isPedAPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedAPlayer"); var success = false; var result = fn__isPedAPlayer(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74856,9 +74856,9 @@ public bool IsPedAPlayer(int _ped) public int CreatePedInsideVehicle(int _vehicle, int _pedType, uint _modelHash, int _seat, bool _isNetwork, bool _bScriptHostPed) { unsafe { - if (fn__createPedInsideVehicle == null) fn__createPedInsideVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPedInsideVehicle"); + if (fn__createPedInsideVehicle == null) fn__createPedInsideVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createPedInsideVehicle"); var success = false; - var result = fn__createPedInsideVehicle(&success, _vehicle, _pedType, _modelHash, _seat, _isNetwork, _bScriptHostPed); + var result = fn__createPedInsideVehicle(&success, _vehicle, _pedType, _modelHash, _seat, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostPed ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -74892,11 +74892,11 @@ public void FreezePedCameraRotation(int _ped) public bool IsPedFacingPed(int _ped, int _otherPed, float _angle) { unsafe { - if (fn__isPedFacingPed == null) fn__isPedFacingPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFacingPed"); + if (fn__isPedFacingPed == null) fn__isPedFacingPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFacingPed"); var success = false; var result = fn__isPedFacingPed(&success, _ped, _otherPed, _angle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74904,11 +74904,11 @@ public bool IsPedFacingPed(int _ped, int _otherPed, float _angle) public bool IsPedInMeleeCombat(int _ped) { unsafe { - if (fn__isPedInMeleeCombat == null) fn__isPedInMeleeCombat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInMeleeCombat"); + if (fn__isPedInMeleeCombat == null) fn__isPedInMeleeCombat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInMeleeCombat"); var success = false; var result = fn__isPedInMeleeCombat(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74916,11 +74916,11 @@ public bool IsPedInMeleeCombat(int _ped) public bool IsPedStopped(int _ped) { unsafe { - if (fn__isPedStopped == null) fn__isPedStopped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStopped"); + if (fn__isPedStopped == null) fn__isPedStopped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStopped"); var success = false; var result = fn__isPedStopped(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74928,22 +74928,22 @@ public bool IsPedStopped(int _ped) public bool IsPedShootingInArea(int _ped, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _p7, bool _p8) { unsafe { - if (fn__isPedShootingInArea == null) fn__isPedShootingInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShootingInArea"); + if (fn__isPedShootingInArea == null) fn__isPedShootingInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShootingInArea"); var success = false; - var result = fn__isPedShootingInArea(&success, _ped, _x1, _y1, _z1, _x2, _y2, _z2, _p7, _p8); + var result = fn__isPedShootingInArea(&success, _ped, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsAnyPedShootingInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _p6, bool _p7) { unsafe { - if (fn__isAnyPedShootingInArea == null) fn__isAnyPedShootingInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedShootingInArea"); + if (fn__isAnyPedShootingInArea == null) fn__isAnyPedShootingInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedShootingInArea"); var success = false; - var result = fn__isAnyPedShootingInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _p6, _p7); + var result = fn__isAnyPedShootingInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74951,11 +74951,11 @@ public bool IsAnyPedShootingInArea(float _x1, float _y1, float _z1, float _x2, f public bool IsPedShooting(int _ped) { unsafe { - if (fn__isPedShooting == null) fn__isPedShooting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShooting"); + if (fn__isPedShooting == null) fn__isPedShooting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShooting"); var success = false; var result = fn__isPedShooting(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -74996,11 +74996,11 @@ public void _0x87DDEB611B329A9C(float _multiplier) public bool IsPedModel(int _ped, uint _modelHash) { unsafe { - if (fn__isPedModel == null) fn__isPedModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedModel"); + if (fn__isPedModel == null) fn__isPedModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedModel"); var success = false; var result = fn__isPedModel(&success, _ped, _modelHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75066,9 +75066,9 @@ public void SetPedIntoVehicle(int _ped, int _vehicle, int _seatIndex) public void SetPedAllowVehiclesOverride(int _ped, bool _toggle) { unsafe { - if (fn__setPedAllowVehiclesOverride == null) fn__setPedAllowVehiclesOverride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAllowVehiclesOverride"); + if (fn__setPedAllowVehiclesOverride == null) fn__setPedAllowVehiclesOverride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAllowVehiclesOverride"); var success = false; - fn__setPedAllowVehiclesOverride(&success, _ped, _toggle); + fn__setPedAllowVehiclesOverride(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75076,11 +75076,11 @@ public void SetPedAllowVehiclesOverride(int _ped, bool _toggle) public bool CanCreateRandomPed(bool _unk) { unsafe { - if (fn__canCreateRandomPed == null) fn__canCreateRandomPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomPed"); + if (fn__canCreateRandomPed == null) fn__canCreateRandomPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomPed"); var success = false; - var result = fn__canCreateRandomPed(&success, _unk); + var result = fn__canCreateRandomPed(&success, (byte) (_unk ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75099,9 +75099,9 @@ public int CreateRandomPed(float _posX, float _posY, float _posZ) public int CreateRandomPedAsDriver(int _vehicle, bool _returnHandle) { unsafe { - if (fn__createRandomPedAsDriver == null) fn__createRandomPedAsDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createRandomPedAsDriver"); + if (fn__createRandomPedAsDriver == null) fn__createRandomPedAsDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createRandomPedAsDriver"); var success = false; - var result = fn__createRandomPedAsDriver(&success, _vehicle, _returnHandle); + var result = fn__createRandomPedAsDriver(&success, _vehicle, (byte) (_returnHandle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -75110,22 +75110,22 @@ public int CreateRandomPedAsDriver(int _vehicle, bool _returnHandle) public bool CanCreateRandomDriver() { unsafe { - if (fn__canCreateRandomDriver == null) fn__canCreateRandomDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomDriver"); + if (fn__canCreateRandomDriver == null) fn__canCreateRandomDriver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomDriver"); var success = false; var result = fn__canCreateRandomDriver(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool CanCreateRandomBikeRider() { unsafe { - if (fn__canCreateRandomBikeRider == null) fn__canCreateRandomBikeRider = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomBikeRider"); + if (fn__canCreateRandomBikeRider == null) fn__canCreateRandomBikeRider = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomBikeRider"); var success = false; var result = fn__canCreateRandomBikeRider(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75144,9 +75144,9 @@ public void SetPedMoveAnimsBlendOut(int _ped) public void SetPedCanBeDraggedOut(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanBeDraggedOut == null) fn__setPedCanBeDraggedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeDraggedOut"); + if (fn__setPedCanBeDraggedOut == null) fn__setPedCanBeDraggedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeDraggedOut"); var success = false; - fn__setPedCanBeDraggedOut(&success, _ped, _toggle); + fn__setPedCanBeDraggedOut(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75154,9 +75154,9 @@ public void SetPedCanBeDraggedOut(int _ped, bool _toggle) public void _0xF2BEBCDFAFDAA19E(bool _toggle) { unsafe { - if (fn__0xF2BEBCDFAFDAA19E == null) fn__0xF2BEBCDFAFDAA19E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2BEBCDFAFDAA19E"); + if (fn__0xF2BEBCDFAFDAA19E == null) fn__0xF2BEBCDFAFDAA19E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2BEBCDFAFDAA19E"); var success = false; - fn__0xF2BEBCDFAFDAA19E(&success, _toggle); + fn__0xF2BEBCDFAFDAA19E(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75165,11 +75165,11 @@ public void _0xF2BEBCDFAFDAA19E(bool _toggle) public bool IsPedMale(int _ped) { unsafe { - if (fn__isPedMale == null) fn__isPedMale = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedMale"); + if (fn__isPedMale == null) fn__isPedMale = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedMale"); var success = false; var result = fn__isPedMale(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75177,11 +75177,11 @@ public bool IsPedMale(int _ped) public bool IsPedHuman(int _ped) { unsafe { - if (fn__isPedHuman == null) fn__isPedHuman = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHuman"); + if (fn__isPedHuman == null) fn__isPedHuman = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHuman"); var success = false; var result = fn__isPedHuman(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75189,9 +75189,9 @@ public bool IsPedHuman(int _ped) public int GetVehiclePedIsIn(int _ped, bool _includeLastVehicle) { unsafe { - if (fn__getVehiclePedIsIn == null) fn__getVehiclePedIsIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehiclePedIsIn"); + if (fn__getVehiclePedIsIn == null) fn__getVehiclePedIsIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehiclePedIsIn"); var success = false; - var result = fn__getVehiclePedIsIn(&success, _ped, _includeLastVehicle); + var result = fn__getVehiclePedIsIn(&success, _ped, (byte) (_includeLastVehicle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -75282,11 +75282,11 @@ public void InstantlyFillPedPopulation() public bool IsPedOnMount(int _ped) { unsafe { - if (fn__isPedOnMount == null) fn__isPedOnMount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnMount"); + if (fn__isPedOnMount == null) fn__isPedOnMount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnMount"); var success = false; var result = fn__isPedOnMount(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75306,11 +75306,11 @@ public int GetMount(int _ped) public bool IsPedOnVehicle(int _ped) { unsafe { - if (fn__isPedOnVehicle == null) fn__isPedOnVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnVehicle"); + if (fn__isPedOnVehicle == null) fn__isPedOnVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnVehicle"); var success = false; var result = fn__isPedOnVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75320,11 +75320,11 @@ public bool IsPedOnVehicle(int _ped) public bool IsPedOnSpecificVehicle(int _ped, int _vehicle) { unsafe { - if (fn__isPedOnSpecificVehicle == null) fn__isPedOnSpecificVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnSpecificVehicle"); + if (fn__isPedOnSpecificVehicle == null) fn__isPedOnSpecificVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnSpecificVehicle"); var success = false; var result = fn__isPedOnSpecificVehicle(&success, _ped, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75364,9 +75364,9 @@ public void _0xFF4803BC019852D9(float _p0, int _p1) public void SetAmbientPedsDropMoney(bool _p0) { unsafe { - if (fn__setAmbientPedsDropMoney == null) fn__setAmbientPedsDropMoney = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientPedsDropMoney"); + if (fn__setAmbientPedsDropMoney == null) fn__setAmbientPedsDropMoney = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmbientPedsDropMoney"); var success = false; - fn__setAmbientPedsDropMoney(&success, _p0); + fn__setAmbientPedsDropMoney(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75374,9 +75374,9 @@ public void SetAmbientPedsDropMoney(bool _p0) public void _0x9911F4A24485F653(bool _p0) { unsafe { - if (fn__0x9911F4A24485F653 == null) fn__0x9911F4A24485F653 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9911F4A24485F653"); + if (fn__0x9911F4A24485F653 == null) fn__0x9911F4A24485F653 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9911F4A24485F653"); var success = false; - fn__0x9911F4A24485F653(&success, _p0); + fn__0x9911F4A24485F653(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75385,9 +75385,9 @@ public void _0x9911F4A24485F653(bool _p0) public void SetPedSuffersCriticalHits(int _ped, bool _toggle) { unsafe { - if (fn__setPedSuffersCriticalHits == null) fn__setPedSuffersCriticalHits = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSuffersCriticalHits"); + if (fn__setPedSuffersCriticalHits == null) fn__setPedSuffersCriticalHits = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSuffersCriticalHits"); var success = false; - fn__setPedSuffersCriticalHits(&success, _ped, _toggle); + fn__setPedSuffersCriticalHits(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75396,9 +75396,9 @@ public void SetPedSuffersCriticalHits(int _ped, bool _toggle) public void _0xAFC976FD0580C7B3(int _ped, bool _toggle) { unsafe { - if (fn__0xAFC976FD0580C7B3 == null) fn__0xAFC976FD0580C7B3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAFC976FD0580C7B3"); + if (fn__0xAFC976FD0580C7B3 == null) fn__0xAFC976FD0580C7B3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAFC976FD0580C7B3"); var success = false; - fn__0xAFC976FD0580C7B3(&success, _ped, _toggle); + fn__0xAFC976FD0580C7B3(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75409,11 +75409,11 @@ public void _0xAFC976FD0580C7B3(int _ped, bool _toggle) public bool IsPedSittingInVehicle(int _ped, int _vehicle) { unsafe { - if (fn__isPedSittingInVehicle == null) fn__isPedSittingInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSittingInVehicle"); + if (fn__isPedSittingInVehicle == null) fn__isPedSittingInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSittingInVehicle"); var success = false; var result = fn__isPedSittingInVehicle(&success, _ped, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75421,11 +75421,11 @@ public bool IsPedSittingInVehicle(int _ped, int _vehicle) public bool IsPedSittingInAnyVehicle(int _ped) { unsafe { - if (fn__isPedSittingInAnyVehicle == null) fn__isPedSittingInAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSittingInAnyVehicle"); + if (fn__isPedSittingInAnyVehicle == null) fn__isPedSittingInAnyVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSittingInAnyVehicle"); var success = false; var result = fn__isPedSittingInAnyVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75433,11 +75433,11 @@ public bool IsPedSittingInAnyVehicle(int _ped) public bool IsPedOnFoot(int _ped) { unsafe { - if (fn__isPedOnFoot == null) fn__isPedOnFoot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnFoot"); + if (fn__isPedOnFoot == null) fn__isPedOnFoot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnFoot"); var success = false; var result = fn__isPedOnFoot(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75445,11 +75445,11 @@ public bool IsPedOnFoot(int _ped) public bool IsPedOnAnyBike(int _ped) { unsafe { - if (fn__isPedOnAnyBike == null) fn__isPedOnAnyBike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnAnyBike"); + if (fn__isPedOnAnyBike == null) fn__isPedOnAnyBike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOnAnyBike"); var success = false; var result = fn__isPedOnAnyBike(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75457,11 +75457,11 @@ public bool IsPedOnAnyBike(int _ped) public bool IsPedPlantingBomb(int _ped) { unsafe { - if (fn__isPedPlantingBomb == null) fn__isPedPlantingBomb = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPlantingBomb"); + if (fn__isPedPlantingBomb == null) fn__isPedPlantingBomb = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPlantingBomb"); var success = false; var result = fn__isPedPlantingBomb(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75481,11 +75481,11 @@ public Vector3 GetDeadPedPickupCoords(int _ped, float _p1, float _p2) public bool IsPedInAnyBoat(int _ped) { unsafe { - if (fn__isPedInAnyBoat == null) fn__isPedInAnyBoat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyBoat"); + if (fn__isPedInAnyBoat == null) fn__isPedInAnyBoat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyBoat"); var success = false; var result = fn__isPedInAnyBoat(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75493,11 +75493,11 @@ public bool IsPedInAnyBoat(int _ped) public bool IsPedInAnySub(int _ped) { unsafe { - if (fn__isPedInAnySub == null) fn__isPedInAnySub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnySub"); + if (fn__isPedInAnySub == null) fn__isPedInAnySub = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnySub"); var success = false; var result = fn__isPedInAnySub(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75505,11 +75505,11 @@ public bool IsPedInAnySub(int _ped) public bool IsPedInAnyHeli(int _ped) { unsafe { - if (fn__isPedInAnyHeli == null) fn__isPedInAnyHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyHeli"); + if (fn__isPedInAnyHeli == null) fn__isPedInAnyHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyHeli"); var success = false; var result = fn__isPedInAnyHeli(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75517,11 +75517,11 @@ public bool IsPedInAnyHeli(int _ped) public bool IsPedInAnyPlane(int _ped) { unsafe { - if (fn__isPedInAnyPlane == null) fn__isPedInAnyPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyPlane"); + if (fn__isPedInAnyPlane == null) fn__isPedInAnyPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyPlane"); var success = false; var result = fn__isPedInAnyPlane(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75529,11 +75529,11 @@ public bool IsPedInAnyPlane(int _ped) public bool IsPedInFlyingVehicle(int _ped) { unsafe { - if (fn__isPedInFlyingVehicle == null) fn__isPedInFlyingVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInFlyingVehicle"); + if (fn__isPedInFlyingVehicle == null) fn__isPedInFlyingVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInFlyingVehicle"); var success = false; var result = fn__isPedInFlyingVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75541,9 +75541,9 @@ public bool IsPedInFlyingVehicle(int _ped) public void SetPedDiesInWater(int _ped, bool _toggle) { unsafe { - if (fn__setPedDiesInWater == null) fn__setPedDiesInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInWater"); + if (fn__setPedDiesInWater == null) fn__setPedDiesInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInWater"); var success = false; - fn__setPedDiesInWater(&success, _ped, _toggle); + fn__setPedDiesInWater(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75552,9 +75552,9 @@ public void SetPedDiesInWater(int _ped, bool _toggle) public void SetPedDiesInSinkingVehicle(int _ped, bool _toggle) { unsafe { - if (fn__setPedDiesInSinkingVehicle == null) fn__setPedDiesInSinkingVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInSinkingVehicle"); + if (fn__setPedDiesInSinkingVehicle == null) fn__setPedDiesInSinkingVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInSinkingVehicle"); var success = false; - fn__setPedDiesInSinkingVehicle(&success, _ped, _toggle); + fn__setPedDiesInSinkingVehicle(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75575,9 +75575,9 @@ public int GetPedArmour(int _ped) public void SetPedStayInVehicleWhenJacked(int _ped, bool _toggle) { unsafe { - if (fn__setPedStayInVehicleWhenJacked == null) fn__setPedStayInVehicleWhenJacked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedStayInVehicleWhenJacked"); + if (fn__setPedStayInVehicleWhenJacked == null) fn__setPedStayInVehicleWhenJacked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedStayInVehicleWhenJacked"); var success = false; - fn__setPedStayInVehicleWhenJacked(&success, _ped, _toggle); + fn__setPedStayInVehicleWhenJacked(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75586,9 +75586,9 @@ public void SetPedStayInVehicleWhenJacked(int _ped, bool _toggle) public void SetPedCanBeShotInVehicle(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanBeShotInVehicle == null) fn__setPedCanBeShotInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeShotInVehicle"); + if (fn__setPedCanBeShotInVehicle == null) fn__setPedCanBeShotInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeShotInVehicle"); var success = false; - fn__setPedCanBeShotInVehicle(&success, _ped, _toggle); + fn__setPedCanBeShotInVehicle(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75597,13 +75597,13 @@ public void SetPedCanBeShotInVehicle(int _ped, bool _toggle) public bool GetPedLastDamageBone(int _ped, ref int _outBone) { unsafe { - if (fn__getPedLastDamageBone == null) fn__getPedLastDamageBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedLastDamageBone"); + if (fn__getPedLastDamageBone == null) fn__getPedLastDamageBone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedLastDamageBone"); var success = false; var ref_outBone = _outBone; var result = fn__getPedLastDamageBone(&success, _ped, &ref_outBone); _outBone = ref_outBone; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75661,9 +75661,9 @@ public void ResetAiMeleeWeaponDamageModifier() public void _0x2F3C3D9F50681DE4(int _p0, bool _p1) { unsafe { - if (fn__0x2F3C3D9F50681DE4 == null) fn__0x2F3C3D9F50681DE4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F3C3D9F50681DE4"); + if (fn__0x2F3C3D9F50681DE4 == null) fn__0x2F3C3D9F50681DE4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F3C3D9F50681DE4"); var success = false; - fn__0x2F3C3D9F50681DE4(&success, _p0, _p1); + fn__0x2F3C3D9F50681DE4(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75672,9 +75672,9 @@ public void _0x2F3C3D9F50681DE4(int _p0, bool _p1) public void SetPedCanBeTargetted(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanBeTargetted == null) fn__setPedCanBeTargetted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetted"); + if (fn__setPedCanBeTargetted == null) fn__setPedCanBeTargetted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetted"); var success = false; - fn__setPedCanBeTargetted(&success, _ped, _toggle); + fn__setPedCanBeTargetted(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75683,9 +75683,9 @@ public void SetPedCanBeTargetted(int _ped, bool _toggle) public void SetPedCanBeTargettedByTeam(int _ped, int _team, bool _toggle) { unsafe { - if (fn__setPedCanBeTargettedByTeam == null) fn__setPedCanBeTargettedByTeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargettedByTeam"); + if (fn__setPedCanBeTargettedByTeam == null) fn__setPedCanBeTargettedByTeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargettedByTeam"); var success = false; - fn__setPedCanBeTargettedByTeam(&success, _ped, _team, _toggle); + fn__setPedCanBeTargettedByTeam(&success, _ped, _team, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75696,9 +75696,9 @@ public void SetPedCanBeTargettedByTeam(int _ped, int _team, bool _toggle) public void SetPedCanBeTargettedByPlayer(int _ped, int _player, bool _toggle) { unsafe { - if (fn__setPedCanBeTargettedByPlayer == null) fn__setPedCanBeTargettedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargettedByPlayer"); + if (fn__setPedCanBeTargettedByPlayer == null) fn__setPedCanBeTargettedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargettedByPlayer"); var success = false; - fn__setPedCanBeTargettedByPlayer(&success, _ped, _player, _toggle); + fn__setPedCanBeTargettedByPlayer(&success, _ped, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75707,9 +75707,9 @@ public void SetPedCanBeTargettedByPlayer(int _ped, int _player, bool _toggle) public void _0x061CB768363D6424(int _ped, bool _toggle) { unsafe { - if (fn__0x061CB768363D6424 == null) fn__0x061CB768363D6424 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x061CB768363D6424"); + if (fn__0x061CB768363D6424 == null) fn__0x061CB768363D6424 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x061CB768363D6424"); var success = false; - fn__0x061CB768363D6424(&success, _ped, _toggle); + fn__0x061CB768363D6424(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75718,9 +75718,9 @@ public void _0x061CB768363D6424(int _ped, bool _toggle) public void _0xFD325494792302D7(int _ped, bool _toggle) { unsafe { - if (fn__0xFD325494792302D7 == null) fn__0xFD325494792302D7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFD325494792302D7"); + if (fn__0xFD325494792302D7 == null) fn__0xFD325494792302D7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFD325494792302D7"); var success = false; - fn__0xFD325494792302D7(&success, _ped, _toggle); + fn__0xFD325494792302D7(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75729,11 +75729,11 @@ public void _0xFD325494792302D7(int _ped, bool _toggle) public bool IsPedInAnyPoliceVehicle(int _ped) { unsafe { - if (fn__isPedInAnyPoliceVehicle == null) fn__isPedInAnyPoliceVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyPoliceVehicle"); + if (fn__isPedInAnyPoliceVehicle == null) fn__isPedInAnyPoliceVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyPoliceVehicle"); var success = false; var result = fn__isPedInAnyPoliceVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75752,11 +75752,11 @@ public void ForcePedToOpenParachute(int _ped) public bool IsPedInParachuteFreeFall(int _ped) { unsafe { - if (fn__isPedInParachuteFreeFall == null) fn__isPedInParachuteFreeFall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInParachuteFreeFall"); + if (fn__isPedInParachuteFreeFall == null) fn__isPedInParachuteFreeFall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInParachuteFreeFall"); var success = false; var result = fn__isPedInParachuteFreeFall(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75764,11 +75764,11 @@ public bool IsPedInParachuteFreeFall(int _ped) public bool IsPedFalling(int _ped) { unsafe { - if (fn__isPedFalling == null) fn__isPedFalling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFalling"); + if (fn__isPedFalling == null) fn__isPedFalling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFalling"); var success = false; var result = fn__isPedFalling(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75776,11 +75776,11 @@ public bool IsPedFalling(int _ped) public bool IsPedJumping(int _ped) { unsafe { - if (fn__isPedJumping == null) fn__isPedJumping = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJumping"); + if (fn__isPedJumping == null) fn__isPedJumping = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJumping"); var success = false; var result = fn__isPedJumping(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75810,11 +75810,11 @@ public int _0x451D05012CCEC234(int _p0) public bool IsPedClimbing(int _ped) { unsafe { - if (fn__isPedClimbing == null) fn__isPedClimbing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedClimbing"); + if (fn__isPedClimbing == null) fn__isPedClimbing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedClimbing"); var success = false; var result = fn__isPedClimbing(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75822,11 +75822,11 @@ public bool IsPedClimbing(int _ped) public bool IsPedVaulting(int _ped) { unsafe { - if (fn__isPedVaulting == null) fn__isPedVaulting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedVaulting"); + if (fn__isPedVaulting == null) fn__isPedVaulting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedVaulting"); var success = false; var result = fn__isPedVaulting(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75834,11 +75834,11 @@ public bool IsPedVaulting(int _ped) public bool IsPedDiving(int _ped) { unsafe { - if (fn__isPedDiving == null) fn__isPedDiving = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDiving"); + if (fn__isPedDiving == null) fn__isPedDiving = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDiving"); var success = false; var result = fn__isPedDiving(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75846,11 +75846,11 @@ public bool IsPedDiving(int _ped) public bool IsPedJumpingOutOfVehicle(int _ped) { unsafe { - if (fn__isPedJumpingOutOfVehicle == null) fn__isPedJumpingOutOfVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJumpingOutOfVehicle"); + if (fn__isPedJumpingOutOfVehicle == null) fn__isPedJumpingOutOfVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJumpingOutOfVehicle"); var success = false; var result = fn__isPedJumpingOutOfVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75858,11 +75858,11 @@ public bool IsPedJumpingOutOfVehicle(int _ped) public bool IsPedOpeningADoor(int _ped) { unsafe { - if (fn__isPedOpeningADoor == null) fn__isPedOpeningADoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOpeningADoor"); + if (fn__isPedOpeningADoor == null) fn__isPedOpeningADoor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedOpeningADoor"); var success = false; var result = fn__isPedOpeningADoor(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75929,9 +75929,9 @@ public void SetPedReserveParachuteTintIndex(int _ped, int _p1) public int CreateParachuteBagObject(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__createParachuteBagObject == null) fn__createParachuteBagObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createParachuteBagObject"); + if (fn__createParachuteBagObject == null) fn__createParachuteBagObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createParachuteBagObject"); var success = false; - var result = fn__createParachuteBagObject(&success, _ped, _p1, _p2); + var result = fn__createParachuteBagObject(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -75941,9 +75941,9 @@ public int CreateParachuteBagObject(int _ped, bool _p1, bool _p2) public void SetPedDucking(int _ped, bool _toggle) { unsafe { - if (fn__setPedDucking == null) fn__setPedDucking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDucking"); + if (fn__setPedDucking == null) fn__setPedDucking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDucking"); var success = false; - fn__setPedDucking(&success, _ped, _toggle); + fn__setPedDucking(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -75952,11 +75952,11 @@ public void SetPedDucking(int _ped, bool _toggle) public bool IsPedDucking(int _ped) { unsafe { - if (fn__isPedDucking == null) fn__isPedDucking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDucking"); + if (fn__isPedDucking == null) fn__isPedDucking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDucking"); var success = false; var result = fn__isPedDucking(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75964,11 +75964,11 @@ public bool IsPedDucking(int _ped) public bool IsPedInAnyTaxi(int _ped) { unsafe { - if (fn__isPedInAnyTaxi == null) fn__isPedInAnyTaxi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyTaxi"); + if (fn__isPedInAnyTaxi == null) fn__isPedInAnyTaxi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyTaxi"); var success = false; var result = fn__isPedInAnyTaxi(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -75987,9 +75987,9 @@ public void SetPedIdRange(int _ped, float _value) public void SetPedHighlyPerceptive(int _ped, bool _toggle) { unsafe { - if (fn__setPedHighlyPerceptive == null) fn__setPedHighlyPerceptive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHighlyPerceptive"); + if (fn__setPedHighlyPerceptive == null) fn__setPedHighlyPerceptive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHighlyPerceptive"); var success = false; - fn__setPedHighlyPerceptive(&success, _ped, _toggle); + fn__setPedHighlyPerceptive(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76129,10 +76129,10 @@ public float GetPedVisualFieldCenterAngle(int _ped) public void SetPedStealthMovement(int _ped, bool _p1, string _action) { unsafe { - if (fn__setPedStealthMovement == null) fn__setPedStealthMovement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedStealthMovement"); + if (fn__setPedStealthMovement == null) fn__setPedStealthMovement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedStealthMovement"); var success = false; var ptr_action = MemoryUtils.StringToHGlobalUtf8(_action); - fn__setPedStealthMovement(&success, _ped, _p1, ptr_action); + fn__setPedStealthMovement(&success, _ped, (byte) (_p1 ? 1 : 0), ptr_action); Marshal.FreeHGlobal(ptr_action); if (!success) throw new Exception("Native execution failed"); } @@ -76142,11 +76142,11 @@ public void SetPedStealthMovement(int _ped, bool _p1, string _action) public bool GetPedStealthMovement(int _ped) { unsafe { - if (fn__getPedStealthMovement == null) fn__getPedStealthMovement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedStealthMovement"); + if (fn__getPedStealthMovement == null) fn__getPedStealthMovement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedStealthMovement"); var success = false; var result = fn__getPedStealthMovement(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76187,9 +76187,9 @@ public void SetPedAsGroupMember(int _ped, int _groupId) public void SetPedCanTeleportToGroupLeader(int _pedHandle, int _groupHandle, bool _toggle) { unsafe { - if (fn__setPedCanTeleportToGroupLeader == null) fn__setPedCanTeleportToGroupLeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTeleportToGroupLeader"); + if (fn__setPedCanTeleportToGroupLeader == null) fn__setPedCanTeleportToGroupLeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTeleportToGroupLeader"); var success = false; - fn__setPedCanTeleportToGroupLeader(&success, _pedHandle, _groupHandle, _toggle); + fn__setPedCanTeleportToGroupLeader(&success, _pedHandle, _groupHandle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76219,11 +76219,11 @@ public void RemovePedFromGroup(int _ped) public bool IsPedGroupMember(int _ped, int _groupId) { unsafe { - if (fn__isPedGroupMember == null) fn__isPedGroupMember = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGroupMember"); + if (fn__isPedGroupMember == null) fn__isPedGroupMember = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGroupMember"); var success = false; var result = fn__isPedGroupMember(&success, _ped, _groupId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76231,11 +76231,11 @@ public bool IsPedGroupMember(int _ped, int _groupId) public bool IsPedHangingOnToVehicle(int _ped) { unsafe { - if (fn__isPedHangingOnToVehicle == null) fn__isPedHangingOnToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHangingOnToVehicle"); + if (fn__isPedHangingOnToVehicle == null) fn__isPedHangingOnToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHangingOnToVehicle"); var success = false; var result = fn__isPedHangingOnToVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76264,11 +76264,11 @@ public void SetPedMinGroundTimeForStungun(int _ped, int _ms) public bool IsPedProne(int _ped) { unsafe { - if (fn__isPedProne == null) fn__isPedProne = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedProne"); + if (fn__isPedProne == null) fn__isPedProne = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedProne"); var success = false; var result = fn__isPedProne(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76278,11 +76278,11 @@ public bool IsPedProne(int _ped) public bool IsPedInCombat(int _ped, int _target) { unsafe { - if (fn__isPedInCombat == null) fn__isPedInCombat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCombat"); + if (fn__isPedInCombat == null) fn__isPedInCombat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCombat"); var success = false; var result = fn__isPedInCombat(&success, _ped, _target); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76304,11 +76304,11 @@ public int GetPedTaskCombatTarget(int _ped, int _p1) public bool CanPedInCombatSeeTarget(int _ped, int _target) { unsafe { - if (fn__canPedInCombatSeeTarget == null) fn__canPedInCombatSeeTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedInCombatSeeTarget"); + if (fn__canPedInCombatSeeTarget == null) fn__canPedInCombatSeeTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedInCombatSeeTarget"); var success = false; var result = fn__canPedInCombatSeeTarget(&success, _ped, _target); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76316,11 +76316,11 @@ public bool CanPedInCombatSeeTarget(int _ped, int _target) public bool IsPedDoingDriveby(int _ped) { unsafe { - if (fn__isPedDoingDriveby == null) fn__isPedDoingDriveby = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDoingDriveby"); + if (fn__isPedDoingDriveby == null) fn__isPedDoingDriveby = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDoingDriveby"); var success = false; var result = fn__isPedDoingDriveby(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76328,11 +76328,11 @@ public bool IsPedDoingDriveby(int _ped) public bool IsPedJacking(int _ped) { unsafe { - if (fn__isPedJacking == null) fn__isPedJacking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJacking"); + if (fn__isPedJacking == null) fn__isPedJacking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedJacking"); var success = false; var result = fn__isPedJacking(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76340,11 +76340,11 @@ public bool IsPedJacking(int _ped) public bool IsPedBeingJacked(int _ped) { unsafe { - if (fn__isPedBeingJacked == null) fn__isPedBeingJacked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingJacked"); + if (fn__isPedBeingJacked == null) fn__isPedBeingJacked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingJacked"); var success = false; var result = fn__isPedBeingJacked(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76352,11 +76352,11 @@ public bool IsPedBeingJacked(int _ped) public bool IsPedBeingStunned(int _ped, int _p1) { unsafe { - if (fn__isPedBeingStunned == null) fn__isPedBeingStunned = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingStunned"); + if (fn__isPedBeingStunned == null) fn__isPedBeingStunned = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingStunned"); var success = false; var result = fn__isPedBeingStunned(&success, _ped, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76388,11 +76388,11 @@ public int GetJackTarget(int _ped) public bool IsPedFleeing(int _ped) { unsafe { - if (fn__isPedFleeing == null) fn__isPedFleeing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFleeing"); + if (fn__isPedFleeing == null) fn__isPedFleeing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedFleeing"); var success = false; var result = fn__isPedFleeing(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76400,11 +76400,11 @@ public bool IsPedFleeing(int _ped) public bool IsPedInCover(int _ped, bool _exceptUseWeapon) { unsafe { - if (fn__isPedInCover == null) fn__isPedInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCover"); + if (fn__isPedInCover == null) fn__isPedInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCover"); var success = false; - var result = fn__isPedInCover(&success, _ped, _exceptUseWeapon); + var result = fn__isPedInCover(&success, _ped, (byte) (_exceptUseWeapon ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76412,11 +76412,11 @@ public bool IsPedInCover(int _ped, bool _exceptUseWeapon) public bool IsPedInCoverFacingLeft(int _ped) { unsafe { - if (fn__isPedInCoverFacingLeft == null) fn__isPedInCoverFacingLeft = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCoverFacingLeft"); + if (fn__isPedInCoverFacingLeft == null) fn__isPedInCoverFacingLeft = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInCoverFacingLeft"); var success = false; var result = fn__isPedInCoverFacingLeft(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76424,11 +76424,11 @@ public bool IsPedInCoverFacingLeft(int _ped) public bool IsPedInHighCover(int _ped) { unsafe { - if (fn__isPedInHighCover == null) fn__isPedInHighCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInHighCover"); + if (fn__isPedInHighCover == null) fn__isPedInHighCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInHighCover"); var success = false; var result = fn__isPedInHighCover(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76436,11 +76436,11 @@ public bool IsPedInHighCover(int _ped) public bool IsPedGoingIntoCover(int _ped) { unsafe { - if (fn__isPedGoingIntoCover == null) fn__isPedGoingIntoCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGoingIntoCover"); + if (fn__isPedGoingIntoCover == null) fn__isPedGoingIntoCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGoingIntoCover"); var success = false; var result = fn__isPedGoingIntoCover(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76448,9 +76448,9 @@ public bool IsPedGoingIntoCover(int _ped) public int SetPedPinnedDown(int _ped, bool _pinned, int _i) { unsafe { - if (fn__setPedPinnedDown == null) fn__setPedPinnedDown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPinnedDown"); + if (fn__setPedPinnedDown == null) fn__setPedPinnedDown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPinnedDown"); var success = false; - var result = fn__setPedPinnedDown(&success, _ped, _pinned, _i); + var result = fn__setPedPinnedDown(&success, _ped, (byte) (_pinned ? 1 : 0), _i); if (!success) throw new Exception("Native execution failed"); return result; } @@ -76608,11 +76608,11 @@ public void RemoveRelationshipGroup(uint _groupHash) public bool DoesRelationshipGroupExist(uint _groupHash) { unsafe { - if (fn__doesRelationshipGroupExist == null) fn__doesRelationshipGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRelationshipGroupExist"); + if (fn__doesRelationshipGroupExist == null) fn__doesRelationshipGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRelationshipGroupExist"); var success = false; var result = fn__doesRelationshipGroupExist(&success, _groupHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76668,9 +76668,9 @@ public int GetRelationshipBetweenGroups(uint _group1, uint _group2) public void SetRelationshipGroupDontAffectWantedLevel(uint _group, bool _p1) { unsafe { - if (fn__setRelationshipGroupDontAffectWantedLevel == null) fn__setRelationshipGroupDontAffectWantedLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRelationshipGroupDontAffectWantedLevel"); + if (fn__setRelationshipGroupDontAffectWantedLevel == null) fn__setRelationshipGroupDontAffectWantedLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRelationshipGroupDontAffectWantedLevel"); var success = false; - fn__setRelationshipGroupDontAffectWantedLevel(&success, _group, _p1); + fn__setRelationshipGroupDontAffectWantedLevel(&success, _group, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76690,9 +76690,9 @@ public void _0xAD27D957598E49E9(int _ped, int _p1, float _p2, uint _hash, int _p public void SetPedCanBeTargetedWithoutLos(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanBeTargetedWithoutLos == null) fn__setPedCanBeTargetedWithoutLos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetedWithoutLos"); + if (fn__setPedCanBeTargetedWithoutLos == null) fn__setPedCanBeTargetedWithoutLos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetedWithoutLos"); var success = false; - fn__setPedCanBeTargetedWithoutLos(&success, _ped, _toggle); + fn__setPedCanBeTargetedWithoutLos(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76712,11 +76712,11 @@ public void SetPedToInformRespectedFriends(int _ped, float _radius, int _maxFrie public bool IsPedRespondingToEvent(int _ped, int _event) { unsafe { - if (fn__isPedRespondingToEvent == null) fn__isPedRespondingToEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRespondingToEvent"); + if (fn__isPedRespondingToEvent == null) fn__isPedRespondingToEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRespondingToEvent"); var success = false; var result = fn__isPedRespondingToEvent(&success, _ped, _event); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76724,13 +76724,13 @@ public bool IsPedRespondingToEvent(int _ped, int _event) public bool GetPedEventData(int _ped, int _eventType, ref int _outData) { unsafe { - if (fn__getPedEventData == null) fn__getPedEventData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedEventData"); + if (fn__getPedEventData == null) fn__getPedEventData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedEventData"); var success = false; var ref_outData = _outData; var result = fn__getPedEventData(&success, _ped, _eventType, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76796,11 +76796,11 @@ public void GetGroupSize(int _groupID, ref int _unknown, ref int _sizeInMembers) public bool DoesGroupExist(int _groupId) { unsafe { - if (fn__doesGroupExist == null) fn__doesGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesGroupExist"); + if (fn__doesGroupExist == null) fn__doesGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesGroupExist"); var success = false; var result = fn__doesGroupExist(&success, _groupId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76820,11 +76820,11 @@ public int GetPedGroupIndex(int _ped) public bool IsPedInGroup(int _ped) { unsafe { - if (fn__isPedInGroup == null) fn__isPedInGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInGroup"); + if (fn__isPedInGroup == null) fn__isPedInGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInGroup"); var success = false; var result = fn__isPedInGroup(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -76898,9 +76898,9 @@ public int GetVehiclePedIsEntering(int _ped) public void SetPedGravity(int _ped, bool _toggle) { unsafe { - if (fn__setPedGravity == null) fn__setPedGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGravity"); + if (fn__setPedGravity == null) fn__setPedGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGravity"); var success = false; - fn__setPedGravity(&success, _ped, _toggle); + fn__setPedGravity(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76909,9 +76909,9 @@ public void SetPedGravity(int _ped, bool _toggle) public void ApplyDamageToPed(int _ped, int _damageAmount, bool _p2, int _p3) { unsafe { - if (fn__applyDamageToPed == null) fn__applyDamageToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyDamageToPed"); + if (fn__applyDamageToPed == null) fn__applyDamageToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyDamageToPed"); var success = false; - fn__applyDamageToPed(&success, _ped, _damageAmount, _p2, _p3); + fn__applyDamageToPed(&success, _ped, _damageAmount, (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -76932,9 +76932,9 @@ public int GetTimeOfLastPedWeaponDamage(int _ped, uint _weaponHash) public void SetPedAllowedToDuck(int _ped, bool _toggle) { unsafe { - if (fn__setPedAllowedToDuck == null) fn__setPedAllowedToDuck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAllowedToDuck"); + if (fn__setPedAllowedToDuck == null) fn__setPedAllowedToDuck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAllowedToDuck"); var success = false; - fn__setPedAllowedToDuck(&success, _ped, _toggle); + fn__setPedAllowedToDuck(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76943,9 +76943,9 @@ public void SetPedAllowedToDuck(int _ped, bool _toggle) public void SetPedNeverLeavesGroup(int _ped, bool _toggle) { unsafe { - if (fn__setPedNeverLeavesGroup == null) fn__setPedNeverLeavesGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedNeverLeavesGroup"); + if (fn__setPedNeverLeavesGroup == null) fn__setPedNeverLeavesGroup = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedNeverLeavesGroup"); var success = false; - fn__setPedNeverLeavesGroup(&success, _ped, _toggle); + fn__setPedNeverLeavesGroup(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -76966,9 +76966,9 @@ public int GetPedType(int _ped) public void SetPedAsCop(int _ped, bool _toggle) { unsafe { - if (fn__setPedAsCop == null) fn__setPedAsCop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAsCop"); + if (fn__setPedAsCop == null) fn__setPedAsCop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAsCop"); var success = false; - fn__setPedAsCop(&success, _ped, _toggle); + fn__setPedAsCop(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77078,11 +77078,11 @@ public void SetPedCanBeKnockedOffVehicle(int _ped, int _state) public bool CanKnockPedOffVehicle(int _ped) { unsafe { - if (fn__canKnockPedOffVehicle == null) fn__canKnockPedOffVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canKnockPedOffVehicle"); + if (fn__canKnockPedOffVehicle == null) fn__canKnockPedOffVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canKnockPedOffVehicle"); var success = false; var result = fn__canKnockPedOffVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77134,9 +77134,9 @@ public int GetPedAsGroupLeader(int _groupID) public void SetPedKeepTask(int _ped, bool _toggle) { unsafe { - if (fn__setPedKeepTask == null) fn__setPedKeepTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedKeepTask"); + if (fn__setPedKeepTask == null) fn__setPedKeepTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedKeepTask"); var success = false; - fn__setPedKeepTask(&success, _ped, _toggle); + fn__setPedKeepTask(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77145,9 +77145,9 @@ public void SetPedKeepTask(int _ped, bool _toggle) public void _0x49E50BDB8BA4DAB2(int _ped, bool _toggle) { unsafe { - if (fn__0x49E50BDB8BA4DAB2 == null) fn__0x49E50BDB8BA4DAB2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x49E50BDB8BA4DAB2"); + if (fn__0x49E50BDB8BA4DAB2 == null) fn__0x49E50BDB8BA4DAB2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x49E50BDB8BA4DAB2"); var success = false; - fn__0x49E50BDB8BA4DAB2(&success, _ped, _toggle); + fn__0x49E50BDB8BA4DAB2(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77156,11 +77156,11 @@ public void _0x49E50BDB8BA4DAB2(int _ped, bool _toggle) public bool IsPedSwimming(int _ped) { unsafe { - if (fn__isPedSwimming == null) fn__isPedSwimming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwimming"); + if (fn__isPedSwimming == null) fn__isPedSwimming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwimming"); var success = false; var result = fn__isPedSwimming(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77168,11 +77168,11 @@ public bool IsPedSwimming(int _ped) public bool IsPedSwimmingUnderWater(int _ped) { unsafe { - if (fn__isPedSwimmingUnderWater == null) fn__isPedSwimmingUnderWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwimmingUnderWater"); + if (fn__isPedSwimmingUnderWater == null) fn__isPedSwimmingUnderWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwimmingUnderWater"); var success = false; var result = fn__isPedSwimmingUnderWater(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77191,9 +77191,9 @@ public void SetPedCoordsKeepVehicle(int _ped, float _posX, float _posY, float _p public void SetPedDiesInVehicle(int _ped, bool _toggle) { unsafe { - if (fn__setPedDiesInVehicle == null) fn__setPedDiesInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInVehicle"); + if (fn__setPedDiesInVehicle == null) fn__setPedDiesInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInVehicle"); var success = false; - fn__setPedDiesInVehicle(&success, _ped, _toggle); + fn__setPedDiesInVehicle(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77201,9 +77201,9 @@ public void SetPedDiesInVehicle(int _ped, bool _toggle) public void SetCreateRandomCops(bool _toggle) { unsafe { - if (fn__setCreateRandomCops == null) fn__setCreateRandomCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCops"); + if (fn__setCreateRandomCops == null) fn__setCreateRandomCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCops"); var success = false; - fn__setCreateRandomCops(&success, _toggle); + fn__setCreateRandomCops(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77211,9 +77211,9 @@ public void SetCreateRandomCops(bool _toggle) public void SetCreateRandomCopsNotOnScenarios(bool _toggle) { unsafe { - if (fn__setCreateRandomCopsNotOnScenarios == null) fn__setCreateRandomCopsNotOnScenarios = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCopsNotOnScenarios"); + if (fn__setCreateRandomCopsNotOnScenarios == null) fn__setCreateRandomCopsNotOnScenarios = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCopsNotOnScenarios"); var success = false; - fn__setCreateRandomCopsNotOnScenarios(&success, _toggle); + fn__setCreateRandomCopsNotOnScenarios(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77221,9 +77221,9 @@ public void SetCreateRandomCopsNotOnScenarios(bool _toggle) public void SetCreateRandomCopsOnScenarios(bool _toggle) { unsafe { - if (fn__setCreateRandomCopsOnScenarios == null) fn__setCreateRandomCopsOnScenarios = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCopsOnScenarios"); + if (fn__setCreateRandomCopsOnScenarios == null) fn__setCreateRandomCopsOnScenarios = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCreateRandomCopsOnScenarios"); var success = false; - fn__setCreateRandomCopsOnScenarios(&success, _toggle); + fn__setCreateRandomCopsOnScenarios(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77231,11 +77231,11 @@ public void SetCreateRandomCopsOnScenarios(bool _toggle) public bool CanCreateRandomCops() { unsafe { - if (fn__canCreateRandomCops == null) fn__canCreateRandomCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomCops"); + if (fn__canCreateRandomCops == null) fn__canCreateRandomCops = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canCreateRandomCops"); var success = false; var result = fn__canCreateRandomCops(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77243,9 +77243,9 @@ public bool CanCreateRandomCops() public void SetPedAsEnemy(int _ped, bool _toggle) { unsafe { - if (fn__setPedAsEnemy == null) fn__setPedAsEnemy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAsEnemy"); + if (fn__setPedAsEnemy == null) fn__setPedAsEnemy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAsEnemy"); var success = false; - fn__setPedAsEnemy(&success, _ped, _toggle); + fn__setPedAsEnemy(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77254,9 +77254,9 @@ public void SetPedAsEnemy(int _ped, bool _toggle) public void SetPedCanSmashGlass(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__setPedCanSmashGlass == null) fn__setPedCanSmashGlass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanSmashGlass"); + if (fn__setPedCanSmashGlass == null) fn__setPedCanSmashGlass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanSmashGlass"); var success = false; - fn__setPedCanSmashGlass(&success, _ped, _p1, _p2); + fn__setPedCanSmashGlass(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77265,11 +77265,11 @@ public void SetPedCanSmashGlass(int _ped, bool _p1, bool _p2) public bool IsPedInAnyTrain(int _ped) { unsafe { - if (fn__isPedInAnyTrain == null) fn__isPedInAnyTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyTrain"); + if (fn__isPedInAnyTrain == null) fn__isPedInAnyTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInAnyTrain"); var success = false; var result = fn__isPedInAnyTrain(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77277,11 +77277,11 @@ public bool IsPedInAnyTrain(int _ped) public bool IsPedGettingIntoAVehicle(int _ped) { unsafe { - if (fn__isPedGettingIntoAVehicle == null) fn__isPedGettingIntoAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGettingIntoAVehicle"); + if (fn__isPedGettingIntoAVehicle == null) fn__isPedGettingIntoAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGettingIntoAVehicle"); var success = false; var result = fn__isPedGettingIntoAVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77289,11 +77289,11 @@ public bool IsPedGettingIntoAVehicle(int _ped) public bool IsPedTryingToEnterALockedVehicle(int _ped) { unsafe { - if (fn__isPedTryingToEnterALockedVehicle == null) fn__isPedTryingToEnterALockedVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTryingToEnterALockedVehicle"); + if (fn__isPedTryingToEnterALockedVehicle == null) fn__isPedTryingToEnterALockedVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTryingToEnterALockedVehicle"); var success = false; var result = fn__isPedTryingToEnterALockedVehicle(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77301,9 +77301,9 @@ public bool IsPedTryingToEnterALockedVehicle(int _ped) public void SetEnableHandcuffs(int _ped, bool _toggle) { unsafe { - if (fn__setEnableHandcuffs == null) fn__setEnableHandcuffs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableHandcuffs"); + if (fn__setEnableHandcuffs == null) fn__setEnableHandcuffs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableHandcuffs"); var success = false; - fn__setEnableHandcuffs(&success, _ped, _toggle); + fn__setEnableHandcuffs(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77312,9 +77312,9 @@ public void SetEnableHandcuffs(int _ped, bool _toggle) public void SetEnableBoundAnkles(int _ped, bool _toggle) { unsafe { - if (fn__setEnableBoundAnkles == null) fn__setEnableBoundAnkles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableBoundAnkles"); + if (fn__setEnableBoundAnkles == null) fn__setEnableBoundAnkles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableBoundAnkles"); var success = false; - fn__setEnableBoundAnkles(&success, _ped, _toggle); + fn__setEnableBoundAnkles(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77323,9 +77323,9 @@ public void SetEnableBoundAnkles(int _ped, bool _toggle) public void SetEnableScuba(int _ped, bool _toggle) { unsafe { - if (fn__setEnableScuba == null) fn__setEnableScuba = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableScuba"); + if (fn__setEnableScuba == null) fn__setEnableScuba = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableScuba"); var success = false; - fn__setEnableScuba(&success, _ped, _toggle); + fn__setEnableScuba(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77334,9 +77334,9 @@ public void SetEnableScuba(int _ped, bool _toggle) public void SetCanAttackFriendly(int _ped, bool _toggle, bool _p2) { unsafe { - if (fn__setCanAttackFriendly == null) fn__setCanAttackFriendly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanAttackFriendly"); + if (fn__setCanAttackFriendly == null) fn__setCanAttackFriendly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanAttackFriendly"); var success = false; - fn__setCanAttackFriendly(&success, _ped, _toggle, _p2); + fn__setCanAttackFriendly(&success, _ped, (byte) (_toggle ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77368,9 +77368,9 @@ public void SetPedAlertness(int _ped, int _value) public void SetPedGetOutUpsideDownVehicle(int _ped, bool _toggle) { unsafe { - if (fn__setPedGetOutUpsideDownVehicle == null) fn__setPedGetOutUpsideDownVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGetOutUpsideDownVehicle"); + if (fn__setPedGetOutUpsideDownVehicle == null) fn__setPedGetOutUpsideDownVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGetOutUpsideDownVehicle"); var success = false; - fn__setPedGetOutUpsideDownVehicle(&success, _ped, _toggle); + fn__setPedGetOutUpsideDownVehicle(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77532,7 +77532,7 @@ public void ResetPedInVehicleContext(int _ped) public bool IsScriptedScenarioPedUsingConditionalAnim(int _ped, string _animDict, string _anim) { unsafe { - if (fn__isScriptedScenarioPedUsingConditionalAnim == null) fn__isScriptedScenarioPedUsingConditionalAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedScenarioPedUsingConditionalAnim"); + if (fn__isScriptedScenarioPedUsingConditionalAnim == null) fn__isScriptedScenarioPedUsingConditionalAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScriptedScenarioPedUsingConditionalAnim"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_anim = MemoryUtils.StringToHGlobalUtf8(_anim); @@ -77540,7 +77540,7 @@ public bool IsScriptedScenarioPedUsingConditionalAnim(int _ped, string _animDict Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_anim); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77548,11 +77548,11 @@ public bool IsScriptedScenarioPedUsingConditionalAnim(int _ped, string _animDict public void SetPedAlternateWalkAnim(int _ped, string _animDict, string _animName, float _p3, bool _p4) { unsafe { - if (fn__setPedAlternateWalkAnim == null) fn__setPedAlternateWalkAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAlternateWalkAnim"); + if (fn__setPedAlternateWalkAnim == null) fn__setPedAlternateWalkAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAlternateWalkAnim"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animName = MemoryUtils.StringToHGlobalUtf8(_animName); - fn__setPedAlternateWalkAnim(&success, _ped, ptr_animDict, ptr_animName, _p3, _p4); + fn__setPedAlternateWalkAnim(&success, _ped, ptr_animDict, ptr_animName, _p3, (byte) (_p4 ? 1 : 0)); Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animName); if (!success) throw new Exception("Native execution failed"); @@ -77574,11 +77574,11 @@ public void ClearPedAlternateWalkAnim(int _ped, float _p1) public void SetPedAlternateMovementAnim(int _ped, int _stance, string _animDictionary, string _animationName, float _p4, bool _p5) { unsafe { - if (fn__setPedAlternateMovementAnim == null) fn__setPedAlternateMovementAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAlternateMovementAnim"); + if (fn__setPedAlternateMovementAnim == null) fn__setPedAlternateMovementAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAlternateMovementAnim"); var success = false; var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); var ptr_animationName = MemoryUtils.StringToHGlobalUtf8(_animationName); - fn__setPedAlternateMovementAnim(&success, _ped, _stance, ptr_animDictionary, ptr_animationName, _p4, _p5); + fn__setPedAlternateMovementAnim(&success, _ped, _stance, ptr_animDictionary, ptr_animationName, _p4, (byte) (_p5 ? 1 : 0)); Marshal.FreeHGlobal(ptr_animDictionary); Marshal.FreeHGlobal(ptr_animationName); if (!success) throw new Exception("Native execution failed"); @@ -77726,7 +77726,7 @@ public int GetPedPaletteVariation(int _ped, int _componentId) public bool _0x9E30E91FB03A2CAF(ref int _p0, ref int _p1) { unsafe { - if (fn__0x9E30E91FB03A2CAF == null) fn__0x9E30E91FB03A2CAF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9E30E91FB03A2CAF"); + if (fn__0x9E30E91FB03A2CAF == null) fn__0x9E30E91FB03A2CAF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9E30E91FB03A2CAF"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -77734,7 +77734,7 @@ public bool _0x9E30E91FB03A2CAF(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77764,11 +77764,11 @@ public int _0xF033419D1B81FAE8(int _p0) public bool IsPedComponentVariationValid(int _ped, int _componentId, int _drawableId, int _textureId) { unsafe { - if (fn__isPedComponentVariationValid == null) fn__isPedComponentVariationValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedComponentVariationValid"); + if (fn__isPedComponentVariationValid == null) fn__isPedComponentVariationValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedComponentVariationValid"); var success = false; var result = fn__isPedComponentVariationValid(&success, _ped, _componentId, _drawableId, _textureId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77831,9 +77831,9 @@ public void SetPedBlendFromParents(int _ped, int _p1, int _p2, float _p3, float public void SetPedHeadBlendData(int _ped, int _shapeFirstID, int _shapeSecondID, int _shapeThirdID, int _skinFirstID, int _skinSecondID, int _skinThirdID, float _shapeMix, float _skinMix, float _thirdMix, bool _isParent) { unsafe { - if (fn__setPedHeadBlendData == null) fn__setPedHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHeadBlendData"); + if (fn__setPedHeadBlendData == null) fn__setPedHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHeadBlendData"); var success = false; - fn__setPedHeadBlendData(&success, _ped, _shapeFirstID, _shapeSecondID, _shapeThirdID, _skinFirstID, _skinSecondID, _skinThirdID, _shapeMix, _skinMix, _thirdMix, _isParent); + fn__setPedHeadBlendData(&success, _ped, _shapeFirstID, _shapeSecondID, _shapeThirdID, _skinFirstID, _skinSecondID, _skinThirdID, _shapeMix, _skinMix, _thirdMix, (byte) (_isParent ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -77842,13 +77842,13 @@ public void SetPedHeadBlendData(int _ped, int _shapeFirstID, int _shapeSecondID, public bool GetPedHeadBlendData(int _ped, ref int _headBlendData) { unsafe { - if (fn__getPedHeadBlendData == null) fn__getPedHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedHeadBlendData"); + if (fn__getPedHeadBlendData == null) fn__getPedHeadBlendData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedHeadBlendData"); var success = false; var ref_headBlendData = _headBlendData; var result = fn__getPedHeadBlendData(&success, _ped, &ref_headBlendData); _headBlendData = ref_headBlendData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -77999,11 +77999,11 @@ public void GetPedMakeupRgbColor(int _makeupColorIndex, ref int _outR, ref int _ public bool IsPedHairColorValid2(int _colorId) { unsafe { - if (fn__isPedHairColorValid2 == null) fn__isPedHairColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHairColorValid2"); + if (fn__isPedHairColorValid2 == null) fn__isPedHairColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHairColorValid2"); var success = false; var result = fn__isPedHairColorValid2(&success, _colorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78021,33 +78021,33 @@ public int _0xEA9960D07DADCF10(int _p0) public bool IsPedLipstickColorValid2(int _colorId) { unsafe { - if (fn__isPedLipstickColorValid2 == null) fn__isPedLipstickColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedLipstickColorValid2"); + if (fn__isPedLipstickColorValid2 == null) fn__isPedLipstickColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedLipstickColorValid2"); var success = false; var result = fn__isPedLipstickColorValid2(&success, _colorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPedBlushColorValid2(int _colorId) { unsafe { - if (fn__isPedBlushColorValid2 == null) fn__isPedBlushColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBlushColorValid2"); + if (fn__isPedBlushColorValid2 == null) fn__isPedBlushColorValid2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBlushColorValid2"); var success = false; var result = fn__isPedBlushColorValid2(&success, _colorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPedHairColorValid(int _colorID) { unsafe { - if (fn__isPedHairColorValid == null) fn__isPedHairColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHairColorValid"); + if (fn__isPedHairColorValid == null) fn__isPedHairColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHairColorValid"); var success = false; var result = fn__isPedHairColorValid(&success, _colorID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78065,33 +78065,33 @@ public int _0xAAA6A3698A69E048(int _p0) public bool IsPedLipstickColorValid(int _colorID) { unsafe { - if (fn__isPedLipstickColorValid == null) fn__isPedLipstickColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedLipstickColorValid"); + if (fn__isPedLipstickColorValid == null) fn__isPedLipstickColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedLipstickColorValid"); var success = false; var result = fn__isPedLipstickColorValid(&success, _colorID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPedBlushColorValid(int _colorID) { unsafe { - if (fn__isPedBlushColorValid == null) fn__isPedBlushColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBlushColorValid"); + if (fn__isPedBlushColorValid == null) fn__isPedBlushColorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBlushColorValid"); var success = false; var result = fn__isPedBlushColorValid(&success, _colorID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPedBodyBlemishValid(int _colorId) { unsafe { - if (fn__isPedBodyBlemishValid == null) fn__isPedBodyBlemishValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBodyBlemishValid"); + if (fn__isPedBodyBlemishValid == null) fn__isPedBodyBlemishValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBodyBlemishValid"); var success = false; var result = fn__isPedBodyBlemishValid(&success, _colorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78121,11 +78121,11 @@ public void SetPedFaceFeature(int _ped, int _index, float _scale) public bool HasPedHeadBlendFinished(int _ped) { unsafe { - if (fn__hasPedHeadBlendFinished == null) fn__hasPedHeadBlendFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedHeadBlendFinished"); + if (fn__hasPedHeadBlendFinished == null) fn__hasPedHeadBlendFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedHeadBlendFinished"); var success = false; var result = fn__hasPedHeadBlendFinished(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78200,11 +78200,11 @@ public int SetPedPreloadVariationData(int _ped, int _slot, int _drawableId, int public bool HasPedPreloadVariationDataFinished(int _ped) { unsafe { - if (fn__hasPedPreloadVariationDataFinished == null) fn__hasPedPreloadVariationDataFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedPreloadVariationDataFinished"); + if (fn__hasPedPreloadVariationDataFinished == null) fn__hasPedPreloadVariationDataFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedPreloadVariationDataFinished"); var success = false; var result = fn__hasPedPreloadVariationDataFinished(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78223,11 +78223,11 @@ public void ReleasePedPreloadVariationData(int _ped) public bool SetPedPreloadPropData(int _ped, int _componentId, int _drawableId, int _TextureId) { unsafe { - if (fn__setPedPreloadPropData == null) fn__setPedPreloadPropData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPreloadPropData"); + if (fn__setPedPreloadPropData == null) fn__setPedPreloadPropData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPreloadPropData"); var success = false; var result = fn__setPedPreloadPropData(&success, _ped, _componentId, _drawableId, _TextureId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78235,11 +78235,11 @@ public bool SetPedPreloadPropData(int _ped, int _componentId, int _drawableId, i public bool HasPedPreloadPropDataFinished(int _ped) { unsafe { - if (fn__hasPedPreloadPropDataFinished == null) fn__hasPedPreloadPropDataFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedPreloadPropDataFinished"); + if (fn__hasPedPreloadPropDataFinished == null) fn__hasPedPreloadPropDataFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedPreloadPropDataFinished"); var success = false; var result = fn__hasPedPreloadPropDataFinished(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78270,9 +78270,9 @@ public int GetPedPropIndex(int _ped, int _componentId) public void SetPedPropIndex(int _ped, int _componentId, int _drawableId, int _TextureId, bool _attach) { unsafe { - if (fn__setPedPropIndex == null) fn__setPedPropIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPropIndex"); + if (fn__setPedPropIndex == null) fn__setPedPropIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPropIndex"); var success = false; - fn__setPedPropIndex(&success, _ped, _componentId, _drawableId, _TextureId, _attach); + fn__setPedPropIndex(&success, _ped, _componentId, _drawableId, _TextureId, (byte) (_attach ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78281,9 +78281,9 @@ public void SetPedPropIndex(int _ped, int _componentId, int _drawableId, int _Te public void KnockOffPedProp(int _ped, bool _p1, bool _p2, bool _p3, bool _p4) { unsafe { - if (fn__knockOffPedProp == null) fn__knockOffPedProp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_knockOffPedProp"); + if (fn__knockOffPedProp == null) fn__knockOffPedProp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_knockOffPedProp"); var success = false; - fn__knockOffPedProp(&success, _ped, _p1, _p2, _p3, _p4); + fn__knockOffPedProp(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78369,11 +78369,11 @@ public void ClearPedScubaGearVariation(int _ped) public bool _0xFEC9A3B1820F3331(int _p0) { unsafe { - if (fn__0xFEC9A3B1820F3331 == null) fn__0xFEC9A3B1820F3331 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFEC9A3B1820F3331"); + if (fn__0xFEC9A3B1820F3331 == null) fn__0xFEC9A3B1820F3331 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFEC9A3B1820F3331"); var success = false; var result = fn__0xFEC9A3B1820F3331(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78381,9 +78381,9 @@ public bool _0xFEC9A3B1820F3331(int _p0) public void SetBlockingOfNonTemporaryEvents(int _ped, bool _toggle) { unsafe { - if (fn__setBlockingOfNonTemporaryEvents == null) fn__setBlockingOfNonTemporaryEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlockingOfNonTemporaryEvents"); + if (fn__setBlockingOfNonTemporaryEvents == null) fn__setBlockingOfNonTemporaryEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBlockingOfNonTemporaryEvents"); var success = false; - fn__setBlockingOfNonTemporaryEvents(&success, _ped, _toggle); + fn__setBlockingOfNonTemporaryEvents(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78437,22 +78437,22 @@ public int GetRandomPedAtCoord(float _x, float _y, float _z, float _xRadius, flo public bool GetClosestPed(float _x, float _y, float _z, float _radius, bool _p4, bool _p5, ref int _outPed, bool _p7, bool _p8, int _pedType) { unsafe { - if (fn__getClosestPed == null) fn__getClosestPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestPed"); + if (fn__getClosestPed == null) fn__getClosestPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getClosestPed"); var success = false; var ref_outPed = _outPed; - var result = fn__getClosestPed(&success, _x, _y, _z, _radius, _p4, _p5, &ref_outPed, _p7, _p8, _pedType); + var result = fn__getClosestPed(&success, _x, _y, _z, _radius, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), &ref_outPed, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _pedType); _outPed = ref_outPed; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetScenarioPedsToBeReturnedByNextCommand(bool _value) { unsafe { - if (fn__setScenarioPedsToBeReturnedByNextCommand == null) fn__setScenarioPedsToBeReturnedByNextCommand = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioPedsToBeReturnedByNextCommand"); + if (fn__setScenarioPedsToBeReturnedByNextCommand == null) fn__setScenarioPedsToBeReturnedByNextCommand = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioPedsToBeReturnedByNextCommand"); var success = false; - fn__setScenarioPedsToBeReturnedByNextCommand(&success, _value); + fn__setScenarioPedsToBeReturnedByNextCommand(&success, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78461,11 +78461,11 @@ public void SetScenarioPedsToBeReturnedByNextCommand(bool _value) public bool _0x03EA03AF85A85CB7(int _ped, bool _p1, bool _p2, bool _p3, bool _p4, bool _p5, bool _p6, bool _p7, int _p8) { unsafe { - if (fn__0x03EA03AF85A85CB7 == null) fn__0x03EA03AF85A85CB7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x03EA03AF85A85CB7"); + if (fn__0x03EA03AF85A85CB7 == null) fn__0x03EA03AF85A85CB7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x03EA03AF85A85CB7"); var success = false; - var result = fn__0x03EA03AF85A85CB7(&success, _ped, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8); + var result = fn__0x03EA03AF85A85CB7(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), _p8); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78506,11 +78506,11 @@ public void SetDriverAggressiveness(int _driver, float _aggressiveness) public bool CanPedRagdoll(int _ped) { unsafe { - if (fn__canPedRagdoll == null) fn__canPedRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedRagdoll"); + if (fn__canPedRagdoll == null) fn__canPedRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedRagdoll"); var success = false; var result = fn__canPedRagdoll(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78518,11 +78518,11 @@ public bool CanPedRagdoll(int _ped) public bool SetPedToRagdoll(int _ped, int _time1, int _time2, int _ragdollType, bool _p4, bool _p5, bool _p6) { unsafe { - if (fn__setPedToRagdoll == null) fn__setPedToRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToRagdoll"); + if (fn__setPedToRagdoll == null) fn__setPedToRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToRagdoll"); var success = false; - var result = fn__setPedToRagdoll(&success, _ped, _time1, _time2, _ragdollType, _p4, _p5, _p6); + var result = fn__setPedToRagdoll(&success, _ped, _time1, _time2, _ragdollType, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78530,11 +78530,11 @@ public bool SetPedToRagdoll(int _ped, int _time1, int _time2, int _ragdollType, public bool SetPedToRagdollWithFall(int _ped, int _time, int _p2, int _ragdollType, float _x, float _y, float _z, float _p7, float _p8, float _p9, float _p10, float _p11, float _p12, float _p13) { unsafe { - if (fn__setPedToRagdollWithFall == null) fn__setPedToRagdollWithFall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToRagdollWithFall"); + if (fn__setPedToRagdollWithFall == null) fn__setPedToRagdollWithFall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToRagdollWithFall"); var success = false; var result = fn__setPedToRagdollWithFall(&success, _ped, _time, _p2, _ragdollType, _x, _y, _z, _p7, _p8, _p9, _p10, _p11, _p12, _p13); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78542,9 +78542,9 @@ public bool SetPedToRagdollWithFall(int _ped, int _time, int _p2, int _ragdollTy public void SetPedRagdollOnCollision(int _ped, bool _toggle) { unsafe { - if (fn__setPedRagdollOnCollision == null) fn__setPedRagdollOnCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedRagdollOnCollision"); + if (fn__setPedRagdollOnCollision == null) fn__setPedRagdollOnCollision = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedRagdollOnCollision"); var success = false; - fn__setPedRagdollOnCollision(&success, _ped, _toggle); + fn__setPedRagdollOnCollision(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78553,11 +78553,11 @@ public void SetPedRagdollOnCollision(int _ped, bool _toggle) public bool IsPedRagdoll(int _ped) { unsafe { - if (fn__isPedRagdoll == null) fn__isPedRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRagdoll"); + if (fn__isPedRagdoll == null) fn__isPedRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRagdoll"); var success = false; var result = fn__isPedRagdoll(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78565,11 +78565,11 @@ public bool IsPedRagdoll(int _ped) public bool IsPedRunningRagdollTask(int _ped) { unsafe { - if (fn__isPedRunningRagdollTask == null) fn__isPedRunningRagdollTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningRagdollTask"); + if (fn__isPedRunningRagdollTask == null) fn__isPedRunningRagdollTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningRagdollTask"); var success = false; var result = fn__isPedRunningRagdollTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78599,9 +78599,9 @@ public void ResetPedRagdollTimer(int _ped) public void SetPedCanRagdoll(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanRagdoll == null) fn__setPedCanRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanRagdoll"); + if (fn__setPedCanRagdoll == null) fn__setPedCanRagdoll = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanRagdoll"); var success = false; - fn__setPedCanRagdoll(&success, _ped, _toggle); + fn__setPedCanRagdoll(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78610,11 +78610,11 @@ public void SetPedCanRagdoll(int _ped, bool _toggle) public bool IsPedRunningMeleeTask(int _ped) { unsafe { - if (fn__isPedRunningMeleeTask == null) fn__isPedRunningMeleeTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningMeleeTask"); + if (fn__isPedRunningMeleeTask == null) fn__isPedRunningMeleeTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningMeleeTask"); var success = false; var result = fn__isPedRunningMeleeTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78622,11 +78622,11 @@ public bool IsPedRunningMeleeTask(int _ped) public bool IsPedRunningMobilePhoneTask(int _ped) { unsafe { - if (fn__isPedRunningMobilePhoneTask == null) fn__isPedRunningMobilePhoneTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningMobilePhoneTask"); + if (fn__isPedRunningMobilePhoneTask == null) fn__isPedRunningMobilePhoneTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningMobilePhoneTask"); var success = false; var result = fn__isPedRunningMobilePhoneTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78634,11 +78634,11 @@ public bool IsPedRunningMobilePhoneTask(int _ped) public bool IsMobilePhoneToPedEar(int _ped) { unsafe { - if (fn__isMobilePhoneToPedEar == null) fn__isMobilePhoneToPedEar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneToPedEar"); + if (fn__isMobilePhoneToPedEar == null) fn__isMobilePhoneToPedEar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMobilePhoneToPedEar"); var success = false; var result = fn__isMobilePhoneToPedEar(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78668,9 +78668,9 @@ public void ClearRagdollBlockingFlags(int _ped, int _flags) public void SetPedAngledDefensiveArea(int _ped, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, bool _p8, bool _p9) { unsafe { - if (fn__setPedAngledDefensiveArea == null) fn__setPedAngledDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAngledDefensiveArea"); + if (fn__setPedAngledDefensiveArea == null) fn__setPedAngledDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAngledDefensiveArea"); var success = false; - fn__setPedAngledDefensiveArea(&success, _ped, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + fn__setPedAngledDefensiveArea(&success, _ped, _p1, _p2, _p3, _p4, _p5, _p6, _p7, (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78679,9 +78679,9 @@ public void SetPedAngledDefensiveArea(int _ped, float _p1, float _p2, float _p3, public void SetPedSphereDefensiveArea(int _ped, float _x, float _y, float _z, float _radius, bool _p5, bool _p6) { unsafe { - if (fn__setPedSphereDefensiveArea == null) fn__setPedSphereDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSphereDefensiveArea"); + if (fn__setPedSphereDefensiveArea == null) fn__setPedSphereDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSphereDefensiveArea"); var success = false; - fn__setPedSphereDefensiveArea(&success, _ped, _x, _y, _z, _radius, _p5, _p6); + fn__setPedSphereDefensiveArea(&success, _ped, _x, _y, _z, _radius, (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78692,9 +78692,9 @@ public void SetPedSphereDefensiveArea(int _ped, float _x, float _y, float _z, fl public void SetPedDefensiveSphereAttachedToPed(int _ped, int _target, float _xOffset, float _yOffset, float _zOffset, float _radius, bool _p6) { unsafe { - if (fn__setPedDefensiveSphereAttachedToPed == null) fn__setPedDefensiveSphereAttachedToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveSphereAttachedToPed"); + if (fn__setPedDefensiveSphereAttachedToPed == null) fn__setPedDefensiveSphereAttachedToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveSphereAttachedToPed"); var success = false; - fn__setPedDefensiveSphereAttachedToPed(&success, _ped, _target, _xOffset, _yOffset, _zOffset, _radius, _p6); + fn__setPedDefensiveSphereAttachedToPed(&success, _ped, _target, _xOffset, _yOffset, _zOffset, _radius, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78705,9 +78705,9 @@ public void SetPedDefensiveSphereAttachedToPed(int _ped, int _target, float _xOf public void SetPedDefensiveSphereAttachedToVehicle(int _ped, int _target, float _xOffset, float _yOffset, float _zOffset, float _radius, bool _p6) { unsafe { - if (fn__setPedDefensiveSphereAttachedToVehicle == null) fn__setPedDefensiveSphereAttachedToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveSphereAttachedToVehicle"); + if (fn__setPedDefensiveSphereAttachedToVehicle == null) fn__setPedDefensiveSphereAttachedToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveSphereAttachedToVehicle"); var success = false; - fn__setPedDefensiveSphereAttachedToVehicle(&success, _ped, _target, _xOffset, _yOffset, _zOffset, _radius, _p6); + fn__setPedDefensiveSphereAttachedToVehicle(&success, _ped, _target, _xOffset, _yOffset, _zOffset, _radius, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78718,9 +78718,9 @@ public void SetPedDefensiveSphereAttachedToVehicle(int _ped, int _target, float public void SetPedDefensiveAreaAttachedToPed(int _ped, int _attachPed, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, bool _p9, bool _p10) { unsafe { - if (fn__setPedDefensiveAreaAttachedToPed == null) fn__setPedDefensiveAreaAttachedToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveAreaAttachedToPed"); + if (fn__setPedDefensiveAreaAttachedToPed == null) fn__setPedDefensiveAreaAttachedToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveAreaAttachedToPed"); var success = false; - fn__setPedDefensiveAreaAttachedToPed(&success, _ped, _attachPed, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10); + fn__setPedDefensiveAreaAttachedToPed(&success, _ped, _attachPed, _p2, _p3, _p4, _p5, _p6, _p7, _p8, (byte) (_p9 ? 1 : 0), (byte) (_p10 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78729,9 +78729,9 @@ public void SetPedDefensiveAreaAttachedToPed(int _ped, int _attachPed, float _p2 public void SetPedDefensiveAreaDirection(int _ped, float _p1, float _p2, float _p3, bool _p4) { unsafe { - if (fn__setPedDefensiveAreaDirection == null) fn__setPedDefensiveAreaDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveAreaDirection"); + if (fn__setPedDefensiveAreaDirection == null) fn__setPedDefensiveAreaDirection = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDefensiveAreaDirection"); var success = false; - fn__setPedDefensiveAreaDirection(&success, _ped, _p1, _p2, _p3, _p4); + fn__setPedDefensiveAreaDirection(&success, _ped, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78740,9 +78740,9 @@ public void SetPedDefensiveAreaDirection(int _ped, float _p1, float _p2, float _ public void RemovePedDefensiveArea(int _ped, bool _toggle) { unsafe { - if (fn__removePedDefensiveArea == null) fn__removePedDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePedDefensiveArea"); + if (fn__removePedDefensiveArea == null) fn__removePedDefensiveArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePedDefensiveArea"); var success = false; - fn__removePedDefensiveArea(&success, _ped, _toggle); + fn__removePedDefensiveArea(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78751,9 +78751,9 @@ public void RemovePedDefensiveArea(int _ped, bool _toggle) public Vector3 GetPedDefensiveAreaPosition(int _ped, bool _p1) { unsafe { - if (fn__getPedDefensiveAreaPosition == null) fn__getPedDefensiveAreaPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedDefensiveAreaPosition"); + if (fn__getPedDefensiveAreaPosition == null) fn__getPedDefensiveAreaPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedDefensiveAreaPosition"); var success = false; - var result = fn__getPedDefensiveAreaPosition(&success, _ped, _p1); + var result = fn__getPedDefensiveAreaPosition(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -78763,11 +78763,11 @@ public Vector3 GetPedDefensiveAreaPosition(int _ped, bool _p1) public bool IsPedDefensiveAreaActive(int _ped, bool _p1) { unsafe { - if (fn__isPedDefensiveAreaActive == null) fn__isPedDefensiveAreaActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDefensiveAreaActive"); + if (fn__isPedDefensiveAreaActive == null) fn__isPedDefensiveAreaActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedDefensiveAreaActive"); var success = false; - var result = fn__isPedDefensiveAreaActive(&success, _ped, _p1); + var result = fn__isPedDefensiveAreaActive(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -78832,9 +78832,9 @@ public void SetPedNameDebug(int _ped, string _name) public Vector3 GetPedExtractedDisplacement(int _ped, bool _worldSpace) { unsafe { - if (fn__getPedExtractedDisplacement == null) fn__getPedExtractedDisplacement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedExtractedDisplacement"); + if (fn__getPedExtractedDisplacement == null) fn__getPedExtractedDisplacement = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedExtractedDisplacement"); var success = false; - var result = fn__getPedExtractedDisplacement(&success, _ped, _worldSpace); + var result = fn__getPedExtractedDisplacement(&success, _ped, (byte) (_worldSpace ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -78844,9 +78844,9 @@ public Vector3 GetPedExtractedDisplacement(int _ped, bool _worldSpace) public void SetPedDiesWhenInjured(int _ped, bool _toggle) { unsafe { - if (fn__setPedDiesWhenInjured == null) fn__setPedDiesWhenInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesWhenInjured"); + if (fn__setPedDiesWhenInjured == null) fn__setPedDiesWhenInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesWhenInjured"); var success = false; - fn__setPedDiesWhenInjured(&success, _ped, _toggle); + fn__setPedDiesWhenInjured(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78855,9 +78855,9 @@ public void SetPedDiesWhenInjured(int _ped, bool _toggle) public void SetPedEnableWeaponBlocking(int _ped, bool _toggle) { unsafe { - if (fn__setPedEnableWeaponBlocking == null) fn__setPedEnableWeaponBlocking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedEnableWeaponBlocking"); + if (fn__setPedEnableWeaponBlocking == null) fn__setPedEnableWeaponBlocking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedEnableWeaponBlocking"); var success = false; - fn__setPedEnableWeaponBlocking(&success, _ped, _toggle); + fn__setPedEnableWeaponBlocking(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78866,9 +78866,9 @@ public void SetPedEnableWeaponBlocking(int _ped, bool _toggle) public void _0xF9ACF4A08098EA25(int _ped, bool _p1) { unsafe { - if (fn__0xF9ACF4A08098EA25 == null) fn__0xF9ACF4A08098EA25 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF9ACF4A08098EA25"); + if (fn__0xF9ACF4A08098EA25 == null) fn__0xF9ACF4A08098EA25 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF9ACF4A08098EA25"); var success = false; - fn__0xF9ACF4A08098EA25(&success, _ped, _p1); + fn__0xF9ACF4A08098EA25(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -78938,10 +78938,10 @@ public void ApplyPedBloodSpecific(int _ped, int _p1, float _p2, float _p3, float public void ApplyPedDamageDecal(int _ped, int _damageZone, float _xOffset, float _yOffset, float _heading, float _scale, float _alpha, int _unkVariation, bool _fadeIn, string _decalName) { unsafe { - if (fn__applyPedDamageDecal == null) fn__applyPedDamageDecal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyPedDamageDecal"); + if (fn__applyPedDamageDecal == null) fn__applyPedDamageDecal = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_applyPedDamageDecal"); var success = false; var ptr_decalName = MemoryUtils.StringToHGlobalUtf8(_decalName); - fn__applyPedDamageDecal(&success, _ped, _damageZone, _xOffset, _yOffset, _heading, _scale, _alpha, _unkVariation, _fadeIn, ptr_decalName); + fn__applyPedDamageDecal(&success, _ped, _damageZone, _xOffset, _yOffset, _heading, _scale, _alpha, _unkVariation, (byte) (_fadeIn ? 1 : 0), ptr_decalName); Marshal.FreeHGlobal(ptr_decalName); if (!success) throw new Exception("Native execution failed"); } @@ -78986,9 +78986,9 @@ public void ClearPedBloodDamageByZone(int _ped, int _p1) public void HidePedBloodDamageByZone(int _ped, int _p1, bool _p2) { unsafe { - if (fn__hidePedBloodDamageByZone == null) fn__hidePedBloodDamageByZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePedBloodDamageByZone"); + if (fn__hidePedBloodDamageByZone == null) fn__hidePedBloodDamageByZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePedBloodDamageByZone"); var success = false; - fn__hidePedBloodDamageByZone(&success, _ped, _p1, _p2); + fn__hidePedBloodDamageByZone(&success, _ped, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79022,9 +79022,9 @@ public int GetPedDecorationsState(int _ped) public void _0x2B694AFCF64E6994(int _ped, bool _p1) { unsafe { - if (fn__0x2B694AFCF64E6994 == null) fn__0x2B694AFCF64E6994 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2B694AFCF64E6994"); + if (fn__0x2B694AFCF64E6994 == null) fn__0x2B694AFCF64E6994 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2B694AFCF64E6994"); var success = false; - fn__0x2B694AFCF64E6994(&success, _ped, _p1); + fn__0x2B694AFCF64E6994(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79143,11 +79143,11 @@ public void ClearPedDecorationsLeaveScars(int _ped) public bool WasPedSkeletonUpdated(int _ped) { unsafe { - if (fn__wasPedSkeletonUpdated == null) fn__wasPedSkeletonUpdated = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedSkeletonUpdated"); + if (fn__wasPedSkeletonUpdated == null) fn__wasPedSkeletonUpdated = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedSkeletonUpdated"); var success = false; var result = fn__wasPedSkeletonUpdated(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79166,9 +79166,9 @@ public Vector3 GetPedBoneCoords(int _ped, int _boneId, float _offsetX, float _of public void CreateNmMessage(bool _startImmediately, int _messageId) { unsafe { - if (fn__createNmMessage == null) fn__createNmMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNmMessage"); + if (fn__createNmMessage == null) fn__createNmMessage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createNmMessage"); var success = false; - fn__createNmMessage(&success, _startImmediately, _messageId); + fn__createNmMessage(&success, (byte) (_startImmediately ? 1 : 0), _messageId); if (!success) throw new Exception("Native execution failed"); } } @@ -79187,9 +79187,9 @@ public void GivePedNmMessage(int _ped) public int AddScenarioBlockingArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _p6, bool _p7, bool _p8, bool _p9) { unsafe { - if (fn__addScenarioBlockingArea == null) fn__addScenarioBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addScenarioBlockingArea"); + if (fn__addScenarioBlockingArea == null) fn__addScenarioBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addScenarioBlockingArea"); var success = false; - var result = fn__addScenarioBlockingArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _p6, _p7, _p8, _p9); + var result = fn__addScenarioBlockingArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -79208,9 +79208,9 @@ public void RemoveScenarioBlockingAreas() public void RemoveScenarioBlockingArea(int _p0, bool _p1) { unsafe { - if (fn__removeScenarioBlockingArea == null) fn__removeScenarioBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeScenarioBlockingArea"); + if (fn__removeScenarioBlockingArea == null) fn__removeScenarioBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeScenarioBlockingArea"); var success = false; - fn__removeScenarioBlockingArea(&success, _p0, _p1); + fn__removeScenarioBlockingArea(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79228,11 +79228,11 @@ public void SetScenarioPedsSpawnInSphereArea(float _x, float _y, float _z, float public bool DoesScenarioBlockingAreaExist(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2) { unsafe { - if (fn__doesScenarioBlockingAreaExist == null) fn__doesScenarioBlockingAreaExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioBlockingAreaExist"); + if (fn__doesScenarioBlockingAreaExist == null) fn__doesScenarioBlockingAreaExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioBlockingAreaExist"); var success = false; var result = fn__doesScenarioBlockingAreaExist(&success, _x1, _y1, _z1, _x2, _y2, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79240,13 +79240,13 @@ public bool DoesScenarioBlockingAreaExist(float _x1, float _y1, float _z1, float public bool IsPedUsingScenario(int _ped, string _scenario) { unsafe { - if (fn__isPedUsingScenario == null) fn__isPedUsingScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingScenario"); + if (fn__isPedUsingScenario == null) fn__isPedUsingScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingScenario"); var success = false; var ptr_scenario = MemoryUtils.StringToHGlobalUtf8(_scenario); var result = fn__isPedUsingScenario(&success, _ped, ptr_scenario); Marshal.FreeHGlobal(ptr_scenario); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79254,11 +79254,11 @@ public bool IsPedUsingScenario(int _ped, string _scenario) public bool IsPedUsingAnyScenario(int _ped) { unsafe { - if (fn__isPedUsingAnyScenario == null) fn__isPedUsingAnyScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingAnyScenario"); + if (fn__isPedUsingAnyScenario == null) fn__isPedUsingAnyScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingAnyScenario"); var success = false; var result = fn__isPedUsingAnyScenario(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79276,9 +79276,9 @@ public int SetPedPanicExitScenario(int _p0, int _p1, int _p2, int _p3) public void _0x9A77DFD295E29B09(int _p0, bool _p1) { unsafe { - if (fn__0x9A77DFD295E29B09 == null) fn__0x9A77DFD295E29B09 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9A77DFD295E29B09"); + if (fn__0x9A77DFD295E29B09 == null) fn__0x9A77DFD295E29B09 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9A77DFD295E29B09"); var success = false; - fn__0x9A77DFD295E29B09(&success, _p0, _p1); + fn__0x9A77DFD295E29B09(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79343,9 +79343,9 @@ public int SetPedShouldPlayFleeScenarioExit(int _ped, int _p1, int _p2, int _p3) public void _0x425AECF167663F48(int _ped, bool _p1) { unsafe { - if (fn__0x425AECF167663F48 == null) fn__0x425AECF167663F48 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x425AECF167663F48"); + if (fn__0x425AECF167663F48 == null) fn__0x425AECF167663F48 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x425AECF167663F48"); var success = false; - fn__0x425AECF167663F48(&success, _ped, _p1); + fn__0x425AECF167663F48(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79353,9 +79353,9 @@ public void _0x425AECF167663F48(int _ped, bool _p1) public void _0x5B6010B3CBC29095(int _p0, bool _p1) { unsafe { - if (fn__0x5B6010B3CBC29095 == null) fn__0x5B6010B3CBC29095 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5B6010B3CBC29095"); + if (fn__0x5B6010B3CBC29095 == null) fn__0x5B6010B3CBC29095 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5B6010B3CBC29095"); var success = false; - fn__0x5B6010B3CBC29095(&success, _p0, _p1); + fn__0x5B6010B3CBC29095(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79363,9 +79363,9 @@ public void _0x5B6010B3CBC29095(int _p0, bool _p1) public void _0xCEDA60A74219D064(int _p0, bool _p1) { unsafe { - if (fn__0xCEDA60A74219D064 == null) fn__0xCEDA60A74219D064 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCEDA60A74219D064"); + if (fn__0xCEDA60A74219D064 == null) fn__0xCEDA60A74219D064 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCEDA60A74219D064"); var success = false; - fn__0xCEDA60A74219D064(&success, _p0, _p1); + fn__0xCEDA60A74219D064(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79439,9 +79439,9 @@ public void ClearFacialIdleAnimOverride(int _ped) public void SetPedCanPlayGestureAnims(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanPlayGestureAnims == null) fn__setPedCanPlayGestureAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayGestureAnims"); + if (fn__setPedCanPlayGestureAnims == null) fn__setPedCanPlayGestureAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayGestureAnims"); var success = false; - fn__setPedCanPlayGestureAnims(&success, _ped, _toggle); + fn__setPedCanPlayGestureAnims(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79450,9 +79450,9 @@ public void SetPedCanPlayGestureAnims(int _ped, bool _toggle) public void SetPedCanPlayVisemeAnims(int _ped, bool _toggle, bool _p2) { unsafe { - if (fn__setPedCanPlayVisemeAnims == null) fn__setPedCanPlayVisemeAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayVisemeAnims"); + if (fn__setPedCanPlayVisemeAnims == null) fn__setPedCanPlayVisemeAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayVisemeAnims"); var success = false; - fn__setPedCanPlayVisemeAnims(&success, _ped, _toggle, _p2); + fn__setPedCanPlayVisemeAnims(&success, _ped, (byte) (_toggle ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79461,9 +79461,9 @@ public void SetPedCanPlayVisemeAnims(int _ped, bool _toggle, bool _p2) public void SetPedCanPlayInjuredAnims(int _ped, bool _p1) { unsafe { - if (fn__setPedCanPlayInjuredAnims == null) fn__setPedCanPlayInjuredAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayInjuredAnims"); + if (fn__setPedCanPlayInjuredAnims == null) fn__setPedCanPlayInjuredAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayInjuredAnims"); var success = false; - fn__setPedCanPlayInjuredAnims(&success, _ped, _p1); + fn__setPedCanPlayInjuredAnims(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79472,9 +79472,9 @@ public void SetPedCanPlayInjuredAnims(int _ped, bool _p1) public void SetPedCanPlayAmbientAnims(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanPlayAmbientAnims == null) fn__setPedCanPlayAmbientAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientAnims"); + if (fn__setPedCanPlayAmbientAnims == null) fn__setPedCanPlayAmbientAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientAnims"); var success = false; - fn__setPedCanPlayAmbientAnims(&success, _ped, _toggle); + fn__setPedCanPlayAmbientAnims(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79483,9 +79483,9 @@ public void SetPedCanPlayAmbientAnims(int _ped, bool _toggle) public void SetPedCanPlayAmbientBaseAnims(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanPlayAmbientBaseAnims == null) fn__setPedCanPlayAmbientBaseAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientBaseAnims"); + if (fn__setPedCanPlayAmbientBaseAnims == null) fn__setPedCanPlayAmbientBaseAnims = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientBaseAnims"); var success = false; - fn__setPedCanPlayAmbientBaseAnims(&success, _ped, _toggle); + fn__setPedCanPlayAmbientBaseAnims(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79505,9 +79505,9 @@ public void _0xC2EE020F5FB4DB53(int _ped) public void SetPedCanArmIk(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanArmIk == null) fn__setPedCanArmIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanArmIk"); + if (fn__setPedCanArmIk == null) fn__setPedCanArmIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanArmIk"); var success = false; - fn__setPedCanArmIk(&success, _ped, _toggle); + fn__setPedCanArmIk(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79516,9 +79516,9 @@ public void SetPedCanArmIk(int _ped, bool _toggle) public void SetPedCanHeadIk(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanHeadIk == null) fn__setPedCanHeadIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanHeadIk"); + if (fn__setPedCanHeadIk == null) fn__setPedCanHeadIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanHeadIk"); var success = false; - fn__setPedCanHeadIk(&success, _ped, _toggle); + fn__setPedCanHeadIk(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79527,9 +79527,9 @@ public void SetPedCanHeadIk(int _ped, bool _toggle) public void SetPedCanLegIk(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanLegIk == null) fn__setPedCanLegIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanLegIk"); + if (fn__setPedCanLegIk == null) fn__setPedCanLegIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanLegIk"); var success = false; - fn__setPedCanLegIk(&success, _ped, _toggle); + fn__setPedCanLegIk(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79538,9 +79538,9 @@ public void SetPedCanLegIk(int _ped, bool _toggle) public void SetPedCanTorsoIk(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanTorsoIk == null) fn__setPedCanTorsoIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTorsoIk"); + if (fn__setPedCanTorsoIk == null) fn__setPedCanTorsoIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTorsoIk"); var success = false; - fn__setPedCanTorsoIk(&success, _ped, _toggle); + fn__setPedCanTorsoIk(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79549,9 +79549,9 @@ public void SetPedCanTorsoIk(int _ped, bool _toggle) public void SetPedCanTorsoReactIk(int _ped, bool _p1) { unsafe { - if (fn__setPedCanTorsoReactIk == null) fn__setPedCanTorsoReactIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTorsoReactIk"); + if (fn__setPedCanTorsoReactIk == null) fn__setPedCanTorsoReactIk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanTorsoReactIk"); var success = false; - fn__setPedCanTorsoReactIk(&success, _ped, _p1); + fn__setPedCanTorsoReactIk(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79560,9 +79560,9 @@ public void SetPedCanTorsoReactIk(int _ped, bool _p1) public void _0x6647C5F6F5792496(int _ped, bool _p1) { unsafe { - if (fn__0x6647C5F6F5792496 == null) fn__0x6647C5F6F5792496 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6647C5F6F5792496"); + if (fn__0x6647C5F6F5792496 == null) fn__0x6647C5F6F5792496 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6647C5F6F5792496"); var success = false; - fn__0x6647C5F6F5792496(&success, _ped, _p1); + fn__0x6647C5F6F5792496(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79571,9 +79571,9 @@ public void _0x6647C5F6F5792496(int _ped, bool _p1) public void SetPedCanUseAutoConversationLookat(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanUseAutoConversationLookat == null) fn__setPedCanUseAutoConversationLookat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanUseAutoConversationLookat"); + if (fn__setPedCanUseAutoConversationLookat == null) fn__setPedCanUseAutoConversationLookat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanUseAutoConversationLookat"); var success = false; - fn__setPedCanUseAutoConversationLookat(&success, _ped, _toggle); + fn__setPedCanUseAutoConversationLookat(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79584,11 +79584,11 @@ public void SetPedCanUseAutoConversationLookat(int _ped, bool _toggle) public bool IsPedHeadtrackingPed(int _ped1, int _ped2) { unsafe { - if (fn__isPedHeadtrackingPed == null) fn__isPedHeadtrackingPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadtrackingPed"); + if (fn__isPedHeadtrackingPed == null) fn__isPedHeadtrackingPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadtrackingPed"); var success = false; var result = fn__isPedHeadtrackingPed(&success, _ped1, _ped2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79598,11 +79598,11 @@ public bool IsPedHeadtrackingPed(int _ped1, int _ped2) public bool IsPedHeadtrackingEntity(int _ped, int _entity) { unsafe { - if (fn__isPedHeadtrackingEntity == null) fn__isPedHeadtrackingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadtrackingEntity"); + if (fn__isPedHeadtrackingEntity == null) fn__isPedHeadtrackingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadtrackingEntity"); var success = false; var result = fn__isPedHeadtrackingEntity(&success, _ped, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79642,9 +79642,9 @@ public void SetPedClothProne(int _p0, int _p1) public void _0xA660FAF550EB37E5(int _p0, bool _p1) { unsafe { - if (fn__0xA660FAF550EB37E5 == null) fn__0xA660FAF550EB37E5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA660FAF550EB37E5"); + if (fn__0xA660FAF550EB37E5 == null) fn__0xA660FAF550EB37E5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA660FAF550EB37E5"); var success = false; - fn__0xA660FAF550EB37E5(&success, _p0, _p1); + fn__0xA660FAF550EB37E5(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79653,9 +79653,9 @@ public void _0xA660FAF550EB37E5(int _p0, bool _p1) public void SetPedConfigFlag(int _ped, int _flagId, bool _value) { unsafe { - if (fn__setPedConfigFlag == null) fn__setPedConfigFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedConfigFlag"); + if (fn__setPedConfigFlag == null) fn__setPedConfigFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedConfigFlag"); var success = false; - fn__setPedConfigFlag(&success, _ped, _flagId, _value); + fn__setPedConfigFlag(&success, _ped, _flagId, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79664,9 +79664,9 @@ public void SetPedConfigFlag(int _ped, int _flagId, bool _value) public void SetPedResetFlag(int _ped, int _flagId, bool _doReset) { unsafe { - if (fn__setPedResetFlag == null) fn__setPedResetFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedResetFlag"); + if (fn__setPedResetFlag == null) fn__setPedResetFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedResetFlag"); var success = false; - fn__setPedResetFlag(&success, _ped, _flagId, _doReset); + fn__setPedResetFlag(&success, _ped, _flagId, (byte) (_doReset ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79675,11 +79675,11 @@ public void SetPedResetFlag(int _ped, int _flagId, bool _doReset) public bool GetPedConfigFlag(int _ped, int _flagId, bool _p2) { unsafe { - if (fn__getPedConfigFlag == null) fn__getPedConfigFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedConfigFlag"); + if (fn__getPedConfigFlag == null) fn__getPedConfigFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedConfigFlag"); var success = false; - var result = fn__getPedConfigFlag(&success, _ped, _flagId, _p2); + var result = fn__getPedConfigFlag(&success, _ped, _flagId, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79687,11 +79687,11 @@ public bool GetPedConfigFlag(int _ped, int _flagId, bool _p2) public bool GetPedResetFlag(int _ped, int _flagId) { unsafe { - if (fn__getPedResetFlag == null) fn__getPedResetFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedResetFlag"); + if (fn__getPedResetFlag == null) fn__getPedResetFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedResetFlag"); var success = false; var result = fn__getPedResetFlag(&success, _ped, _flagId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79710,9 +79710,9 @@ public void SetPedGroupMemberPassengerIndex(int _ped, int _index) public void SetPedCanEvasiveDive(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanEvasiveDive == null) fn__setPedCanEvasiveDive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanEvasiveDive"); + if (fn__setPedCanEvasiveDive == null) fn__setPedCanEvasiveDive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanEvasiveDive"); var success = false; - fn__setPedCanEvasiveDive(&success, _ped, _toggle); + fn__setPedCanEvasiveDive(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79721,13 +79721,13 @@ public void SetPedCanEvasiveDive(int _ped, bool _toggle) public bool IsPedEvasiveDiving(int _ped, ref int _evadingEntity) { unsafe { - if (fn__isPedEvasiveDiving == null) fn__isPedEvasiveDiving = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedEvasiveDiving"); + if (fn__isPedEvasiveDiving == null) fn__isPedEvasiveDiving = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedEvasiveDiving"); var success = false; var ref_evadingEntity = _evadingEntity; var result = fn__isPedEvasiveDiving(&success, _ped, &ref_evadingEntity); _evadingEntity = ref_evadingEntity; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79735,9 +79735,9 @@ public bool IsPedEvasiveDiving(int _ped, ref int _evadingEntity) public void SetPedShootsAtCoord(int _ped, float _x, float _y, float _z, bool _toggle) { unsafe { - if (fn__setPedShootsAtCoord == null) fn__setPedShootsAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedShootsAtCoord"); + if (fn__setPedShootsAtCoord == null) fn__setPedShootsAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedShootsAtCoord"); var success = false; - fn__setPedShootsAtCoord(&success, _ped, _x, _y, _z, _toggle); + fn__setPedShootsAtCoord(&success, _ped, _x, _y, _z, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79745,9 +79745,9 @@ public void SetPedShootsAtCoord(int _ped, float _x, float _y, float _z, bool _to public void SetPedModelIsSuppressed(uint _modelHash, bool _toggle) { unsafe { - if (fn__setPedModelIsSuppressed == null) fn__setPedModelIsSuppressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedModelIsSuppressed"); + if (fn__setPedModelIsSuppressed == null) fn__setPedModelIsSuppressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedModelIsSuppressed"); var success = false; - fn__setPedModelIsSuppressed(&success, _modelHash, _toggle); + fn__setPedModelIsSuppressed(&success, _modelHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79766,9 +79766,9 @@ public void StopAnyPedModelBeingSuppressed() public void SetPedCanBeTargetedWhenInjured(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanBeTargetedWhenInjured == null) fn__setPedCanBeTargetedWhenInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetedWhenInjured"); + if (fn__setPedCanBeTargetedWhenInjured == null) fn__setPedCanBeTargetedWhenInjured = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanBeTargetedWhenInjured"); var success = false; - fn__setPedCanBeTargetedWhenInjured(&success, _ped, _toggle); + fn__setPedCanBeTargetedWhenInjured(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79777,9 +79777,9 @@ public void SetPedCanBeTargetedWhenInjured(int _ped, bool _toggle) public void SetPedGeneratesDeadBodyEvents(int _ped, bool _toggle) { unsafe { - if (fn__setPedGeneratesDeadBodyEvents == null) fn__setPedGeneratesDeadBodyEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGeneratesDeadBodyEvents"); + if (fn__setPedGeneratesDeadBodyEvents == null) fn__setPedGeneratesDeadBodyEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGeneratesDeadBodyEvents"); var success = false; - fn__setPedGeneratesDeadBodyEvents(&success, _ped, _toggle); + fn__setPedGeneratesDeadBodyEvents(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79788,9 +79788,9 @@ public void SetPedGeneratesDeadBodyEvents(int _ped, bool _toggle) public void BlockPedDeadBodyShockingEvents(int _ped, bool _toggle) { unsafe { - if (fn__blockPedDeadBodyShockingEvents == null) fn__blockPedDeadBodyShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockPedDeadBodyShockingEvents"); + if (fn__blockPedDeadBodyShockingEvents == null) fn__blockPedDeadBodyShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_blockPedDeadBodyShockingEvents"); var success = false; - fn__blockPedDeadBodyShockingEvents(&success, _ped, _toggle); + fn__blockPedDeadBodyShockingEvents(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79809,9 +79809,9 @@ public void _0x3E9679C1DFCF422C(int _p0, int _p1) public void SetPedCanRagdollFromPlayerImpact(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanRagdollFromPlayerImpact == null) fn__setPedCanRagdollFromPlayerImpact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanRagdollFromPlayerImpact"); + if (fn__setPedCanRagdollFromPlayerImpact == null) fn__setPedCanRagdollFromPlayerImpact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanRagdollFromPlayerImpact"); var success = false; - fn__setPedCanRagdollFromPlayerImpact(&success, _ped, _toggle); + fn__setPedCanRagdollFromPlayerImpact(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79820,9 +79820,9 @@ public void SetPedCanRagdollFromPlayerImpact(int _ped, bool _toggle) public void GivePedHelmet(int _ped, bool _cannotRemove, int _helmetFlag, int _textureIndex) { unsafe { - if (fn__givePedHelmet == null) fn__givePedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_givePedHelmet"); + if (fn__givePedHelmet == null) fn__givePedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_givePedHelmet"); var success = false; - fn__givePedHelmet(&success, _ped, _cannotRemove, _helmetFlag, _textureIndex); + fn__givePedHelmet(&success, _ped, (byte) (_cannotRemove ? 1 : 0), _helmetFlag, _textureIndex); if (!success) throw new Exception("Native execution failed"); } } @@ -79831,9 +79831,9 @@ public void GivePedHelmet(int _ped, bool _cannotRemove, int _helmetFlag, int _te public void RemovePedHelmet(int _ped, bool _instantly) { unsafe { - if (fn__removePedHelmet == null) fn__removePedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePedHelmet"); + if (fn__removePedHelmet == null) fn__removePedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePedHelmet"); var success = false; - fn__removePedHelmet(&success, _ped, _instantly); + fn__removePedHelmet(&success, _ped, (byte) (_instantly ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79842,11 +79842,11 @@ public void RemovePedHelmet(int _ped, bool _instantly) public bool IsPedTakingOffHelmet(int _ped) { unsafe { - if (fn__isPedTakingOffHelmet == null) fn__isPedTakingOffHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTakingOffHelmet"); + if (fn__isPedTakingOffHelmet == null) fn__isPedTakingOffHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTakingOffHelmet"); var success = false; var result = fn__isPedTakingOffHelmet(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79854,9 +79854,9 @@ public bool IsPedTakingOffHelmet(int _ped) public void SetPedHelmet(int _ped, bool _canWearHelmet) { unsafe { - if (fn__setPedHelmet == null) fn__setPedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmet"); + if (fn__setPedHelmet == null) fn__setPedHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmet"); var success = false; - fn__setPedHelmet(&success, _ped, _canWearHelmet); + fn__setPedHelmet(&success, _ped, (byte) (_canWearHelmet ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79876,9 +79876,9 @@ public void SetPedHelmetFlag(int _ped, int _helmetFlag) public void SetPedHelmetPropIndex(int _ped, int _propIndex, bool _p2) { unsafe { - if (fn__setPedHelmetPropIndex == null) fn__setPedHelmetPropIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmetPropIndex"); + if (fn__setPedHelmetPropIndex == null) fn__setPedHelmetPropIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmetPropIndex"); var success = false; - fn__setPedHelmetPropIndex(&success, _ped, _propIndex, _p2); + fn__setPedHelmetPropIndex(&success, _ped, _propIndex, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79887,9 +79887,9 @@ public void SetPedHelmetPropIndex(int _ped, int _propIndex, bool _p2) public void SetPedHelmetUnk(int _ped, bool _p1, int _p2, int _p3) { unsafe { - if (fn__setPedHelmetUnk == null) fn__setPedHelmetUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmetUnk"); + if (fn__setPedHelmetUnk == null) fn__setPedHelmetUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedHelmetUnk"); var success = false; - fn__setPedHelmetUnk(&success, _ped, _p1, _p2, _p3); + fn__setPedHelmetUnk(&success, _ped, (byte) (_p1 ? 1 : 0), _p2, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -79898,11 +79898,11 @@ public void SetPedHelmetUnk(int _ped, bool _p1, int _p2, int _p3) public bool IsPedHelmetUnk(int _ped) { unsafe { - if (fn__isPedHelmetUnk == null) fn__isPedHelmetUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHelmetUnk"); + if (fn__isPedHelmetUnk == null) fn__isPedHelmetUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHelmetUnk"); var success = false; var result = fn__isPedHelmetUnk(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79921,11 +79921,11 @@ public void SetPedHelmetTextureIndex(int _ped, int _textureIndex) public bool IsPedWearingHelmet(int _ped) { unsafe { - if (fn__isPedWearingHelmet == null) fn__isPedWearingHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWearingHelmet"); + if (fn__isPedWearingHelmet == null) fn__isPedWearingHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWearingHelmet"); var success = false; var result = fn__isPedWearingHelmet(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79967,11 +79967,11 @@ public int GetPedHelmetStoredHatTexIndex(int _ped) public bool _0xF2385935BFFD4D92(int _p0) { unsafe { - if (fn__0xF2385935BFFD4D92 == null) fn__0xF2385935BFFD4D92 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2385935BFFD4D92"); + if (fn__0xF2385935BFFD4D92 == null) fn__0xF2385935BFFD4D92 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF2385935BFFD4D92"); var success = false; var result = fn__0xF2385935BFFD4D92(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -79979,9 +79979,9 @@ public bool _0xF2385935BFFD4D92(int _p0) public void SetPedToLoadCover(int _ped, bool _toggle) { unsafe { - if (fn__setPedToLoadCover == null) fn__setPedToLoadCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToLoadCover"); + if (fn__setPedToLoadCover == null) fn__setPedToLoadCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedToLoadCover"); var success = false; - fn__setPedToLoadCover(&success, _ped, _toggle); + fn__setPedToLoadCover(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -79990,9 +79990,9 @@ public void SetPedToLoadCover(int _ped, bool _toggle) public void SetPedCanCowerInCover(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanCowerInCover == null) fn__setPedCanCowerInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanCowerInCover"); + if (fn__setPedCanCowerInCover == null) fn__setPedCanCowerInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanCowerInCover"); var success = false; - fn__setPedCanCowerInCover(&success, _ped, _toggle); + fn__setPedCanCowerInCover(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80001,9 +80001,9 @@ public void SetPedCanCowerInCover(int _ped, bool _toggle) public void SetPedCanPeekInCover(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanPeekInCover == null) fn__setPedCanPeekInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPeekInCover"); + if (fn__setPedCanPeekInCover == null) fn__setPedCanPeekInCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPeekInCover"); var success = false; - fn__setPedCanPeekInCover(&success, _ped, _toggle); + fn__setPedCanPeekInCover(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80012,9 +80012,9 @@ public void SetPedCanPeekInCover(int _ped, bool _toggle) public void SetPedPlaysHeadOnHornAnimWhenDiesInVehicle(int _ped, bool _toggle) { unsafe { - if (fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle == null) fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPlaysHeadOnHornAnimWhenDiesInVehicle"); + if (fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle == null) fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPlaysHeadOnHornAnimWhenDiesInVehicle"); var success = false; - fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle(&success, _ped, _toggle); + fn__setPedPlaysHeadOnHornAnimWhenDiesInVehicle(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80034,9 +80034,9 @@ public void SetPedLegIkMode(int _ped, int _mode) public void SetPedMotionBlur(int _ped, bool _toggle) { unsafe { - if (fn__setPedMotionBlur == null) fn__setPedMotionBlur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedMotionBlur"); + if (fn__setPedMotionBlur == null) fn__setPedMotionBlur = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedMotionBlur"); var success = false; - fn__setPedMotionBlur(&success, _ped, _toggle); + fn__setPedMotionBlur(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80045,9 +80045,9 @@ public void SetPedMotionBlur(int _ped, bool _toggle) public void SetPedCanSwitchWeapon(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanSwitchWeapon == null) fn__setPedCanSwitchWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanSwitchWeapon"); + if (fn__setPedCanSwitchWeapon == null) fn__setPedCanSwitchWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanSwitchWeapon"); var success = false; - fn__setPedCanSwitchWeapon(&success, _ped, _toggle); + fn__setPedCanSwitchWeapon(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80056,9 +80056,9 @@ public void SetPedCanSwitchWeapon(int _ped, bool _toggle) public void SetPedDiesInstantlyInWater(int _ped, bool _toggle) { unsafe { - if (fn__setPedDiesInstantlyInWater == null) fn__setPedDiesInstantlyInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInstantlyInWater"); + if (fn__setPedDiesInstantlyInWater == null) fn__setPedDiesInstantlyInWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDiesInstantlyInWater"); var success = false; - fn__setPedDiesInstantlyInWater(&success, _ped, _toggle); + fn__setPedDiesInstantlyInWater(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80157,9 +80157,9 @@ public int GetPedCombatRange(int _ped) public void SetPedCombatAttributes(int _ped, int _attributeId, bool _enabled) { unsafe { - if (fn__setPedCombatAttributes == null) fn__setPedCombatAttributes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCombatAttributes"); + if (fn__setPedCombatAttributes == null) fn__setPedCombatAttributes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCombatAttributes"); var success = false; - fn__setPedCombatAttributes(&success, _ped, _attributeId, _enabled); + fn__setPedCombatAttributes(&success, _ped, _attributeId, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80179,11 +80179,11 @@ public void SetPedTargetLossResponse(int _ped, int _responseType) public bool IsPedPerformingMeleeAction(int _ped) { unsafe { - if (fn__isPedPerformingMeleeAction == null) fn__isPedPerformingMeleeAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingMeleeAction"); + if (fn__isPedPerformingMeleeAction == null) fn__isPedPerformingMeleeAction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingMeleeAction"); var success = false; var result = fn__isPedPerformingMeleeAction(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80191,11 +80191,11 @@ public bool IsPedPerformingMeleeAction(int _ped) public bool IsPedPerformingStealthKill(int _ped) { unsafe { - if (fn__isPedPerformingStealthKill == null) fn__isPedPerformingStealthKill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingStealthKill"); + if (fn__isPedPerformingStealthKill == null) fn__isPedPerformingStealthKill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingStealthKill"); var success = false; var result = fn__isPedPerformingStealthKill(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80203,11 +80203,11 @@ public bool IsPedPerformingStealthKill(int _ped) public bool IsPedPerformingDependentComboLimit(int _ped) { unsafe { - if (fn__isPedPerformingDependentComboLimit == null) fn__isPedPerformingDependentComboLimit = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingDependentComboLimit"); + if (fn__isPedPerformingDependentComboLimit == null) fn__isPedPerformingDependentComboLimit = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPerformingDependentComboLimit"); var success = false; var result = fn__isPedPerformingDependentComboLimit(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80215,11 +80215,11 @@ public bool IsPedPerformingDependentComboLimit(int _ped) public bool IsPedBeingStealthKilled(int _ped) { unsafe { - if (fn__isPedBeingStealthKilled == null) fn__isPedBeingStealthKilled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingStealthKilled"); + if (fn__isPedBeingStealthKilled == null) fn__isPedBeingStealthKilled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingStealthKilled"); var success = false; var result = fn__isPedBeingStealthKilled(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80239,11 +80239,11 @@ public int GetMeleeTargetForPed(int _ped) public bool WasPedKilledByStealth(int _ped) { unsafe { - if (fn__wasPedKilledByStealth == null) fn__wasPedKilledByStealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKilledByStealth"); + if (fn__wasPedKilledByStealth == null) fn__wasPedKilledByStealth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKilledByStealth"); var success = false; var result = fn__wasPedKilledByStealth(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80251,11 +80251,11 @@ public bool WasPedKilledByStealth(int _ped) public bool WasPedKilledByTakedown(int _ped) { unsafe { - if (fn__wasPedKilledByTakedown == null) fn__wasPedKilledByTakedown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKilledByTakedown"); + if (fn__wasPedKilledByTakedown == null) fn__wasPedKilledByTakedown = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKilledByTakedown"); var success = false; var result = fn__wasPedKilledByTakedown(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80263,11 +80263,11 @@ public bool WasPedKilledByTakedown(int _ped) public bool WasPedKnockedOut(int _ped) { unsafe { - if (fn__wasPedKnockedOut == null) fn__wasPedKnockedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKnockedOut"); + if (fn__wasPedKnockedOut == null) fn__wasPedKnockedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_wasPedKnockedOut"); var success = false; var result = fn__wasPedKnockedOut(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80275,9 +80275,9 @@ public bool WasPedKnockedOut(int _ped) public void SetPedFleeAttributes(int _ped, int _attributeFlags, bool _enable) { unsafe { - if (fn__setPedFleeAttributes == null) fn__setPedFleeAttributes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedFleeAttributes"); + if (fn__setPedFleeAttributes == null) fn__setPedFleeAttributes = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedFleeAttributes"); var success = false; - fn__setPedFleeAttributes(&success, _ped, _attributeFlags, _enable); + fn__setPedFleeAttributes(&success, _ped, _attributeFlags, (byte) (_enable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80299,9 +80299,9 @@ public void SetPedCowerHash(int _ped, string _p1) public void _0x2016C603D6B8987C(int _ped, bool _toggle) { unsafe { - if (fn__0x2016C603D6B8987C == null) fn__0x2016C603D6B8987C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2016C603D6B8987C"); + if (fn__0x2016C603D6B8987C == null) fn__0x2016C603D6B8987C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2016C603D6B8987C"); var success = false; - fn__0x2016C603D6B8987C(&success, _ped, _toggle); + fn__0x2016C603D6B8987C(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80310,9 +80310,9 @@ public void _0x2016C603D6B8987C(int _ped, bool _toggle) public void SetPedSteersAroundPeds(int _ped, bool _toggle) { unsafe { - if (fn__setPedSteersAroundPeds == null) fn__setPedSteersAroundPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundPeds"); + if (fn__setPedSteersAroundPeds == null) fn__setPedSteersAroundPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundPeds"); var success = false; - fn__setPedSteersAroundPeds(&success, _ped, _toggle); + fn__setPedSteersAroundPeds(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80321,9 +80321,9 @@ public void SetPedSteersAroundPeds(int _ped, bool _toggle) public void SetPedSteersAroundObjects(int _ped, bool _toggle) { unsafe { - if (fn__setPedSteersAroundObjects == null) fn__setPedSteersAroundObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundObjects"); + if (fn__setPedSteersAroundObjects == null) fn__setPedSteersAroundObjects = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundObjects"); var success = false; - fn__setPedSteersAroundObjects(&success, _ped, _toggle); + fn__setPedSteersAroundObjects(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80332,9 +80332,9 @@ public void SetPedSteersAroundObjects(int _ped, bool _toggle) public void SetPedSteersAroundVehicles(int _ped, bool _toggle) { unsafe { - if (fn__setPedSteersAroundVehicles == null) fn__setPedSteersAroundVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundVehicles"); + if (fn__setPedSteersAroundVehicles == null) fn__setPedSteersAroundVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedSteersAroundVehicles"); var success = false; - fn__setPedSteersAroundVehicles(&success, _ped, _toggle); + fn__setPedSteersAroundVehicles(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80342,9 +80342,9 @@ public void SetPedSteersAroundVehicles(int _ped, bool _toggle) public void _0xA9B61A329BFDCBEA(int _p0, bool _p1) { unsafe { - if (fn__0xA9B61A329BFDCBEA == null) fn__0xA9B61A329BFDCBEA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA9B61A329BFDCBEA"); + if (fn__0xA9B61A329BFDCBEA == null) fn__0xA9B61A329BFDCBEA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA9B61A329BFDCBEA"); var success = false; - fn__0xA9B61A329BFDCBEA(&success, _p0, _p1); + fn__0xA9B61A329BFDCBEA(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80364,9 +80364,9 @@ public void SetPedIncreasedAvoidanceRadius(int _ped) public void SetPedBlocksPathingWhenDead(int _ped, bool _toggle) { unsafe { - if (fn__setPedBlocksPathingWhenDead == null) fn__setPedBlocksPathingWhenDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedBlocksPathingWhenDead"); + if (fn__setPedBlocksPathingWhenDead == null) fn__setPedBlocksPathingWhenDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedBlocksPathingWhenDead"); var success = false; - fn__setPedBlocksPathingWhenDead(&success, _ped, _toggle); + fn__setPedBlocksPathingWhenDead(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80384,11 +80384,11 @@ public void _0xA52D5247A4227E14(int _p0) public bool IsAnyPedNearPoint(float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isAnyPedNearPoint == null) fn__isAnyPedNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedNearPoint"); + if (fn__isAnyPedNearPoint == null) fn__isAnyPedNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedNearPoint"); var success = false; var result = fn__isAnyPedNearPoint(&success, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80396,9 +80396,9 @@ public bool IsAnyPedNearPoint(float _x, float _y, float _z, float _radius) public void ForcePedAiAndAnimationUpdate(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__forcePedAiAndAnimationUpdate == null) fn__forcePedAiAndAnimationUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePedAiAndAnimationUpdate"); + if (fn__forcePedAiAndAnimationUpdate == null) fn__forcePedAiAndAnimationUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePedAiAndAnimationUpdate"); var success = false; - fn__forcePedAiAndAnimationUpdate(&success, _ped, _p1, _p2); + fn__forcePedAiAndAnimationUpdate(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80407,11 +80407,11 @@ public void ForcePedAiAndAnimationUpdate(int _ped, bool _p1, bool _p2) public bool IsPedHeadingTowardsPosition(int _ped, float _x, float _y, float _z, float _p4) { unsafe { - if (fn__isPedHeadingTowardsPosition == null) fn__isPedHeadingTowardsPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadingTowardsPosition"); + if (fn__isPedHeadingTowardsPosition == null) fn__isPedHeadingTowardsPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedHeadingTowardsPosition"); var success = false; var result = fn__isPedHeadingTowardsPosition(&success, _ped, _x, _y, _z, _p4); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80430,9 +80430,9 @@ public void RequestPedVisibilityTracking(int _ped) public void RequestPedVehicleVisibilityTracking(int _ped, bool _p1) { unsafe { - if (fn__requestPedVehicleVisibilityTracking == null) fn__requestPedVehicleVisibilityTracking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPedVehicleVisibilityTracking"); + if (fn__requestPedVehicleVisibilityTracking == null) fn__requestPedVehicleVisibilityTracking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPedVehicleVisibilityTracking"); var success = false; - fn__requestPedVehicleVisibilityTracking(&success, _ped, _p1); + fn__requestPedVehicleVisibilityTracking(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80441,9 +80441,9 @@ public void RequestPedVehicleVisibilityTracking(int _ped, bool _p1) public void _0xCD018C591F94CB43(int _ped, bool _p1) { unsafe { - if (fn__0xCD018C591F94CB43 == null) fn__0xCD018C591F94CB43 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCD018C591F94CB43"); + if (fn__0xCD018C591F94CB43 == null) fn__0xCD018C591F94CB43 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCD018C591F94CB43"); var success = false; - fn__0xCD018C591F94CB43(&success, _ped, _p1); + fn__0xCD018C591F94CB43(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80452,9 +80452,9 @@ public void _0xCD018C591F94CB43(int _ped, bool _p1) public void _0x75BA1CB3B7D40CAF(int _ped, bool _p1) { unsafe { - if (fn__0x75BA1CB3B7D40CAF == null) fn__0x75BA1CB3B7D40CAF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x75BA1CB3B7D40CAF"); + if (fn__0x75BA1CB3B7D40CAF == null) fn__0x75BA1CB3B7D40CAF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x75BA1CB3B7D40CAF"); var success = false; - fn__0x75BA1CB3B7D40CAF(&success, _ped, _p1); + fn__0x75BA1CB3B7D40CAF(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80463,11 +80463,11 @@ public void _0x75BA1CB3B7D40CAF(int _ped, bool _p1) public bool IsTrackedPedVisible(int _ped) { unsafe { - if (fn__isTrackedPedVisible == null) fn__isTrackedPedVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTrackedPedVisible"); + if (fn__isTrackedPedVisible == null) fn__isTrackedPedVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTrackedPedVisible"); var success = false; var result = fn__isTrackedPedVisible(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80487,11 +80487,11 @@ public int _0x511F1A683387C7E2(int _ped) public bool IsPedTracked(int _ped) { unsafe { - if (fn__isPedTracked == null) fn__isPedTracked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTracked"); + if (fn__isPedTracked == null) fn__isPedTracked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedTracked"); var success = false; var result = fn__isPedTracked(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80499,11 +80499,11 @@ public bool IsPedTracked(int _ped) public bool HasPedReceivedEvent(int _ped, int _eventId) { unsafe { - if (fn__hasPedReceivedEvent == null) fn__hasPedReceivedEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedReceivedEvent"); + if (fn__hasPedReceivedEvent == null) fn__hasPedReceivedEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedReceivedEvent"); var success = false; var result = fn__hasPedReceivedEvent(&success, _ped, _eventId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80513,11 +80513,11 @@ public bool HasPedReceivedEvent(int _ped, int _eventId) public bool CanPedSeeHatedPed(int _ped1, int _ped2) { unsafe { - if (fn__canPedSeeHatedPed == null) fn__canPedSeeHatedPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedSeeHatedPed"); + if (fn__canPedSeeHatedPed == null) fn__canPedSeeHatedPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedSeeHatedPed"); var success = false; var result = fn__canPedSeeHatedPed(&success, _ped1, _ped2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80525,13 +80525,13 @@ public bool CanPedSeeHatedPed(int _ped1, int _ped2) public bool _0x9C6A6C19B6C0C496(int _ped, ref int _p1) { unsafe { - if (fn__0x9C6A6C19B6C0C496 == null) fn__0x9C6A6C19B6C0C496 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9C6A6C19B6C0C496"); + if (fn__0x9C6A6C19B6C0C496 == null) fn__0x9C6A6C19B6C0C496 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9C6A6C19B6C0C496"); var success = false; var ref_p1 = _p1; var result = fn__0x9C6A6C19B6C0C496(&success, _ped, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80539,13 +80539,13 @@ public bool _0x9C6A6C19B6C0C496(int _ped, ref int _p1) public bool _0x2DFC81C9B9608549(int _ped, ref int _p1) { unsafe { - if (fn__0x2DFC81C9B9608549 == null) fn__0x2DFC81C9B9608549 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2DFC81C9B9608549"); + if (fn__0x2DFC81C9B9608549 == null) fn__0x2DFC81C9B9608549 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2DFC81C9B9608549"); var success = false; var ref_p1 = _p1; var result = fn__0x2DFC81C9B9608549(&success, _ped, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80600,9 +80600,9 @@ public float GetPedEnveffScale(int _ped) public void SetEnablePedEnveffScale(int _ped, bool _toggle) { unsafe { - if (fn__setEnablePedEnveffScale == null) fn__setEnablePedEnveffScale = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnablePedEnveffScale"); + if (fn__setEnablePedEnveffScale == null) fn__setEnablePedEnveffScale = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnablePedEnveffScale"); var success = false; - fn__setEnablePedEnveffScale(&success, _ped, _toggle); + fn__setEnablePedEnveffScale(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80656,11 +80656,11 @@ public float GetPedEmissiveIntensity(int _ped) public bool IsPedShaderEffectValid(int _ped) { unsafe { - if (fn__isPedShaderEffectValid == null) fn__isPedShaderEffectValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShaderEffectValid"); + if (fn__isPedShaderEffectValid == null) fn__isPedShaderEffectValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedShaderEffectValid"); var success = false; var result = fn__isPedShaderEffectValid(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80688,9 +80688,9 @@ public void _0x1216E0BFA72CC703(int _p0, int _p1) public void SetPedAoBlobRendering(int _ped, bool _toggle) { unsafe { - if (fn__setPedAoBlobRendering == null) fn__setPedAoBlobRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAoBlobRendering"); + if (fn__setPedAoBlobRendering == null) fn__setPedAoBlobRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAoBlobRendering"); var success = false; - fn__setPedAoBlobRendering(&success, _ped, _toggle); + fn__setPedAoBlobRendering(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80699,11 +80699,11 @@ public void SetPedAoBlobRendering(int _ped, bool _toggle) public bool _0xB8B52E498014F5B0(int _ped) { unsafe { - if (fn__0xB8B52E498014F5B0 == null) fn__0xB8B52E498014F5B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB8B52E498014F5B0"); + if (fn__0xB8B52E498014F5B0 == null) fn__0xB8B52E498014F5B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB8B52E498014F5B0"); var success = false; var result = fn__0xB8B52E498014F5B0(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80732,20 +80732,20 @@ public int CreateSynchronizedScene2(float _x, float _y, float _z, float _radius, public bool IsSynchronizedSceneRunning(int _sceneId) { unsafe { - if (fn__isSynchronizedSceneRunning == null) fn__isSynchronizedSceneRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneRunning"); + if (fn__isSynchronizedSceneRunning == null) fn__isSynchronizedSceneRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneRunning"); var success = false; var result = fn__isSynchronizedSceneRunning(&success, _sceneId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetSynchronizedSceneOrigin(int _sceneID, float _x, float _y, float _z, float _roll, float _pitch, float _yaw, bool _p7) { unsafe { - if (fn__setSynchronizedSceneOrigin == null) fn__setSynchronizedSceneOrigin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneOrigin"); + if (fn__setSynchronizedSceneOrigin == null) fn__setSynchronizedSceneOrigin = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneOrigin"); var success = false; - fn__setSynchronizedSceneOrigin(&success, _sceneID, _x, _y, _z, _roll, _pitch, _yaw, _p7); + fn__setSynchronizedSceneOrigin(&success, _sceneID, _x, _y, _z, _roll, _pitch, _yaw, (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80795,9 +80795,9 @@ public float GetSynchronizedSceneRate(int _sceneID) public void SetSynchronizedSceneLooped(int _sceneID, bool _toggle) { unsafe { - if (fn__setSynchronizedSceneLooped == null) fn__setSynchronizedSceneLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneLooped"); + if (fn__setSynchronizedSceneLooped == null) fn__setSynchronizedSceneLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneLooped"); var success = false; - fn__setSynchronizedSceneLooped(&success, _sceneID, _toggle); + fn__setSynchronizedSceneLooped(&success, _sceneID, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80805,20 +80805,20 @@ public void SetSynchronizedSceneLooped(int _sceneID, bool _toggle) public bool IsSynchronizedSceneLooped(int _sceneID) { unsafe { - if (fn__isSynchronizedSceneLooped == null) fn__isSynchronizedSceneLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneLooped"); + if (fn__isSynchronizedSceneLooped == null) fn__isSynchronizedSceneLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneLooped"); var success = false; var result = fn__isSynchronizedSceneLooped(&success, _sceneID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetSynchronizedSceneHoldLastFrame(int _sceneID, bool _toggle) { unsafe { - if (fn__setSynchronizedSceneHoldLastFrame == null) fn__setSynchronizedSceneHoldLastFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneHoldLastFrame"); + if (fn__setSynchronizedSceneHoldLastFrame == null) fn__setSynchronizedSceneHoldLastFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSynchronizedSceneHoldLastFrame"); var success = false; - fn__setSynchronizedSceneHoldLastFrame(&success, _sceneID, _toggle); + fn__setSynchronizedSceneHoldLastFrame(&success, _sceneID, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -80826,11 +80826,11 @@ public void SetSynchronizedSceneHoldLastFrame(int _sceneID, bool _toggle) public bool IsSynchronizedSceneHoldLastFrame(int _sceneID) { unsafe { - if (fn__isSynchronizedSceneHoldLastFrame == null) fn__isSynchronizedSceneHoldLastFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneHoldLastFrame"); + if (fn__isSynchronizedSceneHoldLastFrame == null) fn__isSynchronizedSceneHoldLastFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSynchronizedSceneHoldLastFrame"); var success = false; var result = fn__isSynchronizedSceneHoldLastFrame(&success, _sceneID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80869,11 +80869,11 @@ public void DisposeSynchronizedScene(int _scene) public bool ForcePedMotionState(int _ped, uint _motionStateHash, bool _p2, int _p3, bool _p4) { unsafe { - if (fn__forcePedMotionState == null) fn__forcePedMotionState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePedMotionState"); + if (fn__forcePedMotionState == null) fn__forcePedMotionState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePedMotionState"); var success = false; - var result = fn__forcePedMotionState(&success, _ped, _motionStateHash, _p2, _p3, _p4); + var result = fn__forcePedMotionState(&success, _ped, _motionStateHash, (byte) (_p2 ? 1 : 0), _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80881,7 +80881,7 @@ public bool ForcePedMotionState(int _ped, uint _motionStateHash, bool _p2, int _ public bool GetPedCurrentMovementSpeed(int _ped, ref float _speedX, ref float _speedY) { unsafe { - if (fn__getPedCurrentMovementSpeed == null) fn__getPedCurrentMovementSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedCurrentMovementSpeed"); + if (fn__getPedCurrentMovementSpeed == null) fn__getPedCurrentMovementSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedCurrentMovementSpeed"); var success = false; var ref_speedX = _speedX; var ref_speedY = _speedY; @@ -80889,7 +80889,7 @@ public bool GetPedCurrentMovementSpeed(int _ped, ref float _speedX, ref float _s _speedX = ref_speedX; _speedY = ref_speedY; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80940,11 +80940,11 @@ public void _0x0B3E35AC043707D9(int _p0, int _p1) public bool _0x46B05BCAE43856B0(int _ped, int _flag) { unsafe { - if (fn__0x46B05BCAE43856B0 == null) fn__0x46B05BCAE43856B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x46B05BCAE43856B0"); + if (fn__0x46B05BCAE43856B0 == null) fn__0x46B05BCAE43856B0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x46B05BCAE43856B0"); var success = false; var result = fn__0x46B05BCAE43856B0(&success, _ped, _flag); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80980,11 +80980,11 @@ public int GetPedNearbyPeds(int _ped, ref int _sizeAndPeds, int _ignore) public bool HaveAllStreamingRequestsCompleted(int _ped) { unsafe { - if (fn__haveAllStreamingRequestsCompleted == null) fn__haveAllStreamingRequestsCompleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveAllStreamingRequestsCompleted"); + if (fn__haveAllStreamingRequestsCompleted == null) fn__haveAllStreamingRequestsCompleted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveAllStreamingRequestsCompleted"); var success = false; var result = fn__haveAllStreamingRequestsCompleted(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -80992,11 +80992,11 @@ public bool HaveAllStreamingRequestsCompleted(int _ped) public bool IsPedUsingActionMode(int _ped) { unsafe { - if (fn__isPedUsingActionMode == null) fn__isPedUsingActionMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingActionMode"); + if (fn__isPedUsingActionMode == null) fn__isPedUsingActionMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedUsingActionMode"); var success = false; var result = fn__isPedUsingActionMode(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81004,10 +81004,10 @@ public bool IsPedUsingActionMode(int _ped) public void SetPedUsingActionMode(int _ped, bool _p1, int _p2, string _action) { unsafe { - if (fn__setPedUsingActionMode == null) fn__setPedUsingActionMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedUsingActionMode"); + if (fn__setPedUsingActionMode == null) fn__setPedUsingActionMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedUsingActionMode"); var success = false; var ptr_action = MemoryUtils.StringToHGlobalUtf8(_action); - fn__setPedUsingActionMode(&success, _ped, _p1, _p2, ptr_action); + fn__setPedUsingActionMode(&success, _ped, (byte) (_p1 ? 1 : 0), _p2, ptr_action); Marshal.FreeHGlobal(ptr_action); if (!success) throw new Exception("Native execution failed"); } @@ -81086,22 +81086,22 @@ public void UnregisterPedheadshot(int _id) public bool IsPedheadshotValid(int _id) { unsafe { - if (fn__isPedheadshotValid == null) fn__isPedheadshotValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotValid"); + if (fn__isPedheadshotValid == null) fn__isPedheadshotValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotValid"); var success = false; var result = fn__isPedheadshotValid(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPedheadshotReady(int _id) { unsafe { - if (fn__isPedheadshotReady == null) fn__isPedheadshotReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotReady"); + if (fn__isPedheadshotReady == null) fn__isPedheadshotReady = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotReady"); var success = false; var result = fn__isPedheadshotReady(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81121,11 +81121,11 @@ public string GetPedheadshotTxdString(int _id) public bool RequestPedheadshotImgUpload(int _id) { unsafe { - if (fn__requestPedheadshotImgUpload == null) fn__requestPedheadshotImgUpload = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPedheadshotImgUpload"); + if (fn__requestPedheadshotImgUpload == null) fn__requestPedheadshotImgUpload = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestPedheadshotImgUpload"); var success = false; var result = fn__requestPedheadshotImgUpload(&success, _id); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81142,33 +81142,33 @@ public void ReleasePedheadshotImgUpload(int _id) public bool IsPedheadshotImgUploadAvailable() { unsafe { - if (fn__isPedheadshotImgUploadAvailable == null) fn__isPedheadshotImgUploadAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotImgUploadAvailable"); + if (fn__isPedheadshotImgUploadAvailable == null) fn__isPedheadshotImgUploadAvailable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedheadshotImgUploadAvailable"); var success = false; var result = fn__isPedheadshotImgUploadAvailable(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasPedheadshotImgUploadFailed() { unsafe { - if (fn__hasPedheadshotImgUploadFailed == null) fn__hasPedheadshotImgUploadFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedheadshotImgUploadFailed"); + if (fn__hasPedheadshotImgUploadFailed == null) fn__hasPedheadshotImgUploadFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedheadshotImgUploadFailed"); var success = false; var result = fn__hasPedheadshotImgUploadFailed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool HasPedheadshotImgUploadSucceeded() { unsafe { - if (fn__hasPedheadshotImgUploadSucceeded == null) fn__hasPedheadshotImgUploadSucceeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedheadshotImgUploadSucceeded"); + if (fn__hasPedheadshotImgUploadSucceeded == null) fn__hasPedheadshotImgUploadSucceeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedheadshotImgUploadSucceeded"); var success = false; var result = fn__hasPedheadshotImgUploadSucceeded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81227,33 +81227,33 @@ public void SpawnpointsCancelSearch() public bool SpawnpointsIsSearchActive() { unsafe { - if (fn__spawnpointsIsSearchActive == null) fn__spawnpointsIsSearchActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchActive"); + if (fn__spawnpointsIsSearchActive == null) fn__spawnpointsIsSearchActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchActive"); var success = false; var result = fn__spawnpointsIsSearchActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SpawnpointsIsSearchComplete() { unsafe { - if (fn__spawnpointsIsSearchComplete == null) fn__spawnpointsIsSearchComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchComplete"); + if (fn__spawnpointsIsSearchComplete == null) fn__spawnpointsIsSearchComplete = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchComplete"); var success = false; var result = fn__spawnpointsIsSearchComplete(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SpawnpointsIsSearchFailed() { unsafe { - if (fn__spawnpointsIsSearchFailed == null) fn__spawnpointsIsSearchFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchFailed"); + if (fn__spawnpointsIsSearchFailed == null) fn__spawnpointsIsSearchFailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_spawnpointsIsSearchFailed"); var success = false; var result = fn__spawnpointsIsSearchFailed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81335,13 +81335,13 @@ public void RequestActionModeAsset(string _asset) public bool HasActionModeAssetLoaded(string _asset) { unsafe { - if (fn__hasActionModeAssetLoaded == null) fn__hasActionModeAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasActionModeAssetLoaded"); + if (fn__hasActionModeAssetLoaded == null) fn__hasActionModeAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasActionModeAssetLoaded"); var success = false; var ptr_asset = MemoryUtils.StringToHGlobalUtf8(_asset); var result = fn__hasActionModeAssetLoaded(&success, ptr_asset); Marshal.FreeHGlobal(ptr_asset); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81372,13 +81372,13 @@ public void RequestStealthModeAsset(string _asset) public bool HasStealthModeAssetLoaded(string _asset) { unsafe { - if (fn__hasStealthModeAssetLoaded == null) fn__hasStealthModeAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasStealthModeAssetLoaded"); + if (fn__hasStealthModeAssetLoaded == null) fn__hasStealthModeAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasStealthModeAssetLoaded"); var success = false; var ptr_asset = MemoryUtils.StringToHGlobalUtf8(_asset); var result = fn__hasStealthModeAssetLoaded(&success, ptr_asset); Marshal.FreeHGlobal(ptr_asset); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81409,9 +81409,9 @@ public void SetPedLodMultiplier(int _ped, float _multiplier) public void SetPedCanLosePropsOnDamage(int _ped, bool _toggle, int _p2) { unsafe { - if (fn__setPedCanLosePropsOnDamage == null) fn__setPedCanLosePropsOnDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanLosePropsOnDamage"); + if (fn__setPedCanLosePropsOnDamage == null) fn__setPedCanLosePropsOnDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanLosePropsOnDamage"); var success = false; - fn__setPedCanLosePropsOnDamage(&success, _ped, _toggle, _p2); + fn__setPedCanLosePropsOnDamage(&success, _ped, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -81420,9 +81420,9 @@ public void SetPedCanLosePropsOnDamage(int _ped, bool _toggle, int _p2) public void SetForceFootstepUpdate(int _ped, bool _toggle) { unsafe { - if (fn__setForceFootstepUpdate == null) fn__setForceFootstepUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceFootstepUpdate"); + if (fn__setForceFootstepUpdate == null) fn__setForceFootstepUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceFootstepUpdate"); var success = false; - fn__setForceFootstepUpdate(&success, _ped, _toggle); + fn__setForceFootstepUpdate(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81431,9 +81431,9 @@ public void SetForceFootstepUpdate(int _ped, bool _toggle) public void SetForceStepType(int _ped, bool _p1, int _type, int _p3) { unsafe { - if (fn__setForceStepType == null) fn__setForceStepType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceStepType"); + if (fn__setForceStepType == null) fn__setForceStepType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceStepType"); var success = false; - fn__setForceStepType(&success, _ped, _p1, _type, _p3); + fn__setForceStepType(&success, _ped, (byte) (_p1 ? 1 : 0), _type, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -81442,11 +81442,11 @@ public void SetForceStepType(int _ped, bool _p1, int _type, int _p3) public bool IsAnyHostilePedNearPoint(int _ped, float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isAnyHostilePedNearPoint == null) fn__isAnyHostilePedNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyHostilePedNearPoint"); + if (fn__isAnyHostilePedNearPoint == null) fn__isAnyHostilePedNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyHostilePedNearPoint"); var success = false; var result = fn__isAnyHostilePedNearPoint(&success, _ped, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81454,9 +81454,9 @@ public bool IsAnyHostilePedNearPoint(int _ped, float _x, float _y, float _z, flo public void SetPedCanPlayInCarIdles(int _ped, bool _toggle) { unsafe { - if (fn__setPedCanPlayInCarIdles == null) fn__setPedCanPlayInCarIdles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayInCarIdles"); + if (fn__setPedCanPlayInCarIdles == null) fn__setPedCanPlayInCarIdles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayInCarIdles"); var success = false; - fn__setPedCanPlayInCarIdles(&success, _ped, _toggle); + fn__setPedCanPlayInCarIdles(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81467,11 +81467,11 @@ public void SetPedCanPlayInCarIdles(int _ped, bool _toggle) public bool IsTargetPedInPerceptionArea(int _ped, int _targetPed, float _p2, float _p3, float _p4, float _p5) { unsafe { - if (fn__isTargetPedInPerceptionArea == null) fn__isTargetPedInPerceptionArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTargetPedInPerceptionArea"); + if (fn__isTargetPedInPerceptionArea == null) fn__isTargetPedInPerceptionArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTargetPedInPerceptionArea"); var success = false; var result = fn__isTargetPedInPerceptionArea(&success, _ped, _targetPed, _p2, _p3, _p4, _p5); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81530,11 +81530,11 @@ public void _0x288DF530C92DAD6F(int _p0, float _p1) public bool IsPedSwappingWeapon(int _Ped) { unsafe { - if (fn__isPedSwappingWeapon == null) fn__isPedSwappingWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwappingWeapon"); + if (fn__isPedSwappingWeapon == null) fn__isPedSwappingWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSwappingWeapon"); var success = false; var result = fn__isPedSwappingWeapon(&success, _Ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81563,9 +81563,9 @@ public void _0xDFE68C4B787E1BFB(int _ped) public void SetEnableScubaGearLight(int _ped, bool _toggle) { unsafe { - if (fn__setEnableScubaGearLight == null) fn__setEnableScubaGearLight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableScubaGearLight"); + if (fn__setEnableScubaGearLight == null) fn__setEnableScubaGearLight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableScubaGearLight"); var success = false; - fn__setEnableScubaGearLight(&success, _ped, _toggle); + fn__setEnableScubaGearLight(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81574,11 +81574,11 @@ public void SetEnableScubaGearLight(int _ped, bool _toggle) public bool IsScubaGearLightEnabled(int _ped) { unsafe { - if (fn__isScubaGearLightEnabled == null) fn__isScubaGearLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScubaGearLightEnabled"); + if (fn__isScubaGearLightEnabled == null) fn__isScubaGearLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScubaGearLightEnabled"); var success = false; var result = fn__isScubaGearLightEnabled(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81597,9 +81597,9 @@ public void ClearFacialClipsetOverride(int _ped) public void _0xFAB944D4D481ACCB(int _ped, bool _toggle) { unsafe { - if (fn__0xFAB944D4D481ACCB == null) fn__0xFAB944D4D481ACCB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFAB944D4D481ACCB"); + if (fn__0xFAB944D4D481ACCB == null) fn__0xFAB944D4D481ACCB = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFAB944D4D481ACCB"); var success = false; - fn__0xFAB944D4D481ACCB(&success, _ped, _toggle); + fn__0xFAB944D4D481ACCB(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81607,10 +81607,10 @@ public void _0xFAB944D4D481ACCB(int _ped, bool _toggle) public int AddRope(float _x, float _y, float _z, float _rotX, float _rotY, float _rotZ, float _length, int _ropeType, float _maxLength, float _minLength, float _windingSpeed, bool _p11, bool _p12, bool _rigid, float _p14, bool _breakWhenShot, ref int _unkPtr) { unsafe { - if (fn__addRope == null) fn__addRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addRope"); + if (fn__addRope == null) fn__addRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addRope"); var success = false; var ref_unkPtr = _unkPtr; - var result = fn__addRope(&success, _x, _y, _z, _rotX, _rotY, _rotZ, _length, _ropeType, _maxLength, _minLength, _windingSpeed, _p11, _p12, _rigid, _p14, _breakWhenShot, &ref_unkPtr); + var result = fn__addRope(&success, _x, _y, _z, _rotX, _rotY, _rotZ, _length, _ropeType, _maxLength, _minLength, _windingSpeed, (byte) (_p11 ? 1 : 0), (byte) (_p12 ? 1 : 0), (byte) (_rigid ? 1 : 0), _p14, (byte) (_breakWhenShot ? 1 : 0), &ref_unkPtr); _unkPtr = ref_unkPtr; if (!success) throw new Exception("Native execution failed"); return result; @@ -81642,23 +81642,23 @@ public void DeleteChildRope(int _ropeId) public bool DoesRopeExist(ref int _ropeId) { unsafe { - if (fn__doesRopeExist == null) fn__doesRopeExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRopeExist"); + if (fn__doesRopeExist == null) fn__doesRopeExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRopeExist"); var success = false; var ref_ropeId = _ropeId; var result = fn__doesRopeExist(&success, &ref_ropeId); _ropeId = ref_ropeId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xA1AE736541B0FCA3(ref int _ropeId, bool _p1) { unsafe { - if (fn__0xA1AE736541B0FCA3 == null) fn__0xA1AE736541B0FCA3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA1AE736541B0FCA3"); + if (fn__0xA1AE736541B0FCA3 == null) fn__0xA1AE736541B0FCA3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA1AE736541B0FCA3"); var success = false; var ref_ropeId = _ropeId; - fn__0xA1AE736541B0FCA3(&success, &ref_ropeId, _p1); + fn__0xA1AE736541B0FCA3(&success, &ref_ropeId, (byte) (_p1 ? 1 : 0)); _ropeId = ref_ropeId; if (!success) throw new Exception("Native execution failed"); } @@ -81667,10 +81667,10 @@ public void _0xA1AE736541B0FCA3(ref int _ropeId, bool _p1) public void RopeDrawShadowEnabled(ref int _ropeId, bool _toggle) { unsafe { - if (fn__ropeDrawShadowEnabled == null) fn__ropeDrawShadowEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ropeDrawShadowEnabled"); + if (fn__ropeDrawShadowEnabled == null) fn__ropeDrawShadowEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ropeDrawShadowEnabled"); var success = false; var ref_ropeId = _ropeId; - fn__ropeDrawShadowEnabled(&success, &ref_ropeId, _toggle); + fn__ropeDrawShadowEnabled(&success, &ref_ropeId, (byte) (_toggle ? 1 : 0)); _ropeId = ref_ropeId; if (!success) throw new Exception("Native execution failed"); } @@ -81725,11 +81725,11 @@ public int GetRopeVertexCount(int _ropeId) public void AttachEntitiesToRope(int _ropeId, int _ent1, int _ent2, float _ent1_x, float _ent1_y, float _ent1_z, float _ent2_x, float _ent2_y, float _ent2_z, float _length, bool _p10, bool _p11, ref int _p12, ref int _p13) { unsafe { - if (fn__attachEntitiesToRope == null) fn__attachEntitiesToRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntitiesToRope"); + if (fn__attachEntitiesToRope == null) fn__attachEntitiesToRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachEntitiesToRope"); var success = false; var ref_p12 = _p12; var ref_p13 = _p13; - fn__attachEntitiesToRope(&success, _ropeId, _ent1, _ent2, _ent1_x, _ent1_y, _ent1_z, _ent2_x, _ent2_y, _ent2_z, _length, _p10, _p11, &ref_p12, &ref_p13); + fn__attachEntitiesToRope(&success, _ropeId, _ent1, _ent2, _ent1_x, _ent1_y, _ent1_z, _ent2_x, _ent2_y, _ent2_z, _length, (byte) (_p10 ? 1 : 0), (byte) (_p11 ? 1 : 0), &ref_p12, &ref_p13); _p12 = ref_p12; _p13 = ref_p13; if (!success) throw new Exception("Native execution failed"); @@ -81740,9 +81740,9 @@ public void AttachEntitiesToRope(int _ropeId, int _ent1, int _ent2, float _ent1_ public void AttachRopeToEntity(int _ropeId, int _entity, float _x, float _y, float _z, bool _p5) { unsafe { - if (fn__attachRopeToEntity == null) fn__attachRopeToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachRopeToEntity"); + if (fn__attachRopeToEntity == null) fn__attachRopeToEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachRopeToEntity"); var success = false; - fn__attachRopeToEntity(&success, _ropeId, _entity, _x, _y, _z, _p5); + fn__attachRopeToEntity(&success, _ropeId, _entity, _x, _y, _z, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81781,9 +81781,9 @@ public void RopeSetUpdateOrder(int _ropeId, int _p1) public void _0x36CCB9BE67B970FD(int _ropeId, bool _p1) { unsafe { - if (fn__0x36CCB9BE67B970FD == null) fn__0x36CCB9BE67B970FD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x36CCB9BE67B970FD"); + if (fn__0x36CCB9BE67B970FD == null) fn__0x36CCB9BE67B970FD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x36CCB9BE67B970FD"); var success = false; - fn__0x36CCB9BE67B970FD(&success, _ropeId, _p1); + fn__0x36CCB9BE67B970FD(&success, _ropeId, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -81791,13 +81791,13 @@ public void _0x36CCB9BE67B970FD(int _ropeId, bool _p1) public bool _0x84DE3B5FB3E666F0(ref int _ropeId) { unsafe { - if (fn__0x84DE3B5FB3E666F0 == null) fn__0x84DE3B5FB3E666F0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x84DE3B5FB3E666F0"); + if (fn__0x84DE3B5FB3E666F0 == null) fn__0x84DE3B5FB3E666F0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x84DE3B5FB3E666F0"); var success = false; var ref_ropeId = _ropeId; var result = fn__0x84DE3B5FB3E666F0(&success, &ref_ropeId); _ropeId = ref_ropeId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81886,11 +81886,11 @@ public void RopeLoadTextures() public bool RopeAreTexturesLoaded() { unsafe { - if (fn__ropeAreTexturesLoaded == null) fn__ropeAreTexturesLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ropeAreTexturesLoaded"); + if (fn__ropeAreTexturesLoaded == null) fn__ropeAreTexturesLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_ropeAreTexturesLoaded"); var success = false; var result = fn__ropeAreTexturesLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81907,11 +81907,11 @@ public void RopeUnloadTextures() public bool DoesRopeBelongToThisScript(int _ropeId) { unsafe { - if (fn__doesRopeBelongToThisScript == null) fn__doesRopeBelongToThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRopeBelongToThisScript"); + if (fn__doesRopeBelongToThisScript == null) fn__doesRopeBelongToThisScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesRopeBelongToThisScript"); var success = false; var result = fn__doesRopeBelongToThisScript(&success, _ropeId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -81928,9 +81928,9 @@ public void _0xBC0CE682D4D05650(int _ropeId, int _p1, float _p2, float _p3, floa public void _0xB1B6216CA2E7B55E(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__0xB1B6216CA2E7B55E == null) fn__0xB1B6216CA2E7B55E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB1B6216CA2E7B55E"); + if (fn__0xB1B6216CA2E7B55E == null) fn__0xB1B6216CA2E7B55E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB1B6216CA2E7B55E"); var success = false; - fn__0xB1B6216CA2E7B55E(&success, _p0, _p1, _p2); + fn__0xB1B6216CA2E7B55E(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82046,9 +82046,9 @@ public void SetCgAtBoundcenter(int _entity) public void BreakEntityGlass(int _entity, float _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, float _p8, int _p9, bool _p10) { unsafe { - if (fn__breakEntityGlass == null) fn__breakEntityGlass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_breakEntityGlass"); + if (fn__breakEntityGlass == null) fn__breakEntityGlass = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_breakEntityGlass"); var success = false; - fn__breakEntityGlass(&success, _entity, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10); + fn__breakEntityGlass(&success, _entity, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, (byte) (_p10 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82056,20 +82056,20 @@ public void BreakEntityGlass(int _entity, float _p1, float _p2, float _p3, float public bool GetHasObjectFragInst(int _object) { unsafe { - if (fn__getHasObjectFragInst == null) fn__getHasObjectFragInst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasObjectFragInst"); + if (fn__getHasObjectFragInst == null) fn__getHasObjectFragInst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasObjectFragInst"); var success = false; var result = fn__getHasObjectFragInst(&success, _object); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetDisableBreaking(int _object, bool _toggle) { unsafe { - if (fn__setDisableBreaking == null) fn__setDisableBreaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableBreaking"); + if (fn__setDisableBreaking == null) fn__setDisableBreaking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableBreaking"); var success = false; - fn__setDisableBreaking(&success, _object, _toggle); + fn__setDisableBreaking(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82087,9 +82087,9 @@ public void _0xCC6E963682533882(int _object) public void SetDisableFragDamage(int _object, bool _toggle) { unsafe { - if (fn__setDisableFragDamage == null) fn__setDisableFragDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableFragDamage"); + if (fn__setDisableFragDamage == null) fn__setDisableFragDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableFragDamage"); var success = false; - fn__setDisableFragDamage(&success, _object, _toggle); + fn__setDisableFragDamage(&success, _object, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82098,9 +82098,9 @@ public void SetDisableFragDamage(int _object, bool _toggle) public void SetEntityProofUnk(int _entity, bool _toggle) { unsafe { - if (fn__setEntityProofUnk == null) fn__setEntityProofUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityProofUnk"); + if (fn__setEntityProofUnk == null) fn__setEntityProofUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEntityProofUnk"); var success = false; - fn__setEntityProofUnk(&success, _entity, _toggle); + fn__setEntityProofUnk(&success, _entity, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82108,9 +82108,9 @@ public void SetEntityProofUnk(int _entity, bool _toggle) public void _0x9EBD751E5787BAF2(bool _p0) { unsafe { - if (fn__0x9EBD751E5787BAF2 == null) fn__0x9EBD751E5787BAF2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9EBD751E5787BAF2"); + if (fn__0x9EBD751E5787BAF2 == null) fn__0x9EBD751E5787BAF2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9EBD751E5787BAF2"); var success = false; - fn__0x9EBD751E5787BAF2(&success, _p0); + fn__0x9EBD751E5787BAF2(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82118,9 +82118,9 @@ public void _0x9EBD751E5787BAF2(bool _p0) public void SetLaunchControlEnabled(bool _toggle) { unsafe { - if (fn__setLaunchControlEnabled == null) fn__setLaunchControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLaunchControlEnabled"); + if (fn__setLaunchControlEnabled == null) fn__setLaunchControlEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setLaunchControlEnabled"); var success = false; - fn__setLaunchControlEnabled(&success, _toggle); + fn__setLaunchControlEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82166,9 +82166,9 @@ public void SetPlayerModel(int _player, uint _model) public void ChangePlayerPed(int _player, int _ped, bool _p2, bool _resetDamage) { unsafe { - if (fn__changePlayerPed == null) fn__changePlayerPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_changePlayerPed"); + if (fn__changePlayerPed == null) fn__changePlayerPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_changePlayerPed"); var success = false; - fn__changePlayerPed(&success, _player, _ped, _p2, _resetDamage); + fn__changePlayerPed(&success, _player, _ped, (byte) (_p2 ? 1 : 0), (byte) (_resetDamage ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82277,10 +82277,10 @@ public Vector3 GetPlayerWantedCentrePosition(int _player) public void SetPlayerWantedCentrePosition(int _player, ref Vector3 _position, bool _p2, bool _p3) { unsafe { - if (fn__setPlayerWantedCentrePosition == null) fn__setPlayerWantedCentrePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedCentrePosition"); + if (fn__setPlayerWantedCentrePosition == null) fn__setPlayerWantedCentrePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedCentrePosition"); var success = false; var ref_position = _position; - fn__setPlayerWantedCentrePosition(&success, _player, &ref_position, _p2, _p3); + fn__setPlayerWantedCentrePosition(&success, _player, &ref_position, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); _position = ref_position; if (!success) throw new Exception("Native execution failed"); } @@ -82301,9 +82301,9 @@ public int GetWantedLevelThreshold(int _wantedLevel) public void SetPlayerWantedLevel(int _player, int _wantedLevel, bool _disableNoMission) { unsafe { - if (fn__setPlayerWantedLevel == null) fn__setPlayerWantedLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevel"); + if (fn__setPlayerWantedLevel == null) fn__setPlayerWantedLevel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevel"); var success = false; - fn__setPlayerWantedLevel(&success, _player, _wantedLevel, _disableNoMission); + fn__setPlayerWantedLevel(&success, _player, _wantedLevel, (byte) (_disableNoMission ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82312,9 +82312,9 @@ public void SetPlayerWantedLevel(int _player, int _wantedLevel, bool _disableNoM public void SetPlayerWantedLevelNoDrop(int _player, int _wantedLevel, bool _p2) { unsafe { - if (fn__setPlayerWantedLevelNoDrop == null) fn__setPlayerWantedLevelNoDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevelNoDrop"); + if (fn__setPlayerWantedLevelNoDrop == null) fn__setPlayerWantedLevelNoDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevelNoDrop"); var success = false; - fn__setPlayerWantedLevelNoDrop(&success, _player, _wantedLevel, _p2); + fn__setPlayerWantedLevelNoDrop(&success, _player, _wantedLevel, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82323,9 +82323,9 @@ public void SetPlayerWantedLevelNoDrop(int _player, int _wantedLevel, bool _p2) public void SetPlayerWantedLevelNow(int _player, bool _p1) { unsafe { - if (fn__setPlayerWantedLevelNow == null) fn__setPlayerWantedLevelNow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevelNow"); + if (fn__setPlayerWantedLevelNow == null) fn__setPlayerWantedLevelNow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerWantedLevelNow"); var success = false; - fn__setPlayerWantedLevelNow(&success, _player, _p1); + fn__setPlayerWantedLevelNow(&success, _player, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82334,11 +82334,11 @@ public void SetPlayerWantedLevelNow(int _player, bool _p1) public bool ArePlayerFlashingStarsAboutToDrop(int _player) { unsafe { - if (fn__arePlayerFlashingStarsAboutToDrop == null) fn__arePlayerFlashingStarsAboutToDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlayerFlashingStarsAboutToDrop"); + if (fn__arePlayerFlashingStarsAboutToDrop == null) fn__arePlayerFlashingStarsAboutToDrop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlayerFlashingStarsAboutToDrop"); var success = false; var result = fn__arePlayerFlashingStarsAboutToDrop(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82346,11 +82346,11 @@ public bool ArePlayerFlashingStarsAboutToDrop(int _player) public bool ArePlayerStarsGreyedOut(int _player) { unsafe { - if (fn__arePlayerStarsGreyedOut == null) fn__arePlayerStarsGreyedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlayerStarsGreyedOut"); + if (fn__arePlayerStarsGreyedOut == null) fn__arePlayerStarsGreyedOut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlayerStarsGreyedOut"); var success = false; var result = fn__arePlayerStarsGreyedOut(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82369,9 +82369,9 @@ public int _0x7E07C78925D5FD96(int _p0) public void SetDispatchCopsForPlayer(int _player, bool _toggle) { unsafe { - if (fn__setDispatchCopsForPlayer == null) fn__setDispatchCopsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDispatchCopsForPlayer"); + if (fn__setDispatchCopsForPlayer == null) fn__setDispatchCopsForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDispatchCopsForPlayer"); var success = false; - fn__setDispatchCopsForPlayer(&success, _player, _toggle); + fn__setDispatchCopsForPlayer(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82380,11 +82380,11 @@ public void SetDispatchCopsForPlayer(int _player, bool _toggle) public bool IsPlayerWantedLevelGreater(int _player, int _wantedLevel) { unsafe { - if (fn__isPlayerWantedLevelGreater == null) fn__isPlayerWantedLevelGreater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerWantedLevelGreater"); + if (fn__isPlayerWantedLevelGreater == null) fn__isPlayerWantedLevelGreater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerWantedLevelGreater"); var success = false; var result = fn__isPlayerWantedLevelGreater(&success, _player, _wantedLevel); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82403,11 +82403,11 @@ public void ClearPlayerWantedLevel(int _player) public bool IsPlayerDead(int _player) { unsafe { - if (fn__isPlayerDead == null) fn__isPlayerDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerDead"); + if (fn__isPlayerDead == null) fn__isPlayerDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerDead"); var success = false; var result = fn__isPlayerDead(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82415,11 +82415,11 @@ public bool IsPlayerDead(int _player) public bool IsPlayerPressingHorn(int _player) { unsafe { - if (fn__isPlayerPressingHorn == null) fn__isPlayerPressingHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPressingHorn"); + if (fn__isPlayerPressingHorn == null) fn__isPlayerPressingHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPressingHorn"); var success = false; var result = fn__isPlayerPressingHorn(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82427,9 +82427,9 @@ public bool IsPlayerPressingHorn(int _player) public void SetPlayerControl(int _player, bool _bHasControl, int _flags) { unsafe { - if (fn__setPlayerControl == null) fn__setPlayerControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerControl"); + if (fn__setPlayerControl == null) fn__setPlayerControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerControl"); var success = false; - fn__setPlayerControl(&success, _player, _bHasControl, _flags); + fn__setPlayerControl(&success, _player, (byte) (_bHasControl ? 1 : 0), _flags); if (!success) throw new Exception("Native execution failed"); } } @@ -82459,9 +82459,9 @@ public void SetMaxWantedLevel(int _maxWantedLevel) public void SetPoliceRadarBlips(bool _toggle) { unsafe { - if (fn__setPoliceRadarBlips == null) fn__setPoliceRadarBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPoliceRadarBlips"); + if (fn__setPoliceRadarBlips == null) fn__setPoliceRadarBlips = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPoliceRadarBlips"); var success = false; - fn__setPoliceRadarBlips(&success, _toggle); + fn__setPoliceRadarBlips(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82470,9 +82470,9 @@ public void SetPoliceRadarBlips(bool _toggle) public void SetPoliceIgnorePlayer(int _player, bool _toggle) { unsafe { - if (fn__setPoliceIgnorePlayer == null) fn__setPoliceIgnorePlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPoliceIgnorePlayer"); + if (fn__setPoliceIgnorePlayer == null) fn__setPoliceIgnorePlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPoliceIgnorePlayer"); var success = false; - fn__setPoliceIgnorePlayer(&success, _player, _toggle); + fn__setPoliceIgnorePlayer(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82481,11 +82481,11 @@ public void SetPoliceIgnorePlayer(int _player, bool _toggle) public bool IsPlayerPlaying(int _player) { unsafe { - if (fn__isPlayerPlaying == null) fn__isPlayerPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPlaying"); + if (fn__isPlayerPlaying == null) fn__isPlayerPlaying = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerPlaying"); var success = false; var result = fn__isPlayerPlaying(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82493,9 +82493,9 @@ public bool IsPlayerPlaying(int _player) public void SetEveryoneIgnorePlayer(int _player, bool _toggle) { unsafe { - if (fn__setEveryoneIgnorePlayer == null) fn__setEveryoneIgnorePlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEveryoneIgnorePlayer"); + if (fn__setEveryoneIgnorePlayer == null) fn__setEveryoneIgnorePlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEveryoneIgnorePlayer"); var success = false; - fn__setEveryoneIgnorePlayer(&success, _player, _toggle); + fn__setEveryoneIgnorePlayer(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82504,9 +82504,9 @@ public void SetEveryoneIgnorePlayer(int _player, bool _toggle) public void SetAllRandomPedsFlee(int _player, bool _toggle) { unsafe { - if (fn__setAllRandomPedsFlee == null) fn__setAllRandomPedsFlee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllRandomPedsFlee"); + if (fn__setAllRandomPedsFlee == null) fn__setAllRandomPedsFlee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllRandomPedsFlee"); var success = false; - fn__setAllRandomPedsFlee(&success, _player, _toggle); + fn__setAllRandomPedsFlee(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82526,9 +82526,9 @@ public void SetAllRandomPedsFleeThisFrame(int _player) public void _0xDE45D1A1EF45EE61(int _player, bool _toggle) { unsafe { - if (fn__0xDE45D1A1EF45EE61 == null) fn__0xDE45D1A1EF45EE61 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDE45D1A1EF45EE61"); + if (fn__0xDE45D1A1EF45EE61 == null) fn__0xDE45D1A1EF45EE61 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDE45D1A1EF45EE61"); var success = false; - fn__0xDE45D1A1EF45EE61(&success, _player, _toggle); + fn__0xDE45D1A1EF45EE61(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82559,9 +82559,9 @@ public void _0xFAC75988A7D078D3(int _player) public void SetIgnoreLowPriorityShockingEvents(int _player, bool _toggle) { unsafe { - if (fn__setIgnoreLowPriorityShockingEvents == null) fn__setIgnoreLowPriorityShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreLowPriorityShockingEvents"); + if (fn__setIgnoreLowPriorityShockingEvents == null) fn__setIgnoreLowPriorityShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIgnoreLowPriorityShockingEvents"); var success = false; - fn__setIgnoreLowPriorityShockingEvents(&success, _player, _toggle); + fn__setIgnoreLowPriorityShockingEvents(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82751,11 +82751,11 @@ public void _0x0032A6DBA562C518() public bool CanPlayerStartMission(int _player) { unsafe { - if (fn__canPlayerStartMission == null) fn__canPlayerStartMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPlayerStartMission"); + if (fn__canPlayerStartMission == null) fn__canPlayerStartMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPlayerStartMission"); var success = false; var result = fn__canPlayerStartMission(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82763,11 +82763,11 @@ public bool CanPlayerStartMission(int _player) public bool IsPlayerReadyForCutscene(int _player) { unsafe { - if (fn__isPlayerReadyForCutscene == null) fn__isPlayerReadyForCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerReadyForCutscene"); + if (fn__isPlayerReadyForCutscene == null) fn__isPlayerReadyForCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerReadyForCutscene"); var success = false; var result = fn__isPlayerReadyForCutscene(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82777,11 +82777,11 @@ public bool IsPlayerReadyForCutscene(int _player) public bool IsPlayerTargettingEntity(int _player, int _entity) { unsafe { - if (fn__isPlayerTargettingEntity == null) fn__isPlayerTargettingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTargettingEntity"); + if (fn__isPlayerTargettingEntity == null) fn__isPlayerTargettingEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTargettingEntity"); var success = false; var result = fn__isPlayerTargettingEntity(&success, _player, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82789,13 +82789,13 @@ public bool IsPlayerTargettingEntity(int _player, int _entity) public bool GetPlayerTargetEntity(int _player, ref int _entity) { unsafe { - if (fn__getPlayerTargetEntity == null) fn__getPlayerTargetEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerTargetEntity"); + if (fn__getPlayerTargetEntity == null) fn__getPlayerTargetEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerTargetEntity"); var success = false; var ref_entity = _entity; var result = fn__getPlayerTargetEntity(&success, _player, &ref_entity); _entity = ref_entity; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82803,11 +82803,11 @@ public bool GetPlayerTargetEntity(int _player, ref int _entity) public bool IsPlayerFreeAiming(int _player) { unsafe { - if (fn__isPlayerFreeAiming == null) fn__isPlayerFreeAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeAiming"); + if (fn__isPlayerFreeAiming == null) fn__isPlayerFreeAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeAiming"); var success = false; var result = fn__isPlayerFreeAiming(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82817,11 +82817,11 @@ public bool IsPlayerFreeAiming(int _player) public bool IsPlayerFreeAimingAtEntity(int _player, int _entity) { unsafe { - if (fn__isPlayerFreeAimingAtEntity == null) fn__isPlayerFreeAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeAimingAtEntity"); + if (fn__isPlayerFreeAimingAtEntity == null) fn__isPlayerFreeAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeAimingAtEntity"); var success = false; var result = fn__isPlayerFreeAimingAtEntity(&success, _player, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82829,13 +82829,13 @@ public bool IsPlayerFreeAimingAtEntity(int _player, int _entity) public bool GetEntityPlayerIsFreeAimingAt(int _player, ref int _entity) { unsafe { - if (fn__getEntityPlayerIsFreeAimingAt == null) fn__getEntityPlayerIsFreeAimingAt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityPlayerIsFreeAimingAt"); + if (fn__getEntityPlayerIsFreeAimingAt == null) fn__getEntityPlayerIsFreeAimingAt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEntityPlayerIsFreeAimingAt"); var success = false; var ref_entity = _entity; var result = fn__getEntityPlayerIsFreeAimingAt(&success, _player, &ref_entity); _entity = ref_entity; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82854,9 +82854,9 @@ public void SetPlayerLockonRangeOverride(int _player, float _range) public void SetPlayerCanDoDriveBy(int _player, bool _toggle) { unsafe { - if (fn__setPlayerCanDoDriveBy == null) fn__setPlayerCanDoDriveBy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanDoDriveBy"); + if (fn__setPlayerCanDoDriveBy == null) fn__setPlayerCanDoDriveBy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanDoDriveBy"); var success = false; - fn__setPlayerCanDoDriveBy(&success, _player, _toggle); + fn__setPlayerCanDoDriveBy(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82865,9 +82865,9 @@ public void SetPlayerCanDoDriveBy(int _player, bool _toggle) public void SetPlayerCanBeHassledByGangs(int _player, bool _toggle) { unsafe { - if (fn__setPlayerCanBeHassledByGangs == null) fn__setPlayerCanBeHassledByGangs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanBeHassledByGangs"); + if (fn__setPlayerCanBeHassledByGangs == null) fn__setPlayerCanBeHassledByGangs = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanBeHassledByGangs"); var success = false; - fn__setPlayerCanBeHassledByGangs(&success, _player, _toggle); + fn__setPlayerCanBeHassledByGangs(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82876,9 +82876,9 @@ public void SetPlayerCanBeHassledByGangs(int _player, bool _toggle) public void SetPlayerCanUseCover(int _player, bool _toggle) { unsafe { - if (fn__setPlayerCanUseCover == null) fn__setPlayerCanUseCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanUseCover"); + if (fn__setPlayerCanUseCover == null) fn__setPlayerCanUseCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanUseCover"); var success = false; - fn__setPlayerCanUseCover(&success, _player, _toggle); + fn__setPlayerCanUseCover(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -82898,11 +82898,11 @@ public int GetMaxWantedLevel() public bool IsPlayerTargettingAnything(int _player) { unsafe { - if (fn__isPlayerTargettingAnything == null) fn__isPlayerTargettingAnything = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTargettingAnything"); + if (fn__isPlayerTargettingAnything == null) fn__isPlayerTargettingAnything = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTargettingAnything"); var success = false; var result = fn__isPlayerTargettingAnything(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -82910,9 +82910,9 @@ public bool IsPlayerTargettingAnything(int _player) public void SetPlayerSprint(int _player, bool _toggle) { unsafe { - if (fn__setPlayerSprint == null) fn__setPlayerSprint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerSprint"); + if (fn__setPlayerSprint == null) fn__setPlayerSprint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerSprint"); var success = false; - fn__setPlayerSprint(&success, _player, _toggle); + fn__setPlayerSprint(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83015,22 +83015,22 @@ public int GetPlayerMaxArmour(int _player) public bool IsPlayerControlOn(int _player) { unsafe { - if (fn__isPlayerControlOn == null) fn__isPlayerControlOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerControlOn"); + if (fn__isPlayerControlOn == null) fn__isPlayerControlOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerControlOn"); var success = false; var result = fn__isPlayerControlOn(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPlayerCamControlDisabled() { unsafe { - if (fn__isPlayerCamControlDisabled == null) fn__isPlayerCamControlDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerCamControlDisabled"); + if (fn__isPlayerCamControlDisabled == null) fn__isPlayerCamControlDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerCamControlDisabled"); var success = false; var result = fn__isPlayerCamControlDisabled(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83038,11 +83038,11 @@ public bool IsPlayerCamControlDisabled() public bool IsPlayerScriptControlOn(int _player) { unsafe { - if (fn__isPlayerScriptControlOn == null) fn__isPlayerScriptControlOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerScriptControlOn"); + if (fn__isPlayerScriptControlOn == null) fn__isPlayerScriptControlOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerScriptControlOn"); var success = false; var result = fn__isPlayerScriptControlOn(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83050,11 +83050,11 @@ public bool IsPlayerScriptControlOn(int _player) public bool IsPlayerClimbing(int _player) { unsafe { - if (fn__isPlayerClimbing == null) fn__isPlayerClimbing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerClimbing"); + if (fn__isPlayerClimbing == null) fn__isPlayerClimbing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerClimbing"); var success = false; var result = fn__isPlayerClimbing(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83062,11 +83062,11 @@ public bool IsPlayerClimbing(int _player) public bool IsPlayerBeingArrested(int _player, bool _atArresting) { unsafe { - if (fn__isPlayerBeingArrested == null) fn__isPlayerBeingArrested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBeingArrested"); + if (fn__isPlayerBeingArrested == null) fn__isPlayerBeingArrested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBeingArrested"); var success = false; - var result = fn__isPlayerBeingArrested(&success, _player, _atArresting); + var result = fn__isPlayerBeingArrested(&success, _player, (byte) (_atArresting ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83177,11 +83177,11 @@ public int GetTimeSincePlayerDroveAgainstTraffic(int _player) public bool IsPlayerFreeForAmbientTask(int _player) { unsafe { - if (fn__isPlayerFreeForAmbientTask == null) fn__isPlayerFreeForAmbientTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeForAmbientTask"); + if (fn__isPlayerFreeForAmbientTask == null) fn__isPlayerFreeForAmbientTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerFreeForAmbientTask"); var success = false; var result = fn__isPlayerFreeForAmbientTask(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83221,11 +83221,11 @@ public int NetworkPlayerIdToInt() public bool HasForceCleanupOccurred(int _cleanupFlags) { unsafe { - if (fn__hasForceCleanupOccurred == null) fn__hasForceCleanupOccurred = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasForceCleanupOccurred"); + if (fn__hasForceCleanupOccurred == null) fn__hasForceCleanupOccurred = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasForceCleanupOccurred"); var success = false; var result = fn__hasForceCleanupOccurred(&success, _cleanupFlags); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83299,22 +83299,22 @@ public void SetPlayerMayNotEnterAnyVehicle(int _player) public bool GiveAchievementToPlayer(int _achievementId) { unsafe { - if (fn__giveAchievementToPlayer == null) fn__giveAchievementToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveAchievementToPlayer"); + if (fn__giveAchievementToPlayer == null) fn__giveAchievementToPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveAchievementToPlayer"); var success = false; var result = fn__giveAchievementToPlayer(&success, _achievementId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool SetAchievementProgress(int _achievementId, int _progress) { unsafe { - if (fn__setAchievementProgress == null) fn__setAchievementProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAchievementProgress"); + if (fn__setAchievementProgress == null) fn__setAchievementProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAchievementProgress"); var success = false; var result = fn__setAchievementProgress(&success, _achievementId, _progress); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83332,42 +83332,42 @@ public int GetAchievementProgress(int _achievementId) public bool HasAchievementBeenPassed(int _achievementId) { unsafe { - if (fn__hasAchievementBeenPassed == null) fn__hasAchievementBeenPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAchievementBeenPassed"); + if (fn__hasAchievementBeenPassed == null) fn__hasAchievementBeenPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAchievementBeenPassed"); var success = false; var result = fn__hasAchievementBeenPassed(&success, _achievementId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPlayerOnline() { unsafe { - if (fn__isPlayerOnline == null) fn__isPlayerOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerOnline"); + if (fn__isPlayerOnline == null) fn__isPlayerOnline = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerOnline"); var success = false; var result = fn__isPlayerOnline(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsPlayerLoggingInNp() { unsafe { - if (fn__isPlayerLoggingInNp == null) fn__isPlayerLoggingInNp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerLoggingInNp"); + if (fn__isPlayerLoggingInNp == null) fn__isPlayerLoggingInNp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerLoggingInNp"); var success = false; var result = fn__isPlayerLoggingInNp(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void DisplaySystemSigninUi(bool _unk) { unsafe { - if (fn__displaySystemSigninUi == null) fn__displaySystemSigninUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displaySystemSigninUi"); + if (fn__displaySystemSigninUi == null) fn__displaySystemSigninUi = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_displaySystemSigninUi"); var success = false; - fn__displaySystemSigninUi(&success, _unk); + fn__displaySystemSigninUi(&success, (byte) (_unk ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83375,11 +83375,11 @@ public void DisplaySystemSigninUi(bool _unk) public bool IsSystemUiBeingDisplayed() { unsafe { - if (fn__isSystemUiBeingDisplayed == null) fn__isSystemUiBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSystemUiBeingDisplayed"); + if (fn__isSystemUiBeingDisplayed == null) fn__isSystemUiBeingDisplayed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSystemUiBeingDisplayed"); var success = false; var result = fn__isSystemUiBeingDisplayed(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83387,9 +83387,9 @@ public bool IsSystemUiBeingDisplayed() public void SetPlayerInvincible(int _player, bool _toggle) { unsafe { - if (fn__setPlayerInvincible == null) fn__setPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvincible"); + if (fn__setPlayerInvincible == null) fn__setPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvincible"); var success = false; - fn__setPlayerInvincible(&success, _player, _toggle); + fn__setPlayerInvincible(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83398,11 +83398,11 @@ public void SetPlayerInvincible(int _player, bool _toggle) public bool GetPlayerInvincible(int _player) { unsafe { - if (fn__getPlayerInvincible == null) fn__getPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerInvincible"); + if (fn__getPlayerInvincible == null) fn__getPlayerInvincible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerInvincible"); var success = false; var result = fn__getPlayerInvincible(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83410,11 +83410,11 @@ public bool GetPlayerInvincible(int _player) public bool _0xDCC07526B8EC45AF(int _player) { unsafe { - if (fn__0xDCC07526B8EC45AF == null) fn__0xDCC07526B8EC45AF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDCC07526B8EC45AF"); + if (fn__0xDCC07526B8EC45AF == null) fn__0xDCC07526B8EC45AF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDCC07526B8EC45AF"); var success = false; var result = fn__0xDCC07526B8EC45AF(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83422,9 +83422,9 @@ public bool _0xDCC07526B8EC45AF(int _player) public void SetPlayerInvincibleKeepRagdollEnabled(int _player, bool _toggle) { unsafe { - if (fn__setPlayerInvincibleKeepRagdollEnabled == null) fn__setPlayerInvincibleKeepRagdollEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvincibleKeepRagdollEnabled"); + if (fn__setPlayerInvincibleKeepRagdollEnabled == null) fn__setPlayerInvincibleKeepRagdollEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerInvincibleKeepRagdollEnabled"); var success = false; - fn__setPlayerInvincibleKeepRagdollEnabled(&success, _player, _toggle); + fn__setPlayerInvincibleKeepRagdollEnabled(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83433,9 +83433,9 @@ public void SetPlayerInvincibleKeepRagdollEnabled(int _player, bool _toggle) public void _0xCAC57395B151135F(int _player, bool _p1) { unsafe { - if (fn__0xCAC57395B151135F == null) fn__0xCAC57395B151135F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCAC57395B151135F"); + if (fn__0xCAC57395B151135F == null) fn__0xCAC57395B151135F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCAC57395B151135F"); var success = false; - fn__0xCAC57395B151135F(&success, _player, _p1); + fn__0xCAC57395B151135F(&success, _player, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83444,9 +83444,9 @@ public void _0xCAC57395B151135F(int _player, bool _p1) public void RemovePlayerHelmet(int _player, bool _p2) { unsafe { - if (fn__removePlayerHelmet == null) fn__removePlayerHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePlayerHelmet"); + if (fn__removePlayerHelmet == null) fn__removePlayerHelmet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removePlayerHelmet"); var success = false; - fn__removePlayerHelmet(&success, _player, _p2); + fn__removePlayerHelmet(&success, _player, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83455,9 +83455,9 @@ public void RemovePlayerHelmet(int _player, bool _p2) public void GivePlayerRagdollControl(int _player, bool _toggle) { unsafe { - if (fn__givePlayerRagdollControl == null) fn__givePlayerRagdollControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_givePlayerRagdollControl"); + if (fn__givePlayerRagdollControl == null) fn__givePlayerRagdollControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_givePlayerRagdollControl"); var success = false; - fn__givePlayerRagdollControl(&success, _player, _toggle); + fn__givePlayerRagdollControl(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83466,9 +83466,9 @@ public void GivePlayerRagdollControl(int _player, bool _toggle) public void SetPlayerLockon(int _player, bool _toggle) { unsafe { - if (fn__setPlayerLockon == null) fn__setPlayerLockon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerLockon"); + if (fn__setPlayerLockon == null) fn__setPlayerLockon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerLockon"); var success = false; - fn__setPlayerLockon(&success, _player, _toggle); + fn__setPlayerLockon(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83496,22 +83496,22 @@ public void SetPlayerTargetLevel(int _targetLevel) public bool _0xB9CF1F793A9F1BF1() { unsafe { - if (fn__0xB9CF1F793A9F1BF1 == null) fn__0xB9CF1F793A9F1BF1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB9CF1F793A9F1BF1"); + if (fn__0xB9CF1F793A9F1BF1 == null) fn__0xB9CF1F793A9F1BF1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB9CF1F793A9F1BF1"); var success = false; var result = fn__0xB9CF1F793A9F1BF1(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xCB645E85E97EA48B() { unsafe { - if (fn__0xCB645E85E97EA48B == null) fn__0xCB645E85E97EA48B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCB645E85E97EA48B"); + if (fn__0xCB645E85E97EA48B == null) fn__0xCB645E85E97EA48B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xCB645E85E97EA48B"); var success = false; var result = fn__0xCB645E85E97EA48B(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83530,11 +83530,11 @@ public void ClearPlayerHasDamagedAtLeastOnePed(int _player) public bool HasPlayerDamagedAtLeastOnePed(int _player) { unsafe { - if (fn__hasPlayerDamagedAtLeastOnePed == null) fn__hasPlayerDamagedAtLeastOnePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerDamagedAtLeastOnePed"); + if (fn__hasPlayerDamagedAtLeastOnePed == null) fn__hasPlayerDamagedAtLeastOnePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerDamagedAtLeastOnePed"); var success = false; var result = fn__hasPlayerDamagedAtLeastOnePed(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83553,11 +83553,11 @@ public void ClearPlayerHasDamagedAtLeastOneNonAnimalPed(int _player) public bool HasPlayerDamagedAtLeastOneNonAnimalPed(int _player) { unsafe { - if (fn__hasPlayerDamagedAtLeastOneNonAnimalPed == null) fn__hasPlayerDamagedAtLeastOneNonAnimalPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerDamagedAtLeastOneNonAnimalPed"); + if (fn__hasPlayerDamagedAtLeastOneNonAnimalPed == null) fn__hasPlayerDamagedAtLeastOneNonAnimalPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerDamagedAtLeastOneNonAnimalPed"); var success = false; var result = fn__hasPlayerDamagedAtLeastOneNonAnimalPed(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83640,9 +83640,9 @@ public void AssistedMovementFlushRoute() public void SetPlayerForcedAim(int _player, bool _toggle) { unsafe { - if (fn__setPlayerForcedAim == null) fn__setPlayerForcedAim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForcedAim"); + if (fn__setPlayerForcedAim == null) fn__setPlayerForcedAim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForcedAim"); var success = false; - fn__setPlayerForcedAim(&success, _player, _toggle); + fn__setPlayerForcedAim(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83651,9 +83651,9 @@ public void SetPlayerForcedAim(int _player, bool _toggle) public void SetPlayerForcedZoom(int _player, bool _toggle) { unsafe { - if (fn__setPlayerForcedZoom == null) fn__setPlayerForcedZoom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForcedZoom"); + if (fn__setPlayerForcedZoom == null) fn__setPlayerForcedZoom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForcedZoom"); var success = false; - fn__setPlayerForcedZoom(&success, _player, _toggle); + fn__setPlayerForcedZoom(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83662,9 +83662,9 @@ public void SetPlayerForcedZoom(int _player, bool _toggle) public void SetPlayerForceSkipAimIntro(int _player, bool _toggle) { unsafe { - if (fn__setPlayerForceSkipAimIntro == null) fn__setPlayerForceSkipAimIntro = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForceSkipAimIntro"); + if (fn__setPlayerForceSkipAimIntro == null) fn__setPlayerForceSkipAimIntro = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerForceSkipAimIntro"); var success = false; - fn__setPlayerForceSkipAimIntro(&success, _player, _toggle); + fn__setPlayerForceSkipAimIntro(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83673,9 +83673,9 @@ public void SetPlayerForceSkipAimIntro(int _player, bool _toggle) public void DisablePlayerFiring(int _player, bool _toggle) { unsafe { - if (fn__disablePlayerFiring == null) fn__disablePlayerFiring = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePlayerFiring"); + if (fn__disablePlayerFiring == null) fn__disablePlayerFiring = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePlayerFiring"); var success = false; - fn__disablePlayerFiring(&success, _player, _toggle); + fn__disablePlayerFiring(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83694,9 +83694,9 @@ public void _0xB885852C39CC265D() public void SetDisableAmbientMeleeMove(int _player, bool _toggle) { unsafe { - if (fn__setDisableAmbientMeleeMove == null) fn__setDisableAmbientMeleeMove = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableAmbientMeleeMove"); + if (fn__setDisableAmbientMeleeMove == null) fn__setDisableAmbientMeleeMove = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableAmbientMeleeMove"); var success = false; - fn__setDisableAmbientMeleeMove(&success, _player, _toggle); + fn__setDisableAmbientMeleeMove(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -83793,9 +83793,9 @@ public void SpecialAbilityChargeOnMissionFailed(int _player, int _p1) public void SpecialAbilityChargeSmall(int _player, bool _p1, bool _p2, int _p3) { unsafe { - if (fn__specialAbilityChargeSmall == null) fn__specialAbilityChargeSmall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeSmall"); + if (fn__specialAbilityChargeSmall == null) fn__specialAbilityChargeSmall = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeSmall"); var success = false; - fn__specialAbilityChargeSmall(&success, _player, _p1, _p2, _p3); + fn__specialAbilityChargeSmall(&success, _player, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -83804,9 +83804,9 @@ public void SpecialAbilityChargeSmall(int _player, bool _p1, bool _p2, int _p3) public void SpecialAbilityChargeMedium(int _player, bool _p1, bool _p2, int _p3) { unsafe { - if (fn__specialAbilityChargeMedium == null) fn__specialAbilityChargeMedium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeMedium"); + if (fn__specialAbilityChargeMedium == null) fn__specialAbilityChargeMedium = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeMedium"); var success = false; - fn__specialAbilityChargeMedium(&success, _player, _p1, _p2, _p3); + fn__specialAbilityChargeMedium(&success, _player, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -83815,9 +83815,9 @@ public void SpecialAbilityChargeMedium(int _player, bool _p1, bool _p2, int _p3) public void SpecialAbilityChargeLarge(int _player, bool _p1, bool _p2, int _p3) { unsafe { - if (fn__specialAbilityChargeLarge == null) fn__specialAbilityChargeLarge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeLarge"); + if (fn__specialAbilityChargeLarge == null) fn__specialAbilityChargeLarge = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeLarge"); var success = false; - fn__specialAbilityChargeLarge(&success, _player, _p1, _p2, _p3); + fn__specialAbilityChargeLarge(&success, _player, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -83839,9 +83839,9 @@ public void SpecialAbilityChargeContinuous(int _player, int _p1, int _p2) public void SpecialAbilityChargeAbsolute(int _player, int _p1, bool _p2, int _p3) { unsafe { - if (fn__specialAbilityChargeAbsolute == null) fn__specialAbilityChargeAbsolute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeAbsolute"); + if (fn__specialAbilityChargeAbsolute == null) fn__specialAbilityChargeAbsolute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeAbsolute"); var success = false; - fn__specialAbilityChargeAbsolute(&success, _player, _p1, _p2, _p3); + fn__specialAbilityChargeAbsolute(&success, _player, _p1, (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -83850,9 +83850,9 @@ public void SpecialAbilityChargeAbsolute(int _player, int _p1, bool _p2, int _p3 public void SpecialAbilityChargeNormalized(int _player, float _normalizedValue, bool _p2, int _p3) { unsafe { - if (fn__specialAbilityChargeNormalized == null) fn__specialAbilityChargeNormalized = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeNormalized"); + if (fn__specialAbilityChargeNormalized == null) fn__specialAbilityChargeNormalized = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityChargeNormalized"); var success = false; - fn__specialAbilityChargeNormalized(&success, _player, _normalizedValue, _p2, _p3); + fn__specialAbilityChargeNormalized(&success, _player, _normalizedValue, (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -83861,9 +83861,9 @@ public void SpecialAbilityChargeNormalized(int _player, float _normalizedValue, public void SpecialAbilityFillMeter(int _player, bool _p1, int _p2) { unsafe { - if (fn__specialAbilityFillMeter == null) fn__specialAbilityFillMeter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityFillMeter"); + if (fn__specialAbilityFillMeter == null) fn__specialAbilityFillMeter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityFillMeter"); var success = false; - fn__specialAbilityFillMeter(&success, _player, _p1, _p2); + fn__specialAbilityFillMeter(&success, _player, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -83872,9 +83872,9 @@ public void SpecialAbilityFillMeter(int _player, bool _p1, int _p2) public void SpecialAbilityDepleteMeter(int _player, bool _p1, int _p2) { unsafe { - if (fn__specialAbilityDepleteMeter == null) fn__specialAbilityDepleteMeter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityDepleteMeter"); + if (fn__specialAbilityDepleteMeter == null) fn__specialAbilityDepleteMeter = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_specialAbilityDepleteMeter"); var success = false; - fn__specialAbilityDepleteMeter(&success, _player, _p1, _p2); + fn__specialAbilityDepleteMeter(&success, _player, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -83902,11 +83902,11 @@ public void SpecialAbilityUnlock(uint _playerModel, int _p1) public bool IsSpecialAbilityUnlocked(uint _playerModel) { unsafe { - if (fn__isSpecialAbilityUnlocked == null) fn__isSpecialAbilityUnlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityUnlocked"); + if (fn__isSpecialAbilityUnlocked == null) fn__isSpecialAbilityUnlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityUnlocked"); var success = false; var result = fn__isSpecialAbilityUnlocked(&success, _playerModel); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83914,11 +83914,11 @@ public bool IsSpecialAbilityUnlocked(uint _playerModel) public bool IsSpecialAbilityActive(int _player, int _p1) { unsafe { - if (fn__isSpecialAbilityActive == null) fn__isSpecialAbilityActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityActive"); + if (fn__isSpecialAbilityActive == null) fn__isSpecialAbilityActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityActive"); var success = false; var result = fn__isSpecialAbilityActive(&success, _player, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83926,11 +83926,11 @@ public bool IsSpecialAbilityActive(int _player, int _p1) public bool IsSpecialAbilityMeterFull(int _player, int _p1) { unsafe { - if (fn__isSpecialAbilityMeterFull == null) fn__isSpecialAbilityMeterFull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityMeterFull"); + if (fn__isSpecialAbilityMeterFull == null) fn__isSpecialAbilityMeterFull = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityMeterFull"); var success = false; var result = fn__isSpecialAbilityMeterFull(&success, _player, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83938,9 +83938,9 @@ public bool IsSpecialAbilityMeterFull(int _player, int _p1) public void EnableSpecialAbility(int _player, bool _toggle, int _p2) { unsafe { - if (fn__enableSpecialAbility == null) fn__enableSpecialAbility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableSpecialAbility"); + if (fn__enableSpecialAbility == null) fn__enableSpecialAbility = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableSpecialAbility"); var success = false; - fn__enableSpecialAbility(&success, _player, _toggle, _p2); + fn__enableSpecialAbility(&success, _player, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -83949,11 +83949,11 @@ public void EnableSpecialAbility(int _player, bool _toggle, int _p2) public bool IsSpecialAbilityEnabled(int _player, int _p1) { unsafe { - if (fn__isSpecialAbilityEnabled == null) fn__isSpecialAbilityEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityEnabled"); + if (fn__isSpecialAbilityEnabled == null) fn__isSpecialAbilityEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSpecialAbilityEnabled"); var success = false; var result = fn__isSpecialAbilityEnabled(&success, _player, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83982,11 +83982,11 @@ public void _0xFFEE8FA29AB9A18E(int _player, int _p1) public bool _0x5FC472C501CCADB3(int _player) { unsafe { - if (fn__0x5FC472C501CCADB3 == null) fn__0x5FC472C501CCADB3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5FC472C501CCADB3"); + if (fn__0x5FC472C501CCADB3 == null) fn__0x5FC472C501CCADB3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5FC472C501CCADB3"); var success = false; var result = fn__0x5FC472C501CCADB3(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -83994,11 +83994,11 @@ public bool _0x5FC472C501CCADB3(int _player) public bool _0xF10B44FD479D69F3(int _player, int _p1) { unsafe { - if (fn__0xF10B44FD479D69F3 == null) fn__0xF10B44FD479D69F3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF10B44FD479D69F3"); + if (fn__0xF10B44FD479D69F3 == null) fn__0xF10B44FD479D69F3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF10B44FD479D69F3"); var success = false; var result = fn__0xF10B44FD479D69F3(&success, _player, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84006,11 +84006,11 @@ public bool _0xF10B44FD479D69F3(int _player, int _p1) public bool _0xDD2620B7B9D16FF1(int _player, float _p1) { unsafe { - if (fn__0xDD2620B7B9D16FF1 == null) fn__0xDD2620B7B9D16FF1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDD2620B7B9D16FF1"); + if (fn__0xDD2620B7B9D16FF1 == null) fn__0xDD2620B7B9D16FF1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDD2620B7B9D16FF1"); var success = false; var result = fn__0xDD2620B7B9D16FF1(&success, _player, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84018,9 +84018,9 @@ public bool _0xDD2620B7B9D16FF1(int _player, float _p1) public void StartPlayerTeleport(int _player, float _x, float _y, float _z, float _heading, bool _p5, bool _findCollisionLand, bool _p7) { unsafe { - if (fn__startPlayerTeleport == null) fn__startPlayerTeleport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startPlayerTeleport"); + if (fn__startPlayerTeleport == null) fn__startPlayerTeleport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startPlayerTeleport"); var success = false; - fn__startPlayerTeleport(&success, _player, _x, _y, _z, _heading, _p5, _findCollisionLand, _p7); + fn__startPlayerTeleport(&success, _player, _x, _y, _z, _heading, (byte) (_p5 ? 1 : 0), (byte) (_findCollisionLand ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84029,11 +84029,11 @@ public void StartPlayerTeleport(int _player, float _x, float _y, float _z, float public bool UpdatePlayerTeleport(int _player) { unsafe { - if (fn__updatePlayerTeleport == null) fn__updatePlayerTeleport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updatePlayerTeleport"); + if (fn__updatePlayerTeleport == null) fn__updatePlayerTeleport = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updatePlayerTeleport"); var success = false; var result = fn__updatePlayerTeleport(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84050,11 +84050,11 @@ public void StopPlayerTeleport() public bool IsPlayerTeleportActive() { unsafe { - if (fn__isPlayerTeleportActive == null) fn__isPlayerTeleportActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTeleportActive"); + if (fn__isPlayerTeleportActive == null) fn__isPlayerTeleportActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerTeleportActive"); var success = false; var result = fn__isPlayerTeleportActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84152,9 +84152,9 @@ public void SetPlayerWeaponDefenseModifier2(int _player, float _modifier) public void SetPlayerMeleeWeaponDamageModifier(int _player, float _modifier, bool _p2) { unsafe { - if (fn__setPlayerMeleeWeaponDamageModifier == null) fn__setPlayerMeleeWeaponDamageModifier = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerMeleeWeaponDamageModifier"); + if (fn__setPlayerMeleeWeaponDamageModifier == null) fn__setPlayerMeleeWeaponDamageModifier = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerMeleeWeaponDamageModifier"); var success = false; - fn__setPlayerMeleeWeaponDamageModifier(&success, _player, _modifier, _p2); + fn__setPlayerMeleeWeaponDamageModifier(&success, _player, _modifier, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84312,11 +84312,11 @@ public void SetPlayerHasReserveParachute(int _player) public bool GetPlayerHasReserveParachute(int _player) { unsafe { - if (fn__getPlayerHasReserveParachute == null) fn__getPlayerHasReserveParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerHasReserveParachute"); + if (fn__getPlayerHasReserveParachute == null) fn__getPlayerHasReserveParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPlayerHasReserveParachute"); var success = false; var result = fn__getPlayerHasReserveParachute(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84324,9 +84324,9 @@ public bool GetPlayerHasReserveParachute(int _player) public void SetPlayerCanLeaveParachuteSmokeTrail(int _player, bool _enabled) { unsafe { - if (fn__setPlayerCanLeaveParachuteSmokeTrail == null) fn__setPlayerCanLeaveParachuteSmokeTrail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanLeaveParachuteSmokeTrail"); + if (fn__setPlayerCanLeaveParachuteSmokeTrail == null) fn__setPlayerCanLeaveParachuteSmokeTrail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerCanLeaveParachuteSmokeTrail"); var success = false; - fn__setPlayerCanLeaveParachuteSmokeTrail(&success, _player, _enabled); + fn__setPlayerCanLeaveParachuteSmokeTrail(&success, _player, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84398,11 +84398,11 @@ public void SetPlayerSneakingNoiseMultiplier(int _player, float _multiplier) public bool CanPedHearPlayer(int _player, int _ped) { unsafe { - if (fn__canPedHearPlayer == null) fn__canPedHearPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedHearPlayer"); + if (fn__canPedHearPlayer == null) fn__canPedHearPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canPedHearPlayer"); var success = false; var result = fn__canPedHearPlayer(&success, _player, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84410,9 +84410,9 @@ public bool CanPedHearPlayer(int _player, int _ped) public void SimulatePlayerInputGait(int _player, float _amount, int _gaitType, float _speed, bool _p4, bool _p5) { unsafe { - if (fn__simulatePlayerInputGait == null) fn__simulatePlayerInputGait = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_simulatePlayerInputGait"); + if (fn__simulatePlayerInputGait == null) fn__simulatePlayerInputGait = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_simulatePlayerInputGait"); var success = false; - fn__simulatePlayerInputGait(&success, _player, _amount, _gaitType, _speed, _p4, _p5); + fn__simulatePlayerInputGait(&success, _player, _amount, _gaitType, _speed, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84432,9 +84432,9 @@ public void ResetPlayerInputGait(int _player) public void SetAutoGiveParachuteWhenEnterPlane(int _player, bool _toggle) { unsafe { - if (fn__setAutoGiveParachuteWhenEnterPlane == null) fn__setAutoGiveParachuteWhenEnterPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAutoGiveParachuteWhenEnterPlane"); + if (fn__setAutoGiveParachuteWhenEnterPlane == null) fn__setAutoGiveParachuteWhenEnterPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAutoGiveParachuteWhenEnterPlane"); var success = false; - fn__setAutoGiveParachuteWhenEnterPlane(&success, _player, _toggle); + fn__setAutoGiveParachuteWhenEnterPlane(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84443,9 +84443,9 @@ public void SetAutoGiveParachuteWhenEnterPlane(int _player, bool _toggle) public void SetAutoGiveScubaGearWhenExitVehicle(int _player, bool _toggle) { unsafe { - if (fn__setAutoGiveScubaGearWhenExitVehicle == null) fn__setAutoGiveScubaGearWhenExitVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAutoGiveScubaGearWhenExitVehicle"); + if (fn__setAutoGiveScubaGearWhenExitVehicle == null) fn__setAutoGiveScubaGearWhenExitVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAutoGiveScubaGearWhenExitVehicle"); var success = false; - fn__setAutoGiveScubaGearWhenExitVehicle(&success, _player, _toggle); + fn__setAutoGiveScubaGearWhenExitVehicle(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84465,11 +84465,11 @@ public void SetPlayerStealthPerceptionModifier(int _player, float _value) public bool _0x690A61A6D13583F6(int _player) { unsafe { - if (fn__0x690A61A6D13583F6 == null) fn__0x690A61A6D13583F6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x690A61A6D13583F6"); + if (fn__0x690A61A6D13583F6 == null) fn__0x690A61A6D13583F6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x690A61A6D13583F6"); var success = false; var result = fn__0x690A61A6D13583F6(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84488,9 +84488,9 @@ public void _0x9EDD76E87D5D51BA(int _player) public void SetPlayerSimulateAiming(int _player, bool _toggle) { unsafe { - if (fn__setPlayerSimulateAiming == null) fn__setPlayerSimulateAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerSimulateAiming"); + if (fn__setPlayerSimulateAiming == null) fn__setPlayerSimulateAiming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerSimulateAiming"); var success = false; - fn__setPlayerSimulateAiming(&success, _player, _toggle); + fn__setPlayerSimulateAiming(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84550,11 +84550,11 @@ public void PlayerDetachVirtualBound() public bool HasPlayerBeenSpottedInStolenVehicle(int _player) { unsafe { - if (fn__hasPlayerBeenSpottedInStolenVehicle == null) fn__hasPlayerBeenSpottedInStolenVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerBeenSpottedInStolenVehicle"); + if (fn__hasPlayerBeenSpottedInStolenVehicle == null) fn__hasPlayerBeenSpottedInStolenVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerBeenSpottedInStolenVehicle"); var success = false; var result = fn__hasPlayerBeenSpottedInStolenVehicle(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84562,11 +84562,11 @@ public bool HasPlayerBeenSpottedInStolenVehicle(int _player) public bool IsPlayerBattleAware(int _player) { unsafe { - if (fn__isPlayerBattleAware == null) fn__isPlayerBattleAware = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBattleAware"); + if (fn__isPlayerBattleAware == null) fn__isPlayerBattleAware = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBattleAware"); var success = false; var result = fn__isPlayerBattleAware(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84574,11 +84574,11 @@ public bool IsPlayerBattleAware(int _player) public bool _0xBC0753C9CA14B506(int _player, int _p1, bool _p2) { unsafe { - if (fn__0xBC0753C9CA14B506 == null) fn__0xBC0753C9CA14B506 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBC0753C9CA14B506"); + if (fn__0xBC0753C9CA14B506 == null) fn__0xBC0753C9CA14B506 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBC0753C9CA14B506"); var success = false; - var result = fn__0xBC0753C9CA14B506(&success, _player, _p1, _p2); + var result = fn__0xBC0753C9CA14B506(&success, _player, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84606,11 +84606,11 @@ public void ResetWorldBoundaryForPlayer() public bool IsPlayerRidingTrain(int _player) { unsafe { - if (fn__isPlayerRidingTrain == null) fn__isPlayerRidingTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerRidingTrain"); + if (fn__isPlayerRidingTrain == null) fn__isPlayerRidingTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerRidingTrain"); var success = false; var result = fn__isPlayerRidingTrain(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84618,11 +84618,11 @@ public bool IsPlayerRidingTrain(int _player) public bool HasPlayerLeftTheWorld(int _player) { unsafe { - if (fn__hasPlayerLeftTheWorld == null) fn__hasPlayerLeftTheWorld = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerLeftTheWorld"); + if (fn__hasPlayerLeftTheWorld == null) fn__hasPlayerLeftTheWorld = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPlayerLeftTheWorld"); var success = false; var result = fn__hasPlayerLeftTheWorld(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -84630,9 +84630,9 @@ public bool HasPlayerLeftTheWorld(int _player) public void SetPlayerLeavePedBehind(int _player, bool _toggle) { unsafe { - if (fn__setPlayerLeavePedBehind == null) fn__setPlayerLeavePedBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerLeavePedBehind"); + if (fn__setPlayerLeavePedBehind == null) fn__setPlayerLeavePedBehind = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerLeavePedBehind"); var success = false; - fn__setPlayerLeavePedBehind(&success, _player, _toggle); + fn__setPlayerLeavePedBehind(&success, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84641,9 +84641,9 @@ public void SetPlayerLeavePedBehind(int _player, bool _toggle) public void SetPlayerParachuteVariationOverride(int _player, int _p1, int _p2, int _p3, bool _p4) { unsafe { - if (fn__setPlayerParachuteVariationOverride == null) fn__setPlayerParachuteVariationOverride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerParachuteVariationOverride"); + if (fn__setPlayerParachuteVariationOverride == null) fn__setPlayerParachuteVariationOverride = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerParachuteVariationOverride"); var success = false; - fn__setPlayerParachuteVariationOverride(&success, _player, _p1, _p2, _p3, _p4); + fn__setPlayerParachuteVariationOverride(&success, _player, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84763,9 +84763,9 @@ public void DisablePlayerVehicleRewards(int _player) public void _0x2F7CEB6520288061(bool _p0) { unsafe { - if (fn__0x2F7CEB6520288061 == null) fn__0x2F7CEB6520288061 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F7CEB6520288061"); + if (fn__0x2F7CEB6520288061 == null) fn__0x2F7CEB6520288061 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2F7CEB6520288061"); var success = false; - fn__0x2F7CEB6520288061(&success, _p0); + fn__0x2F7CEB6520288061(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84774,9 +84774,9 @@ public void _0x2F7CEB6520288061(bool _p0) public void SetPlayerBluetoothState(int _player, bool _state) { unsafe { - if (fn__setPlayerBluetoothState == null) fn__setPlayerBluetoothState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerBluetoothState"); + if (fn__setPlayerBluetoothState == null) fn__setPlayerBluetoothState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerBluetoothState"); var success = false; - fn__setPlayerBluetoothState(&success, _player, _state); + fn__setPlayerBluetoothState(&success, _player, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -84785,11 +84785,11 @@ public void SetPlayerBluetoothState(int _player, bool _state) public bool IsPlayerBluetoothEnable(int _player) { unsafe { - if (fn__isPlayerBluetoothEnable == null) fn__isPlayerBluetoothEnable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBluetoothEnable"); + if (fn__isPlayerBluetoothEnable == null) fn__isPlayerBluetoothEnable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerBluetoothEnable"); var success = false; var result = fn__isPlayerBluetoothEnable(&success, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85048,22 +85048,22 @@ public void StopRecordingAndDiscardClip() public bool SaveRecordingClip() { unsafe { - if (fn__saveRecordingClip == null) fn__saveRecordingClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_saveRecordingClip"); + if (fn__saveRecordingClip == null) fn__saveRecordingClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_saveRecordingClip"); var success = false; var result = fn__saveRecordingClip(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsRecording() { unsafe { - if (fn__isRecording == null) fn__isRecording = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRecording"); + if (fn__isRecording == null) fn__isRecording = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRecording"); var success = false; var result = fn__isRecording(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85092,21 +85092,21 @@ public int _0x4282E08174868BE3() public bool _0x33D47E85B476ABCD(bool _p0) { unsafe { - if (fn__0x33D47E85B476ABCD == null) fn__0x33D47E85B476ABCD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x33D47E85B476ABCD"); + if (fn__0x33D47E85B476ABCD == null) fn__0x33D47E85B476ABCD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x33D47E85B476ABCD"); var success = false; - var result = fn__0x33D47E85B476ABCD(&success, _p0); + var result = fn__0x33D47E85B476ABCD(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x7E2BD3EF6C205F09(string _p0, bool _p1) { unsafe { - if (fn__0x7E2BD3EF6C205F09 == null) fn__0x7E2BD3EF6C205F09 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7E2BD3EF6C205F09"); + if (fn__0x7E2BD3EF6C205F09 == null) fn__0x7E2BD3EF6C205F09 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7E2BD3EF6C205F09"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); - fn__0x7E2BD3EF6C205F09(&success, ptr_p0, _p1); + fn__0x7E2BD3EF6C205F09(&success, ptr_p0, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); } @@ -85115,11 +85115,11 @@ public void _0x7E2BD3EF6C205F09(string _p0, bool _p1) public bool IsInteriorRenderingDisabled() { unsafe { - if (fn__isInteriorRenderingDisabled == null) fn__isInteriorRenderingDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorRenderingDisabled"); + if (fn__isInteriorRenderingDisabled == null) fn__isInteriorRenderingDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isInteriorRenderingDisabled"); var success = false; var result = fn__isInteriorRenderingDisabled(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85136,9 +85136,9 @@ public void _0x5AD3932DAEB1E5D3() public void _0xE058175F8EAFE79A(bool _p0) { unsafe { - if (fn__0xE058175F8EAFE79A == null) fn__0xE058175F8EAFE79A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE058175F8EAFE79A"); + if (fn__0xE058175F8EAFE79A == null) fn__0xE058175F8EAFE79A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE058175F8EAFE79A"); var success = false; - fn__0xE058175F8EAFE79A(&success, _p0); + fn__0xE058175F8EAFE79A(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -85190,26 +85190,26 @@ public void SetScriptAsNoLongerNeeded(string _scriptName) public bool HasScriptLoaded(string _scriptName) { unsafe { - if (fn__hasScriptLoaded == null) fn__hasScriptLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScriptLoaded"); + if (fn__hasScriptLoaded == null) fn__hasScriptLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScriptLoaded"); var success = false; var ptr_scriptName = MemoryUtils.StringToHGlobalUtf8(_scriptName); var result = fn__hasScriptLoaded(&success, ptr_scriptName); Marshal.FreeHGlobal(ptr_scriptName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesScriptExist(string _scriptName) { unsafe { - if (fn__doesScriptExist == null) fn__doesScriptExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptExist"); + if (fn__doesScriptExist == null) fn__doesScriptExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptExist"); var success = false; var ptr_scriptName = MemoryUtils.StringToHGlobalUtf8(_scriptName); var result = fn__doesScriptExist(&success, ptr_scriptName); Marshal.FreeHGlobal(ptr_scriptName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85236,22 +85236,22 @@ public void SetScriptWithNameHashAsNoLongerNeeded(uint _scriptHash) public bool HasScriptWithNameHashLoaded(uint _scriptHash) { unsafe { - if (fn__hasScriptWithNameHashLoaded == null) fn__hasScriptWithNameHashLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScriptWithNameHashLoaded"); + if (fn__hasScriptWithNameHashLoaded == null) fn__hasScriptWithNameHashLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasScriptWithNameHashLoaded"); var success = false; var result = fn__hasScriptWithNameHashLoaded(&success, _scriptHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesScriptWithNameHashExist(uint _scriptHash) { unsafe { - if (fn__doesScriptWithNameHashExist == null) fn__doesScriptWithNameHashExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptWithNameHashExist"); + if (fn__doesScriptWithNameHashExist == null) fn__doesScriptWithNameHashExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptWithNameHashExist"); var success = false; var result = fn__doesScriptWithNameHashExist(&success, _scriptHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85268,11 +85268,11 @@ public void TerminateThread(int _threadId) public bool IsThreadActive(int _threadId) { unsafe { - if (fn__isThreadActive == null) fn__isThreadActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThreadActive"); + if (fn__isThreadActive == null) fn__isThreadActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThreadActive"); var success = false; var result = fn__isThreadActive(&success, _threadId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85380,11 +85380,11 @@ public int GetNumberOfEvents(int _eventGroup) public bool GetEventExists(int _eventGroup, int _eventIndex) { unsafe { - if (fn__getEventExists == null) fn__getEventExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEventExists"); + if (fn__getEventExists == null) fn__getEventExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEventExists"); var success = false; var result = fn__getEventExists(&success, _eventGroup, _eventIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85402,13 +85402,13 @@ public int GetEventAtIndex(int _eventGroup, int _eventIndex) public bool GetEventData(int _eventGroup, int _eventIndex, ref int _eventData, int _eventDataSize) { unsafe { - if (fn__getEventData == null) fn__getEventData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEventData"); + if (fn__getEventData == null) fn__getEventData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getEventData"); var success = false; var ref_eventData = _eventData; var result = fn__getEventData(&success, _eventGroup, _eventIndex, &ref_eventData, _eventDataSize); _eventData = ref_eventData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85437,9 +85437,9 @@ public void ShutdownLoadingScreen() public void SetNoLoadingScreen(bool _toggle) { unsafe { - if (fn__setNoLoadingScreen == null) fn__setNoLoadingScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNoLoadingScreen"); + if (fn__setNoLoadingScreen == null) fn__setNoLoadingScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setNoLoadingScreen"); var success = false; - fn__setNoLoadingScreen(&success, _toggle); + fn__setNoLoadingScreen(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -85447,11 +85447,11 @@ public void SetNoLoadingScreen(bool _toggle) public bool GetNoLoadingScreen() { unsafe { - if (fn__getNoLoadingScreen == null) fn__getNoLoadingScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNoLoadingScreen"); + if (fn__getNoLoadingScreen == null) fn__getNoLoadingScreen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNoLoadingScreen"); var success = false; var result = fn__getNoLoadingScreen(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85468,11 +85468,11 @@ public void _0xB1577667C3708F9B() public bool _0x836B62713E0534CA() { unsafe { - if (fn__0x836B62713E0534CA == null) fn__0x836B62713E0534CA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x836B62713E0534CA"); + if (fn__0x836B62713E0534CA == null) fn__0x836B62713E0534CA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x836B62713E0534CA"); var success = false; var result = fn__0x836B62713E0534CA(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85533,13 +85533,13 @@ public void BgEndContext(string _contextName) public bool _0x0F6F1EBBC4E1D5E6(int _scriptIndex, string _p1) { unsafe { - if (fn__0x0F6F1EBBC4E1D5E6 == null) fn__0x0F6F1EBBC4E1D5E6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0F6F1EBBC4E1D5E6"); + if (fn__0x0F6F1EBBC4E1D5E6 == null) fn__0x0F6F1EBBC4E1D5E6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0F6F1EBBC4E1D5E6"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var result = fn__0x0F6F1EBBC4E1D5E6(&success, _scriptIndex, ptr_p1); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85670,14 +85670,14 @@ public int StartShapeTestSurroundingCoords(ref Vector3 _pVec1, ref Vector3 _pVec public int GetShapeTestResult(int _shapeTestHandle, ref bool _hit, ref Vector3 _endCoords, ref Vector3 _surfaceNormal, ref int _entityHit) { unsafe { - if (fn__getShapeTestResult == null) fn__getShapeTestResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShapeTestResult"); + if (fn__getShapeTestResult == null) fn__getShapeTestResult = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShapeTestResult"); var success = false; - var ref_hit = _hit; + var ref_hit = (byte) (_hit ? 1 : 0); var ref_endCoords = _endCoords; var ref_surfaceNormal = _surfaceNormal; var ref_entityHit = _entityHit; var result = fn__getShapeTestResult(&success, _shapeTestHandle, &ref_hit, &ref_endCoords, &ref_surfaceNormal, &ref_entityHit); - _hit = ref_hit; + _hit = ref_hit == 0 ? false : true; _endCoords = ref_endCoords; _surfaceNormal = ref_surfaceNormal; _entityHit = ref_entityHit; @@ -85689,15 +85689,15 @@ public int GetShapeTestResult(int _shapeTestHandle, ref bool _hit, ref Vector3 _ public int GetShapeTestResultIncludingMaterial(int _shapeTestHandle, ref bool _hit, ref Vector3 _endCoords, ref Vector3 _surfaceNormal, ref uint _materialHash, ref int _entityHit) { unsafe { - if (fn__getShapeTestResultIncludingMaterial == null) fn__getShapeTestResultIncludingMaterial = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShapeTestResultIncludingMaterial"); + if (fn__getShapeTestResultIncludingMaterial == null) fn__getShapeTestResultIncludingMaterial = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getShapeTestResultIncludingMaterial"); var success = false; - var ref_hit = _hit; + var ref_hit = (byte) (_hit ? 1 : 0); var ref_endCoords = _endCoords; var ref_surfaceNormal = _surfaceNormal; var ref_materialHash = _materialHash; var ref_entityHit = _entityHit; var result = fn__getShapeTestResultIncludingMaterial(&success, _shapeTestHandle, &ref_hit, &ref_endCoords, &ref_surfaceNormal, &ref_materialHash, &ref_entityHit); - _hit = ref_hit; + _hit = ref_hit == 0 ? false : true; _endCoords = ref_endCoords; _surfaceNormal = ref_surfaceNormal; _materialHash = ref_materialHash; @@ -85743,29 +85743,29 @@ public uint ScInboxGetMessageTypeAtIndex(int _msgIndex) public bool ScInboxGetMessageIsReadAtIndex(int _msgIndex) { unsafe { - if (fn__scInboxGetMessageIsReadAtIndex == null) fn__scInboxGetMessageIsReadAtIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxGetMessageIsReadAtIndex"); + if (fn__scInboxGetMessageIsReadAtIndex == null) fn__scInboxGetMessageIsReadAtIndex = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxGetMessageIsReadAtIndex"); var success = false; var result = fn__scInboxGetMessageIsReadAtIndex(&success, _msgIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessagePop(int _p0) { unsafe { - if (fn__scInboxMessagePop == null) fn__scInboxMessagePop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessagePop"); + if (fn__scInboxMessagePop == null) fn__scInboxMessagePop = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessagePop"); var success = false; var result = fn__scInboxMessagePop(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageGetDataInt(int _p0, string _context, ref int _out) { unsafe { - if (fn__scInboxMessageGetDataInt == null) fn__scInboxMessageGetDataInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataInt"); + if (fn__scInboxMessageGetDataInt == null) fn__scInboxMessageGetDataInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataInt"); var success = false; var ptr_context = MemoryUtils.StringToHGlobalUtf8(_context); var ref_out = _out; @@ -85773,27 +85773,27 @@ public bool ScInboxMessageGetDataInt(int _p0, string _context, ref int _out) Marshal.FreeHGlobal(ptr_context); _out = ref_out; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageGetDataBool(int _p0, string _p1) { unsafe { - if (fn__scInboxMessageGetDataBool == null) fn__scInboxMessageGetDataBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataBool"); + if (fn__scInboxMessageGetDataBool == null) fn__scInboxMessageGetDataBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataBool"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var result = fn__scInboxMessageGetDataBool(&success, _p0, ptr_p1); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageGetDataString(int _p0, string _context, ref string _out) { unsafe { - if (fn__scInboxMessageGetDataString == null) fn__scInboxMessageGetDataString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataString"); + if (fn__scInboxMessageGetDataString == null) fn__scInboxMessageGetDataString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetDataString"); var success = false; var ptr_context = MemoryUtils.StringToHGlobalUtf8(_context); var ptr_out = MemoryUtils.StringToHGlobalUtf8(_out); @@ -85804,18 +85804,18 @@ public bool ScInboxMessageGetDataString(int _p0, string _context, ref string _ou if (ref_out != ptr_out) freeString(ref_out); Marshal.FreeHGlobal(ptr_out); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageDoApply(int _p0) { unsafe { - if (fn__scInboxMessageDoApply == null) fn__scInboxMessageDoApply = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageDoApply"); + if (fn__scInboxMessageDoApply == null) fn__scInboxMessageDoApply = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageDoApply"); var success = false; var result = fn__scInboxMessageDoApply(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85859,39 +85859,39 @@ public void ScInboxMessageSendUgcStatUpdateEvent(ref int _data) public bool ScInboxMessageGetUgcdata(int _p0, ref int _p1) { unsafe { - if (fn__scInboxMessageGetUgcdata == null) fn__scInboxMessageGetUgcdata = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetUgcdata"); + if (fn__scInboxMessageGetUgcdata == null) fn__scInboxMessageGetUgcdata = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetUgcdata"); var success = false; var ref_p1 = _p1; var result = fn__scInboxMessageGetUgcdata(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageSendBountyPresenceEvent(ref int _data) { unsafe { - if (fn__scInboxMessageSendBountyPresenceEvent == null) fn__scInboxMessageSendBountyPresenceEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageSendBountyPresenceEvent"); + if (fn__scInboxMessageSendBountyPresenceEvent == null) fn__scInboxMessageSendBountyPresenceEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageSendBountyPresenceEvent"); var success = false; var ref_data = _data; var result = fn__scInboxMessageSendBountyPresenceEvent(&success, &ref_data); _data = ref_data; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScInboxMessageGetBountyData(int _index, ref int _outData) { unsafe { - if (fn__scInboxMessageGetBountyData == null) fn__scInboxMessageGetBountyData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetBountyData"); + if (fn__scInboxMessageGetBountyData == null) fn__scInboxMessageGetBountyData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scInboxMessageGetBountyData"); var success = false; var ref_outData = _outData; var result = fn__scInboxMessageGetBountyData(&success, _index, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -85930,13 +85930,13 @@ public int _0x7DB18CA8CAD5B098() public bool _0x4737980E8A283806(int _p0, ref int _p1) { unsafe { - if (fn__0x4737980E8A283806 == null) fn__0x4737980E8A283806 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4737980E8A283806"); + if (fn__0x4737980E8A283806 == null) fn__0x4737980E8A283806 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4737980E8A283806"); var success = false; var ref_p1 = _p1; var result = fn__0x4737980E8A283806(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86000,9 +86000,9 @@ public int _0x07DBD622D9533857(int _p0) public void SetHandleRockstarMessageViaScript(bool _toggle) { unsafe { - if (fn__setHandleRockstarMessageViaScript == null) fn__setHandleRockstarMessageViaScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHandleRockstarMessageViaScript"); + if (fn__setHandleRockstarMessageViaScript == null) fn__setHandleRockstarMessageViaScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHandleRockstarMessageViaScript"); var success = false; - fn__setHandleRockstarMessageViaScript(&success, _toggle); + fn__setHandleRockstarMessageViaScript(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -86010,11 +86010,11 @@ public void SetHandleRockstarMessageViaScript(bool _toggle) public bool IsRockstarMessageReadyForScript() { unsafe { - if (fn__isRockstarMessageReadyForScript == null) fn__isRockstarMessageReadyForScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRockstarMessageReadyForScript"); + if (fn__isRockstarMessageReadyForScript == null) fn__isRockstarMessageReadyForScript = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isRockstarMessageReadyForScript"); var success = false; var result = fn__isRockstarMessageReadyForScript(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86034,46 +86034,46 @@ public string RockstarMessageGetString() public bool ScPresenceAttrSetInt(uint _attrHash, int _value) { unsafe { - if (fn__scPresenceAttrSetInt == null) fn__scPresenceAttrSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetInt"); + if (fn__scPresenceAttrSetInt == null) fn__scPresenceAttrSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetInt"); var success = false; var result = fn__scPresenceAttrSetInt(&success, _attrHash, _value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScPresenceAttrSetFloat(uint _attrHash, float _value) { unsafe { - if (fn__scPresenceAttrSetFloat == null) fn__scPresenceAttrSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetFloat"); + if (fn__scPresenceAttrSetFloat == null) fn__scPresenceAttrSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetFloat"); var success = false; var result = fn__scPresenceAttrSetFloat(&success, _attrHash, _value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScPresenceAttrSetString(uint _attrHash, string _value) { unsafe { - if (fn__scPresenceAttrSetString == null) fn__scPresenceAttrSetString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetString"); + if (fn__scPresenceAttrSetString == null) fn__scPresenceAttrSetString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scPresenceAttrSetString"); var success = false; var ptr_value = MemoryUtils.StringToHGlobalUtf8(_value); var result = fn__scPresenceAttrSetString(&success, _attrHash, ptr_value); Marshal.FreeHGlobal(ptr_value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x487912FD248EFDDF(int _p0, float _p1) { unsafe { - if (fn__0x487912FD248EFDDF == null) fn__0x487912FD248EFDDF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x487912FD248EFDDF"); + if (fn__0x487912FD248EFDDF == null) fn__0x487912FD248EFDDF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x487912FD248EFDDF"); var success = false; var result = fn__0x487912FD248EFDDF(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86102,13 +86102,13 @@ public int _0xA770C8EEC6FB2AC5() public bool ScGetIsProfileAttributeSet(string _name) { unsafe { - if (fn__scGetIsProfileAttributeSet == null) fn__scGetIsProfileAttributeSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scGetIsProfileAttributeSet"); + if (fn__scGetIsProfileAttributeSet == null) fn__scGetIsProfileAttributeSet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scGetIsProfileAttributeSet"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__scGetIsProfileAttributeSet(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86137,7 +86137,7 @@ public int _0x2D874D4AE612A65F() public bool ScProfanityCheckString(string _string, ref int _token) { unsafe { - if (fn__scProfanityCheckString == null) fn__scProfanityCheckString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityCheckString"); + if (fn__scProfanityCheckString == null) fn__scProfanityCheckString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityCheckString"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); var ref_token = _token; @@ -86145,14 +86145,14 @@ public bool ScProfanityCheckString(string _string, ref int _token) Marshal.FreeHGlobal(ptr_string); _token = ref_token; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScProfanityCheckUgcString(string _string, ref int _token) { unsafe { - if (fn__scProfanityCheckUgcString == null) fn__scProfanityCheckUgcString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityCheckUgcString"); + if (fn__scProfanityCheckUgcString == null) fn__scProfanityCheckUgcString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityCheckUgcString"); var success = false; var ptr_string = MemoryUtils.StringToHGlobalUtf8(_string); var ref_token = _token; @@ -86160,40 +86160,40 @@ public bool ScProfanityCheckUgcString(string _string, ref int _token) Marshal.FreeHGlobal(ptr_string); _token = ref_token; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScProfanityGetCheckIsValid(int _token) { unsafe { - if (fn__scProfanityGetCheckIsValid == null) fn__scProfanityGetCheckIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetCheckIsValid"); + if (fn__scProfanityGetCheckIsValid == null) fn__scProfanityGetCheckIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetCheckIsValid"); var success = false; var result = fn__scProfanityGetCheckIsValid(&success, _token); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScProfanityGetCheckIsPending(int _token) { unsafe { - if (fn__scProfanityGetCheckIsPending == null) fn__scProfanityGetCheckIsPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetCheckIsPending"); + if (fn__scProfanityGetCheckIsPending == null) fn__scProfanityGetCheckIsPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetCheckIsPending"); var success = false; var result = fn__scProfanityGetCheckIsPending(&success, _token); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScProfanityGetStringPassed(int _token) { unsafe { - if (fn__scProfanityGetStringPassed == null) fn__scProfanityGetStringPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetStringPassed"); + if (fn__scProfanityGetStringPassed == null) fn__scProfanityGetStringPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scProfanityGetStringPassed"); var success = false; var result = fn__scProfanityGetStringPassed(&success, _token); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86211,7 +86211,7 @@ public int ScProfanityGetStringStatus(int _token) public bool _0xF6BAAAF762E1BF40(string _p0, ref int _p1) { unsafe { - if (fn__0xF6BAAAF762E1BF40 == null) fn__0xF6BAAAF762E1BF40 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF6BAAAF762E1BF40"); + if (fn__0xF6BAAAF762E1BF40 == null) fn__0xF6BAAAF762E1BF40 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF6BAAAF762E1BF40"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86219,18 +86219,18 @@ public bool _0xF6BAAAF762E1BF40(string _p0, ref int _p1) Marshal.FreeHGlobal(ptr_p0); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xF22CA0FD74B80E7A(int _p0) { unsafe { - if (fn__0xF22CA0FD74B80E7A == null) fn__0xF22CA0FD74B80E7A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF22CA0FD74B80E7A"); + if (fn__0xF22CA0FD74B80E7A == null) fn__0xF22CA0FD74B80E7A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF22CA0FD74B80E7A"); var success = false; var result = fn__0xF22CA0FD74B80E7A(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86281,7 +86281,7 @@ public int _0x2E89990DDFF670C3(int _p0, int _p1) public bool _0xD0EE05FE193646EA(string _p0, string _p1, ref int _p2) { unsafe { - if (fn__0xD0EE05FE193646EA == null) fn__0xD0EE05FE193646EA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD0EE05FE193646EA"); + if (fn__0xD0EE05FE193646EA == null) fn__0xD0EE05FE193646EA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD0EE05FE193646EA"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); @@ -86291,14 +86291,14 @@ public bool _0xD0EE05FE193646EA(string _p0, string _p1, ref int _p2) Marshal.FreeHGlobal(ptr_p1); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x1989C6E6F67E76A8(string _p0, ref int _p1, ref int _p2) { unsafe { - if (fn__0x1989C6E6F67E76A8 == null) fn__0x1989C6E6F67E76A8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1989C6E6F67E76A8"); + if (fn__0x1989C6E6F67E76A8 == null) fn__0x1989C6E6F67E76A8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1989C6E6F67E76A8"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86308,7 +86308,7 @@ public bool _0x1989C6E6F67E76A8(string _p0, ref int _p1, ref int _p2) _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86337,7 +86337,7 @@ public int _0x8147FFF6A718E1AD(int _p0) public bool _0x0F73393BAC7E6730(string _p0, ref int _p1) { unsafe { - if (fn__0x0F73393BAC7E6730 == null) fn__0x0F73393BAC7E6730 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0F73393BAC7E6730"); + if (fn__0x0F73393BAC7E6730 == null) fn__0x0F73393BAC7E6730 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0F73393BAC7E6730"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86345,7 +86345,7 @@ public bool _0x0F73393BAC7E6730(string _p0, ref int _p1) Marshal.FreeHGlobal(ptr_p0); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86374,11 +86374,11 @@ public int _0x5C4EBFFA98BDB41C(int _p0) public bool _0xFF8F3A92B75ED67A() { unsafe { - if (fn__0xFF8F3A92B75ED67A == null) fn__0xFF8F3A92B75ED67A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFF8F3A92B75ED67A"); + if (fn__0xFF8F3A92B75ED67A == null) fn__0xFF8F3A92B75ED67A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFF8F3A92B75ED67A"); var success = false; var result = fn__0xFF8F3A92B75ED67A(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86396,7 +86396,7 @@ public int _0x4ED9C8D6DA297639() public bool _0x710BCDA8071EDED1(string _p0, ref int _p1) { unsafe { - if (fn__0x710BCDA8071EDED1 == null) fn__0x710BCDA8071EDED1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x710BCDA8071EDED1"); + if (fn__0x710BCDA8071EDED1 == null) fn__0x710BCDA8071EDED1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x710BCDA8071EDED1"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86404,14 +86404,14 @@ public bool _0x710BCDA8071EDED1(string _p0, ref int _p1) Marshal.FreeHGlobal(ptr_p0); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x50A8A36201DBF83E(string _p0, ref float _p1) { unsafe { - if (fn__0x50A8A36201DBF83E == null) fn__0x50A8A36201DBF83E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x50A8A36201DBF83E"); + if (fn__0x50A8A36201DBF83E == null) fn__0x50A8A36201DBF83E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x50A8A36201DBF83E"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86419,14 +86419,14 @@ public bool _0x50A8A36201DBF83E(string _p0, ref float _p1) Marshal.FreeHGlobal(ptr_p0); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x9DE5D2F723575ED0(string _p0, ref string _p1) { unsafe { - if (fn__0x9DE5D2F723575ED0 == null) fn__0x9DE5D2F723575ED0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9DE5D2F723575ED0"); + if (fn__0x9DE5D2F723575ED0 == null) fn__0x9DE5D2F723575ED0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9DE5D2F723575ED0"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); @@ -86437,14 +86437,14 @@ public bool _0x9DE5D2F723575ED0(string _p0, ref string _p1) if (ref_p1 != ptr_p1) freeString(ref_p1); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC2C97EA97711D1AE(ref string _p0) { unsafe { - if (fn__0xC2C97EA97711D1AE == null) fn__0xC2C97EA97711D1AE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC2C97EA97711D1AE"); + if (fn__0xC2C97EA97711D1AE == null) fn__0xC2C97EA97711D1AE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC2C97EA97711D1AE"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p0 = ptr_p0; @@ -86453,20 +86453,20 @@ public bool _0xC2C97EA97711D1AE(ref string _p0) if (ref_p0 != ptr_p0) freeString(ref_p0); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x450819D8CF90C416(string _p0) { unsafe { - if (fn__0x450819D8CF90C416 == null) fn__0x450819D8CF90C416 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x450819D8CF90C416"); + if (fn__0x450819D8CF90C416 == null) fn__0x450819D8CF90C416 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x450819D8CF90C416"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var result = fn__0x450819D8CF90C416(&success, ptr_p0); Marshal.FreeHGlobal(ptr_p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86486,7 +86486,7 @@ public int _0x4A7D6E727F941747(string _p0) public bool _0xE75A4A2E5E316D86(string _p0, ref int _p1, string _p2) { unsafe { - if (fn__0xE75A4A2E5E316D86 == null) fn__0xE75A4A2E5E316D86 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE75A4A2E5E316D86"); + if (fn__0xE75A4A2E5E316D86 == null) fn__0xE75A4A2E5E316D86 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE75A4A2E5E316D86"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86496,14 +86496,14 @@ public bool _0xE75A4A2E5E316D86(string _p0, ref int _p1, string _p2) _p1 = ref_p1; Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x2570E26BE63964E3(string _p0, ref float _p1, string _p2) { unsafe { - if (fn__0x2570E26BE63964E3 == null) fn__0x2570E26BE63964E3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2570E26BE63964E3"); + if (fn__0x2570E26BE63964E3 == null) fn__0x2570E26BE63964E3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2570E26BE63964E3"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86513,14 +86513,14 @@ public bool _0x2570E26BE63964E3(string _p0, ref float _p1, string _p2) _p1 = ref_p1; Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x1D12A56FC95BE92E(string _p0, ref string _p1, string _p2) { unsafe { - if (fn__0x1D12A56FC95BE92E == null) fn__0x1D12A56FC95BE92E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D12A56FC95BE92E"); + if (fn__0x1D12A56FC95BE92E == null) fn__0x1D12A56FC95BE92E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1D12A56FC95BE92E"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); @@ -86533,14 +86533,14 @@ public bool _0x1D12A56FC95BE92E(string _p0, ref string _p1, string _p2) Marshal.FreeHGlobal(ptr_p1); Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x33DF47CC0642061B(ref string _p0, string _p1) { unsafe { - if (fn__0x33DF47CC0642061B == null) fn__0x33DF47CC0642061B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x33DF47CC0642061B"); + if (fn__0x33DF47CC0642061B == null) fn__0x33DF47CC0642061B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x33DF47CC0642061B"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p0 = ptr_p0; @@ -86551,25 +86551,25 @@ public bool _0x33DF47CC0642061B(ref string _p0, string _p1) Marshal.FreeHGlobal(ptr_p0); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xA468E0BE12B12C70(int _p0) { unsafe { - if (fn__0xA468E0BE12B12C70 == null) fn__0xA468E0BE12B12C70 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA468E0BE12B12C70"); + if (fn__0xA468E0BE12B12C70 == null) fn__0xA468E0BE12B12C70 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA468E0BE12B12C70"); var success = false; var result = fn__0xA468E0BE12B12C70(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x8CC469AB4D349B7C(int _p0, string _p1, ref int _p2) { unsafe { - if (fn__0x8CC469AB4D349B7C == null) fn__0x8CC469AB4D349B7C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8CC469AB4D349B7C"); + if (fn__0x8CC469AB4D349B7C == null) fn__0x8CC469AB4D349B7C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8CC469AB4D349B7C"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ref_p2 = _p2; @@ -86577,14 +86577,14 @@ public bool _0x8CC469AB4D349B7C(int _p0, string _p1, ref int _p2) Marshal.FreeHGlobal(ptr_p1); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xC5A35C73B68F3C49(int _p0, string _p1, ref float _p2) { unsafe { - if (fn__0xC5A35C73B68F3C49 == null) fn__0xC5A35C73B68F3C49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC5A35C73B68F3C49"); + if (fn__0xC5A35C73B68F3C49 == null) fn__0xC5A35C73B68F3C49 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC5A35C73B68F3C49"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ref_p2 = _p2; @@ -86592,14 +86592,14 @@ public bool _0xC5A35C73B68F3C49(int _p0, string _p1, ref float _p2) Marshal.FreeHGlobal(ptr_p1); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x699E4A5C8C893A18(int _p0, string _p1, ref string _p2) { unsafe { - if (fn__0x699E4A5C8C893A18 == null) fn__0x699E4A5C8C893A18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x699E4A5C8C893A18"); + if (fn__0x699E4A5C8C893A18 == null) fn__0x699E4A5C8C893A18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x699E4A5C8C893A18"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ptr_p2 = MemoryUtils.StringToHGlobalUtf8(_p2); @@ -86610,14 +86610,14 @@ public bool _0x699E4A5C8C893A18(int _p0, string _p1, ref string _p2) if (ref_p2 != ptr_p2) freeString(ref_p2); Marshal.FreeHGlobal(ptr_p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x19853B5B17D77BCA(int _p0, ref string _p1) { unsafe { - if (fn__0x19853B5B17D77BCA == null) fn__0x19853B5B17D77BCA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x19853B5B17D77BCA"); + if (fn__0x19853B5B17D77BCA == null) fn__0x19853B5B17D77BCA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x19853B5B17D77BCA"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ref_p1 = ptr_p1; @@ -86626,29 +86626,29 @@ public bool _0x19853B5B17D77BCA(int _p0, ref string _p1) if (ref_p1 != ptr_p1) freeString(ref_p1); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x6BFB12CE158E3DD4(int _p0) { unsafe { - if (fn__0x6BFB12CE158E3DD4 == null) fn__0x6BFB12CE158E3DD4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6BFB12CE158E3DD4"); + if (fn__0x6BFB12CE158E3DD4 == null) fn__0x6BFB12CE158E3DD4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6BFB12CE158E3DD4"); var success = false; var result = fn__0x6BFB12CE158E3DD4(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xFE4C1D0D3B9CC17E(int _p0, int _p1) { unsafe { - if (fn__0xFE4C1D0D3B9CC17E == null) fn__0xFE4C1D0D3B9CC17E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFE4C1D0D3B9CC17E"); + if (fn__0xFE4C1D0D3B9CC17E == null) fn__0xFE4C1D0D3B9CC17E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFE4C1D0D3B9CC17E"); var success = false; var result = fn__0xFE4C1D0D3B9CC17E(&success, _p0, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86666,18 +86666,18 @@ public int _0xD8122C407663B995() public bool _0x3001BEF2FECA3680() { unsafe { - if (fn__0x3001BEF2FECA3680 == null) fn__0x3001BEF2FECA3680 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3001BEF2FECA3680"); + if (fn__0x3001BEF2FECA3680 == null) fn__0x3001BEF2FECA3680 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3001BEF2FECA3680"); var success = false; var result = fn__0x3001BEF2FECA3680(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x92DA6E70EF249BD1(string _p0, ref int _p1) { unsafe { - if (fn__0x92DA6E70EF249BD1 == null) fn__0x92DA6E70EF249BD1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x92DA6E70EF249BD1"); + if (fn__0x92DA6E70EF249BD1 == null) fn__0x92DA6E70EF249BD1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x92DA6E70EF249BD1"); var success = false; var ptr_p0 = MemoryUtils.StringToHGlobalUtf8(_p0); var ref_p1 = _p1; @@ -86685,7 +86685,7 @@ public bool _0x92DA6E70EF249BD1(string _p0, ref int _p1) Marshal.FreeHGlobal(ptr_p0); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86713,11 +86713,11 @@ public int _0xE4F6E8D07A2F0F51(int _p0) public bool _0x8A4416C0DB05FA66(int _p0) { unsafe { - if (fn__0x8A4416C0DB05FA66 == null) fn__0x8A4416C0DB05FA66 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8A4416C0DB05FA66"); + if (fn__0x8A4416C0DB05FA66 == null) fn__0x8A4416C0DB05FA66 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8A4416C0DB05FA66"); var success = false; var result = fn__0x8A4416C0DB05FA66(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86747,24 +86747,24 @@ public string ScGetNickname() public bool _0x225798743970412B(ref int _p0) { unsafe { - if (fn__0x225798743970412B == null) fn__0x225798743970412B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x225798743970412B"); + if (fn__0x225798743970412B == null) fn__0x225798743970412B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x225798743970412B"); var success = false; var ref_p0 = _p0; var result = fn__0x225798743970412B(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool ScGetHasAchievementBeenPassed(int _achievementId) { unsafe { - if (fn__scGetHasAchievementBeenPassed == null) fn__scGetHasAchievementBeenPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scGetHasAchievementBeenPassed"); + if (fn__scGetHasAchievementBeenPassed == null) fn__scGetHasAchievementBeenPassed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_scGetHasAchievementBeenPassed"); var success = false; var result = fn__scGetHasAchievementBeenPassed(&success, _achievementId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86782,22 +86782,22 @@ public int StatClearSlotForReload(int _statSlot) public bool StatLoad(int _p0) { unsafe { - if (fn__statLoad == null) fn__statLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statLoad"); + if (fn__statLoad == null) fn__statLoad = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statLoad"); var success = false; var result = fn__statLoad(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSave(int _p0, bool _p1, int _p2, int _p3) { unsafe { - if (fn__statSave == null) fn__statSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSave"); + if (fn__statSave == null) fn__statSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSave"); var success = false; - var result = fn__statSave(&success, _p0, _p1, _p2, _p3); + var result = fn__statSave(&success, _p0, (byte) (_p1 ? 1 : 0), _p2, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86814,33 +86814,33 @@ public void _0x5688585E6D563CD8(int _p0) public bool StatLoadPending(int _p0) { unsafe { - if (fn__statLoadPending == null) fn__statLoadPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statLoadPending"); + if (fn__statLoadPending == null) fn__statLoadPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statLoadPending"); var success = false; var result = fn__statLoadPending(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSavePending() { unsafe { - if (fn__statSavePending == null) fn__statSavePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSavePending"); + if (fn__statSavePending == null) fn__statSavePending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSavePending"); var success = false; var result = fn__statSavePending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSavePendingOrRequested() { unsafe { - if (fn__statSavePendingOrRequested == null) fn__statSavePendingOrRequested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSavePendingOrRequested"); + if (fn__statSavePendingOrRequested == null) fn__statSavePendingOrRequested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSavePendingOrRequested"); var success = false; var result = fn__statSavePendingOrRequested(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86858,22 +86858,22 @@ public int StatDeleteSlot(int _p0) public bool StatSlotIsLoaded(int _p0) { unsafe { - if (fn__statSlotIsLoaded == null) fn__statSlotIsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSlotIsLoaded"); + if (fn__statSlotIsLoaded == null) fn__statSlotIsLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSlotIsLoaded"); var success = false; var result = fn__statSlotIsLoaded(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x7F2C4CDF2E82DF4C(int _p0) { unsafe { - if (fn__0x7F2C4CDF2E82DF4C == null) fn__0x7F2C4CDF2E82DF4C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7F2C4CDF2E82DF4C"); + if (fn__0x7F2C4CDF2E82DF4C == null) fn__0x7F2C4CDF2E82DF4C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7F2C4CDF2E82DF4C"); var success = false; var result = fn__0x7F2C4CDF2E82DF4C(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86891,9 +86891,9 @@ public int _0xE496A53BA5F50A56(int _p0) public void StatSetBlockSaves(bool _toggle) { unsafe { - if (fn__statSetBlockSaves == null) fn__statSetBlockSaves = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBlockSaves"); + if (fn__statSetBlockSaves == null) fn__statSetBlockSaves = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBlockSaves"); var success = false; - fn__statSetBlockSaves(&success, _toggle); + fn__statSetBlockSaves(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -86901,22 +86901,22 @@ public void StatSetBlockSaves(bool _toggle) public bool _0x6A7F19756F1A9016() { unsafe { - if (fn__0x6A7F19756F1A9016 == null) fn__0x6A7F19756F1A9016 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A7F19756F1A9016"); + if (fn__0x6A7F19756F1A9016 == null) fn__0x6A7F19756F1A9016 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6A7F19756F1A9016"); var success = false; var result = fn__0x6A7F19756F1A9016(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0x7E6946F68A38B74F(int _p0) { unsafe { - if (fn__0x7E6946F68A38B74F == null) fn__0x7E6946F68A38B74F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7E6946F68A38B74F"); + if (fn__0x7E6946F68A38B74F == null) fn__0x7E6946F68A38B74F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7E6946F68A38B74F"); var success = false; var result = fn__0x7E6946F68A38B74F(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86933,11 +86933,11 @@ public void _0xA8733668D1047B51(int _p0) public bool _0xECB41AC6AB754401() { unsafe { - if (fn__0xECB41AC6AB754401 == null) fn__0xECB41AC6AB754401 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xECB41AC6AB754401"); + if (fn__0xECB41AC6AB754401 == null) fn__0xECB41AC6AB754401 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xECB41AC6AB754401"); var success = false; var result = fn__0xECB41AC6AB754401(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -86965,170 +86965,170 @@ public int _0xC0E0D686DDFC6EAE() public bool StatSetInt(uint _statName, int _value, bool _save) { unsafe { - if (fn__statSetInt == null) fn__statSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetInt"); + if (fn__statSetInt == null) fn__statSetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetInt"); var success = false; - var result = fn__statSetInt(&success, _statName, _value, _save); + var result = fn__statSetInt(&success, _statName, _value, (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetFloat(uint _statName, float _value, bool _save) { unsafe { - if (fn__statSetFloat == null) fn__statSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetFloat"); + if (fn__statSetFloat == null) fn__statSetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetFloat"); var success = false; - var result = fn__statSetFloat(&success, _statName, _value, _save); + var result = fn__statSetFloat(&success, _statName, _value, (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetBool(uint _statName, bool _value, bool _save) { unsafe { - if (fn__statSetBool == null) fn__statSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBool"); + if (fn__statSetBool == null) fn__statSetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBool"); var success = false; - var result = fn__statSetBool(&success, _statName, _value, _save); + var result = fn__statSetBool(&success, _statName, (byte) (_value ? 1 : 0), (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetGxtLabel(uint _statName, string _value, bool _save) { unsafe { - if (fn__statSetGxtLabel == null) fn__statSetGxtLabel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetGxtLabel"); + if (fn__statSetGxtLabel == null) fn__statSetGxtLabel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetGxtLabel"); var success = false; var ptr_value = MemoryUtils.StringToHGlobalUtf8(_value); - var result = fn__statSetGxtLabel(&success, _statName, ptr_value, _save); + var result = fn__statSetGxtLabel(&success, _statName, ptr_value, (byte) (_save ? 1 : 0)); Marshal.FreeHGlobal(ptr_value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetDate(uint _statName, ref int _value, int _numFields, bool _save) { unsafe { - if (fn__statSetDate == null) fn__statSetDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetDate"); + if (fn__statSetDate == null) fn__statSetDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetDate"); var success = false; var ref_value = _value; - var result = fn__statSetDate(&success, _statName, &ref_value, _numFields, _save); + var result = fn__statSetDate(&success, _statName, &ref_value, _numFields, (byte) (_save ? 1 : 0)); _value = ref_value; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetString(uint _statName, string _value, bool _save) { unsafe { - if (fn__statSetString == null) fn__statSetString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetString"); + if (fn__statSetString == null) fn__statSetString = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetString"); var success = false; var ptr_value = MemoryUtils.StringToHGlobalUtf8(_value); - var result = fn__statSetString(&success, _statName, ptr_value, _save); + var result = fn__statSetString(&success, _statName, ptr_value, (byte) (_save ? 1 : 0)); Marshal.FreeHGlobal(ptr_value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetPos(uint _statName, float _x, float _y, float _z, bool _save) { unsafe { - if (fn__statSetPos == null) fn__statSetPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetPos"); + if (fn__statSetPos == null) fn__statSetPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetPos"); var success = false; - var result = fn__statSetPos(&success, _statName, _x, _y, _z, _save); + var result = fn__statSetPos(&success, _statName, _x, _y, _z, (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetMaskedInt(uint _statName, int _p1, int _p2, int _p3, bool _save) { unsafe { - if (fn__statSetMaskedInt == null) fn__statSetMaskedInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetMaskedInt"); + if (fn__statSetMaskedInt == null) fn__statSetMaskedInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetMaskedInt"); var success = false; - var result = fn__statSetMaskedInt(&success, _statName, _p1, _p2, _p3, _save); + var result = fn__statSetMaskedInt(&success, _statName, _p1, _p2, _p3, (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetUserId(uint _statName, string _value, bool _save) { unsafe { - if (fn__statSetUserId == null) fn__statSetUserId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetUserId"); + if (fn__statSetUserId == null) fn__statSetUserId = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetUserId"); var success = false; var ptr_value = MemoryUtils.StringToHGlobalUtf8(_value); - var result = fn__statSetUserId(&success, _statName, ptr_value, _save); + var result = fn__statSetUserId(&success, _statName, ptr_value, (byte) (_save ? 1 : 0)); Marshal.FreeHGlobal(ptr_value); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetCurrentPosixTime(uint _statName, bool _p1) { unsafe { - if (fn__statSetCurrentPosixTime == null) fn__statSetCurrentPosixTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetCurrentPosixTime"); + if (fn__statSetCurrentPosixTime == null) fn__statSetCurrentPosixTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetCurrentPosixTime"); var success = false; - var result = fn__statSetCurrentPosixTime(&success, _statName, _p1); + var result = fn__statSetCurrentPosixTime(&success, _statName, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatGetInt(uint _statHash, ref int _outValue, int _p2) { unsafe { - if (fn__statGetInt == null) fn__statGetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetInt"); + if (fn__statGetInt == null) fn__statGetInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetInt"); var success = false; var ref_outValue = _outValue; var result = fn__statGetInt(&success, _statHash, &ref_outValue, _p2); _outValue = ref_outValue; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatGetFloat(uint _statHash, ref float _outValue, int _p2) { unsafe { - if (fn__statGetFloat == null) fn__statGetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetFloat"); + if (fn__statGetFloat == null) fn__statGetFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetFloat"); var success = false; var ref_outValue = _outValue; var result = fn__statGetFloat(&success, _statHash, &ref_outValue, _p2); _outValue = ref_outValue; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatGetBool(uint _statHash, ref bool _outValue, int _p2) { unsafe { - if (fn__statGetBool == null) fn__statGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetBool"); + if (fn__statGetBool == null) fn__statGetBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetBool"); var success = false; - var ref_outValue = _outValue; + var ref_outValue = (byte) (_outValue ? 1 : 0); var result = fn__statGetBool(&success, _statHash, &ref_outValue, _p2); - _outValue = ref_outValue; + _outValue = ref_outValue == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatGetDate(uint _statHash, ref int _p1, int _p2, int _p3) { unsafe { - if (fn__statGetDate == null) fn__statGetDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetDate"); + if (fn__statGetDate == null) fn__statGetDate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetDate"); var success = false; var ref_p1 = _p1; var result = fn__statGetDate(&success, _statHash, &ref_p1, _p2, _p3); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -87148,7 +87148,7 @@ public string StatGetString(uint _statHash, int _p1) public bool StatGetPos(int _p0, ref int _p1, ref int _p2, ref int _p3, int _p4) { unsafe { - if (fn__statGetPos == null) fn__statGetPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetPos"); + if (fn__statGetPos == null) fn__statGetPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetPos"); var success = false; var ref_p1 = _p1; var ref_p2 = _p2; @@ -87158,20 +87158,20 @@ public bool StatGetPos(int _p0, ref int _p1, ref int _p2, ref int _p3, int _p4) _p2 = ref_p2; _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatGetMaskedInt(int _p0, ref int _p1, int _p2, int _p3, int _p4) { unsafe { - if (fn__statGetMaskedInt == null) fn__statGetMaskedInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetMaskedInt"); + if (fn__statGetMaskedInt == null) fn__statGetMaskedInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetMaskedInt"); var success = false; var ref_p1 = _p1; var result = fn__statGetMaskedInt(&success, _p0, &ref_p1, _p2, _p3, _p4); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -87204,13 +87204,13 @@ public string StatGetLicensePlate(uint _statName) public bool StatSetLicensePlate(uint _statName, string _str) { unsafe { - if (fn__statSetLicensePlate == null) fn__statSetLicensePlate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetLicensePlate"); + if (fn__statSetLicensePlate == null) fn__statSetLicensePlate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetLicensePlate"); var success = false; var ptr_str = MemoryUtils.StringToHGlobalUtf8(_str); var result = fn__statSetLicensePlate(&success, _statName, ptr_str); Marshal.FreeHGlobal(ptr_str); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -87227,35 +87227,35 @@ public void StatIncrement(uint _statName, float _value) public bool _0x5A556B229A169402() { unsafe { - if (fn__0x5A556B229A169402 == null) fn__0x5A556B229A169402 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5A556B229A169402"); + if (fn__0x5A556B229A169402 == null) fn__0x5A556B229A169402 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5A556B229A169402"); var success = false; var result = fn__0x5A556B229A169402(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xB1D2BB1E1631F5B1() { unsafe { - if (fn__0xB1D2BB1E1631F5B1 == null) fn__0xB1D2BB1E1631F5B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB1D2BB1E1631F5B1"); + if (fn__0xB1D2BB1E1631F5B1 == null) fn__0xB1D2BB1E1631F5B1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB1D2BB1E1631F5B1"); var success = false; var result = fn__0xB1D2BB1E1631F5B1(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xBED9F5693F34ED17(uint _statName, int _p1, ref float _outValue) { unsafe { - if (fn__0xBED9F5693F34ED17 == null) fn__0xBED9F5693F34ED17 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBED9F5693F34ED17"); + if (fn__0xBED9F5693F34ED17 == null) fn__0xBED9F5693F34ED17 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBED9F5693F34ED17"); var success = false; var ref_outValue = _outValue; var result = fn__0xBED9F5693F34ED17(&success, _statName, _p1, &ref_outValue); _outValue = ref_outValue; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -87368,9 +87368,9 @@ public int StatGetPackedIntMask(int _p0) public uint GetPackedBoolStatKey(int _index, bool _spStat, bool _charStat, int _character) { unsafe { - if (fn__getPackedBoolStatKey == null) fn__getPackedBoolStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedBoolStatKey"); + if (fn__getPackedBoolStatKey == null) fn__getPackedBoolStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedBoolStatKey"); var success = false; - var result = fn__getPackedBoolStatKey(&success, _index, _spStat, _charStat, _character); + var result = fn__getPackedBoolStatKey(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character); if (!success) throw new Exception("Native execution failed"); return result; } @@ -87379,9 +87379,9 @@ public uint GetPackedBoolStatKey(int _index, bool _spStat, bool _charStat, int _ public uint GetPackedIntStatKey(int _index, bool _spStat, bool _charStat, int _character) { unsafe { - if (fn__getPackedIntStatKey == null) fn__getPackedIntStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedIntStatKey"); + if (fn__getPackedIntStatKey == null) fn__getPackedIntStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedIntStatKey"); var success = false; - var result = fn__getPackedIntStatKey(&success, _index, _spStat, _charStat, _character); + var result = fn__getPackedIntStatKey(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character); if (!success) throw new Exception("Native execution failed"); return result; } @@ -87390,9 +87390,9 @@ public uint GetPackedIntStatKey(int _index, bool _spStat, bool _charStat, int _c public uint GetPackedTuBoolStatKey(int _index, bool _spStat, bool _charStat, int _character) { unsafe { - if (fn__getPackedTuBoolStatKey == null) fn__getPackedTuBoolStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedTuBoolStatKey"); + if (fn__getPackedTuBoolStatKey == null) fn__getPackedTuBoolStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedTuBoolStatKey"); var success = false; - var result = fn__getPackedTuBoolStatKey(&success, _index, _spStat, _charStat, _character); + var result = fn__getPackedTuBoolStatKey(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character); if (!success) throw new Exception("Native execution failed"); return result; } @@ -87401,9 +87401,9 @@ public uint GetPackedTuBoolStatKey(int _index, bool _spStat, bool _charStat, int public uint GetPackedTuIntStatKey(int _index, bool _spStat, bool _charStat, int _character) { unsafe { - if (fn__getPackedTuIntStatKey == null) fn__getPackedTuIntStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedTuIntStatKey"); + if (fn__getPackedTuIntStatKey == null) fn__getPackedTuIntStatKey = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPackedTuIntStatKey"); var success = false; - var result = fn__getPackedTuIntStatKey(&success, _index, _spStat, _charStat, _character); + var result = fn__getPackedTuIntStatKey(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character); if (!success) throw new Exception("Native execution failed"); return result; } @@ -87412,10 +87412,10 @@ public uint GetPackedTuIntStatKey(int _index, bool _spStat, bool _charStat, int public uint GetNgstatBoolHash(int _index, bool _spStat, bool _charStat, int _character, string _section) { unsafe { - if (fn__getNgstatBoolHash == null) fn__getNgstatBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNgstatBoolHash"); + if (fn__getNgstatBoolHash == null) fn__getNgstatBoolHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNgstatBoolHash"); var success = false; var ptr_section = MemoryUtils.StringToHGlobalUtf8(_section); - var result = fn__getNgstatBoolHash(&success, _index, _spStat, _charStat, _character, ptr_section); + var result = fn__getNgstatBoolHash(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character, ptr_section); Marshal.FreeHGlobal(ptr_section); if (!success) throw new Exception("Native execution failed"); return result; @@ -87425,10 +87425,10 @@ public uint GetNgstatBoolHash(int _index, bool _spStat, bool _charStat, int _cha public uint GetNgstatIntHash(int _index, bool _spStat, bool _charStat, int _character, string _section) { unsafe { - if (fn__getNgstatIntHash == null) fn__getNgstatIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNgstatIntHash"); + if (fn__getNgstatIntHash == null) fn__getNgstatIntHash = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNgstatIntHash"); var success = false; var ptr_section = MemoryUtils.StringToHGlobalUtf8(_section); - var result = fn__getNgstatIntHash(&success, _index, _spStat, _charStat, _character, ptr_section); + var result = fn__getNgstatIntHash(&success, _index, (byte) (_spStat ? 1 : 0), (byte) (_charStat ? 1 : 0), _character, ptr_section); Marshal.FreeHGlobal(ptr_section); if (!success) throw new Exception("Native execution failed"); return result; @@ -87438,22 +87438,22 @@ public uint GetNgstatIntHash(int _index, bool _spStat, bool _charStat, int _char public bool StatGetBoolMasked(uint _statName, int _mask, int _p2) { unsafe { - if (fn__statGetBoolMasked == null) fn__statGetBoolMasked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetBoolMasked"); + if (fn__statGetBoolMasked == null) fn__statGetBoolMasked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statGetBoolMasked"); var success = false; var result = fn__statGetBoolMasked(&success, _statName, _mask, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StatSetBoolMasked(uint _statName, bool _value, int _mask, bool _save) { unsafe { - if (fn__statSetBoolMasked == null) fn__statSetBoolMasked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBoolMasked"); + if (fn__statSetBoolMasked == null) fn__statSetBoolMasked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSetBoolMasked"); var success = false; - var result = fn__statSetBoolMasked(&success, _statName, _value, _mask, _save); + var result = fn__statSetBoolMasked(&success, _statName, (byte) (_value ? 1 : 0), _mask, (byte) (_save ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -87534,10 +87534,10 @@ public void PlaystatsLeaveJobChain(int _p0, int _p1, int _p2, int _p3, int _p4) public void PlaystatsMissionStarted(ref int _p0, int _p1, int _p2, bool _p3) { unsafe { - if (fn__playstatsMissionStarted == null) fn__playstatsMissionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsMissionStarted"); + if (fn__playstatsMissionStarted == null) fn__playstatsMissionStarted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsMissionStarted"); var success = false; var ref_p0 = _p0; - fn__playstatsMissionStarted(&success, &ref_p0, _p1, _p2, _p3); + fn__playstatsMissionStarted(&success, &ref_p0, _p1, _p2, (byte) (_p3 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -87546,10 +87546,10 @@ public void PlaystatsMissionStarted(ref int _p0, int _p1, int _p2, bool _p3) public void PlaystatsMissionOver(ref int _p0, int _p1, int _p2, bool _p3, bool _p4, bool _p5) { unsafe { - if (fn__playstatsMissionOver == null) fn__playstatsMissionOver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsMissionOver"); + if (fn__playstatsMissionOver == null) fn__playstatsMissionOver = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsMissionOver"); var success = false; var ref_p0 = _p0; - fn__playstatsMissionOver(&success, &ref_p0, _p1, _p2, _p3, _p4, _p5); + fn__playstatsMissionOver(&success, &ref_p0, _p1, _p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); } @@ -87603,7 +87603,7 @@ public void PlaystatsRaceCheckpoint(int _p0, int _p1, int _p2, int _p3, int _p4) public bool _0x6DEE77AFF8C21BD1(ref int _playerAccountId, ref int _posixTime) { unsafe { - if (fn__0x6DEE77AFF8C21BD1 == null) fn__0x6DEE77AFF8C21BD1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6DEE77AFF8C21BD1"); + if (fn__0x6DEE77AFF8C21BD1 == null) fn__0x6DEE77AFF8C21BD1 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6DEE77AFF8C21BD1"); var success = false; var ref_playerAccountId = _playerAccountId; var ref_posixTime = _posixTime; @@ -87611,7 +87611,7 @@ public bool _0x6DEE77AFF8C21BD1(ref int _playerAccountId, ref int _posixTime) _playerAccountId = ref_playerAccountId; _posixTime = ref_posixTime; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88113,55 +88113,55 @@ public int LeaderboardsReadClear(int _p0, int _p1, int _p2) public bool LeaderboardsReadPending(int _p0, int _p1, int _p2) { unsafe { - if (fn__leaderboardsReadPending == null) fn__leaderboardsReadPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadPending"); + if (fn__leaderboardsReadPending == null) fn__leaderboardsReadPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadPending"); var success = false; var result = fn__leaderboardsReadPending(&success, _p0, _p1, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool LeaderboardsReadAnyPending() { unsafe { - if (fn__leaderboardsReadAnyPending == null) fn__leaderboardsReadAnyPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadAnyPending"); + if (fn__leaderboardsReadAnyPending == null) fn__leaderboardsReadAnyPending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadAnyPending"); var success = false; var result = fn__leaderboardsReadAnyPending(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool LeaderboardsReadSuccessful(int _p0, int _p1, int _p2) { unsafe { - if (fn__leaderboardsReadSuccessful == null) fn__leaderboardsReadSuccessful = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadSuccessful"); + if (fn__leaderboardsReadSuccessful == null) fn__leaderboardsReadSuccessful = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsReadSuccessful"); var success = false; var result = fn__leaderboardsReadSuccessful(&success, _p0, _p1, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadFriendsByRow(ref int _p0, ref int _p1, int _p2, bool _p3, int _p4, int _p5) { unsafe { - if (fn__leaderboards2ReadFriendsByRow == null) fn__leaderboards2ReadFriendsByRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadFriendsByRow"); + if (fn__leaderboards2ReadFriendsByRow == null) fn__leaderboards2ReadFriendsByRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadFriendsByRow"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; - var result = fn__leaderboards2ReadFriendsByRow(&success, &ref_p0, &ref_p1, _p2, _p3, _p4, _p5); + var result = fn__leaderboards2ReadFriendsByRow(&success, &ref_p0, &ref_p1, _p2, (byte) (_p3 ? 1 : 0), _p4, _p5); _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByHandle(ref int _p0, ref int _p1) { unsafe { - if (fn__leaderboards2ReadByHandle == null) fn__leaderboards2ReadByHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByHandle"); + if (fn__leaderboards2ReadByHandle == null) fn__leaderboards2ReadByHandle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByHandle"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -88169,14 +88169,14 @@ public bool Leaderboards2ReadByHandle(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByRow(ref int _p0, ref int _p1, int _p2, ref int _p3, int _p4, ref int _p5, int _p6) { unsafe { - if (fn__leaderboards2ReadByRow == null) fn__leaderboards2ReadByRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRow"); + if (fn__leaderboards2ReadByRow == null) fn__leaderboards2ReadByRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRow"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -88188,27 +88188,27 @@ public bool Leaderboards2ReadByRow(ref int _p0, ref int _p1, int _p2, ref int _p _p3 = ref_p3; _p5 = ref_p5; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByRank(ref int _p0, int _p1, int _p2) { unsafe { - if (fn__leaderboards2ReadByRank == null) fn__leaderboards2ReadByRank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRank"); + if (fn__leaderboards2ReadByRank == null) fn__leaderboards2ReadByRank = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRank"); var success = false; var ref_p0 = _p0; var result = fn__leaderboards2ReadByRank(&success, &ref_p0, _p1, _p2); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByRadius(ref int _p0, int _p1, ref int _p2) { unsafe { - if (fn__leaderboards2ReadByRadius == null) fn__leaderboards2ReadByRadius = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRadius"); + if (fn__leaderboards2ReadByRadius == null) fn__leaderboards2ReadByRadius = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByRadius"); var success = false; var ref_p0 = _p0; var ref_p2 = _p2; @@ -88216,40 +88216,40 @@ public bool Leaderboards2ReadByRadius(ref int _p0, int _p1, ref int _p2) _p0 = ref_p0; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByScoreInt(ref int _p0, int _p1, int _p2) { unsafe { - if (fn__leaderboards2ReadByScoreInt == null) fn__leaderboards2ReadByScoreInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByScoreInt"); + if (fn__leaderboards2ReadByScoreInt == null) fn__leaderboards2ReadByScoreInt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByScoreInt"); var success = false; var ref_p0 = _p0; var result = fn__leaderboards2ReadByScoreInt(&success, &ref_p0, _p1, _p2); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByScoreFloat(ref int _p0, float _p1, int _p2) { unsafe { - if (fn__leaderboards2ReadByScoreFloat == null) fn__leaderboards2ReadByScoreFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByScoreFloat"); + if (fn__leaderboards2ReadByScoreFloat == null) fn__leaderboards2ReadByScoreFloat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByScoreFloat"); var success = false; var ref_p0 = _p0; var result = fn__leaderboards2ReadByScoreFloat(&success, &ref_p0, _p1, _p2); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadRankPrediction(ref int _p0, ref int _p1, ref int _p2) { unsafe { - if (fn__leaderboards2ReadRankPrediction == null) fn__leaderboards2ReadRankPrediction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadRankPrediction"); + if (fn__leaderboards2ReadRankPrediction == null) fn__leaderboards2ReadRankPrediction = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadRankPrediction"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -88259,14 +88259,14 @@ public bool Leaderboards2ReadRankPrediction(ref int _p0, ref int _p1, ref int _p _p1 = ref_p1; _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool Leaderboards2ReadByPlatform(ref int _p0, string _gamerHandleCsv, string _platformName) { unsafe { - if (fn__leaderboards2ReadByPlatform == null) fn__leaderboards2ReadByPlatform = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByPlatform"); + if (fn__leaderboards2ReadByPlatform == null) fn__leaderboards2ReadByPlatform = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2ReadByPlatform"); var success = false; var ref_p0 = _p0; var ptr_gamerHandleCsv = MemoryUtils.StringToHGlobalUtf8(_gamerHandleCsv); @@ -88276,20 +88276,20 @@ public bool Leaderboards2ReadByPlatform(ref int _p0, string _gamerHandleCsv, str Marshal.FreeHGlobal(ptr_gamerHandleCsv); Marshal.FreeHGlobal(ptr_platformName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool _0xA0F93D5465B3094D(ref int _p0) { unsafe { - if (fn__0xA0F93D5465B3094D == null) fn__0xA0F93D5465B3094D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA0F93D5465B3094D"); + if (fn__0xA0F93D5465B3094D == null) fn__0xA0F93D5465B3094D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA0F93D5465B3094D"); var success = false; var ref_p0 = _p0; var result = fn__0xA0F93D5465B3094D(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88306,13 +88306,13 @@ public void _0x71B008056E5692D6() public bool _0x34770B9CE0E03B91(int _p0, ref int _p1) { unsafe { - if (fn__0x34770B9CE0E03B91 == null) fn__0x34770B9CE0E03B91 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x34770B9CE0E03B91"); + if (fn__0x34770B9CE0E03B91 == null) fn__0x34770B9CE0E03B91 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x34770B9CE0E03B91"); var success = false; var ref_p1 = _p1; var result = fn__0x34770B9CE0E03B91(&success, _p0, &ref_p1); _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88341,13 +88341,13 @@ public float _0x38491439B6BA7F7D(int _p0, int _p1) public bool Leaderboards2WriteData(ref int _p0) { unsafe { - if (fn__leaderboards2WriteData == null) fn__leaderboards2WriteData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2WriteData"); + if (fn__leaderboards2WriteData == null) fn__leaderboards2WriteData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2WriteData"); var success = false; var ref_p0 = _p0; var result = fn__leaderboards2WriteData(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88374,13 +88374,13 @@ public void LeaderboardsWriteAddColumnLong(int _p0, int _p1, int _p2) public bool LeaderboardsCacheDataRow(ref int _p0) { unsafe { - if (fn__leaderboardsCacheDataRow == null) fn__leaderboardsCacheDataRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsCacheDataRow"); + if (fn__leaderboardsCacheDataRow == null) fn__leaderboardsCacheDataRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsCacheDataRow"); var success = false; var ref_p0 = _p0; var result = fn__leaderboardsCacheDataRow(&success, &ref_p0); _p0 = ref_p0; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88407,11 +88407,11 @@ public void _0x8EC74CEB042E7CFF(int _p0) public bool LeaderboardsGetCacheExists(int _p0) { unsafe { - if (fn__leaderboardsGetCacheExists == null) fn__leaderboardsGetCacheExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsGetCacheExists"); + if (fn__leaderboardsGetCacheExists == null) fn__leaderboardsGetCacheExists = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsGetCacheExists"); var success = false; var result = fn__leaderboardsGetCacheExists(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88440,13 +88440,13 @@ public int LeaderboardsGetCacheNumberOfRows(int _p0) public bool LeaderboardsGetCacheDataRow(int _p0, int _p1, ref int _p2) { unsafe { - if (fn__leaderboardsGetCacheDataRow == null) fn__leaderboardsGetCacheDataRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsGetCacheDataRow"); + if (fn__leaderboardsGetCacheDataRow == null) fn__leaderboardsGetCacheDataRow = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboardsGetCacheDataRow"); var success = false; var ref_p2 = _p2; var result = fn__leaderboardsGetCacheDataRow(&success, _p0, _p1, &ref_p2); _p2 = ref_p2; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88485,11 +88485,11 @@ public void _0x6483C25849031C4F(int _p0, int _p1, int _p2, ref int _p3) public bool _0x5EAD2BF6484852E4() { unsafe { - if (fn__0x5EAD2BF6484852E4 == null) fn__0x5EAD2BF6484852E4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5EAD2BF6484852E4"); + if (fn__0x5EAD2BF6484852E4 == null) fn__0x5EAD2BF6484852E4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5EAD2BF6484852E4"); var success = false; var result = fn__0x5EAD2BF6484852E4(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88596,7 +88596,7 @@ public void StatSetCheatIsActive() public bool Leaderboards2WriteDataForEventType(ref int _p0, ref int _p1) { unsafe { - if (fn__leaderboards2WriteDataForEventType == null) fn__leaderboards2WriteDataForEventType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2WriteDataForEventType"); + if (fn__leaderboards2WriteDataForEventType == null) fn__leaderboards2WriteDataForEventType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_leaderboards2WriteDataForEventType"); var success = false; var ref_p0 = _p0; var ref_p1 = _p1; @@ -88604,7 +88604,7 @@ public bool Leaderboards2WriteDataForEventType(ref int _p0, ref int _p1) _p0 = ref_p0; _p1 = ref_p1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88631,13 +88631,13 @@ public void _0xC847B43F369AC0B5() public bool StatMigrateSave(string _platformName) { unsafe { - if (fn__statMigrateSave == null) fn__statMigrateSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statMigrateSave"); + if (fn__statMigrateSave == null) fn__statMigrateSave = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statMigrateSave"); var success = false; var ptr_platformName = MemoryUtils.StringToHGlobalUtf8(_platformName); var result = fn__statMigrateSave(&success, ptr_platformName); Marshal.FreeHGlobal(ptr_platformName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88714,11 +88714,11 @@ public int StatGetSaveMigrationStatus(ref int _data) public bool StatSaveMigrationCancel() { unsafe { - if (fn__statSaveMigrationCancel == null) fn__statSaveMigrationCancel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSaveMigrationCancel"); + if (fn__statSaveMigrationCancel == null) fn__statSaveMigrationCancel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSaveMigrationCancel"); var success = false; var result = fn__statSaveMigrationCancel(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88736,7 +88736,7 @@ public int StatGetCancelSaveMigrationStatus() public bool StatSaveMigrationConsumeContentUnlock(uint _contentId, string _srcPlatform, string _srcGamerHandle) { unsafe { - if (fn__statSaveMigrationConsumeContentUnlock == null) fn__statSaveMigrationConsumeContentUnlock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSaveMigrationConsumeContentUnlock"); + if (fn__statSaveMigrationConsumeContentUnlock == null) fn__statSaveMigrationConsumeContentUnlock = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_statSaveMigrationConsumeContentUnlock"); var success = false; var ptr_srcPlatform = MemoryUtils.StringToHGlobalUtf8(_srcPlatform); var ptr_srcGamerHandle = MemoryUtils.StringToHGlobalUtf8(_srcGamerHandle); @@ -88744,7 +88744,7 @@ public bool StatSaveMigrationConsumeContentUnlock(uint _contentId, string _srcPl Marshal.FreeHGlobal(ptr_srcPlatform); Marshal.FreeHGlobal(ptr_srcGamerHandle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -88971,11 +88971,11 @@ public int _0x0B8B7F74BF061C6D() public bool _0xB3DA2606774A8E2D() { unsafe { - if (fn__0xB3DA2606774A8E2D == null) fn__0xB3DA2606774A8E2D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB3DA2606774A8E2D"); + if (fn__0xB3DA2606774A8E2D == null) fn__0xB3DA2606774A8E2D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB3DA2606774A8E2D"); var success = false; var result = fn__0xB3DA2606774A8E2D(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -89718,9 +89718,9 @@ public void PlaystatsArenaWarsEnded(ref int _data) public void PlaystatsPassiveMode(bool _p0, int _p1, int _p2, int _p3) { unsafe { - if (fn__playstatsPassiveMode == null) fn__playstatsPassiveMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsPassiveMode"); + if (fn__playstatsPassiveMode == null) fn__playstatsPassiveMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_playstatsPassiveMode"); var success = false; - fn__playstatsPassiveMode(&success, _p0, _p1, _p2, _p3); + fn__playstatsPassiveMode(&success, (byte) (_p0 ? 1 : 0), _p1, _p2, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -90160,31 +90160,31 @@ public void LoadScene(float _x, float _y, float _z) public bool NetworkUpdateLoadScene() { unsafe { - if (fn__networkUpdateLoadScene == null) fn__networkUpdateLoadScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUpdateLoadScene"); + if (fn__networkUpdateLoadScene == null) fn__networkUpdateLoadScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUpdateLoadScene"); var success = false; var result = fn__networkUpdateLoadScene(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsNetworkLoadingScene() { unsafe { - if (fn__isNetworkLoadingScene == null) fn__isNetworkLoadingScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNetworkLoadingScene"); + if (fn__isNetworkLoadingScene == null) fn__isNetworkLoadingScene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNetworkLoadingScene"); var success = false; var result = fn__isNetworkLoadingScene(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetInteriorActive(int _interiorID, bool _toggle) { unsafe { - if (fn__setInteriorActive == null) fn__setInteriorActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorActive"); + if (fn__setInteriorActive == null) fn__setInteriorActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setInteriorActive"); var success = false; - fn__setInteriorActive(&success, _interiorID, _toggle); + fn__setInteriorActive(&success, _interiorID, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90212,11 +90212,11 @@ public void RequestMenuPedModel(uint _model) public bool HasModelLoaded(uint _model) { unsafe { - if (fn__hasModelLoaded == null) fn__hasModelLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasModelLoaded"); + if (fn__hasModelLoaded == null) fn__hasModelLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasModelLoaded"); var success = false; var result = fn__hasModelLoaded(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90245,44 +90245,44 @@ public void SetModelAsNoLongerNeeded(uint _model) public bool IsModelInCdimage(uint _model) { unsafe { - if (fn__isModelInCdimage == null) fn__isModelInCdimage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelInCdimage"); + if (fn__isModelInCdimage == null) fn__isModelInCdimage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelInCdimage"); var success = false; var result = fn__isModelInCdimage(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsModelValid(uint _model) { unsafe { - if (fn__isModelValid == null) fn__isModelValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelValid"); + if (fn__isModelValid == null) fn__isModelValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelValid"); var success = false; var result = fn__isModelValid(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsModelAPed(uint _model) { unsafe { - if (fn__isModelAPed == null) fn__isModelAPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelAPed"); + if (fn__isModelAPed == null) fn__isModelAPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelAPed"); var success = false; var result = fn__isModelAPed(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsModelAVehicle(uint _model) { unsafe { - if (fn__isModelAVehicle == null) fn__isModelAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelAVehicle"); + if (fn__isModelAVehicle == null) fn__isModelAVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isModelAVehicle"); var success = false; var result = fn__isModelAVehicle(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90309,11 +90309,11 @@ public void RequestCollisionForModel(uint _model) public bool HasCollisionForModelLoaded(uint _model) { unsafe { - if (fn__hasCollisionForModelLoaded == null) fn__hasCollisionForModelLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCollisionForModelLoaded"); + if (fn__hasCollisionForModelLoaded == null) fn__hasCollisionForModelLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasCollisionForModelLoaded"); var success = false; var result = fn__hasCollisionForModelLoaded(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90330,13 +90330,13 @@ public void RequestAdditionalCollisionAtCoord(float _x, float _y, float _z) public bool DoesAnimDictExist(string _animDict) { unsafe { - if (fn__doesAnimDictExist == null) fn__doesAnimDictExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesAnimDictExist"); + if (fn__doesAnimDictExist == null) fn__doesAnimDictExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesAnimDictExist"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var result = fn__doesAnimDictExist(&success, ptr_animDict); Marshal.FreeHGlobal(ptr_animDict); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90355,13 +90355,13 @@ public void RequestAnimDict(string _animDict) public bool HasAnimDictLoaded(string _animDict) { unsafe { - if (fn__hasAnimDictLoaded == null) fn__hasAnimDictLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimDictLoaded"); + if (fn__hasAnimDictLoaded == null) fn__hasAnimDictLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimDictLoaded"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var result = fn__hasAnimDictLoaded(&success, ptr_animDict); Marshal.FreeHGlobal(ptr_animDict); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90392,13 +90392,13 @@ public void RequestAnimSet(string _animSet) public bool HasAnimSetLoaded(string _animSet) { unsafe { - if (fn__hasAnimSetLoaded == null) fn__hasAnimSetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimSetLoaded"); + if (fn__hasAnimSetLoaded == null) fn__hasAnimSetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasAnimSetLoaded"); var success = false; var ptr_animSet = MemoryUtils.StringToHGlobalUtf8(_animSet); var result = fn__hasAnimSetLoaded(&success, ptr_animSet); Marshal.FreeHGlobal(ptr_animSet); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90429,13 +90429,13 @@ public void RequestClipSet(string _clipSet) public bool HasClipSetLoaded(string _clipSet) { unsafe { - if (fn__hasClipSetLoaded == null) fn__hasClipSetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClipSetLoaded"); + if (fn__hasClipSetLoaded == null) fn__hasClipSetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasClipSetLoaded"); var success = false; var ptr_clipSet = MemoryUtils.StringToHGlobalUtf8(_clipSet); var result = fn__hasClipSetLoaded(&success, ptr_clipSet); Marshal.FreeHGlobal(ptr_clipSet); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90478,22 +90478,22 @@ public void RemoveIpl(string _iplName) public bool IsIplActive(string _iplName) { unsafe { - if (fn__isIplActive == null) fn__isIplActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isIplActive"); + if (fn__isIplActive == null) fn__isIplActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isIplActive"); var success = false; var ptr_iplName = MemoryUtils.StringToHGlobalUtf8(_iplName); var result = fn__isIplActive(&success, ptr_iplName); Marshal.FreeHGlobal(ptr_iplName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetStreaming(bool _toggle) { unsafe { - if (fn__setStreaming == null) fn__setStreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStreaming"); + if (fn__setStreaming == null) fn__setStreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setStreaming"); var success = false; - fn__setStreaming(&success, _toggle); + fn__setStreaming(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90522,9 +90522,9 @@ public int GetGlobalWaterType() public void SetGamePausesForStreaming(bool _toggle) { unsafe { - if (fn__setGamePausesForStreaming == null) fn__setGamePausesForStreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGamePausesForStreaming"); + if (fn__setGamePausesForStreaming == null) fn__setGamePausesForStreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGamePausesForStreaming"); var success = false; - fn__setGamePausesForStreaming(&success, _toggle); + fn__setGamePausesForStreaming(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90532,9 +90532,9 @@ public void SetGamePausesForStreaming(bool _toggle) public void SetReducePedModelBudget(bool _toggle) { unsafe { - if (fn__setReducePedModelBudget == null) fn__setReducePedModelBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReducePedModelBudget"); + if (fn__setReducePedModelBudget == null) fn__setReducePedModelBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReducePedModelBudget"); var success = false; - fn__setReducePedModelBudget(&success, _toggle); + fn__setReducePedModelBudget(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90542,9 +90542,9 @@ public void SetReducePedModelBudget(bool _toggle) public void SetReduceVehicleModelBudget(bool _toggle) { unsafe { - if (fn__setReduceVehicleModelBudget == null) fn__setReduceVehicleModelBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReduceVehicleModelBudget"); + if (fn__setReduceVehicleModelBudget == null) fn__setReduceVehicleModelBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReduceVehicleModelBudget"); var success = false; - fn__setReduceVehicleModelBudget(&success, _toggle); + fn__setReduceVehicleModelBudget(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90552,9 +90552,9 @@ public void SetReduceVehicleModelBudget(bool _toggle) public void SetDitchPoliceModels(bool _toggle) { unsafe { - if (fn__setDitchPoliceModels == null) fn__setDitchPoliceModels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDitchPoliceModels"); + if (fn__setDitchPoliceModels == null) fn__setDitchPoliceModels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDitchPoliceModels"); var success = false; - fn__setDitchPoliceModels(&success, _toggle); + fn__setDitchPoliceModels(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -90583,11 +90583,11 @@ public void RequestPtfxAsset() public bool HasPtfxAssetLoaded() { unsafe { - if (fn__hasPtfxAssetLoaded == null) fn__hasPtfxAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPtfxAssetLoaded"); + if (fn__hasPtfxAssetLoaded == null) fn__hasPtfxAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPtfxAssetLoaded"); var success = false; var result = fn__hasPtfxAssetLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90616,13 +90616,13 @@ public void RequestNamedPtfxAsset(string _fxName) public bool HasNamedPtfxAssetLoaded(string _fxName) { unsafe { - if (fn__hasNamedPtfxAssetLoaded == null) fn__hasNamedPtfxAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasNamedPtfxAssetLoaded"); + if (fn__hasNamedPtfxAssetLoaded == null) fn__hasNamedPtfxAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasNamedPtfxAssetLoaded"); var success = false; var ptr_fxName = MemoryUtils.StringToHGlobalUtf8(_fxName); var result = fn__hasNamedPtfxAssetLoaded(&success, ptr_fxName); Marshal.FreeHGlobal(ptr_fxName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90693,11 +90693,11 @@ public void SetFocusEntity(int _entity) public bool IsEntityFocus(int _entity) { unsafe { - if (fn__isEntityFocus == null) fn__isEntityFocus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityFocus"); + if (fn__isEntityFocus == null) fn__isEntityFocus = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityFocus"); var success = false; var result = fn__isEntityFocus(&success, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90715,10 +90715,10 @@ public void _0x0811381EF5062FEC(int _p0) public void SetMapdatacullboxEnabled(string _name, bool _toggle) { unsafe { - if (fn__setMapdatacullboxEnabled == null) fn__setMapdatacullboxEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMapdatacullboxEnabled"); + if (fn__setMapdatacullboxEnabled == null) fn__setMapdatacullboxEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMapdatacullboxEnabled"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - fn__setMapdatacullboxEnabled(&success, ptr_name, _toggle); + fn__setMapdatacullboxEnabled(&success, ptr_name, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); } @@ -90780,55 +90780,55 @@ public void StreamvolDelete(int _unused) public bool StreamvolHasLoaded(int _unused) { unsafe { - if (fn__streamvolHasLoaded == null) fn__streamvolHasLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_streamvolHasLoaded"); + if (fn__streamvolHasLoaded == null) fn__streamvolHasLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_streamvolHasLoaded"); var success = false; var result = fn__streamvolHasLoaded(&success, _unused); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool StreamvolIsValid(int _unused) { unsafe { - if (fn__streamvolIsValid == null) fn__streamvolIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_streamvolIsValid"); + if (fn__streamvolIsValid == null) fn__streamvolIsValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_streamvolIsValid"); var success = false; var result = fn__streamvolIsValid(&success, _unused); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsStreamvolActive() { unsafe { - if (fn__isStreamvolActive == null) fn__isStreamvolActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamvolActive"); + if (fn__isStreamvolActive == null) fn__isStreamvolActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isStreamvolActive"); var success = false; var result = fn__isStreamvolActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NewLoadSceneStart(float _posX, float _posY, float _posZ, float _offsetX, float _offsetY, float _offsetZ, float _radius, int _p7) { unsafe { - if (fn__newLoadSceneStart == null) fn__newLoadSceneStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_newLoadSceneStart"); + if (fn__newLoadSceneStart == null) fn__newLoadSceneStart = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_newLoadSceneStart"); var success = false; var result = fn__newLoadSceneStart(&success, _posX, _posY, _posZ, _offsetX, _offsetY, _offsetZ, _radius, _p7); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool NewLoadSceneStartSphere(float _x, float _y, float _z, float _radius, int _p4) { unsafe { - if (fn__newLoadSceneStartSphere == null) fn__newLoadSceneStartSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_newLoadSceneStartSphere"); + if (fn__newLoadSceneStartSphere == null) fn__newLoadSceneStartSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_newLoadSceneStartSphere"); var success = false; var result = fn__newLoadSceneStartSphere(&success, _x, _y, _z, _radius, _p4); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90845,22 +90845,22 @@ public void NewLoadSceneStop() public bool IsNewLoadSceneActive() { unsafe { - if (fn__isNewLoadSceneActive == null) fn__isNewLoadSceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNewLoadSceneActive"); + if (fn__isNewLoadSceneActive == null) fn__isNewLoadSceneActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNewLoadSceneActive"); var success = false; var result = fn__isNewLoadSceneActive(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsNewLoadSceneLoaded() { unsafe { - if (fn__isNewLoadSceneLoaded == null) fn__isNewLoadSceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNewLoadSceneLoaded"); + if (fn__isNewLoadSceneLoaded == null) fn__isNewLoadSceneLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isNewLoadSceneLoaded"); var success = false; var result = fn__isNewLoadSceneLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -90901,11 +90901,11 @@ public void StopPlayerSwitch() public bool IsPlayerSwitchInProgress() { unsafe { - if (fn__isPlayerSwitchInProgress == null) fn__isPlayerSwitchInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerSwitchInProgress"); + if (fn__isPlayerSwitchInProgress == null) fn__isPlayerSwitchInProgress = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayerSwitchInProgress"); var success = false; var result = fn__isPlayerSwitchInProgress(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91039,11 +91039,11 @@ public void AllowPlayerSwitchDescent() public bool IsSwitchReadyForDescent() { unsafe { - if (fn__isSwitchReadyForDescent == null) fn__isSwitchReadyForDescent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSwitchReadyForDescent"); + if (fn__isSwitchReadyForDescent == null) fn__isSwitchReadyForDescent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSwitchReadyForDescent"); var success = false; var result = fn__isSwitchReadyForDescent(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91092,11 +91092,11 @@ public void SwitchInPlayer(int _ped) public bool _0x933BBEEB8C61B5F4() { unsafe { - if (fn__0x933BBEEB8C61B5F4 == null) fn__0x933BBEEB8C61B5F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x933BBEEB8C61B5F4"); + if (fn__0x933BBEEB8C61B5F4 == null) fn__0x933BBEEB8C61B5F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x933BBEEB8C61B5F4"); var success = false; var result = fn__0x933BBEEB8C61B5F4(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91125,11 +91125,11 @@ public int GetPlayerSwitchInterpOutCurrentTime() public bool IsSwitchSkippingDescent() { unsafe { - if (fn__isSwitchSkippingDescent == null) fn__isSwitchSkippingDescent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSwitchSkippingDescent"); + if (fn__isSwitchSkippingDescent == null) fn__isSwitchSkippingDescent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSwitchSkippingDescent"); var success = false; var result = fn__isSwitchSkippingDescent(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91187,9 +91187,9 @@ public void _0x472397322E92A856() public void SetRenderHdOnly(bool _toggle) { unsafe { - if (fn__setRenderHdOnly == null) fn__setRenderHdOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRenderHdOnly"); + if (fn__setRenderHdOnly == null) fn__setRenderHdOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRenderHdOnly"); var success = false; - fn__setRenderHdOnly(&success, _toggle); + fn__setRenderHdOnly(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91231,11 +91231,11 @@ public void _0x63EB2B972A218CAC() public bool _0xFB199266061F820A() { unsafe { - if (fn__0xFB199266061F820A == null) fn__0xFB199266061F820A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFB199266061F820A"); + if (fn__0xFB199266061F820A == null) fn__0xFB199266061F820A = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xFB199266061F820A"); var success = false; var result = fn__0xFB199266061F820A(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91275,11 +91275,11 @@ public void PrefetchSrl(string _srl) public bool IsSrlLoaded() { unsafe { - if (fn__isSrlLoaded == null) fn__isSrlLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSrlLoaded"); + if (fn__isSrlLoaded == null) fn__isSrlLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSrlLoaded"); var success = false; var result = fn__isSrlLoaded(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91336,9 +91336,9 @@ public void _0xBEB2D9A1D9A8F55A(int _p0, int _p1, int _p2, int _p3) public void _0x20C6C7E4EB082A7F(bool _p0) { unsafe { - if (fn__0x20C6C7E4EB082A7F == null) fn__0x20C6C7E4EB082A7F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x20C6C7E4EB082A7F"); + if (fn__0x20C6C7E4EB082A7F == null) fn__0x20C6C7E4EB082A7F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x20C6C7E4EB082A7F"); var success = false; - fn__0x20C6C7E4EB082A7F(&success, _p0); + fn__0x20C6C7E4EB082A7F(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91396,11 +91396,11 @@ public void ShutdownCreatorBudget() public bool AddModelToCreatorBudget(uint _modelHash) { unsafe { - if (fn__addModelToCreatorBudget == null) fn__addModelToCreatorBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addModelToCreatorBudget"); + if (fn__addModelToCreatorBudget == null) fn__addModelToCreatorBudget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addModelToCreatorBudget"); var success = false; var result = fn__addModelToCreatorBudget(&success, _modelHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -91428,10 +91428,10 @@ public float GetUsedCreatorModelMemoryPercentage() public void SetIslandHopperEnabled(string _name, bool _toggle) { unsafe { - if (fn__setIslandHopperEnabled == null) fn__setIslandHopperEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIslandHopperEnabled"); + if (fn__setIslandHopperEnabled == null) fn__setIslandHopperEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setIslandHopperEnabled"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - fn__setIslandHopperEnabled(&success, ptr_name, _toggle); + fn__setIslandHopperEnabled(&success, ptr_name, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); } @@ -91463,9 +91463,9 @@ public void TaskStandStill(int _ped, int _time) public void TaskJump(int _ped, bool _unused, int _p2, int _p3) { unsafe { - if (fn__taskJump == null) fn__taskJump = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskJump"); + if (fn__taskJump == null) fn__taskJump = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskJump"); var success = false; - fn__taskJump(&success, _ped, _unused, _p2, _p3); + fn__taskJump(&success, _ped, (byte) (_unused ? 1 : 0), _p2, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -91487,9 +91487,9 @@ public void TaskCower(int _ped, int _duration) public void TaskHandsUp(int _ped, int _duration, int _facingPed, int _p3, bool _p4) { unsafe { - if (fn__taskHandsUp == null) fn__taskHandsUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskHandsUp"); + if (fn__taskHandsUp == null) fn__taskHandsUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskHandsUp"); var success = false; - fn__taskHandsUp(&success, _ped, _duration, _facingPed, _p3, _p4); + fn__taskHandsUp(&success, _ped, _duration, _facingPed, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91561,9 +91561,9 @@ public void TaskGetOffBoat(int _ped, int _boat) public void TaskSkyDive(int _ped, bool _p1) { unsafe { - if (fn__taskSkyDive == null) fn__taskSkyDive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSkyDive"); + if (fn__taskSkyDive == null) fn__taskSkyDive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSkyDive"); var success = false; - fn__taskSkyDive(&success, _ped, _p1); + fn__taskSkyDive(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91572,9 +91572,9 @@ public void TaskSkyDive(int _ped, bool _p1) public void TaskParachute(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__taskParachute == null) fn__taskParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskParachute"); + if (fn__taskParachute == null) fn__taskParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskParachute"); var success = false; - fn__taskParachute(&success, _ped, _p1, _p2); + fn__taskParachute(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91668,9 +91668,9 @@ public void TaskVehicleDriveWander(int _ped, int _vehicle, float _speed, int _dr public void TaskFollowToOffsetOfEntity(int _ped, int _entity, float _offsetX, float _offsetY, float _offsetZ, float _movementSpeed, int _timeout, float _stoppingRange, bool _persistFollowing) { unsafe { - if (fn__taskFollowToOffsetOfEntity == null) fn__taskFollowToOffsetOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskFollowToOffsetOfEntity"); + if (fn__taskFollowToOffsetOfEntity == null) fn__taskFollowToOffsetOfEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskFollowToOffsetOfEntity"); var success = false; - fn__taskFollowToOffsetOfEntity(&success, _ped, _entity, _offsetX, _offsetY, _offsetZ, _movementSpeed, _timeout, _stoppingRange, _persistFollowing); + fn__taskFollowToOffsetOfEntity(&success, _ped, _entity, _offsetX, _offsetY, _offsetZ, _movementSpeed, _timeout, _stoppingRange, (byte) (_persistFollowing ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91758,9 +91758,9 @@ public void TaskGoToEntity(int _entity, int _target, int _duration, float _dista public void TaskSmartFleeCoord(int _ped, float _x, float _y, float _z, float _distance, int _time, bool _p6, bool _p7) { unsafe { - if (fn__taskSmartFleeCoord == null) fn__taskSmartFleeCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSmartFleeCoord"); + if (fn__taskSmartFleeCoord == null) fn__taskSmartFleeCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSmartFleeCoord"); var success = false; - fn__taskSmartFleeCoord(&success, _ped, _x, _y, _z, _distance, _time, _p6, _p7); + fn__taskSmartFleeCoord(&success, _ped, _x, _y, _z, _distance, _time, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91771,9 +91771,9 @@ public void TaskSmartFleeCoord(int _ped, float _x, float _y, float _z, float _di public void TaskSmartFleePed(int _ped, int _fleeTarget, float _distance, int _fleeTime, bool _p4, bool _p5) { unsafe { - if (fn__taskSmartFleePed == null) fn__taskSmartFleePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSmartFleePed"); + if (fn__taskSmartFleePed == null) fn__taskSmartFleePed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSmartFleePed"); var success = false; - fn__taskSmartFleePed(&success, _ped, _fleeTarget, _distance, _fleeTime, _p4, _p5); + fn__taskSmartFleePed(&success, _ped, _fleeTarget, _distance, _fleeTime, (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91840,9 +91840,9 @@ public void TaskWanderSpecific(int _p0, int _p1, int _p2, int _p3) public void TaskVehiclePark(int _ped, int _vehicle, float _x, float _y, float _z, float _heading, int _mode, float _radius, bool _keepEngineOn) { unsafe { - if (fn__taskVehiclePark == null) fn__taskVehiclePark = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehiclePark"); + if (fn__taskVehiclePark == null) fn__taskVehiclePark = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehiclePark"); var success = false; - fn__taskVehiclePark(&success, _ped, _vehicle, _x, _y, _z, _heading, _mode, _radius, _keepEngineOn); + fn__taskVehiclePark(&success, _ped, _vehicle, _x, _y, _z, _heading, _mode, _radius, (byte) (_keepEngineOn ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91875,9 +91875,9 @@ public void TaskPlantBomb(int _ped, float _x, float _y, float _z, float _heading public void TaskFollowNavMeshToCoord(int _ped, float _x, float _y, float _z, float _speed, int _timeout, float _stoppingRange, bool _persistFollowing, float _unk) { unsafe { - if (fn__taskFollowNavMeshToCoord == null) fn__taskFollowNavMeshToCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskFollowNavMeshToCoord"); + if (fn__taskFollowNavMeshToCoord == null) fn__taskFollowNavMeshToCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskFollowNavMeshToCoord"); var success = false; - fn__taskFollowNavMeshToCoord(&success, _ped, _x, _y, _z, _speed, _timeout, _stoppingRange, _persistFollowing, _unk); + fn__taskFollowNavMeshToCoord(&success, _ped, _x, _y, _z, _speed, _timeout, _stoppingRange, (byte) (_persistFollowing ? 1 : 0), _unk); if (!success) throw new Exception("Native execution failed"); } } @@ -91897,9 +91897,9 @@ public void TaskFollowNavMeshToCoordAdvanced(int _ped, float _x, float _y, float public void SetPedPathCanUseClimbovers(int _ped, bool _Toggle) { unsafe { - if (fn__setPedPathCanUseClimbovers == null) fn__setPedPathCanUseClimbovers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanUseClimbovers"); + if (fn__setPedPathCanUseClimbovers == null) fn__setPedPathCanUseClimbovers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanUseClimbovers"); var success = false; - fn__setPedPathCanUseClimbovers(&success, _ped, _Toggle); + fn__setPedPathCanUseClimbovers(&success, _ped, (byte) (_Toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91908,9 +91908,9 @@ public void SetPedPathCanUseClimbovers(int _ped, bool _Toggle) public void SetPedPathCanUseLadders(int _ped, bool _Toggle) { unsafe { - if (fn__setPedPathCanUseLadders == null) fn__setPedPathCanUseLadders = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanUseLadders"); + if (fn__setPedPathCanUseLadders == null) fn__setPedPathCanUseLadders = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanUseLadders"); var success = false; - fn__setPedPathCanUseLadders(&success, _ped, _Toggle); + fn__setPedPathCanUseLadders(&success, _ped, (byte) (_Toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91919,9 +91919,9 @@ public void SetPedPathCanUseLadders(int _ped, bool _Toggle) public void SetPedPathCanDropFromHeight(int _ped, bool _Toggle) { unsafe { - if (fn__setPedPathCanDropFromHeight == null) fn__setPedPathCanDropFromHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanDropFromHeight"); + if (fn__setPedPathCanDropFromHeight == null) fn__setPedPathCanDropFromHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathCanDropFromHeight"); var success = false; - fn__setPedPathCanDropFromHeight(&success, _ped, _Toggle); + fn__setPedPathCanDropFromHeight(&success, _ped, (byte) (_Toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91941,9 +91941,9 @@ public void SetPedPathClimbCostModifier(int _ped, float _modifier) public void SetPedPathMayEnterWater(int _ped, bool _mayEnterWater) { unsafe { - if (fn__setPedPathMayEnterWater == null) fn__setPedPathMayEnterWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathMayEnterWater"); + if (fn__setPedPathMayEnterWater == null) fn__setPedPathMayEnterWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathMayEnterWater"); var success = false; - fn__setPedPathMayEnterWater(&success, _ped, _mayEnterWater); + fn__setPedPathMayEnterWater(&success, _ped, (byte) (_mayEnterWater ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91952,9 +91952,9 @@ public void SetPedPathMayEnterWater(int _ped, bool _mayEnterWater) public void SetPedPathPreferToAvoidWater(int _ped, bool _avoidWater) { unsafe { - if (fn__setPedPathPreferToAvoidWater == null) fn__setPedPathPreferToAvoidWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathPreferToAvoidWater"); + if (fn__setPedPathPreferToAvoidWater == null) fn__setPedPathPreferToAvoidWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathPreferToAvoidWater"); var success = false; - fn__setPedPathPreferToAvoidWater(&success, _ped, _avoidWater); + fn__setPedPathPreferToAvoidWater(&success, _ped, (byte) (_avoidWater ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91963,9 +91963,9 @@ public void SetPedPathPreferToAvoidWater(int _ped, bool _avoidWater) public void SetPedPathAvoidFire(int _ped, bool _avoidFire) { unsafe { - if (fn__setPedPathAvoidFire == null) fn__setPedPathAvoidFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathAvoidFire"); + if (fn__setPedPathAvoidFire == null) fn__setPedPathAvoidFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedPathAvoidFire"); var success = false; - fn__setPedPathAvoidFire(&success, _ped, _avoidFire); + fn__setPedPathAvoidFire(&success, _ped, (byte) (_avoidFire ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -91984,13 +91984,13 @@ public void SetGlobalMinBirdFlightHeight(float _height) public int GetNavmeshRouteDistanceRemaining(int _ped, ref float _distanceRemaining, ref bool _isPathReady) { unsafe { - if (fn__getNavmeshRouteDistanceRemaining == null) fn__getNavmeshRouteDistanceRemaining = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNavmeshRouteDistanceRemaining"); + if (fn__getNavmeshRouteDistanceRemaining == null) fn__getNavmeshRouteDistanceRemaining = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNavmeshRouteDistanceRemaining"); var success = false; var ref_distanceRemaining = _distanceRemaining; - var ref_isPathReady = _isPathReady; + var ref_isPathReady = (byte) (_isPathReady ? 1 : 0); var result = fn__getNavmeshRouteDistanceRemaining(&success, _ped, &ref_distanceRemaining, &ref_isPathReady); _distanceRemaining = ref_distanceRemaining; - _isPathReady = ref_isPathReady; + _isPathReady = ref_isPathReady == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); return result; } @@ -92012,11 +92012,11 @@ public int GetNavmeshRouteResult(int _ped) public bool _0x3E38E28A1D80DDF6(int _ped) { unsafe { - if (fn__0x3E38E28A1D80DDF6 == null) fn__0x3E38E28A1D80DDF6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3E38E28A1D80DDF6"); + if (fn__0x3E38E28A1D80DDF6 == null) fn__0x3E38E28A1D80DDF6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3E38E28A1D80DDF6"); var success = false; var result = fn__0x3E38E28A1D80DDF6(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -92024,9 +92024,9 @@ public bool _0x3E38E28A1D80DDF6(int _ped) public void TaskGoToCoordAnyMeans(int _ped, float _x, float _y, float _z, float _speed, int _p5, bool _p6, int _walkingStyle, float _p8) { unsafe { - if (fn__taskGoToCoordAnyMeans == null) fn__taskGoToCoordAnyMeans = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeans"); + if (fn__taskGoToCoordAnyMeans == null) fn__taskGoToCoordAnyMeans = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeans"); var success = false; - fn__taskGoToCoordAnyMeans(&success, _ped, _x, _y, _z, _speed, _p5, _p6, _walkingStyle, _p8); + fn__taskGoToCoordAnyMeans(&success, _ped, _x, _y, _z, _speed, _p5, (byte) (_p6 ? 1 : 0), _walkingStyle, _p8); if (!success) throw new Exception("Native execution failed"); } } @@ -92035,9 +92035,9 @@ public void TaskGoToCoordAnyMeans(int _ped, float _x, float _y, float _z, float public void TaskGoToCoordAnyMeansExtraParams(int _ped, float _x, float _y, float _z, float _speed, int _p5, bool _p6, int _walkingStyle, float _p8, int _p9, int _p10, int _p11, int _p12) { unsafe { - if (fn__taskGoToCoordAnyMeansExtraParams == null) fn__taskGoToCoordAnyMeansExtraParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeansExtraParams"); + if (fn__taskGoToCoordAnyMeansExtraParams == null) fn__taskGoToCoordAnyMeansExtraParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeansExtraParams"); var success = false; - fn__taskGoToCoordAnyMeansExtraParams(&success, _ped, _x, _y, _z, _speed, _p5, _p6, _walkingStyle, _p8, _p9, _p10, _p11, _p12); + fn__taskGoToCoordAnyMeansExtraParams(&success, _ped, _x, _y, _z, _speed, _p5, (byte) (_p6 ? 1 : 0), _walkingStyle, _p8, _p9, _p10, _p11, _p12); if (!success) throw new Exception("Native execution failed"); } } @@ -92046,9 +92046,9 @@ public void TaskGoToCoordAnyMeansExtraParams(int _ped, float _x, float _y, float public void TaskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(int _ped, float _x, float _y, float _z, float _speed, int _p5, bool _p6, int _walkingStyle, float _p8, int _p9, int _p10, int _p11, int _p12, int _p13) { unsafe { - if (fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed == null) fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed"); + if (fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed == null) fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed"); var success = false; - fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(&success, _ped, _x, _y, _z, _speed, _p5, _p6, _walkingStyle, _p8, _p9, _p10, _p11, _p12, _p13); + fn__taskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(&success, _ped, _x, _y, _z, _speed, _p5, (byte) (_p6 ? 1 : 0), _walkingStyle, _p8, _p9, _p10, _p11, _p12, _p13); if (!success) throw new Exception("Native execution failed"); } } @@ -92057,11 +92057,11 @@ public void TaskGoToCoordAnyMeansExtraParamsWithCruiseSpeed(int _ped, float _x, public void TaskPlayAnim(int _ped, string _animDictionary, string _animationName, float _blendInSpeed, float _blendOutSpeed, int _duration, int _flag, float _playbackRate, bool _lockX, bool _lockY, bool _lockZ) { unsafe { - if (fn__taskPlayAnim == null) fn__taskPlayAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPlayAnim"); + if (fn__taskPlayAnim == null) fn__taskPlayAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPlayAnim"); var success = false; var ptr_animDictionary = MemoryUtils.StringToHGlobalUtf8(_animDictionary); var ptr_animationName = MemoryUtils.StringToHGlobalUtf8(_animationName); - fn__taskPlayAnim(&success, _ped, ptr_animDictionary, ptr_animationName, _blendInSpeed, _blendOutSpeed, _duration, _flag, _playbackRate, _lockX, _lockY, _lockZ); + fn__taskPlayAnim(&success, _ped, ptr_animDictionary, ptr_animationName, _blendInSpeed, _blendOutSpeed, _duration, _flag, _playbackRate, (byte) (_lockX ? 1 : 0), (byte) (_lockY ? 1 : 0), (byte) (_lockZ ? 1 : 0)); Marshal.FreeHGlobal(ptr_animDictionary); Marshal.FreeHGlobal(ptr_animationName); if (!success) throw new Exception("Native execution failed"); @@ -92135,9 +92135,9 @@ public void PlayEntityScriptedAnim(int _p0, ref int _p1, ref int _p2, ref int _p public void StopAnimPlayback(int _ped, int _p1, bool _p2) { unsafe { - if (fn__stopAnimPlayback == null) fn__stopAnimPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAnimPlayback"); + if (fn__stopAnimPlayback == null) fn__stopAnimPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_stopAnimPlayback"); var success = false; - fn__stopAnimPlayback(&success, _ped, _p1, _p2); + fn__stopAnimPlayback(&success, _ped, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92145,9 +92145,9 @@ public void StopAnimPlayback(int _ped, int _p1, bool _p2) public void SetAnimWeight(int _p0, float _p1, int _p2, int _p3, bool _p4) { unsafe { - if (fn__setAnimWeight == null) fn__setAnimWeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimWeight"); + if (fn__setAnimWeight == null) fn__setAnimWeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimWeight"); var success = false; - fn__setAnimWeight(&success, _p0, _p1, _p2, _p3, _p4); + fn__setAnimWeight(&success, _p0, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92156,9 +92156,9 @@ public void SetAnimWeight(int _p0, float _p1, int _p2, int _p3, bool _p4) public void SetAnimPlaybackTime(int _entity, float _p1, int _p2, bool _p3) { unsafe { - if (fn__setAnimPlaybackTime == null) fn__setAnimPlaybackTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimPlaybackTime"); + if (fn__setAnimPlaybackTime == null) fn__setAnimPlaybackTime = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimPlaybackTime"); var success = false; - fn__setAnimPlaybackTime(&success, _entity, _p1, _p2, _p3); + fn__setAnimPlaybackTime(&success, _entity, _p1, _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92166,9 +92166,9 @@ public void SetAnimPlaybackTime(int _entity, float _p1, int _p2, bool _p3) public void SetAnimRate(int _p0, float _p1, int _p2, bool _p3) { unsafe { - if (fn__setAnimRate == null) fn__setAnimRate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimRate"); + if (fn__setAnimRate == null) fn__setAnimRate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimRate"); var success = false; - fn__setAnimRate(&success, _p0, _p1, _p2, _p3); + fn__setAnimRate(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92176,9 +92176,9 @@ public void SetAnimRate(int _p0, float _p1, int _p2, bool _p3) public void SetAnimLooped(int _p0, bool _p1, int _p2, bool _p3) { unsafe { - if (fn__setAnimLooped == null) fn__setAnimLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimLooped"); + if (fn__setAnimLooped == null) fn__setAnimLooped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAnimLooped"); var success = false; - fn__setAnimLooped(&success, _p0, _p1, _p2, _p3); + fn__setAnimLooped(&success, _p0, (byte) (_p1 ? 1 : 0), _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92187,12 +92187,12 @@ public void SetAnimLooped(int _p0, bool _p1, int _p2, bool _p3) public void TaskPlayPhoneGestureAnimation(int _ped, string _animDict, string _animation, string _boneMaskType, float _p4, float _p5, bool _p6, bool _p7) { unsafe { - if (fn__taskPlayPhoneGestureAnimation == null) fn__taskPlayPhoneGestureAnimation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPlayPhoneGestureAnimation"); + if (fn__taskPlayPhoneGestureAnimation == null) fn__taskPlayPhoneGestureAnimation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPlayPhoneGestureAnimation"); var success = false; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); var ptr_animation = MemoryUtils.StringToHGlobalUtf8(_animation); var ptr_boneMaskType = MemoryUtils.StringToHGlobalUtf8(_boneMaskType); - fn__taskPlayPhoneGestureAnimation(&success, _ped, ptr_animDict, ptr_animation, ptr_boneMaskType, _p4, _p5, _p6, _p7); + fn__taskPlayPhoneGestureAnimation(&success, _ped, ptr_animDict, ptr_animation, ptr_boneMaskType, _p4, _p5, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); Marshal.FreeHGlobal(ptr_animDict); Marshal.FreeHGlobal(ptr_animation); Marshal.FreeHGlobal(ptr_boneMaskType); @@ -92215,11 +92215,11 @@ public void TaskStopPhoneGestureAnimation(int _ped, int _p1) public bool IsPlayingPhoneGestureAnim(int _ped) { unsafe { - if (fn__isPlayingPhoneGestureAnim == null) fn__isPlayingPhoneGestureAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayingPhoneGestureAnim"); + if (fn__isPlayingPhoneGestureAnim == null) fn__isPlayingPhoneGestureAnim = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlayingPhoneGestureAnim"); var success = false; var result = fn__isPlayingPhoneGestureAnim(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -92356,9 +92356,9 @@ public void ClearSequenceTask(ref int _taskSequenceId) public void SetSequenceToRepeat(int _taskSequenceId, bool _repeat) { unsafe { - if (fn__setSequenceToRepeat == null) fn__setSequenceToRepeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSequenceToRepeat"); + if (fn__setSequenceToRepeat == null) fn__setSequenceToRepeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSequenceToRepeat"); var success = false; - fn__setSequenceToRepeat(&success, _taskSequenceId, _repeat); + fn__setSequenceToRepeat(&success, _taskSequenceId, (byte) (_repeat ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92379,11 +92379,11 @@ public int GetSequenceProgress(int _ped) public bool GetIsTaskActive(int _ped, int _taskIndex) { unsafe { - if (fn__getIsTaskActive == null) fn__getIsTaskActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsTaskActive"); + if (fn__getIsTaskActive == null) fn__getIsTaskActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsTaskActive"); var success = false; var result = fn__getIsTaskActive(&success, _ped, _taskIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -92426,9 +92426,9 @@ public void TaskLeaveAnyVehicle(int _ped, int _p1, int _flags) public void TaskAimGunScripted(int _ped, uint _scriptTask, bool _p2, bool _p3) { unsafe { - if (fn__taskAimGunScripted == null) fn__taskAimGunScripted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunScripted"); + if (fn__taskAimGunScripted == null) fn__taskAimGunScripted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunScripted"); var success = false; - fn__taskAimGunScripted(&success, _ped, _scriptTask, _p2, _p3); + fn__taskAimGunScripted(&success, _ped, _scriptTask, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92436,9 +92436,9 @@ public void TaskAimGunScripted(int _ped, uint _scriptTask, bool _p2, bool _p3) public void TaskAimGunScriptedWithTarget(int _p0, int _p1, float _p2, float _p3, float _p4, int _p5, bool _p6, bool _p7) { unsafe { - if (fn__taskAimGunScriptedWithTarget == null) fn__taskAimGunScriptedWithTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunScriptedWithTarget"); + if (fn__taskAimGunScriptedWithTarget == null) fn__taskAimGunScriptedWithTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunScriptedWithTarget"); var success = false; - fn__taskAimGunScriptedWithTarget(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + fn__taskAimGunScriptedWithTarget(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92449,9 +92449,9 @@ public void TaskAimGunScriptedWithTarget(int _p0, int _p1, float _p2, float _p3, public void UpdateTaskAimGunScriptedTarget(int _p0, int _p1, float _p2, float _p3, float _p4, bool _p5) { unsafe { - if (fn__updateTaskAimGunScriptedTarget == null) fn__updateTaskAimGunScriptedTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updateTaskAimGunScriptedTarget"); + if (fn__updateTaskAimGunScriptedTarget == null) fn__updateTaskAimGunScriptedTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_updateTaskAimGunScriptedTarget"); var success = false; - fn__updateTaskAimGunScriptedTarget(&success, _p0, _p1, _p2, _p3, _p4, _p5); + fn__updateTaskAimGunScriptedTarget(&success, _p0, _p1, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92475,9 +92475,9 @@ public string GetClipSetForScriptedGunTask(int _p0) public void TaskAimGunAtEntity(int _ped, int _entity, int _duration, bool _p3) { unsafe { - if (fn__taskAimGunAtEntity == null) fn__taskAimGunAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunAtEntity"); + if (fn__taskAimGunAtEntity == null) fn__taskAimGunAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunAtEntity"); var success = false; - fn__taskAimGunAtEntity(&success, _ped, _entity, _duration, _p3); + fn__taskAimGunAtEntity(&success, _ped, _entity, _duration, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92499,9 +92499,9 @@ public void TaskTurnPedToFaceEntity(int _ped, int _entity, int _duration) public void TaskAimGunAtCoord(int _ped, float _x, float _y, float _z, int _time, bool _p5, bool _p6) { unsafe { - if (fn__taskAimGunAtCoord == null) fn__taskAimGunAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunAtCoord"); + if (fn__taskAimGunAtCoord == null) fn__taskAimGunAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskAimGunAtCoord"); var success = false; - fn__taskAimGunAtCoord(&success, _ped, _x, _y, _z, _time, _p5, _p6); + fn__taskAimGunAtCoord(&success, _ped, _x, _y, _z, _time, (byte) (_p5 ? 1 : 0), (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92578,9 +92578,9 @@ public void TaskGotoEntityOffset(int _ped, int _p1, int _p2, float _x, float _y, public void TaskGotoEntityOffsetXy(int _p0, int _oed, int _duration, float _p3, float _p4, float _p5, float _p6, bool _p7) { unsafe { - if (fn__taskGotoEntityOffsetXy == null) fn__taskGotoEntityOffsetXy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGotoEntityOffsetXy"); + if (fn__taskGotoEntityOffsetXy == null) fn__taskGotoEntityOffsetXy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGotoEntityOffsetXy"); var success = false; - fn__taskGotoEntityOffsetXy(&success, _p0, _oed, _duration, _p3, _p4, _p5, _p6, _p7); + fn__taskGotoEntityOffsetXy(&success, _p0, _oed, _duration, _p3, _p4, _p5, _p6, (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92619,9 +92619,9 @@ public void TaskVehicleTempAction(int _driver, int _vehicle, int _action, int _t public void TaskVehicleMission(int _driver, int _vehicle, int _vehicleTarget, int _missionType, float _p4, int _p5, float _p6, float _p7, bool _DriveAgainstTraffic) { unsafe { - if (fn__taskVehicleMission == null) fn__taskVehicleMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMission"); + if (fn__taskVehicleMission == null) fn__taskVehicleMission = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMission"); var success = false; - fn__taskVehicleMission(&success, _driver, _vehicle, _vehicleTarget, _missionType, _p4, _p5, _p6, _p7, _DriveAgainstTraffic); + fn__taskVehicleMission(&success, _driver, _vehicle, _vehicleTarget, _missionType, _p4, _p5, _p6, _p7, (byte) (_DriveAgainstTraffic ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92636,9 +92636,9 @@ public void TaskVehicleMission(int _driver, int _vehicle, int _vehicleTarget, in public void TaskVehicleMissionPedTarget(int _ped, int _vehicle, int _pedTarget, int _missionType, float _maxSpeed, int _drivingStyle, float _minDistance, float _p7, bool _DriveAgainstTraffic) { unsafe { - if (fn__taskVehicleMissionPedTarget == null) fn__taskVehicleMissionPedTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMissionPedTarget"); + if (fn__taskVehicleMissionPedTarget == null) fn__taskVehicleMissionPedTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMissionPedTarget"); var success = false; - fn__taskVehicleMissionPedTarget(&success, _ped, _vehicle, _pedTarget, _missionType, _maxSpeed, _drivingStyle, _minDistance, _p7, _DriveAgainstTraffic); + fn__taskVehicleMissionPedTarget(&success, _ped, _vehicle, _pedTarget, _missionType, _maxSpeed, _drivingStyle, _minDistance, _p7, (byte) (_DriveAgainstTraffic ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92649,9 +92649,9 @@ public void TaskVehicleMissionPedTarget(int _ped, int _vehicle, int _pedTarget, public void TaskVehicleMissionCoorsTarget(int _ped, int _vehicle, float _x, float _y, float _z, int _p5, int _p6, int _p7, float _p8, float _p9, bool _DriveAgainstTraffic) { unsafe { - if (fn__taskVehicleMissionCoorsTarget == null) fn__taskVehicleMissionCoorsTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMissionCoorsTarget"); + if (fn__taskVehicleMissionCoorsTarget == null) fn__taskVehicleMissionCoorsTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleMissionCoorsTarget"); var success = false; - fn__taskVehicleMissionCoorsTarget(&success, _ped, _vehicle, _x, _y, _z, _p5, _p6, _p7, _p8, _p9, _DriveAgainstTraffic); + fn__taskVehicleMissionCoorsTarget(&success, _ped, _vehicle, _x, _y, _z, _p5, _p6, _p7, _p8, _p9, (byte) (_DriveAgainstTraffic ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92724,9 +92724,9 @@ public void TaskVehicleHeliProtect(int _pilot, int _vehicle, int _entityToFollow public void SetTaskVehicleChaseBehaviorFlag(int _ped, int _flag, bool _set) { unsafe { - if (fn__setTaskVehicleChaseBehaviorFlag == null) fn__setTaskVehicleChaseBehaviorFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaskVehicleChaseBehaviorFlag"); + if (fn__setTaskVehicleChaseBehaviorFlag == null) fn__setTaskVehicleChaseBehaviorFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaskVehicleChaseBehaviorFlag"); var success = false; - fn__setTaskVehicleChaseBehaviorFlag(&success, _ped, _flag, _set); + fn__setTaskVehicleChaseBehaviorFlag(&success, _ped, _flag, (byte) (_set ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -92941,9 +92941,9 @@ public void TaskBoatMission(int _pedDriver, int _boat, int _p2, int _p3, float _ public void TaskDriveBy(int _driverPed, int _targetPed, int _targetVehicle, float _targetX, float _targetY, float _targetZ, float _distanceToShoot, int _pedAccuracy, bool _p8, uint _firingPattern) { unsafe { - if (fn__taskDriveBy == null) fn__taskDriveBy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskDriveBy"); + if (fn__taskDriveBy == null) fn__taskDriveBy = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskDriveBy"); var success = false; - fn__taskDriveBy(&success, _driverPed, _targetPed, _targetVehicle, _targetX, _targetY, _targetZ, _distanceToShoot, _pedAccuracy, _p8, _firingPattern); + fn__taskDriveBy(&success, _driverPed, _targetPed, _targetVehicle, _targetX, _targetY, _targetZ, _distanceToShoot, _pedAccuracy, (byte) (_p8 ? 1 : 0), _firingPattern); if (!success) throw new Exception("Native execution failed"); } } @@ -92980,11 +92980,11 @@ public void ClearDrivebyTaskUnderneathDrivingTask(int _ped) public bool IsDrivebyTaskUnderneathDrivingTask(int _ped) { unsafe { - if (fn__isDrivebyTaskUnderneathDrivingTask == null) fn__isDrivebyTaskUnderneathDrivingTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDrivebyTaskUnderneathDrivingTask"); + if (fn__isDrivebyTaskUnderneathDrivingTask == null) fn__isDrivebyTaskUnderneathDrivingTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isDrivebyTaskUnderneathDrivingTask"); var success = false; var result = fn__isDrivebyTaskUnderneathDrivingTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -92992,11 +92992,11 @@ public bool IsDrivebyTaskUnderneathDrivingTask(int _ped) public bool ControlMountedWeapon(int _ped) { unsafe { - if (fn__controlMountedWeapon == null) fn__controlMountedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_controlMountedWeapon"); + if (fn__controlMountedWeapon == null) fn__controlMountedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_controlMountedWeapon"); var success = false; var result = fn__controlMountedWeapon(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93021,11 +93021,11 @@ public void SetMountedWeaponTarget(int _shootingPed, int _targetPed, int _target public bool IsMountedWeaponTaskUnderneathDrivingTask(int _ped) { unsafe { - if (fn__isMountedWeaponTaskUnderneathDrivingTask == null) fn__isMountedWeaponTaskUnderneathDrivingTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMountedWeaponTaskUnderneathDrivingTask"); + if (fn__isMountedWeaponTaskUnderneathDrivingTask == null) fn__isMountedWeaponTaskUnderneathDrivingTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMountedWeaponTaskUnderneathDrivingTask"); var success = false; var result = fn__isMountedWeaponTaskUnderneathDrivingTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93094,9 +93094,9 @@ public void TaskShootAtEntity(int _entity, int _target, int _duration, uint _fir public void TaskClimb(int _ped, bool _unused) { unsafe { - if (fn__taskClimb == null) fn__taskClimb = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskClimb"); + if (fn__taskClimb == null) fn__taskClimb = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskClimb"); var success = false; - fn__taskClimb(&success, _ped, _unused); + fn__taskClimb(&success, _ped, (byte) (_unused ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93256,9 +93256,9 @@ public void TaskPedSlideToCoordHdgRate(int _ped, float _x, float _y, float _z, f public int AddCoverPoint(float _p0, float _p1, float _p2, float _p3, int _p4, int _p5, int _p6, bool _p7) { unsafe { - if (fn__addCoverPoint == null) fn__addCoverPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addCoverPoint"); + if (fn__addCoverPoint == null) fn__addCoverPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addCoverPoint"); var success = false; - var result = fn__addCoverPoint(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); + var result = fn__addCoverPoint(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -93277,11 +93277,11 @@ public void RemoveCoverPoint(int _coverpoint) public bool DoesScriptedCoverPointExistAtCoords(float _x, float _y, float _z) { unsafe { - if (fn__doesScriptedCoverPointExistAtCoords == null) fn__doesScriptedCoverPointExistAtCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptedCoverPointExistAtCoords"); + if (fn__doesScriptedCoverPointExistAtCoords == null) fn__doesScriptedCoverPointExistAtCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptedCoverPointExistAtCoords"); var success = false; var result = fn__doesScriptedCoverPointExistAtCoords(&success, _x, _y, _z); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93324,9 +93324,9 @@ public void TaskCombatPedTimed(int _p0, int _ped, int _p2, int _p3) public void TaskSeekCoverFromPos(int _ped, float _x, float _y, float _z, int _duration, bool _p5) { unsafe { - if (fn__taskSeekCoverFromPos == null) fn__taskSeekCoverFromPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverFromPos"); + if (fn__taskSeekCoverFromPos == null) fn__taskSeekCoverFromPos = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverFromPos"); var success = false; - fn__taskSeekCoverFromPos(&success, _ped, _x, _y, _z, _duration, _p5); + fn__taskSeekCoverFromPos(&success, _ped, _x, _y, _z, _duration, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93337,9 +93337,9 @@ public void TaskSeekCoverFromPos(int _ped, float _x, float _y, float _z, int _du public void TaskSeekCoverFromPed(int _ped, int _target, int _duration, bool _p3) { unsafe { - if (fn__taskSeekCoverFromPed == null) fn__taskSeekCoverFromPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverFromPed"); + if (fn__taskSeekCoverFromPed == null) fn__taskSeekCoverFromPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverFromPed"); var success = false; - fn__taskSeekCoverFromPed(&success, _ped, _target, _duration, _p3); + fn__taskSeekCoverFromPed(&success, _ped, _target, _duration, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93347,9 +93347,9 @@ public void TaskSeekCoverFromPed(int _ped, int _target, int _duration, bool _p3) public void TaskSeekCoverToCoverPoint(int _p0, int _p1, float _p2, float _p3, float _p4, int _p5, bool _p6) { unsafe { - if (fn__taskSeekCoverToCoverPoint == null) fn__taskSeekCoverToCoverPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverToCoverPoint"); + if (fn__taskSeekCoverToCoverPoint == null) fn__taskSeekCoverToCoverPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverToCoverPoint"); var success = false; - fn__taskSeekCoverToCoverPoint(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6); + fn__taskSeekCoverToCoverPoint(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93358,9 +93358,9 @@ public void TaskSeekCoverToCoverPoint(int _p0, int _p1, float _p2, float _p3, fl public void TaskSeekCoverToCoords(int _ped, float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, int _p7, bool _p8) { unsafe { - if (fn__taskSeekCoverToCoords == null) fn__taskSeekCoverToCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverToCoords"); + if (fn__taskSeekCoverToCoords == null) fn__taskSeekCoverToCoords = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSeekCoverToCoords"); var success = false; - fn__taskSeekCoverToCoords(&success, _ped, _x1, _y1, _z1, _x2, _y2, _z2, _p7, _p8); + fn__taskSeekCoverToCoords(&success, _ped, _x1, _y1, _z1, _x2, _y2, _z2, _p7, (byte) (_p8 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93369,9 +93369,9 @@ public void TaskSeekCoverToCoords(int _ped, float _x1, float _y1, float _z1, flo public void TaskPutPedDirectlyIntoCover(int _ped, float _x, float _y, float _z, int _timeout, bool _p5, float _p6, bool _p7, bool _p8, int _p9, bool _p10) { unsafe { - if (fn__taskPutPedDirectlyIntoCover == null) fn__taskPutPedDirectlyIntoCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPutPedDirectlyIntoCover"); + if (fn__taskPutPedDirectlyIntoCover == null) fn__taskPutPedDirectlyIntoCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPutPedDirectlyIntoCover"); var success = false; - fn__taskPutPedDirectlyIntoCover(&success, _ped, _x, _y, _z, _timeout, _p5, _p6, _p7, _p8, _p9, _p10); + fn__taskPutPedDirectlyIntoCover(&success, _ped, _x, _y, _z, _timeout, (byte) (_p5 ? 1 : 0), _p6, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _p9, (byte) (_p10 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93392,9 +93392,9 @@ public void TaskExitCover(int _p0, int _p1, float _p2, float _p3, float _p4) public void TaskPutPedDirectlyIntoMelee(int _ped, int _meleeTarget, float _p2, float _p3, float _p4, bool _p5) { unsafe { - if (fn__taskPutPedDirectlyIntoMelee == null) fn__taskPutPedDirectlyIntoMelee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPutPedDirectlyIntoMelee"); + if (fn__taskPutPedDirectlyIntoMelee == null) fn__taskPutPedDirectlyIntoMelee = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPutPedDirectlyIntoMelee"); var success = false; - fn__taskPutPedDirectlyIntoMelee(&success, _ped, _meleeTarget, _p2, _p3, _p4, _p5); + fn__taskPutPedDirectlyIntoMelee(&success, _ped, _meleeTarget, _p2, _p3, _p4, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93402,9 +93402,9 @@ public void TaskPutPedDirectlyIntoMelee(int _ped, int _meleeTarget, float _p2, f public void TaskToggleDuck(bool _p0, bool _p1) { unsafe { - if (fn__taskToggleDuck == null) fn__taskToggleDuck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskToggleDuck"); + if (fn__taskToggleDuck == null) fn__taskToggleDuck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskToggleDuck"); var success = false; - fn__taskToggleDuck(&success, _p0, _p1); + fn__taskToggleDuck(&success, (byte) (_p0 ? 1 : 0), (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93413,9 +93413,9 @@ public void TaskToggleDuck(bool _p0, bool _p1) public void TaskGuardCurrentPosition(int _p0, float _p1, float _p2, bool _p3) { unsafe { - if (fn__taskGuardCurrentPosition == null) fn__taskGuardCurrentPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGuardCurrentPosition"); + if (fn__taskGuardCurrentPosition == null) fn__taskGuardCurrentPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGuardCurrentPosition"); var success = false; - fn__taskGuardCurrentPosition(&success, _p0, _p1, _p2, _p3); + fn__taskGuardCurrentPosition(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93489,9 +93489,9 @@ public void SetDriveTaskDrivingStyle(int _ped, int _drivingStyle) public void AddCoverBlockingArea(float _playerX, float _playerY, float _playerZ, float _radiusX, float _radiusY, float _radiusZ, bool _p6, bool _p7, bool _p8, bool _p9) { unsafe { - if (fn__addCoverBlockingArea == null) fn__addCoverBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addCoverBlockingArea"); + if (fn__addCoverBlockingArea == null) fn__addCoverBlockingArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addCoverBlockingArea"); var success = false; - fn__addCoverBlockingArea(&success, _playerX, _playerY, _playerZ, _radiusX, _radiusY, _radiusZ, _p6, _p7, _p8, _p9); + fn__addCoverBlockingArea(&success, _playerX, _playerY, _playerZ, _radiusX, _radiusY, _radiusZ, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), (byte) (_p9 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93530,10 +93530,10 @@ public void _0x1F351CF1C6475734(int _p0, int _p1, int _p2, int _p3, int _p4, int public void TaskStartScenarioInPlace(int _ped, string _scenarioName, int _unkDelay, bool _playEnterAnim) { unsafe { - if (fn__taskStartScenarioInPlace == null) fn__taskStartScenarioInPlace = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskStartScenarioInPlace"); + if (fn__taskStartScenarioInPlace == null) fn__taskStartScenarioInPlace = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskStartScenarioInPlace"); var success = false; var ptr_scenarioName = MemoryUtils.StringToHGlobalUtf8(_scenarioName); - fn__taskStartScenarioInPlace(&success, _ped, ptr_scenarioName, _unkDelay, _playEnterAnim); + fn__taskStartScenarioInPlace(&success, _ped, ptr_scenarioName, _unkDelay, (byte) (_playEnterAnim ? 1 : 0)); Marshal.FreeHGlobal(ptr_scenarioName); if (!success) throw new Exception("Native execution failed"); } @@ -93543,10 +93543,10 @@ public void TaskStartScenarioInPlace(int _ped, string _scenarioName, int _unkDel public void TaskStartScenarioAtPosition(int _ped, string _scenarioName, float _x, float _y, float _z, float _heading, int _duration, bool _sittingScenario, bool _teleport) { unsafe { - if (fn__taskStartScenarioAtPosition == null) fn__taskStartScenarioAtPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskStartScenarioAtPosition"); + if (fn__taskStartScenarioAtPosition == null) fn__taskStartScenarioAtPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskStartScenarioAtPosition"); var success = false; var ptr_scenarioName = MemoryUtils.StringToHGlobalUtf8(_scenarioName); - fn__taskStartScenarioAtPosition(&success, _ped, ptr_scenarioName, _x, _y, _z, _heading, _duration, _sittingScenario, _teleport); + fn__taskStartScenarioAtPosition(&success, _ped, ptr_scenarioName, _x, _y, _z, _heading, _duration, (byte) (_sittingScenario ? 1 : 0), (byte) (_teleport ? 1 : 0)); Marshal.FreeHGlobal(ptr_scenarioName); if (!success) throw new Exception("Native execution failed"); } @@ -93597,35 +93597,35 @@ public void TaskUseNearestScenarioChainToCoordWarp(int _p0, float _p1, float _p2 public bool DoesScenarioExistInArea(float _x, float _y, float _z, float _radius, bool _b) { unsafe { - if (fn__doesScenarioExistInArea == null) fn__doesScenarioExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioExistInArea"); + if (fn__doesScenarioExistInArea == null) fn__doesScenarioExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioExistInArea"); var success = false; - var result = fn__doesScenarioExistInArea(&success, _x, _y, _z, _radius, _b); + var result = fn__doesScenarioExistInArea(&success, _x, _y, _z, _radius, (byte) (_b ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesScenarioOfTypeExistInArea(float _p0, float _p1, float _p2, ref int _p3, float _p4, bool _p5) { unsafe { - if (fn__doesScenarioOfTypeExistInArea == null) fn__doesScenarioOfTypeExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioOfTypeExistInArea"); + if (fn__doesScenarioOfTypeExistInArea == null) fn__doesScenarioOfTypeExistInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioOfTypeExistInArea"); var success = false; var ref_p3 = _p3; - var result = fn__doesScenarioOfTypeExistInArea(&success, _p0, _p1, _p2, &ref_p3, _p4, _p5); + var result = fn__doesScenarioOfTypeExistInArea(&success, _p0, _p1, _p2, &ref_p3, _p4, (byte) (_p5 ? 1 : 0)); _p3 = ref_p3; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScenarioOccupied(float _p0, float _p1, float _p2, float _p3, bool _p4) { unsafe { - if (fn__isScenarioOccupied == null) fn__isScenarioOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioOccupied"); + if (fn__isScenarioOccupied == null) fn__isScenarioOccupied = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioOccupied"); var success = false; - var result = fn__isScenarioOccupied(&success, _p0, _p1, _p2, _p3, _p4); + var result = fn__isScenarioOccupied(&success, _p0, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93633,11 +93633,11 @@ public bool IsScenarioOccupied(float _p0, float _p1, float _p2, float _p3, bool public bool PedHasUseScenarioTask(int _ped) { unsafe { - if (fn__pedHasUseScenarioTask == null) fn__pedHasUseScenarioTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pedHasUseScenarioTask"); + if (fn__pedHasUseScenarioTask == null) fn__pedHasUseScenarioTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_pedHasUseScenarioTask"); var success = false; var result = fn__pedHasUseScenarioTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93659,36 +93659,36 @@ public void PlayAnimOnRunningScenario(int _ped, string _animDict, string _animNa public bool DoesScenarioGroupExist(string _scenarioGroup) { unsafe { - if (fn__doesScenarioGroupExist == null) fn__doesScenarioGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioGroupExist"); + if (fn__doesScenarioGroupExist == null) fn__doesScenarioGroupExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScenarioGroupExist"); var success = false; var ptr_scenarioGroup = MemoryUtils.StringToHGlobalUtf8(_scenarioGroup); var result = fn__doesScenarioGroupExist(&success, ptr_scenarioGroup); Marshal.FreeHGlobal(ptr_scenarioGroup); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsScenarioGroupEnabled(string _scenarioGroup) { unsafe { - if (fn__isScenarioGroupEnabled == null) fn__isScenarioGroupEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioGroupEnabled"); + if (fn__isScenarioGroupEnabled == null) fn__isScenarioGroupEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioGroupEnabled"); var success = false; var ptr_scenarioGroup = MemoryUtils.StringToHGlobalUtf8(_scenarioGroup); var result = fn__isScenarioGroupEnabled(&success, ptr_scenarioGroup); Marshal.FreeHGlobal(ptr_scenarioGroup); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetScenarioGroupEnabled(string _scenarioGroup, bool _p1) { unsafe { - if (fn__setScenarioGroupEnabled == null) fn__setScenarioGroupEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioGroupEnabled"); + if (fn__setScenarioGroupEnabled == null) fn__setScenarioGroupEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioGroupEnabled"); var success = false; var ptr_scenarioGroup = MemoryUtils.StringToHGlobalUtf8(_scenarioGroup); - fn__setScenarioGroupEnabled(&success, ptr_scenarioGroup, _p1); + fn__setScenarioGroupEnabled(&success, ptr_scenarioGroup, (byte) (_p1 ? 1 : 0)); Marshal.FreeHGlobal(ptr_scenarioGroup); if (!success) throw new Exception("Native execution failed"); } @@ -93729,23 +93729,23 @@ public void ResetExclusiveScenarioGroup() public bool IsScenarioTypeEnabled(string _scenarioType) { unsafe { - if (fn__isScenarioTypeEnabled == null) fn__isScenarioTypeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioTypeEnabled"); + if (fn__isScenarioTypeEnabled == null) fn__isScenarioTypeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isScenarioTypeEnabled"); var success = false; var ptr_scenarioType = MemoryUtils.StringToHGlobalUtf8(_scenarioType); var result = fn__isScenarioTypeEnabled(&success, ptr_scenarioType); Marshal.FreeHGlobal(ptr_scenarioType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void SetScenarioTypeEnabled(string _scenarioType, bool _toggle) { unsafe { - if (fn__setScenarioTypeEnabled == null) fn__setScenarioTypeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioTypeEnabled"); + if (fn__setScenarioTypeEnabled == null) fn__setScenarioTypeEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScenarioTypeEnabled"); var success = false; var ptr_scenarioType = MemoryUtils.StringToHGlobalUtf8(_scenarioType); - fn__setScenarioTypeEnabled(&success, ptr_scenarioType, _toggle); + fn__setScenarioTypeEnabled(&success, ptr_scenarioType, (byte) (_toggle ? 1 : 0)); Marshal.FreeHGlobal(ptr_scenarioType); if (!success) throw new Exception("Native execution failed"); } @@ -93765,11 +93765,11 @@ public void ResetScenarioTypesEnabled() public bool IsPedActiveInScenario(int _ped) { unsafe { - if (fn__isPedActiveInScenario == null) fn__isPedActiveInScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedActiveInScenario"); + if (fn__isPedActiveInScenario == null) fn__isPedActiveInScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedActiveInScenario"); var success = false; var result = fn__isPedActiveInScenario(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93777,11 +93777,11 @@ public bool IsPedActiveInScenario(int _ped) public bool IsPedPlayingBaseClipInScenario(int _ped) { unsafe { - if (fn__isPedPlayingBaseClipInScenario == null) fn__isPedPlayingBaseClipInScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPlayingBaseClipInScenario"); + if (fn__isPedPlayingBaseClipInScenario == null) fn__isPedPlayingBaseClipInScenario = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedPlayingBaseClipInScenario"); var success = false; var result = fn__isPedPlayingBaseClipInScenario(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93789,9 +93789,9 @@ public bool IsPedPlayingBaseClipInScenario(int _ped) public void SetPedCanPlayAmbientIdles(int _ped, bool _p1, bool _p2) { unsafe { - if (fn__setPedCanPlayAmbientIdles == null) fn__setPedCanPlayAmbientIdles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientIdles"); + if (fn__setPedCanPlayAmbientIdles == null) fn__setPedCanPlayAmbientIdles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCanPlayAmbientIdles"); var success = false; - fn__setPedCanPlayAmbientIdles(&success, _ped, _p1, _p2); + fn__setPedCanPlayAmbientIdles(&success, _ped, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93843,9 +93843,9 @@ public void TaskThrowProjectile(int _ped, float _x, float _y, float _z, int _p4, public void TaskSwapWeapon(int _ped, bool _p1) { unsafe { - if (fn__taskSwapWeapon == null) fn__taskSwapWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSwapWeapon"); + if (fn__taskSwapWeapon == null) fn__taskSwapWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSwapWeapon"); var success = false; - fn__taskSwapWeapon(&success, _ped, _p1); + fn__taskSwapWeapon(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93854,9 +93854,9 @@ public void TaskSwapWeapon(int _ped, bool _p1) public void TaskReloadWeapon(int _ped, bool _unused) { unsafe { - if (fn__taskReloadWeapon == null) fn__taskReloadWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskReloadWeapon"); + if (fn__taskReloadWeapon == null) fn__taskReloadWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskReloadWeapon"); var success = false; - fn__taskReloadWeapon(&success, _ped, _unused); + fn__taskReloadWeapon(&success, _ped, (byte) (_unused ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -93865,11 +93865,11 @@ public void TaskReloadWeapon(int _ped, bool _unused) public bool IsPedGettingUp(int _ped) { unsafe { - if (fn__isPedGettingUp == null) fn__isPedGettingUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGettingUp"); + if (fn__isPedGettingUp == null) fn__isPedGettingUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedGettingUp"); var success = false; var result = fn__isPedGettingUp(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93890,11 +93890,11 @@ public void TaskWrithe(int _ped, int _target, int _time, int _p3, int _p4, int _ public bool IsPedInWrithe(int _ped) { unsafe { - if (fn__isPedInWrithe == null) fn__isPedInWrithe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInWrithe"); + if (fn__isPedInWrithe == null) fn__isPedInWrithe = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedInWrithe"); var success = false; var result = fn__isPedInWrithe(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -93968,10 +93968,10 @@ public void DeletePatrolRoute(string _patrolRoute) public void TaskPatrol(int _ped, string _p1, int _p2, bool _p3, bool _p4) { unsafe { - if (fn__taskPatrol == null) fn__taskPatrol = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPatrol"); + if (fn__taskPatrol == null) fn__taskPatrol = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskPatrol"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); - fn__taskPatrol(&success, _ped, ptr_p1, _p2, _p3, _p4); + fn__taskPatrol(&success, _ped, ptr_p1, _p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); Marshal.FreeHGlobal(ptr_p1); if (!success) throw new Exception("Native execution failed"); } @@ -94077,9 +94077,9 @@ public void TaskVehicleGotoNavmesh(int _ped, int _vehicle, float _x, float _y, f public void TaskGoToCoordWhileAimingAtCoord(int _ped, float _x, float _y, float _z, float _aimAtX, float _aimAtY, float _aimAtZ, float _moveSpeed, bool _p8, float _p9, float _p10, bool _p11, int _flags, bool _p13, uint _firingPattern) { unsafe { - if (fn__taskGoToCoordWhileAimingAtCoord == null) fn__taskGoToCoordWhileAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordWhileAimingAtCoord"); + if (fn__taskGoToCoordWhileAimingAtCoord == null) fn__taskGoToCoordWhileAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordWhileAimingAtCoord"); var success = false; - fn__taskGoToCoordWhileAimingAtCoord(&success, _ped, _x, _y, _z, _aimAtX, _aimAtY, _aimAtZ, _moveSpeed, _p8, _p9, _p10, _p11, _flags, _p13, _firingPattern); + fn__taskGoToCoordWhileAimingAtCoord(&success, _ped, _x, _y, _z, _aimAtX, _aimAtY, _aimAtZ, _moveSpeed, (byte) (_p8 ? 1 : 0), _p9, _p10, (byte) (_p11 ? 1 : 0), _flags, (byte) (_p13 ? 1 : 0), _firingPattern); if (!success) throw new Exception("Native execution failed"); } } @@ -94087,9 +94087,9 @@ public void TaskGoToCoordWhileAimingAtCoord(int _ped, float _x, float _y, float public void TaskGoToCoordWhileAimingAtEntity(int _p0, float _p1, float _p2, float _p3, int _p4, float _p5, bool _p6, float _p7, float _p8, bool _p9, int _p10, bool _p11, int _p12, int _p13) { unsafe { - if (fn__taskGoToCoordWhileAimingAtEntity == null) fn__taskGoToCoordWhileAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordWhileAimingAtEntity"); + if (fn__taskGoToCoordWhileAimingAtEntity == null) fn__taskGoToCoordWhileAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordWhileAimingAtEntity"); var success = false; - fn__taskGoToCoordWhileAimingAtEntity(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, _p11, _p12, _p13); + fn__taskGoToCoordWhileAimingAtEntity(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), _p7, _p8, (byte) (_p9 ? 1 : 0), _p10, (byte) (_p11 ? 1 : 0), _p12, _p13); if (!success) throw new Exception("Native execution failed"); } } @@ -94098,9 +94098,9 @@ public void TaskGoToCoordWhileAimingAtEntity(int _p0, float _p1, float _p2, floa public void TaskGoToCoordAndAimAtHatedEntitiesNearCoord(int _pedHandle, float _goToLocationX, float _goToLocationY, float _goToLocationZ, float _focusLocationX, float _focusLocationY, float _focusLocationZ, float _speed, bool _shootAtEnemies, float _distanceToStopAt, float _noRoadsDistance, bool _unkTrue, int _unkFlag, int _aimingFlag, uint _firingPattern) { unsafe { - if (fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord == null) fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAndAimAtHatedEntitiesNearCoord"); + if (fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord == null) fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToCoordAndAimAtHatedEntitiesNearCoord"); var success = false; - fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord(&success, _pedHandle, _goToLocationX, _goToLocationY, _goToLocationZ, _focusLocationX, _focusLocationY, _focusLocationZ, _speed, _shootAtEnemies, _distanceToStopAt, _noRoadsDistance, _unkTrue, _unkFlag, _aimingFlag, _firingPattern); + fn__taskGoToCoordAndAimAtHatedEntitiesNearCoord(&success, _pedHandle, _goToLocationX, _goToLocationY, _goToLocationZ, _focusLocationX, _focusLocationY, _focusLocationZ, _speed, (byte) (_shootAtEnemies ? 1 : 0), _distanceToStopAt, _noRoadsDistance, (byte) (_unkTrue ? 1 : 0), _unkFlag, _aimingFlag, _firingPattern); if (!success) throw new Exception("Native execution failed"); } } @@ -94108,9 +94108,9 @@ public void TaskGoToCoordAndAimAtHatedEntitiesNearCoord(int _pedHandle, float _g public void TaskGoToEntityWhileAimingAtCoord(int _p0, int _p1, float _p2, float _p3, float _p4, float _p5, bool _p6, float _p7, float _p8, bool _p9, bool _p10, int _p11) { unsafe { - if (fn__taskGoToEntityWhileAimingAtCoord == null) fn__taskGoToEntityWhileAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToEntityWhileAimingAtCoord"); + if (fn__taskGoToEntityWhileAimingAtCoord == null) fn__taskGoToEntityWhileAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToEntityWhileAimingAtCoord"); var success = false; - fn__taskGoToEntityWhileAimingAtCoord(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, _p11); + fn__taskGoToEntityWhileAimingAtCoord(&success, _p0, _p1, _p2, _p3, _p4, _p5, (byte) (_p6 ? 1 : 0), _p7, _p8, (byte) (_p9 ? 1 : 0), (byte) (_p10 ? 1 : 0), _p11); if (!success) throw new Exception("Native execution failed"); } } @@ -94125,9 +94125,9 @@ public void TaskGoToEntityWhileAimingAtCoord(int _p0, int _p1, float _p2, float public void TaskGoToEntityWhileAimingAtEntity(int _ped, int _entityToWalkTo, int _entityToAimAt, float _speed, bool _shootatEntity, float _p5, float _p6, bool _p7, bool _p8, uint _firingPattern) { unsafe { - if (fn__taskGoToEntityWhileAimingAtEntity == null) fn__taskGoToEntityWhileAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToEntityWhileAimingAtEntity"); + if (fn__taskGoToEntityWhileAimingAtEntity == null) fn__taskGoToEntityWhileAimingAtEntity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskGoToEntityWhileAimingAtEntity"); var success = false; - fn__taskGoToEntityWhileAimingAtEntity(&success, _ped, _entityToWalkTo, _entityToAimAt, _speed, _shootatEntity, _p5, _p6, _p7, _p8, _firingPattern); + fn__taskGoToEntityWhileAimingAtEntity(&success, _ped, _entityToWalkTo, _entityToAimAt, _speed, (byte) (_shootatEntity ? 1 : 0), _p5, _p6, (byte) (_p7 ? 1 : 0), (byte) (_p8 ? 1 : 0), _firingPattern); if (!success) throw new Exception("Native execution failed"); } } @@ -94158,13 +94158,13 @@ public void RequestWaypointRecording(string _name) public bool GetIsWaypointRecordingLoaded(string _name) { unsafe { - if (fn__getIsWaypointRecordingLoaded == null) fn__getIsWaypointRecordingLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWaypointRecordingLoaded"); + if (fn__getIsWaypointRecordingLoaded == null) fn__getIsWaypointRecordingLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWaypointRecordingLoaded"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__getIsWaypointRecordingLoaded(&success, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94183,7 +94183,7 @@ public void RemoveWaypointRecording(string _name) public bool WaypointRecordingGetNumPoints(string _name, ref int _points) { unsafe { - if (fn__waypointRecordingGetNumPoints == null) fn__waypointRecordingGetNumPoints = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetNumPoints"); + if (fn__waypointRecordingGetNumPoints == null) fn__waypointRecordingGetNumPoints = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetNumPoints"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var ref_points = _points; @@ -94191,14 +94191,14 @@ public bool WaypointRecordingGetNumPoints(string _name, ref int _points) Marshal.FreeHGlobal(ptr_name); _points = ref_points; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool WaypointRecordingGetCoord(string _name, int _point, ref Vector3 _coord) { unsafe { - if (fn__waypointRecordingGetCoord == null) fn__waypointRecordingGetCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetCoord"); + if (fn__waypointRecordingGetCoord == null) fn__waypointRecordingGetCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetCoord"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var ref_coord = _coord; @@ -94206,7 +94206,7 @@ public bool WaypointRecordingGetCoord(string _name, int _point, ref Vector3 _coo Marshal.FreeHGlobal(ptr_name); _coord = ref_coord; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94226,7 +94226,7 @@ public float WaypointRecordingGetSpeedAtPoint(string _name, int _point) public bool WaypointRecordingGetClosestWaypoint(string _name, float _x, float _y, float _z, ref int _point) { unsafe { - if (fn__waypointRecordingGetClosestWaypoint == null) fn__waypointRecordingGetClosestWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetClosestWaypoint"); + if (fn__waypointRecordingGetClosestWaypoint == null) fn__waypointRecordingGetClosestWaypoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointRecordingGetClosestWaypoint"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var ref_point = _point; @@ -94234,7 +94234,7 @@ public bool WaypointRecordingGetClosestWaypoint(string _name, float _x, float _y Marshal.FreeHGlobal(ptr_name); _point = ref_point; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94251,11 +94251,11 @@ public void TaskFollowWaypointRecording(int _p0, int _p1, int _p2, int _p3, int public bool IsWaypointPlaybackGoingOnForPed(int _p0) { unsafe { - if (fn__isWaypointPlaybackGoingOnForPed == null) fn__isWaypointPlaybackGoingOnForPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointPlaybackGoingOnForPed"); + if (fn__isWaypointPlaybackGoingOnForPed == null) fn__isWaypointPlaybackGoingOnForPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointPlaybackGoingOnForPed"); var success = false; var result = fn__isWaypointPlaybackGoingOnForPed(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94309,20 +94309,20 @@ public float GetWaypointDistanceAlongRoute(string _p0, int _p1) public bool WaypointPlaybackGetIsPaused(int _p0) { unsafe { - if (fn__waypointPlaybackGetIsPaused == null) fn__waypointPlaybackGetIsPaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackGetIsPaused"); + if (fn__waypointPlaybackGetIsPaused == null) fn__waypointPlaybackGetIsPaused = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackGetIsPaused"); var success = false; var result = fn__waypointPlaybackGetIsPaused(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void WaypointPlaybackPause(int _p0, bool _p1, bool _p2) { unsafe { - if (fn__waypointPlaybackPause == null) fn__waypointPlaybackPause = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackPause"); + if (fn__waypointPlaybackPause == null) fn__waypointPlaybackPause = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackPause"); var success = false; - fn__waypointPlaybackPause(&success, _p0, _p1, _p2); + fn__waypointPlaybackPause(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94330,9 +94330,9 @@ public void WaypointPlaybackPause(int _p0, bool _p1, bool _p2) public void WaypointPlaybackResume(int _p0, bool _p1, int _p2, int _p3) { unsafe { - if (fn__waypointPlaybackResume == null) fn__waypointPlaybackResume = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackResume"); + if (fn__waypointPlaybackResume == null) fn__waypointPlaybackResume = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackResume"); var success = false; - fn__waypointPlaybackResume(&success, _p0, _p1, _p2, _p3); + fn__waypointPlaybackResume(&success, _p0, (byte) (_p1 ? 1 : 0), _p2, _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -94340,9 +94340,9 @@ public void WaypointPlaybackResume(int _p0, bool _p1, int _p2, int _p3) public void WaypointPlaybackOverrideSpeed(int _p0, float _p1, bool _p2) { unsafe { - if (fn__waypointPlaybackOverrideSpeed == null) fn__waypointPlaybackOverrideSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackOverrideSpeed"); + if (fn__waypointPlaybackOverrideSpeed == null) fn__waypointPlaybackOverrideSpeed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackOverrideSpeed"); var success = false; - fn__waypointPlaybackOverrideSpeed(&success, _p0, _p1, _p2); + fn__waypointPlaybackOverrideSpeed(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94360,10 +94360,10 @@ public void WaypointPlaybackUseDefaultSpeed(int _p0) public void UseWaypointRecordingAsAssistedMovementRoute(string _name, bool _p1, float _p2, float _p3) { unsafe { - if (fn__useWaypointRecordingAsAssistedMovementRoute == null) fn__useWaypointRecordingAsAssistedMovementRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_useWaypointRecordingAsAssistedMovementRoute"); + if (fn__useWaypointRecordingAsAssistedMovementRoute == null) fn__useWaypointRecordingAsAssistedMovementRoute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_useWaypointRecordingAsAssistedMovementRoute"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); - fn__useWaypointRecordingAsAssistedMovementRoute(&success, ptr_name, _p1, _p2, _p3); + fn__useWaypointRecordingAsAssistedMovementRoute(&success, ptr_name, (byte) (_p1 ? 1 : 0), _p2, _p3); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); } @@ -94372,9 +94372,9 @@ public void UseWaypointRecordingAsAssistedMovementRoute(string _name, bool _p1, public void WaypointPlaybackStartAimingAtPed(int _p0, int _p1, bool _p2) { unsafe { - if (fn__waypointPlaybackStartAimingAtPed == null) fn__waypointPlaybackStartAimingAtPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartAimingAtPed"); + if (fn__waypointPlaybackStartAimingAtPed == null) fn__waypointPlaybackStartAimingAtPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartAimingAtPed"); var success = false; - fn__waypointPlaybackStartAimingAtPed(&success, _p0, _p1, _p2); + fn__waypointPlaybackStartAimingAtPed(&success, _p0, _p1, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94382,9 +94382,9 @@ public void WaypointPlaybackStartAimingAtPed(int _p0, int _p1, bool _p2) public void WaypointPlaybackStartAimingAtCoord(int _p0, float _p1, float _p2, float _p3, bool _p4) { unsafe { - if (fn__waypointPlaybackStartAimingAtCoord == null) fn__waypointPlaybackStartAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartAimingAtCoord"); + if (fn__waypointPlaybackStartAimingAtCoord == null) fn__waypointPlaybackStartAimingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartAimingAtCoord"); var success = false; - fn__waypointPlaybackStartAimingAtCoord(&success, _p0, _p1, _p2, _p3, _p4); + fn__waypointPlaybackStartAimingAtCoord(&success, _p0, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94392,9 +94392,9 @@ public void WaypointPlaybackStartAimingAtCoord(int _p0, float _p1, float _p2, fl public void WaypointPlaybackStartShootingAtPed(int _p0, int _p1, bool _p2, int _p3) { unsafe { - if (fn__waypointPlaybackStartShootingAtPed == null) fn__waypointPlaybackStartShootingAtPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartShootingAtPed"); + if (fn__waypointPlaybackStartShootingAtPed == null) fn__waypointPlaybackStartShootingAtPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartShootingAtPed"); var success = false; - fn__waypointPlaybackStartShootingAtPed(&success, _p0, _p1, _p2, _p3); + fn__waypointPlaybackStartShootingAtPed(&success, _p0, _p1, (byte) (_p2 ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -94402,9 +94402,9 @@ public void WaypointPlaybackStartShootingAtPed(int _p0, int _p1, bool _p2, int _ public void WaypointPlaybackStartShootingAtCoord(int _p0, float _p1, float _p2, float _p3, bool _p4, int _p5) { unsafe { - if (fn__waypointPlaybackStartShootingAtCoord == null) fn__waypointPlaybackStartShootingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartShootingAtCoord"); + if (fn__waypointPlaybackStartShootingAtCoord == null) fn__waypointPlaybackStartShootingAtCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_waypointPlaybackStartShootingAtCoord"); var success = false; - fn__waypointPlaybackStartShootingAtCoord(&success, _p0, _p1, _p2, _p3, _p4, _p5); + fn__waypointPlaybackStartShootingAtCoord(&success, _p0, _p1, _p2, _p3, (byte) (_p4 ? 1 : 0), _p5); if (!success) throw new Exception("Native execution failed"); } } @@ -94446,13 +94446,13 @@ public void AssistedMovementRemoveRoute(string _route) public bool AssistedMovementIsRouteLoaded(string _route) { unsafe { - if (fn__assistedMovementIsRouteLoaded == null) fn__assistedMovementIsRouteLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_assistedMovementIsRouteLoaded"); + if (fn__assistedMovementIsRouteLoaded == null) fn__assistedMovementIsRouteLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_assistedMovementIsRouteLoaded"); var success = false; var ptr_route = MemoryUtils.StringToHGlobalUtf8(_route); var result = fn__assistedMovementIsRouteLoaded(&success, ptr_route); Marshal.FreeHGlobal(ptr_route); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94484,10 +94484,10 @@ public void AssistedMovementOverrideLoadDistanceThisFrame(float _dist) public void TaskVehicleFollowWaypointRecording(int _ped, int _vehicle, string _WPRecording, int _p3, int _p4, int _p5, int _p6, float _p7, bool _p8, float _p9) { unsafe { - if (fn__taskVehicleFollowWaypointRecording == null) fn__taskVehicleFollowWaypointRecording = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleFollowWaypointRecording"); + if (fn__taskVehicleFollowWaypointRecording == null) fn__taskVehicleFollowWaypointRecording = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskVehicleFollowWaypointRecording"); var success = false; var ptr_WPRecording = MemoryUtils.StringToHGlobalUtf8(_WPRecording); - fn__taskVehicleFollowWaypointRecording(&success, _ped, _vehicle, ptr_WPRecording, _p3, _p4, _p5, _p6, _p7, _p8, _p9); + fn__taskVehicleFollowWaypointRecording(&success, _ped, _vehicle, ptr_WPRecording, _p3, _p4, _p5, _p6, _p7, (byte) (_p8 ? 1 : 0), _p9); Marshal.FreeHGlobal(ptr_WPRecording); if (!success) throw new Exception("Native execution failed"); } @@ -94497,11 +94497,11 @@ public void TaskVehicleFollowWaypointRecording(int _ped, int _vehicle, string _W public bool IsWaypointPlaybackGoingOnForVehicle(int _vehicle) { unsafe { - if (fn__isWaypointPlaybackGoingOnForVehicle == null) fn__isWaypointPlaybackGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointPlaybackGoingOnForVehicle"); + if (fn__isWaypointPlaybackGoingOnForVehicle == null) fn__isWaypointPlaybackGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWaypointPlaybackGoingOnForVehicle"); var success = false; var result = fn__isWaypointPlaybackGoingOnForVehicle(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94577,9 +94577,9 @@ public void VehicleWaypointPlaybackOverrideSpeed(int _vehicle, float _speed) public void TaskSetBlockingOfNonTemporaryEvents(int _ped, bool _toggle) { unsafe { - if (fn__taskSetBlockingOfNonTemporaryEvents == null) fn__taskSetBlockingOfNonTemporaryEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSetBlockingOfNonTemporaryEvents"); + if (fn__taskSetBlockingOfNonTemporaryEvents == null) fn__taskSetBlockingOfNonTemporaryEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskSetBlockingOfNonTemporaryEvents"); var success = false; - fn__taskSetBlockingOfNonTemporaryEvents(&success, _ped, _toggle); + fn__taskSetBlockingOfNonTemporaryEvents(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94588,9 +94588,9 @@ public void TaskSetBlockingOfNonTemporaryEvents(int _ped, bool _toggle) public void TaskForceMotionState(int _ped, uint _state, bool _p2) { unsafe { - if (fn__taskForceMotionState == null) fn__taskForceMotionState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskForceMotionState"); + if (fn__taskForceMotionState == null) fn__taskForceMotionState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskForceMotionState"); var success = false; - fn__taskForceMotionState(&success, _ped, _state, _p2); + fn__taskForceMotionState(&success, _ped, _state, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -94599,11 +94599,11 @@ public void TaskForceMotionState(int _ped, uint _state, bool _p2) public void TaskMoveNetworkByName(int _ped, string _task, float _multiplier, bool _p3, string _animDict, int _flags) { unsafe { - if (fn__taskMoveNetworkByName == null) fn__taskMoveNetworkByName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkByName"); + if (fn__taskMoveNetworkByName == null) fn__taskMoveNetworkByName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkByName"); var success = false; var ptr_task = MemoryUtils.StringToHGlobalUtf8(_task); var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); - fn__taskMoveNetworkByName(&success, _ped, ptr_task, _multiplier, _p3, ptr_animDict, _flags); + fn__taskMoveNetworkByName(&success, _ped, ptr_task, _multiplier, (byte) (_p3 ? 1 : 0), ptr_animDict, _flags); Marshal.FreeHGlobal(ptr_task); Marshal.FreeHGlobal(ptr_animDict); if (!success) throw new Exception("Native execution failed"); @@ -94614,11 +94614,11 @@ public void TaskMoveNetworkByName(int _ped, string _task, float _multiplier, boo public void TaskMoveNetworkAdvancedByName(int _ped, string _p1, float _p2, float _p3, float _p4, float _p5, float _p6, float _p7, int _p8, float _p9, bool _p10, string _animDict, int _flags) { unsafe { - if (fn__taskMoveNetworkAdvancedByName == null) fn__taskMoveNetworkAdvancedByName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkAdvancedByName"); + if (fn__taskMoveNetworkAdvancedByName == null) fn__taskMoveNetworkAdvancedByName = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkAdvancedByName"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); - fn__taskMoveNetworkAdvancedByName(&success, _ped, ptr_p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, _p10, ptr_animDict, _flags); + fn__taskMoveNetworkAdvancedByName(&success, _ped, ptr_p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9, (byte) (_p10 ? 1 : 0), ptr_animDict, _flags); Marshal.FreeHGlobal(ptr_p1); Marshal.FreeHGlobal(ptr_animDict); if (!success) throw new Exception("Native execution failed"); @@ -94629,12 +94629,12 @@ public void TaskMoveNetworkAdvancedByName(int _ped, string _p1, float _p2, float public void TaskMoveNetworkByNameWithInitParams(int _ped, string _p1, ref int _data, float _p3, bool _p4, string _animDict, int _flags) { unsafe { - if (fn__taskMoveNetworkByNameWithInitParams == null) fn__taskMoveNetworkByNameWithInitParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkByNameWithInitParams"); + if (fn__taskMoveNetworkByNameWithInitParams == null) fn__taskMoveNetworkByNameWithInitParams = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_taskMoveNetworkByNameWithInitParams"); var success = false; var ptr_p1 = MemoryUtils.StringToHGlobalUtf8(_p1); var ref_data = _data; var ptr_animDict = MemoryUtils.StringToHGlobalUtf8(_animDict); - fn__taskMoveNetworkByNameWithInitParams(&success, _ped, ptr_p1, &ref_data, _p3, _p4, ptr_animDict, _flags); + fn__taskMoveNetworkByNameWithInitParams(&success, _ped, ptr_p1, &ref_data, _p3, (byte) (_p4 ? 1 : 0), ptr_animDict, _flags); Marshal.FreeHGlobal(ptr_p1); _data = ref_data; Marshal.FreeHGlobal(ptr_animDict); @@ -94656,11 +94656,11 @@ public void _0x29682E2CCF21E9B5(int _p0, int _p1, int _p2, int _p3, int _p4, int public bool IsTaskMoveNetworkActive(int _ped) { unsafe { - if (fn__isTaskMoveNetworkActive == null) fn__isTaskMoveNetworkActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaskMoveNetworkActive"); + if (fn__isTaskMoveNetworkActive == null) fn__isTaskMoveNetworkActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaskMoveNetworkActive"); var success = false; var result = fn__isTaskMoveNetworkActive(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94668,11 +94668,11 @@ public bool IsTaskMoveNetworkActive(int _ped) public bool IsTaskMoveNetworkReadyForTransition(int _ped) { unsafe { - if (fn__isTaskMoveNetworkReadyForTransition == null) fn__isTaskMoveNetworkReadyForTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaskMoveNetworkReadyForTransition"); + if (fn__isTaskMoveNetworkReadyForTransition == null) fn__isTaskMoveNetworkReadyForTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaskMoveNetworkReadyForTransition"); var success = false; var result = fn__isTaskMoveNetworkReadyForTransition(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94680,13 +94680,13 @@ public bool IsTaskMoveNetworkReadyForTransition(int _ped) public bool RequestTaskMoveNetworkStateTransition(int _ped, string _name) { unsafe { - if (fn__requestTaskMoveNetworkStateTransition == null) fn__requestTaskMoveNetworkStateTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestTaskMoveNetworkStateTransition"); + if (fn__requestTaskMoveNetworkStateTransition == null) fn__requestTaskMoveNetworkStateTransition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_requestTaskMoveNetworkStateTransition"); var success = false; var ptr_name = MemoryUtils.StringToHGlobalUtf8(_name); var result = fn__requestTaskMoveNetworkStateTransition(&success, _ped, ptr_name); Marshal.FreeHGlobal(ptr_name); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94771,10 +94771,10 @@ public void _0x8634CEF2522D987B(int _ped, string _p1, float _value) public void SetTaskMoveNetworkSignalBool(int _ped, string _signalName, bool _value) { unsafe { - if (fn__setTaskMoveNetworkSignalBool == null) fn__setTaskMoveNetworkSignalBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaskMoveNetworkSignalBool"); + if (fn__setTaskMoveNetworkSignalBool == null) fn__setTaskMoveNetworkSignalBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaskMoveNetworkSignalBool"); var success = false; var ptr_signalName = MemoryUtils.StringToHGlobalUtf8(_signalName); - fn__setTaskMoveNetworkSignalBool(&success, _ped, ptr_signalName, _value); + fn__setTaskMoveNetworkSignalBool(&success, _ped, ptr_signalName, (byte) (_value ? 1 : 0)); Marshal.FreeHGlobal(ptr_signalName); if (!success) throw new Exception("Native execution failed"); } @@ -94798,13 +94798,13 @@ public float GetTaskMoveNetworkSignalFloat(int _ped, string _signalName) public bool GetTaskMoveNetworkSignalBool(int _ped, string _signalName) { unsafe { - if (fn__getTaskMoveNetworkSignalBool == null) fn__getTaskMoveNetworkSignalBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTaskMoveNetworkSignalBool"); + if (fn__getTaskMoveNetworkSignalBool == null) fn__getTaskMoveNetworkSignalBool = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTaskMoveNetworkSignalBool"); var success = false; var ptr_signalName = MemoryUtils.StringToHGlobalUtf8(_signalName); var result = fn__getTaskMoveNetworkSignalBool(&success, _ped, ptr_signalName); Marshal.FreeHGlobal(ptr_signalName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94812,13 +94812,13 @@ public bool GetTaskMoveNetworkSignalBool(int _ped, string _signalName) public bool GetTaskMoveNetworkEvent(int _ped, string _eventName) { unsafe { - if (fn__getTaskMoveNetworkEvent == null) fn__getTaskMoveNetworkEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTaskMoveNetworkEvent"); + if (fn__getTaskMoveNetworkEvent == null) fn__getTaskMoveNetworkEvent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getTaskMoveNetworkEvent"); var success = false; var ptr_eventName = MemoryUtils.StringToHGlobalUtf8(_eventName); var result = fn__getTaskMoveNetworkEvent(&success, _ped, ptr_eventName); Marshal.FreeHGlobal(ptr_eventName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94826,9 +94826,9 @@ public bool GetTaskMoveNetworkEvent(int _ped, string _eventName) public int _0x0FFB3C758E8C07B9(int _ped, bool _p1) { unsafe { - if (fn__0x0FFB3C758E8C07B9 == null) fn__0x0FFB3C758E8C07B9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0FFB3C758E8C07B9"); + if (fn__0x0FFB3C758E8C07B9 == null) fn__0x0FFB3C758E8C07B9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0FFB3C758E8C07B9"); var success = false; - var result = fn__0x0FFB3C758E8C07B9(&success, _ped, _p1); + var result = fn__0x0FFB3C758E8C07B9(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -94838,11 +94838,11 @@ public int _0x0FFB3C758E8C07B9(int _ped, bool _p1) public bool IsMoveBlendRatioStill(int _ped) { unsafe { - if (fn__isMoveBlendRatioStill == null) fn__isMoveBlendRatioStill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioStill"); + if (fn__isMoveBlendRatioStill == null) fn__isMoveBlendRatioStill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioStill"); var success = false; var result = fn__isMoveBlendRatioStill(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94850,11 +94850,11 @@ public bool IsMoveBlendRatioStill(int _ped) public bool IsMoveBlendRatioWalking(int _ped) { unsafe { - if (fn__isMoveBlendRatioWalking == null) fn__isMoveBlendRatioWalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioWalking"); + if (fn__isMoveBlendRatioWalking == null) fn__isMoveBlendRatioWalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioWalking"); var success = false; var result = fn__isMoveBlendRatioWalking(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94862,11 +94862,11 @@ public bool IsMoveBlendRatioWalking(int _ped) public bool IsMoveBlendRatioRunning(int _ped) { unsafe { - if (fn__isMoveBlendRatioRunning == null) fn__isMoveBlendRatioRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioRunning"); + if (fn__isMoveBlendRatioRunning == null) fn__isMoveBlendRatioRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioRunning"); var success = false; var result = fn__isMoveBlendRatioRunning(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94874,11 +94874,11 @@ public bool IsMoveBlendRatioRunning(int _ped) public bool IsMoveBlendRatioSprinting(int _ped) { unsafe { - if (fn__isMoveBlendRatioSprinting == null) fn__isMoveBlendRatioSprinting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioSprinting"); + if (fn__isMoveBlendRatioSprinting == null) fn__isMoveBlendRatioSprinting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMoveBlendRatioSprinting"); var success = false; var result = fn__isMoveBlendRatioSprinting(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94886,11 +94886,11 @@ public bool IsMoveBlendRatioSprinting(int _ped) public bool IsPedStill(int _ped) { unsafe { - if (fn__isPedStill == null) fn__isPedStill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStill"); + if (fn__isPedStill == null) fn__isPedStill = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStill"); var success = false; var result = fn__isPedStill(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94898,11 +94898,11 @@ public bool IsPedStill(int _ped) public bool IsPedWalking(int _ped) { unsafe { - if (fn__isPedWalking == null) fn__isPedWalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWalking"); + if (fn__isPedWalking == null) fn__isPedWalking = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWalking"); var success = false; var result = fn__isPedWalking(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94910,11 +94910,11 @@ public bool IsPedWalking(int _ped) public bool IsPedRunning(int _ped) { unsafe { - if (fn__isPedRunning == null) fn__isPedRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunning"); + if (fn__isPedRunning == null) fn__isPedRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunning"); var success = false; var result = fn__isPedRunning(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94922,11 +94922,11 @@ public bool IsPedRunning(int _ped) public bool IsPedSprinting(int _ped) { unsafe { - if (fn__isPedSprinting == null) fn__isPedSprinting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSprinting"); + if (fn__isPedSprinting == null) fn__isPedSprinting = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedSprinting"); var success = false; var result = fn__isPedSprinting(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -94934,11 +94934,11 @@ public bool IsPedSprinting(int _ped) public bool IsPedStrafing(int _ped) { unsafe { - if (fn__isPedStrafing == null) fn__isPedStrafing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStrafing"); + if (fn__isPedStrafing == null) fn__isPedStrafing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedStrafing"); var success = false; var result = fn__isPedStrafing(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95049,11 +95049,11 @@ public void TaskArrestPed(int _ped, int _target) public bool IsPedRunningArrestTask(int _ped) { unsafe { - if (fn__isPedRunningArrestTask == null) fn__isPedRunningArrestTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningArrestTask"); + if (fn__isPedRunningArrestTask == null) fn__isPedRunningArrestTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedRunningArrestTask"); var success = false; var result = fn__isPedRunningArrestTask(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95061,11 +95061,11 @@ public bool IsPedRunningArrestTask(int _ped) public bool IsPedBeingArrested(int _ped) { unsafe { - if (fn__isPedBeingArrested == null) fn__isPedBeingArrested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingArrested"); + if (fn__isPedBeingArrested == null) fn__isPedBeingArrested = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedBeingArrested"); var success = false; var result = fn__isPedBeingArrested(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95084,20 +95084,20 @@ public void UncuffPed(int _ped) public bool IsPedCuffed(int _ped) { unsafe { - if (fn__isPedCuffed == null) fn__isPedCuffed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedCuffed"); + if (fn__isPedCuffed == null) fn__isPedCuffed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedCuffed"); var success = false; var result = fn__isPedCuffed(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int CreateVehicle(uint _modelHash, float _x, float _y, float _z, float _heading, bool _isNetwork, bool _bScriptHostVeh, bool _p7) { unsafe { - if (fn__createVehicle == null) fn__createVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createVehicle"); + if (fn__createVehicle == null) fn__createVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createVehicle"); var success = false; - var result = fn__createVehicle(&success, _modelHash, _x, _y, _z, _heading, _isNetwork, _bScriptHostVeh, _p7); + var result = fn__createVehicle(&success, _modelHash, _x, _y, _z, _heading, (byte) (_isNetwork ? 1 : 0), (byte) (_bScriptHostVeh ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -95119,9 +95119,9 @@ public void DeleteVehicle(ref int _vehicle) public void _0x7D6F9A3EF26136A0(int _vehicle, bool _toggle, bool _p2) { unsafe { - if (fn__0x7D6F9A3EF26136A0 == null) fn__0x7D6F9A3EF26136A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7D6F9A3EF26136A0"); + if (fn__0x7D6F9A3EF26136A0 == null) fn__0x7D6F9A3EF26136A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x7D6F9A3EF26136A0"); var success = false; - fn__0x7D6F9A3EF26136A0(&success, _vehicle, _toggle, _p2); + fn__0x7D6F9A3EF26136A0(&success, _vehicle, (byte) (_toggle ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95130,9 +95130,9 @@ public void _0x7D6F9A3EF26136A0(int _vehicle, bool _toggle, bool _p2) public void SetVehicleCanBeLockedOn(int _vehicle, bool _canBeLockedOn, bool _unk) { unsafe { - if (fn__setVehicleCanBeLockedOn == null) fn__setVehicleCanBeLockedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeLockedOn"); + if (fn__setVehicleCanBeLockedOn == null) fn__setVehicleCanBeLockedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeLockedOn"); var success = false; - fn__setVehicleCanBeLockedOn(&success, _vehicle, _canBeLockedOn, _unk); + fn__setVehicleCanBeLockedOn(&success, _vehicle, (byte) (_canBeLockedOn ? 1 : 0), (byte) (_unk ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95141,9 +95141,9 @@ public void SetVehicleCanBeLockedOn(int _vehicle, bool _canBeLockedOn, bool _unk public void SetVehicleAllowNoPassengersLockon(int _veh, bool _toggle) { unsafe { - if (fn__setVehicleAllowNoPassengersLockon == null) fn__setVehicleAllowNoPassengersLockon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAllowNoPassengersLockon"); + if (fn__setVehicleAllowNoPassengersLockon == null) fn__setVehicleAllowNoPassengersLockon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAllowNoPassengersLockon"); var success = false; - fn__setVehicleAllowNoPassengersLockon(&success, _veh, _toggle); + fn__setVehicleAllowNoPassengersLockon(&success, _veh, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95185,31 +95185,31 @@ public void _0x407DC5E97DB1A4D3(int _p0, int _p1) public bool IsVehicleModel(int _vehicle, uint _model) { unsafe { - if (fn__isVehicleModel == null) fn__isVehicleModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleModel"); + if (fn__isVehicleModel == null) fn__isVehicleModel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleModel"); var success = false; var result = fn__isVehicleModel(&success, _vehicle, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool DoesScriptVehicleGeneratorExist(int _vehicleGenerator) { unsafe { - if (fn__doesScriptVehicleGeneratorExist == null) fn__doesScriptVehicleGeneratorExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptVehicleGeneratorExist"); + if (fn__doesScriptVehicleGeneratorExist == null) fn__doesScriptVehicleGeneratorExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesScriptVehicleGeneratorExist"); var success = false; var result = fn__doesScriptVehicleGeneratorExist(&success, _vehicleGenerator); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public int CreateScriptVehicleGenerator(float _x, float _y, float _z, float _heading, float _p4, float _p5, uint _modelHash, int _p7, int _p8, int _p9, int _p10, bool _p11, bool _p12, bool _p13, bool _p14, bool _p15, int _p16) { unsafe { - if (fn__createScriptVehicleGenerator == null) fn__createScriptVehicleGenerator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createScriptVehicleGenerator"); + if (fn__createScriptVehicleGenerator == null) fn__createScriptVehicleGenerator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createScriptVehicleGenerator"); var success = false; - var result = fn__createScriptVehicleGenerator(&success, _x, _y, _z, _heading, _p4, _p5, _modelHash, _p7, _p8, _p9, _p10, _p11, _p12, _p13, _p14, _p15, _p16); + var result = fn__createScriptVehicleGenerator(&success, _x, _y, _z, _heading, _p4, _p5, _modelHash, _p7, _p8, _p9, _p10, (byte) (_p11 ? 1 : 0), (byte) (_p12 ? 1 : 0), (byte) (_p13 ? 1 : 0), (byte) (_p14 ? 1 : 0), (byte) (_p15 ? 1 : 0), _p16); if (!success) throw new Exception("Native execution failed"); return result; } @@ -95228,9 +95228,9 @@ public void DeleteScriptVehicleGenerator(int _vehicleGenerator) public void SetScriptVehicleGenerator(int _vehicleGenerator, bool _enabled) { unsafe { - if (fn__setScriptVehicleGenerator == null) fn__setScriptVehicleGenerator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptVehicleGenerator"); + if (fn__setScriptVehicleGenerator == null) fn__setScriptVehicleGenerator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setScriptVehicleGenerator"); var success = false; - fn__setScriptVehicleGenerator(&success, _vehicleGenerator, _enabled); + fn__setScriptVehicleGenerator(&success, _vehicleGenerator, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95238,9 +95238,9 @@ public void SetScriptVehicleGenerator(int _vehicleGenerator, bool _enabled) public void SetAllVehicleGeneratorsActiveInArea(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, bool _p6, bool _p7) { unsafe { - if (fn__setAllVehicleGeneratorsActiveInArea == null) fn__setAllVehicleGeneratorsActiveInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllVehicleGeneratorsActiveInArea"); + if (fn__setAllVehicleGeneratorsActiveInArea == null) fn__setAllVehicleGeneratorsActiveInArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllVehicleGeneratorsActiveInArea"); var success = false; - fn__setAllVehicleGeneratorsActiveInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, _p6, _p7); + fn__setAllVehicleGeneratorsActiveInArea(&success, _x1, _y1, _z1, _x2, _y2, _z2, (byte) (_p6 ? 1 : 0), (byte) (_p7 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95258,9 +95258,9 @@ public void SetAllVehicleGeneratorsActive() public void SetAllLowPriorityVehicleGeneratorsActive(bool _active) { unsafe { - if (fn__setAllLowPriorityVehicleGeneratorsActive == null) fn__setAllLowPriorityVehicleGeneratorsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllLowPriorityVehicleGeneratorsActive"); + if (fn__setAllLowPriorityVehicleGeneratorsActive == null) fn__setAllLowPriorityVehicleGeneratorsActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAllLowPriorityVehicleGeneratorsActive"); var success = false; - fn__setAllLowPriorityVehicleGeneratorsActive(&success, _active); + fn__setAllLowPriorityVehicleGeneratorsActive(&success, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95289,11 +95289,11 @@ public void _0x0A436B8643716D14() public bool SetVehicleOnGroundProperly(int _vehicle, float _p1) { unsafe { - if (fn__setVehicleOnGroundProperly == null) fn__setVehicleOnGroundProperly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleOnGroundProperly"); + if (fn__setVehicleOnGroundProperly == null) fn__setVehicleOnGroundProperly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleOnGroundProperly"); var success = false; var result = fn__setVehicleOnGroundProperly(&success, _vehicle, _p1); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95301,9 +95301,9 @@ public bool SetVehicleOnGroundProperly(int _vehicle, float _p1) public int SetVehicleUseCutsceneWheelCompression(int _p0, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__setVehicleUseCutsceneWheelCompression == null) fn__setVehicleUseCutsceneWheelCompression = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUseCutsceneWheelCompression"); + if (fn__setVehicleUseCutsceneWheelCompression == null) fn__setVehicleUseCutsceneWheelCompression = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUseCutsceneWheelCompression"); var success = false; - var result = fn__setVehicleUseCutsceneWheelCompression(&success, _p0, _p1, _p2, _p3); + var result = fn__setVehicleUseCutsceneWheelCompression(&success, _p0, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -95313,11 +95313,11 @@ public int SetVehicleUseCutsceneWheelCompression(int _p0, bool _p1, bool _p2, bo public bool IsVehicleStuckOnRoof(int _vehicle) { unsafe { - if (fn__isVehicleStuckOnRoof == null) fn__isVehicleStuckOnRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStuckOnRoof"); + if (fn__isVehicleStuckOnRoof == null) fn__isVehicleStuckOnRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStuckOnRoof"); var success = false; var result = fn__isVehicleStuckOnRoof(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95347,11 +95347,11 @@ public void RemoveVehicleUpsidedownCheck(int _vehicle) public bool IsVehicleStopped(int _vehicle) { unsafe { - if (fn__isVehicleStopped == null) fn__isVehicleStopped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStopped"); + if (fn__isVehicleStopped == null) fn__isVehicleStopped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStopped"); var success = false; var result = fn__isVehicleStopped(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95394,11 +95394,11 @@ public int GetVehicleModelNumberOfSeats(uint _modelHash) public bool IsSeatWarpOnly(int _vehicle, int _seatIndex) { unsafe { - if (fn__isSeatWarpOnly == null) fn__isSeatWarpOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSeatWarpOnly"); + if (fn__isSeatWarpOnly == null) fn__isSeatWarpOnly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isSeatWarpOnly"); var success = false; var result = fn__isSeatWarpOnly(&success, _vehicle, _seatIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95406,11 +95406,11 @@ public bool IsSeatWarpOnly(int _vehicle, int _seatIndex) public bool IsTurretSeat(int _vehicle, int _seatIndex) { unsafe { - if (fn__isTurretSeat == null) fn__isTurretSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTurretSeat"); + if (fn__isTurretSeat == null) fn__isTurretSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTurretSeat"); var success = false; var result = fn__isTurretSeat(&success, _vehicle, _seatIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95418,11 +95418,11 @@ public bool IsTurretSeat(int _vehicle, int _seatIndex) public bool DoesVehicleAllowRappel(int _vehicle) { unsafe { - if (fn__doesVehicleAllowRappel == null) fn__doesVehicleAllowRappel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleAllowRappel"); + if (fn__doesVehicleAllowRappel == null) fn__doesVehicleAllowRappel = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleAllowRappel"); var success = false; var result = fn__doesVehicleAllowRappel(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95459,9 +95459,9 @@ public void SetParkedVehicleDensityMultiplierThisFrame(float _multiplier) public void SetDisableRandomTrainsThisFrame(bool _toggle) { unsafe { - if (fn__setDisableRandomTrainsThisFrame == null) fn__setDisableRandomTrainsThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableRandomTrainsThisFrame"); + if (fn__setDisableRandomTrainsThisFrame == null) fn__setDisableRandomTrainsThisFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableRandomTrainsThisFrame"); var success = false; - fn__setDisableRandomTrainsThisFrame(&success, _toggle); + fn__setDisableRandomTrainsThisFrame(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95479,9 +95479,9 @@ public void SetAmbientVehicleRangeMultiplierThisFrame(float _value) public void SetFarDrawVehicles(bool _toggle) { unsafe { - if (fn__setFarDrawVehicles == null) fn__setFarDrawVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFarDrawVehicles"); + if (fn__setFarDrawVehicles == null) fn__setFarDrawVehicles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFarDrawVehicles"); var success = false; - fn__setFarDrawVehicles(&success, _toggle); + fn__setFarDrawVehicles(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95522,9 +95522,9 @@ public void SetVehicleIndividualDoorsLocked(int _vehicle, int _doorId, int _door public void SetVehicleHasMutedSirens(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHasMutedSirens == null) fn__setVehicleHasMutedSirens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasMutedSirens"); + if (fn__setVehicleHasMutedSirens == null) fn__setVehicleHasMutedSirens = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasMutedSirens"); var success = false; - fn__setVehicleHasMutedSirens(&success, _vehicle, _toggle); + fn__setVehicleHasMutedSirens(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95535,9 +95535,9 @@ public void SetVehicleHasMutedSirens(int _vehicle, bool _toggle) public void SetVehicleDoorsLockedForPlayer(int _vehicle, int _player, bool _toggle) { unsafe { - if (fn__setVehicleDoorsLockedForPlayer == null) fn__setVehicleDoorsLockedForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForPlayer"); + if (fn__setVehicleDoorsLockedForPlayer == null) fn__setVehicleDoorsLockedForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForPlayer"); var success = false; - fn__setVehicleDoorsLockedForPlayer(&success, _vehicle, _player, _toggle); + fn__setVehicleDoorsLockedForPlayer(&success, _vehicle, _player, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95548,11 +95548,11 @@ public void SetVehicleDoorsLockedForPlayer(int _vehicle, int _player, bool _togg public bool GetVehicleDoorsLockedForPlayer(int _vehicle, int _player) { unsafe { - if (fn__getVehicleDoorsLockedForPlayer == null) fn__getVehicleDoorsLockedForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleDoorsLockedForPlayer"); + if (fn__getVehicleDoorsLockedForPlayer == null) fn__getVehicleDoorsLockedForPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleDoorsLockedForPlayer"); var success = false; var result = fn__getVehicleDoorsLockedForPlayer(&success, _vehicle, _player); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95560,9 +95560,9 @@ public bool GetVehicleDoorsLockedForPlayer(int _vehicle, int _player) public void SetVehicleDoorsLockedForAllPlayers(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleDoorsLockedForAllPlayers == null) fn__setVehicleDoorsLockedForAllPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForAllPlayers"); + if (fn__setVehicleDoorsLockedForAllPlayers == null) fn__setVehicleDoorsLockedForAllPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForAllPlayers"); var success = false; - fn__setVehicleDoorsLockedForAllPlayers(&success, _vehicle, _toggle); + fn__setVehicleDoorsLockedForAllPlayers(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95571,9 +95571,9 @@ public void SetVehicleDoorsLockedForAllPlayers(int _vehicle, bool _toggle) public void SetVehicleDoorsLockedForNonScriptPlayers(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleDoorsLockedForNonScriptPlayers == null) fn__setVehicleDoorsLockedForNonScriptPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForNonScriptPlayers"); + if (fn__setVehicleDoorsLockedForNonScriptPlayers == null) fn__setVehicleDoorsLockedForNonScriptPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForNonScriptPlayers"); var success = false; - fn__setVehicleDoorsLockedForNonScriptPlayers(&success, _vehicle, _toggle); + fn__setVehicleDoorsLockedForNonScriptPlayers(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95582,9 +95582,9 @@ public void SetVehicleDoorsLockedForNonScriptPlayers(int _vehicle, bool _toggle) public void SetVehicleDoorsLockedForTeam(int _vehicle, int _team, bool _toggle) { unsafe { - if (fn__setVehicleDoorsLockedForTeam == null) fn__setVehicleDoorsLockedForTeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForTeam"); + if (fn__setVehicleDoorsLockedForTeam == null) fn__setVehicleDoorsLockedForTeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForTeam"); var success = false; - fn__setVehicleDoorsLockedForTeam(&success, _vehicle, _team, _toggle); + fn__setVehicleDoorsLockedForTeam(&success, _vehicle, _team, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95593,9 +95593,9 @@ public void SetVehicleDoorsLockedForTeam(int _vehicle, int _team, bool _toggle) public void SetVehicleDoorsLockedForUnk(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleDoorsLockedForUnk == null) fn__setVehicleDoorsLockedForUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForUnk"); + if (fn__setVehicleDoorsLockedForUnk == null) fn__setVehicleDoorsLockedForUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsLockedForUnk"); var success = false; - fn__setVehicleDoorsLockedForUnk(&success, _vehicle, _toggle); + fn__setVehicleDoorsLockedForUnk(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95615,9 +95615,9 @@ public void _0x76D26A22750E849E(int _vehicle) public void ExplodeVehicle(int _vehicle, bool _isAudible, bool _isInvisible) { unsafe { - if (fn__explodeVehicle == null) fn__explodeVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeVehicle"); + if (fn__explodeVehicle == null) fn__explodeVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeVehicle"); var success = false; - fn__explodeVehicle(&success, _vehicle, _isAudible, _isInvisible); + fn__explodeVehicle(&success, _vehicle, (byte) (_isAudible ? 1 : 0), (byte) (_isInvisible ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95626,9 +95626,9 @@ public void ExplodeVehicle(int _vehicle, bool _isAudible, bool _isInvisible) public void SetVehicleOutOfControl(int _vehicle, bool _killDriver, bool _explodeOnImpact) { unsafe { - if (fn__setVehicleOutOfControl == null) fn__setVehicleOutOfControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleOutOfControl"); + if (fn__setVehicleOutOfControl == null) fn__setVehicleOutOfControl = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleOutOfControl"); var success = false; - fn__setVehicleOutOfControl(&success, _vehicle, _killDriver, _explodeOnImpact); + fn__setVehicleOutOfControl(&success, _vehicle, (byte) (_killDriver ? 1 : 0), (byte) (_explodeOnImpact ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95639,9 +95639,9 @@ public void SetVehicleOutOfControl(int _vehicle, bool _killDriver, bool _explode public void SetVehicleTimedExplosion(int _vehicle, int _ped, bool _toggle) { unsafe { - if (fn__setVehicleTimedExplosion == null) fn__setVehicleTimedExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTimedExplosion"); + if (fn__setVehicleTimedExplosion == null) fn__setVehicleTimedExplosion = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTimedExplosion"); var success = false; - fn__setVehicleTimedExplosion(&success, _vehicle, _ped, _toggle); + fn__setVehicleTimedExplosion(&success, _vehicle, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95670,11 +95670,11 @@ public void ClearVehiclePhoneExplosiveDevice() public bool HasVehiclePhoneExplosiveDevice() { unsafe { - if (fn__hasVehiclePhoneExplosiveDevice == null) fn__hasVehiclePhoneExplosiveDevice = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehiclePhoneExplosiveDevice"); + if (fn__hasVehiclePhoneExplosiveDevice == null) fn__hasVehiclePhoneExplosiveDevice = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehiclePhoneExplosiveDevice"); var success = false; var result = fn__hasVehiclePhoneExplosiveDevice(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95692,9 +95692,9 @@ public void DetonateVehiclePhoneExplosiveDevice() public void SetTaxiLights(int _vehicle, bool _state) { unsafe { - if (fn__setTaxiLights == null) fn__setTaxiLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaxiLights"); + if (fn__setTaxiLights == null) fn__setTaxiLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setTaxiLights"); var success = false; - fn__setTaxiLights(&success, _vehicle, _state); + fn__setTaxiLights(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95703,11 +95703,11 @@ public void SetTaxiLights(int _vehicle, bool _state) public bool IsTaxiLightOn(int _vehicle) { unsafe { - if (fn__isTaxiLightOn == null) fn__isTaxiLightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaxiLightOn"); + if (fn__isTaxiLightOn == null) fn__isTaxiLightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isTaxiLightOn"); var success = false; var result = fn__isTaxiLightOn(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95715,13 +95715,13 @@ public bool IsTaxiLightOn(int _vehicle) public bool IsVehicleInGarageArea(string _garageName, int _vehicle) { unsafe { - if (fn__isVehicleInGarageArea == null) fn__isVehicleInGarageArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleInGarageArea"); + if (fn__isVehicleInGarageArea == null) fn__isVehicleInGarageArea = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleInGarageArea"); var success = false; var ptr_garageName = MemoryUtils.StringToHGlobalUtf8(_garageName); var result = fn__isVehicleInGarageArea(&success, ptr_garageName, _vehicle); Marshal.FreeHGlobal(ptr_garageName); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95740,9 +95740,9 @@ public void SetVehicleColours(int _vehicle, int _colorPrimary, int _colorSeconda public void SetVehicleFullbeam(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleFullbeam == null) fn__setVehicleFullbeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleFullbeam"); + if (fn__setVehicleFullbeam == null) fn__setVehicleFullbeam = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleFullbeam"); var success = false; - fn__setVehicleFullbeam(&success, _vehicle, _toggle); + fn__setVehicleFullbeam(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95751,9 +95751,9 @@ public void SetVehicleFullbeam(int _vehicle, bool _toggle) public void SetVehicleIsRacing(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleIsRacing == null) fn__setVehicleIsRacing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsRacing"); + if (fn__setVehicleIsRacing == null) fn__setVehicleIsRacing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsRacing"); var success = false; - fn__setVehicleIsRacing(&success, _vehicle, _toggle); + fn__setVehicleIsRacing(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95801,11 +95801,11 @@ public void ClearVehicleCustomPrimaryColour(int _vehicle) public bool GetIsVehiclePrimaryColourCustom(int _vehicle) { unsafe { - if (fn__getIsVehiclePrimaryColourCustom == null) fn__getIsVehiclePrimaryColourCustom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehiclePrimaryColourCustom"); + if (fn__getIsVehiclePrimaryColourCustom == null) fn__getIsVehiclePrimaryColourCustom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehiclePrimaryColourCustom"); var success = false; var result = fn__getIsVehiclePrimaryColourCustom(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95852,11 +95852,11 @@ public void ClearVehicleCustomSecondaryColour(int _vehicle) public bool GetIsVehicleSecondaryColourCustom(int _vehicle) { unsafe { - if (fn__getIsVehicleSecondaryColourCustom == null) fn__getIsVehicleSecondaryColourCustom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleSecondaryColourCustom"); + if (fn__getIsVehicleSecondaryColourCustom == null) fn__getIsVehicleSecondaryColourCustom = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleSecondaryColourCustom"); var success = false; var result = fn__getIsVehicleSecondaryColourCustom(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95887,9 +95887,9 @@ public float GetVehicleEnveffScale(int _vehicle) public void SetCanResprayVehicle(int _vehicle, bool _state) { unsafe { - if (fn__setCanResprayVehicle == null) fn__setCanResprayVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanResprayVehicle"); + if (fn__setCanResprayVehicle == null) fn__setCanResprayVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanResprayVehicle"); var success = false; - fn__setCanResprayVehicle(&success, _vehicle, _state); + fn__setCanResprayVehicle(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95908,9 +95908,9 @@ public void _0xAB31EF4DE6800CE9(int _p0, int _p1) public void _0x1B212B26DD3C04DF(int _vehicle, bool _toggle) { unsafe { - if (fn__0x1B212B26DD3C04DF == null) fn__0x1B212B26DD3C04DF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1B212B26DD3C04DF"); + if (fn__0x1B212B26DD3C04DF == null) fn__0x1B212B26DD3C04DF = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1B212B26DD3C04DF"); var success = false; - fn__0x1B212B26DD3C04DF(&success, _vehicle, _toggle); + fn__0x1B212B26DD3C04DF(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95919,9 +95919,9 @@ public void _0x1B212B26DD3C04DF(int _vehicle, bool _toggle) public void ForceSubmarineSurfaceMode(int _vehicle, bool _toggle) { unsafe { - if (fn__forceSubmarineSurfaceMode == null) fn__forceSubmarineSurfaceMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceSubmarineSurfaceMode"); + if (fn__forceSubmarineSurfaceMode == null) fn__forceSubmarineSurfaceMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forceSubmarineSurfaceMode"); var success = false; - fn__forceSubmarineSurfaceMode(&success, _vehicle, _toggle); + fn__forceSubmarineSurfaceMode(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95940,9 +95940,9 @@ public void _0xC67DB108A9ADE3BE(int _p0, int _p1) public void SetSubmarineCrushDepths(int _vehicle, bool _p1, float _depth1, float _depth2, float _depth3) { unsafe { - if (fn__setSubmarineCrushDepths == null) fn__setSubmarineCrushDepths = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSubmarineCrushDepths"); + if (fn__setSubmarineCrushDepths == null) fn__setSubmarineCrushDepths = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setSubmarineCrushDepths"); var success = false; - fn__setSubmarineCrushDepths(&success, _vehicle, _p1, _depth1, _depth2, _depth3); + fn__setSubmarineCrushDepths(&success, _vehicle, (byte) (_p1 ? 1 : 0), _depth1, _depth2, _depth3); if (!success) throw new Exception("Native execution failed"); } } @@ -95951,11 +95951,11 @@ public void SetSubmarineCrushDepths(int _vehicle, bool _p1, float _depth1, float public bool GetSubmarineIsBelowFirstCrushDepth(int _submarine) { unsafe { - if (fn__getSubmarineIsBelowFirstCrushDepth == null) fn__getSubmarineIsBelowFirstCrushDepth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSubmarineIsBelowFirstCrushDepth"); + if (fn__getSubmarineIsBelowFirstCrushDepth == null) fn__getSubmarineIsBelowFirstCrushDepth = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getSubmarineIsBelowFirstCrushDepth"); var success = false; var result = fn__getSubmarineIsBelowFirstCrushDepth(&success, _submarine); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -95985,9 +95985,9 @@ public void _0xED5EDE9E676643C9(int _p0, int _p1) public void SetBoatAnchor(int _vehicle, bool _toggle) { unsafe { - if (fn__setBoatAnchor == null) fn__setBoatAnchor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatAnchor"); + if (fn__setBoatAnchor == null) fn__setBoatAnchor = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatAnchor"); var success = false; - fn__setBoatAnchor(&success, _vehicle, _toggle); + fn__setBoatAnchor(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -95996,11 +95996,11 @@ public void SetBoatAnchor(int _vehicle, bool _toggle) public bool CanAnchorBoatHere(int _vehicle) { unsafe { - if (fn__canAnchorBoatHere == null) fn__canAnchorBoatHere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canAnchorBoatHere"); + if (fn__canAnchorBoatHere == null) fn__canAnchorBoatHere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canAnchorBoatHere"); var success = false; var result = fn__canAnchorBoatHere(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96008,11 +96008,11 @@ public bool CanAnchorBoatHere(int _vehicle) public bool CanAnchorBoatHere2(int _vehicle) { unsafe { - if (fn__canAnchorBoatHere2 == null) fn__canAnchorBoatHere2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canAnchorBoatHere2"); + if (fn__canAnchorBoatHere2 == null) fn__canAnchorBoatHere2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canAnchorBoatHere2"); var success = false; var result = fn__canAnchorBoatHere2(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96020,9 +96020,9 @@ public bool CanAnchorBoatHere2(int _vehicle) public void SetBoatFrozenWhenAnchored(int _vehicle, bool _toggle) { unsafe { - if (fn__setBoatFrozenWhenAnchored == null) fn__setBoatFrozenWhenAnchored = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatFrozenWhenAnchored"); + if (fn__setBoatFrozenWhenAnchored == null) fn__setBoatFrozenWhenAnchored = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatFrozenWhenAnchored"); var success = false; - fn__setBoatFrozenWhenAnchored(&success, _vehicle, _toggle); + fn__setBoatFrozenWhenAnchored(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96031,9 +96031,9 @@ public void SetBoatFrozenWhenAnchored(int _vehicle, bool _toggle) public void _0xB28B1FE5BFADD7F5(int _vehicle, bool _p1) { unsafe { - if (fn__0xB28B1FE5BFADD7F5 == null) fn__0xB28B1FE5BFADD7F5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB28B1FE5BFADD7F5"); + if (fn__0xB28B1FE5BFADD7F5 == null) fn__0xB28B1FE5BFADD7F5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB28B1FE5BFADD7F5"); var success = false; - fn__0xB28B1FE5BFADD7F5(&success, _vehicle, _p1); + fn__0xB28B1FE5BFADD7F5(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96053,11 +96053,11 @@ public void SetBoatMovementResistance(int _vehicle, float _value) public bool IsBoatAnchoredAndFrozen(int _vehicle) { unsafe { - if (fn__isBoatAnchoredAndFrozen == null) fn__isBoatAnchoredAndFrozen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBoatAnchoredAndFrozen"); + if (fn__isBoatAnchoredAndFrozen == null) fn__isBoatAnchoredAndFrozen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBoatAnchoredAndFrozen"); var success = false; var result = fn__isBoatAnchoredAndFrozen(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96065,9 +96065,9 @@ public bool IsBoatAnchoredAndFrozen(int _vehicle) public void SetBoatSinksWhenWrecked(int _vehicle, bool _toggle) { unsafe { - if (fn__setBoatSinksWhenWrecked == null) fn__setBoatSinksWhenWrecked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatSinksWhenWrecked"); + if (fn__setBoatSinksWhenWrecked == null) fn__setBoatSinksWhenWrecked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatSinksWhenWrecked"); var success = false; - fn__setBoatSinksWhenWrecked(&success, _vehicle, _toggle); + fn__setBoatSinksWhenWrecked(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96086,9 +96086,9 @@ public void SetBoatIsSinking(int _p0) public void SetVehicleSiren(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleSiren == null) fn__setVehicleSiren = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSiren"); + if (fn__setVehicleSiren == null) fn__setVehicleSiren = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSiren"); var success = false; - fn__setVehicleSiren(&success, _vehicle, _toggle); + fn__setVehicleSiren(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96097,11 +96097,11 @@ public void SetVehicleSiren(int _vehicle, bool _toggle) public bool IsVehicleSirenOn(int _vehicle) { unsafe { - if (fn__isVehicleSirenOn == null) fn__isVehicleSirenOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSirenOn"); + if (fn__isVehicleSirenOn == null) fn__isVehicleSirenOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSirenOn"); var success = false; var result = fn__isVehicleSirenOn(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96109,11 +96109,11 @@ public bool IsVehicleSirenOn(int _vehicle) public bool IsVehicleSirenAudioOn(int _vehicle) { unsafe { - if (fn__isVehicleSirenAudioOn == null) fn__isVehicleSirenAudioOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSirenAudioOn"); + if (fn__isVehicleSirenAudioOn == null) fn__isVehicleSirenAudioOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSirenAudioOn"); var success = false; var result = fn__isVehicleSirenAudioOn(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96121,9 +96121,9 @@ public bool IsVehicleSirenAudioOn(int _vehicle) public void SetVehicleStrong(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleStrong == null) fn__setVehicleStrong = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleStrong"); + if (fn__setVehicleStrong == null) fn__setVehicleStrong = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleStrong"); var success = false; - fn__setVehicleStrong(&success, _vehicle, _toggle); + fn__setVehicleStrong(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96158,11 +96158,11 @@ public void GetVehicleColours(int _vehicle, ref int _colorPrimary, ref int _colo public bool IsVehicleSeatFree(int _vehicle, int _seatIndex, bool _isTaskRunning) { unsafe { - if (fn__isVehicleSeatFree == null) fn__isVehicleSeatFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSeatFree"); + if (fn__isVehicleSeatFree == null) fn__isVehicleSeatFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSeatFree"); var success = false; - var result = fn__isVehicleSeatFree(&success, _vehicle, _seatIndex, _isTaskRunning); + var result = fn__isVehicleSeatFree(&success, _vehicle, _seatIndex, (byte) (_isTaskRunning ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96170,9 +96170,9 @@ public bool IsVehicleSeatFree(int _vehicle, int _seatIndex, bool _isTaskRunning) public int GetPedInVehicleSeat(int _vehicle, int _seatIndex, bool _p2) { unsafe { - if (fn__getPedInVehicleSeat == null) fn__getPedInVehicleSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedInVehicleSeat"); + if (fn__getPedInVehicleSeat == null) fn__getPedInVehicleSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedInVehicleSeat"); var success = false; - var result = fn__getPedInVehicleSeat(&success, _vehicle, _seatIndex, _p2); + var result = fn__getPedInVehicleSeat(&success, _vehicle, _seatIndex, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -96194,15 +96194,15 @@ public int GetLastPedInVehicleSeat(int _vehicle, int _seatIndex) public bool GetVehicleLightsState(int _vehicle, ref bool _lightsOn, ref bool _highbeamsOn) { unsafe { - if (fn__getVehicleLightsState == null) fn__getVehicleLightsState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleLightsState"); + if (fn__getVehicleLightsState == null) fn__getVehicleLightsState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleLightsState"); var success = false; - var ref_lightsOn = _lightsOn; - var ref_highbeamsOn = _highbeamsOn; + var ref_lightsOn = (byte) (_lightsOn ? 1 : 0); + var ref_highbeamsOn = (byte) (_highbeamsOn ? 1 : 0); var result = fn__getVehicleLightsState(&success, _vehicle, &ref_lightsOn, &ref_highbeamsOn); - _lightsOn = ref_lightsOn; - _highbeamsOn = ref_highbeamsOn; + _lightsOn = ref_lightsOn == 0 ? false : true; + _highbeamsOn = ref_highbeamsOn == 0 ? false : true; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96210,11 +96210,11 @@ public bool GetVehicleLightsState(int _vehicle, ref bool _lightsOn, ref bool _hi public bool IsVehicleTyreBurst(int _vehicle, int _wheelID, bool _completely) { unsafe { - if (fn__isVehicleTyreBurst == null) fn__isVehicleTyreBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleTyreBurst"); + if (fn__isVehicleTyreBurst == null) fn__isVehicleTyreBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleTyreBurst"); var success = false; - var result = fn__isVehicleTyreBurst(&success, _vehicle, _wheelID, _completely); + var result = fn__isVehicleTyreBurst(&success, _vehicle, _wheelID, (byte) (_completely ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96243,9 +96243,9 @@ public void _0x6501129C9E0FFA05(int _p0, int _p1) public void BringVehicleToHalt(int _vehicle, float _distance, int _duration, bool _unknown) { unsafe { - if (fn__bringVehicleToHalt == null) fn__bringVehicleToHalt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_bringVehicleToHalt"); + if (fn__bringVehicleToHalt == null) fn__bringVehicleToHalt = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_bringVehicleToHalt"); var success = false; - fn__bringVehicleToHalt(&success, _vehicle, _distance, _duration, _unknown); + fn__bringVehicleToHalt(&success, _vehicle, _distance, _duration, (byte) (_unknown ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96265,9 +96265,9 @@ public void _0xDCE97BDF8A0EABC8(int _vehicle, int _p1) public void _0x9849DE24FCF23CCC(int _vehicle, bool _toggle) { unsafe { - if (fn__0x9849DE24FCF23CCC == null) fn__0x9849DE24FCF23CCC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9849DE24FCF23CCC"); + if (fn__0x9849DE24FCF23CCC == null) fn__0x9849DE24FCF23CCC = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9849DE24FCF23CCC"); var success = false; - fn__0x9849DE24FCF23CCC(&success, _vehicle, _toggle); + fn__0x9849DE24FCF23CCC(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96297,11 +96297,11 @@ public void StopBringVehicleToHalt(int _vehicle) public bool IsVehicleBeingHalted(int _vehicle) { unsafe { - if (fn__isVehicleBeingHalted == null) fn__isVehicleBeingHalted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBeingHalted"); + if (fn__isVehicleBeingHalted == null) fn__isVehicleBeingHalted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBeingHalted"); var success = false; var result = fn__isVehicleBeingHalted(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96322,11 +96322,11 @@ public void SetForkliftForkHeight(int _vehicle, float _height) public bool IsEntityAttachedToHandlerFrame(int _vehicle, int _entity) { unsafe { - if (fn__isEntityAttachedToHandlerFrame == null) fn__isEntityAttachedToHandlerFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToHandlerFrame"); + if (fn__isEntityAttachedToHandlerFrame == null) fn__isEntityAttachedToHandlerFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isEntityAttachedToHandlerFrame"); var success = false; var result = fn__isEntityAttachedToHandlerFrame(&success, _vehicle, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96334,11 +96334,11 @@ public bool IsEntityAttachedToHandlerFrame(int _vehicle, int _entity) public bool IsAnyEntityAttachedToHandlerFrame(int _vehicle) { unsafe { - if (fn__isAnyEntityAttachedToHandlerFrame == null) fn__isAnyEntityAttachedToHandlerFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyEntityAttachedToHandlerFrame"); + if (fn__isAnyEntityAttachedToHandlerFrame == null) fn__isAnyEntityAttachedToHandlerFrame = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyEntityAttachedToHandlerFrame"); var success = false; var result = fn__isAnyEntityAttachedToHandlerFrame(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96360,11 +96360,11 @@ public int FindVehicleCarryingThisEntity(int _entity) public bool IsHandlerFrameAboveContainer(int _vehicle, int _entity) { unsafe { - if (fn__isHandlerFrameAboveContainer == null) fn__isHandlerFrameAboveContainer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHandlerFrameAboveContainer"); + if (fn__isHandlerFrameAboveContainer == null) fn__isHandlerFrameAboveContainer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHandlerFrameAboveContainer"); var success = false; var result = fn__isHandlerFrameAboveContainer(&success, _vehicle, _entity); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96396,9 +96396,9 @@ public void DetachContainerFromHandlerFrame(int _vehicle) public void _0x8AA9180DE2FEDD45(int _vehicle, bool _p1) { unsafe { - if (fn__0x8AA9180DE2FEDD45 == null) fn__0x8AA9180DE2FEDD45 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8AA9180DE2FEDD45"); + if (fn__0x8AA9180DE2FEDD45 == null) fn__0x8AA9180DE2FEDD45 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8AA9180DE2FEDD45"); var success = false; - fn__0x8AA9180DE2FEDD45(&success, _vehicle, _p1); + fn__0x8AA9180DE2FEDD45(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96407,9 +96407,9 @@ public void _0x8AA9180DE2FEDD45(int _vehicle, bool _p1) public void SetBoatDisableAvoidance(int _vehicle, bool _p1) { unsafe { - if (fn__setBoatDisableAvoidance == null) fn__setBoatDisableAvoidance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatDisableAvoidance"); + if (fn__setBoatDisableAvoidance == null) fn__setBoatDisableAvoidance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setBoatDisableAvoidance"); var success = false; - fn__setBoatDisableAvoidance(&success, _vehicle, _p1); + fn__setBoatDisableAvoidance(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96418,11 +96418,11 @@ public void SetBoatDisableAvoidance(int _vehicle, bool _p1) public bool IsHeliLandingAreaBlocked(int _vehicle) { unsafe { - if (fn__isHeliLandingAreaBlocked == null) fn__isHeliLandingAreaBlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHeliLandingAreaBlocked"); + if (fn__isHeliLandingAreaBlocked == null) fn__isHeliLandingAreaBlocked = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHeliLandingAreaBlocked"); var success = false; var result = fn__isHeliLandingAreaBlocked(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96463,9 +96463,9 @@ public void SetCarBootOpen(int _vehicle) public void SetVehicleTyreBurst(int _vehicle, int _index, bool _onRim, float _p3) { unsafe { - if (fn__setVehicleTyreBurst == null) fn__setVehicleTyreBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTyreBurst"); + if (fn__setVehicleTyreBurst == null) fn__setVehicleTyreBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTyreBurst"); var success = false; - fn__setVehicleTyreBurst(&success, _vehicle, _index, _onRim, _p3); + fn__setVehicleTyreBurst(&success, _vehicle, _index, (byte) (_onRim ? 1 : 0), _p3); if (!success) throw new Exception("Native execution failed"); } } @@ -96474,9 +96474,9 @@ public void SetVehicleTyreBurst(int _vehicle, int _index, bool _onRim, float _p3 public void SetVehicleDoorsShut(int _vehicle, bool _closeInstantly) { unsafe { - if (fn__setVehicleDoorsShut == null) fn__setVehicleDoorsShut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsShut"); + if (fn__setVehicleDoorsShut == null) fn__setVehicleDoorsShut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorsShut"); var success = false; - fn__setVehicleDoorsShut(&success, _vehicle, _closeInstantly); + fn__setVehicleDoorsShut(&success, _vehicle, (byte) (_closeInstantly ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96485,9 +96485,9 @@ public void SetVehicleDoorsShut(int _vehicle, bool _closeInstantly) public void SetVehicleTyresCanBurst(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleTyresCanBurst == null) fn__setVehicleTyresCanBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTyresCanBurst"); + if (fn__setVehicleTyresCanBurst == null) fn__setVehicleTyresCanBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTyresCanBurst"); var success = false; - fn__setVehicleTyresCanBurst(&success, _vehicle, _toggle); + fn__setVehicleTyresCanBurst(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96496,11 +96496,11 @@ public void SetVehicleTyresCanBurst(int _vehicle, bool _toggle) public bool GetVehicleTyresCanBurst(int _vehicle) { unsafe { - if (fn__getVehicleTyresCanBurst == null) fn__getVehicleTyresCanBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleTyresCanBurst"); + if (fn__getVehicleTyresCanBurst == null) fn__getVehicleTyresCanBurst = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleTyresCanBurst"); var success = false; var result = fn__getVehicleTyresCanBurst(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96508,9 +96508,9 @@ public bool GetVehicleTyresCanBurst(int _vehicle) public void SetVehicleWheelsCanBreak(int _vehicle, bool _enabled) { unsafe { - if (fn__setVehicleWheelsCanBreak == null) fn__setVehicleWheelsCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsCanBreak"); + if (fn__setVehicleWheelsCanBreak == null) fn__setVehicleWheelsCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsCanBreak"); var success = false; - fn__setVehicleWheelsCanBreak(&success, _vehicle, _enabled); + fn__setVehicleWheelsCanBreak(&success, _vehicle, (byte) (_enabled ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96519,9 +96519,9 @@ public void SetVehicleWheelsCanBreak(int _vehicle, bool _enabled) public void SetVehicleDoorOpen(int _vehicle, int _doorId, bool _loose, bool _openInstantly) { unsafe { - if (fn__setVehicleDoorOpen == null) fn__setVehicleDoorOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorOpen"); + if (fn__setVehicleDoorOpen == null) fn__setVehicleDoorOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorOpen"); var success = false; - fn__setVehicleDoorOpen(&success, _vehicle, _doorId, _loose, _openInstantly); + fn__setVehicleDoorOpen(&success, _vehicle, _doorId, (byte) (_loose ? 1 : 0), (byte) (_openInstantly ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96530,9 +96530,9 @@ public void SetVehicleDoorOpen(int _vehicle, int _doorId, bool _loose, bool _ope public void _0x3B458DDB57038F08(int _vehicle, int _doorId, bool _toggle) { unsafe { - if (fn__0x3B458DDB57038F08 == null) fn__0x3B458DDB57038F08 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3B458DDB57038F08"); + if (fn__0x3B458DDB57038F08 == null) fn__0x3B458DDB57038F08 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3B458DDB57038F08"); var success = false; - fn__0x3B458DDB57038F08(&success, _vehicle, _doorId, _toggle); + fn__0x3B458DDB57038F08(&success, _vehicle, _doorId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96650,9 +96650,9 @@ public void SetVehicleLights(int _vehicle, int _state) public void SetVehicleUsePlayerLightSettings(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleUsePlayerLightSettings == null) fn__setVehicleUsePlayerLightSettings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUsePlayerLightSettings"); + if (fn__setVehicleUsePlayerLightSettings == null) fn__setVehicleUsePlayerLightSettings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUsePlayerLightSettings"); var success = false; - fn__setVehicleUsePlayerLightSettings(&success, _vehicle, _toggle); + fn__setVehicleUsePlayerLightSettings(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96672,9 +96672,9 @@ public void SetVehicleLightsMode(int _vehicle, int _p1) public void SetVehicleAlarm(int _vehicle, bool _state) { unsafe { - if (fn__setVehicleAlarm == null) fn__setVehicleAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAlarm"); + if (fn__setVehicleAlarm == null) fn__setVehicleAlarm = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAlarm"); var success = false; - fn__setVehicleAlarm(&success, _vehicle, _state); + fn__setVehicleAlarm(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96694,11 +96694,11 @@ public void StartVehicleAlarm(int _vehicle) public bool IsVehicleAlarmActivated(int _vehicle) { unsafe { - if (fn__isVehicleAlarmActivated == null) fn__isVehicleAlarmActivated = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAlarmActivated"); + if (fn__isVehicleAlarmActivated == null) fn__isVehicleAlarmActivated = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAlarmActivated"); var success = false; var result = fn__isVehicleAlarmActivated(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96706,9 +96706,9 @@ public bool IsVehicleAlarmActivated(int _vehicle) public void SetVehicleInteriorlight(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleInteriorlight == null) fn__setVehicleInteriorlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleInteriorlight"); + if (fn__setVehicleInteriorlight == null) fn__setVehicleInteriorlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleInteriorlight"); var success = false; - fn__setVehicleInteriorlight(&success, _vehicle, _toggle); + fn__setVehicleInteriorlight(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96717,9 +96717,9 @@ public void SetVehicleInteriorlight(int _vehicle, bool _toggle) public void _0x8821196D91FA2DE5(int _vehicle, bool _toggle) { unsafe { - if (fn__0x8821196D91FA2DE5 == null) fn__0x8821196D91FA2DE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8821196D91FA2DE5"); + if (fn__0x8821196D91FA2DE5 == null) fn__0x8821196D91FA2DE5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8821196D91FA2DE5"); var success = false; - fn__0x8821196D91FA2DE5(&success, _vehicle, _toggle); + fn__0x8821196D91FA2DE5(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96789,11 +96789,11 @@ public void DetachVehicleFromTrailer(int _vehicle) public bool IsVehicleAttachedToTrailer(int _vehicle) { unsafe { - if (fn__isVehicleAttachedToTrailer == null) fn__isVehicleAttachedToTrailer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToTrailer"); + if (fn__isVehicleAttachedToTrailer == null) fn__isVehicleAttachedToTrailer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToTrailer"); var success = false; var result = fn__isVehicleAttachedToTrailer(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -96904,9 +96904,9 @@ public int GetVehicleNumberPlateTextIndex(int _vehicle) public void SetRandomTrains(bool _toggle) { unsafe { - if (fn__setRandomTrains == null) fn__setRandomTrains = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomTrains"); + if (fn__setRandomTrains == null) fn__setRandomTrains = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomTrains"); var success = false; - fn__setRandomTrains(&success, _toggle); + fn__setRandomTrains(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96914,9 +96914,9 @@ public void SetRandomTrains(bool _toggle) public int CreateMissionTrain(int _unkVariation, float _x, float _y, float _z, bool _direction, int _p5, int _p6) { unsafe { - if (fn__createMissionTrain == null) fn__createMissionTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createMissionTrain"); + if (fn__createMissionTrain == null) fn__createMissionTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createMissionTrain"); var success = false; - var result = fn__createMissionTrain(&success, _unkVariation, _x, _y, _z, _direction, _p5, _p6); + var result = fn__createMissionTrain(&success, _unkVariation, _x, _y, _z, (byte) (_direction ? 1 : 0), _p5, _p6); if (!success) throw new Exception("Native execution failed"); return result; } @@ -96925,9 +96925,9 @@ public int CreateMissionTrain(int _unkVariation, float _x, float _y, float _z, b public void SwitchTrainTrack(int _trackId, bool _state) { unsafe { - if (fn__switchTrainTrack == null) fn__switchTrainTrack = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchTrainTrack"); + if (fn__switchTrainTrack == null) fn__switchTrainTrack = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_switchTrainTrack"); var success = false; - fn__switchTrainTrack(&success, _trackId, _state); + fn__switchTrainTrack(&success, _trackId, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96987,9 +96987,9 @@ public void SetTrainCruiseSpeed(int _train, float _speed) public void SetRandomBoats(bool _toggle) { unsafe { - if (fn__setRandomBoats == null) fn__setRandomBoats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomBoats"); + if (fn__setRandomBoats == null) fn__setRandomBoats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomBoats"); var success = false; - fn__setRandomBoats(&success, _toggle); + fn__setRandomBoats(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -96997,9 +96997,9 @@ public void SetRandomBoats(bool _toggle) public void SetRandomBoatsInMp(bool _toggle) { unsafe { - if (fn__setRandomBoatsInMp == null) fn__setRandomBoatsInMp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomBoatsInMp"); + if (fn__setRandomBoatsInMp == null) fn__setRandomBoatsInMp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRandomBoatsInMp"); var success = false; - fn__setRandomBoatsInMp(&success, _toggle); + fn__setRandomBoatsInMp(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97007,9 +97007,9 @@ public void SetRandomBoatsInMp(bool _toggle) public void SetGarbageTrucks(bool _toggle) { unsafe { - if (fn__setGarbageTrucks == null) fn__setGarbageTrucks = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGarbageTrucks"); + if (fn__setGarbageTrucks == null) fn__setGarbageTrucks = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setGarbageTrucks"); var success = false; - fn__setGarbageTrucks(&success, _toggle); + fn__setGarbageTrucks(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97018,11 +97018,11 @@ public void SetGarbageTrucks(bool _toggle) public bool DoesVehicleHaveStuckVehicleCheck(int _vehicle) { unsafe { - if (fn__doesVehicleHaveStuckVehicleCheck == null) fn__doesVehicleHaveStuckVehicleCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveStuckVehicleCheck"); + if (fn__doesVehicleHaveStuckVehicleCheck == null) fn__doesVehicleHaveStuckVehicleCheck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveStuckVehicleCheck"); var success = false; var result = fn__doesVehicleHaveStuckVehicleCheck(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97054,13 +97054,13 @@ public void RequestVehicleRecording(int _recording, string _script) public bool HasVehicleRecordingBeenLoaded(int _recording, string _script) { unsafe { - if (fn__hasVehicleRecordingBeenLoaded == null) fn__hasVehicleRecordingBeenLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleRecordingBeenLoaded"); + if (fn__hasVehicleRecordingBeenLoaded == null) fn__hasVehicleRecordingBeenLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleRecordingBeenLoaded"); var success = false; var ptr_script = MemoryUtils.StringToHGlobalUtf8(_script); var result = fn__hasVehicleRecordingBeenLoaded(&success, _recording, ptr_script); Marshal.FreeHGlobal(ptr_script); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97176,10 +97176,10 @@ public float GetTimePositionInRecording(int _vehicle) public void StartPlaybackRecordedVehicle(int _vehicle, int _recording, string _script, bool _p3) { unsafe { - if (fn__startPlaybackRecordedVehicle == null) fn__startPlaybackRecordedVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startPlaybackRecordedVehicle"); + if (fn__startPlaybackRecordedVehicle == null) fn__startPlaybackRecordedVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startPlaybackRecordedVehicle"); var success = false; var ptr_script = MemoryUtils.StringToHGlobalUtf8(_script); - fn__startPlaybackRecordedVehicle(&success, _vehicle, _recording, ptr_script, _p3); + fn__startPlaybackRecordedVehicle(&success, _vehicle, _recording, ptr_script, (byte) (_p3 ? 1 : 0)); Marshal.FreeHGlobal(ptr_script); if (!success) throw new Exception("Native execution failed"); } @@ -97202,9 +97202,9 @@ public void StartPlaybackRecordedVehicleWithFlags(int _vehicle, int _recording, public void ForcePlaybackRecordedVehicleUpdate(int _vehicle, bool _p1) { unsafe { - if (fn__forcePlaybackRecordedVehicleUpdate == null) fn__forcePlaybackRecordedVehicleUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePlaybackRecordedVehicleUpdate"); + if (fn__forcePlaybackRecordedVehicleUpdate == null) fn__forcePlaybackRecordedVehicleUpdate = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_forcePlaybackRecordedVehicleUpdate"); var success = false; - fn__forcePlaybackRecordedVehicleUpdate(&success, _vehicle, _p1); + fn__forcePlaybackRecordedVehicleUpdate(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97246,11 +97246,11 @@ public void UnpausePlaybackRecordedVehicle(int _vehicle) public bool IsPlaybackGoingOnForVehicle(int _vehicle) { unsafe { - if (fn__isPlaybackGoingOnForVehicle == null) fn__isPlaybackGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaybackGoingOnForVehicle"); + if (fn__isPlaybackGoingOnForVehicle == null) fn__isPlaybackGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaybackGoingOnForVehicle"); var success = false; var result = fn__isPlaybackGoingOnForVehicle(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97258,11 +97258,11 @@ public bool IsPlaybackGoingOnForVehicle(int _vehicle) public bool IsPlaybackUsingAiGoingOnForVehicle(int _vehicle) { unsafe { - if (fn__isPlaybackUsingAiGoingOnForVehicle == null) fn__isPlaybackUsingAiGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaybackUsingAiGoingOnForVehicle"); + if (fn__isPlaybackUsingAiGoingOnForVehicle == null) fn__isPlaybackUsingAiGoingOnForVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaybackUsingAiGoingOnForVehicle"); var success = false; var result = fn__isPlaybackUsingAiGoingOnForVehicle(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97339,9 +97339,9 @@ public void SetPlaybackToUseAi(int _vehicle, int _drivingStyle) public void SetPlaybackToUseAiTryToRevertBackLater(int _vehicle, int _time, int _drivingStyle, bool _p3) { unsafe { - if (fn__setPlaybackToUseAiTryToRevertBackLater == null) fn__setPlaybackToUseAiTryToRevertBackLater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlaybackToUseAiTryToRevertBackLater"); + if (fn__setPlaybackToUseAiTryToRevertBackLater == null) fn__setPlaybackToUseAiTryToRevertBackLater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlaybackToUseAiTryToRevertBackLater"); var success = false; - fn__setPlaybackToUseAiTryToRevertBackLater(&success, _vehicle, _time, _drivingStyle, _p3); + fn__setPlaybackToUseAiTryToRevertBackLater(&success, _vehicle, _time, _drivingStyle, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97381,9 +97381,9 @@ public void _0xFAF2A78061FD9EF4(int _p0, float _p1, float _p2, float _p3) public void _0x063AE2B2CC273588(int _vehicle, bool _p1) { unsafe { - if (fn__0x063AE2B2CC273588 == null) fn__0x063AE2B2CC273588 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x063AE2B2CC273588"); + if (fn__0x063AE2B2CC273588 == null) fn__0x063AE2B2CC273588 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x063AE2B2CC273588"); var success = false; - fn__0x063AE2B2CC273588(&success, _vehicle, _p1); + fn__0x063AE2B2CC273588(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97392,9 +97392,9 @@ public void _0x063AE2B2CC273588(int _vehicle, bool _p1) public void ExplodeVehicleInCutscene(int _vehicle, bool _p1) { unsafe { - if (fn__explodeVehicleInCutscene == null) fn__explodeVehicleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeVehicleInCutscene"); + if (fn__explodeVehicleInCutscene == null) fn__explodeVehicleInCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeVehicleInCutscene"); var success = false; - fn__explodeVehicleInCutscene(&success, _vehicle, _p1); + fn__explodeVehicleInCutscene(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97402,9 +97402,9 @@ public void ExplodeVehicleInCutscene(int _vehicle, bool _p1) public void AddVehicleStuckCheckWithWarp(int _p0, float _p1, int _p2, bool _p3, bool _p4, bool _p5, int _p6) { unsafe { - if (fn__addVehicleStuckCheckWithWarp == null) fn__addVehicleStuckCheckWithWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addVehicleStuckCheckWithWarp"); + if (fn__addVehicleStuckCheckWithWarp == null) fn__addVehicleStuckCheckWithWarp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addVehicleStuckCheckWithWarp"); var success = false; - fn__addVehicleStuckCheckWithWarp(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6); + fn__addVehicleStuckCheckWithWarp(&success, _p0, _p1, _p2, (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0), (byte) (_p5 ? 1 : 0), _p6); if (!success) throw new Exception("Native execution failed"); } } @@ -97412,9 +97412,9 @@ public void AddVehicleStuckCheckWithWarp(int _p0, float _p1, int _p2, bool _p3, public void SetVehicleModelIsSuppressed(uint _model, bool _suppressed) { unsafe { - if (fn__setVehicleModelIsSuppressed == null) fn__setVehicleModelIsSuppressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleModelIsSuppressed"); + if (fn__setVehicleModelIsSuppressed == null) fn__setVehicleModelIsSuppressed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleModelIsSuppressed"); var success = false; - fn__setVehicleModelIsSuppressed(&success, _model, _suppressed); + fn__setVehicleModelIsSuppressed(&success, _model, (byte) (_suppressed ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97479,11 +97479,11 @@ public int GetTrainCarriage(int _train, int _trailerNumber) public bool IsMissionTrain(int _vehicle) { unsafe { - if (fn__isMissionTrain == null) fn__isMissionTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionTrain"); + if (fn__isMissionTrain == null) fn__isMissionTrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isMissionTrain"); var success = false; var result = fn__isMissionTrain(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97502,10 +97502,10 @@ public void DeleteMissionTrain(ref int _train) public void SetMissionTrainAsNoLongerNeeded(ref int _train, bool _p1) { unsafe { - if (fn__setMissionTrainAsNoLongerNeeded == null) fn__setMissionTrainAsNoLongerNeeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionTrainAsNoLongerNeeded"); + if (fn__setMissionTrainAsNoLongerNeeded == null) fn__setMissionTrainAsNoLongerNeeded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setMissionTrainAsNoLongerNeeded"); var success = false; var ref_train = _train; - fn__setMissionTrainAsNoLongerNeeded(&success, &ref_train, _p1); + fn__setMissionTrainAsNoLongerNeeded(&success, &ref_train, (byte) (_p1 ? 1 : 0)); _train = ref_train; if (!success) throw new Exception("Native execution failed"); } @@ -97525,121 +97525,121 @@ public void SetMissionTrainCoords(int _train, float _x, float _y, float _z) public bool IsThisModelABoat(uint _model) { unsafe { - if (fn__isThisModelABoat == null) fn__isThisModelABoat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABoat"); + if (fn__isThisModelABoat == null) fn__isThisModelABoat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABoat"); var success = false; var result = fn__isThisModelABoat(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAJetski(uint _model) { unsafe { - if (fn__isThisModelAJetski == null) fn__isThisModelAJetski = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAJetski"); + if (fn__isThisModelAJetski == null) fn__isThisModelAJetski = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAJetski"); var success = false; var result = fn__isThisModelAJetski(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAPlane(uint _model) { unsafe { - if (fn__isThisModelAPlane == null) fn__isThisModelAPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAPlane"); + if (fn__isThisModelAPlane == null) fn__isThisModelAPlane = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAPlane"); var success = false; var result = fn__isThisModelAPlane(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAHeli(uint _model) { unsafe { - if (fn__isThisModelAHeli == null) fn__isThisModelAHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAHeli"); + if (fn__isThisModelAHeli == null) fn__isThisModelAHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAHeli"); var success = false; var result = fn__isThisModelAHeli(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelACar(uint _model) { unsafe { - if (fn__isThisModelACar == null) fn__isThisModelACar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelACar"); + if (fn__isThisModelACar == null) fn__isThisModelACar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelACar"); var success = false; var result = fn__isThisModelACar(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelATrain(uint _model) { unsafe { - if (fn__isThisModelATrain == null) fn__isThisModelATrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelATrain"); + if (fn__isThisModelATrain == null) fn__isThisModelATrain = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelATrain"); var success = false; var result = fn__isThisModelATrain(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelABike(uint _model) { unsafe { - if (fn__isThisModelABike == null) fn__isThisModelABike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABike"); + if (fn__isThisModelABike == null) fn__isThisModelABike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABike"); var success = false; var result = fn__isThisModelABike(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelABicycle(uint _model) { unsafe { - if (fn__isThisModelABicycle == null) fn__isThisModelABicycle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABicycle"); + if (fn__isThisModelABicycle == null) fn__isThisModelABicycle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelABicycle"); var success = false; var result = fn__isThisModelABicycle(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAQuadbike(uint _model) { unsafe { - if (fn__isThisModelAQuadbike == null) fn__isThisModelAQuadbike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAQuadbike"); + if (fn__isThisModelAQuadbike == null) fn__isThisModelAQuadbike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAQuadbike"); var success = false; var result = fn__isThisModelAQuadbike(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAnAmphibiousCar(uint _model) { unsafe { - if (fn__isThisModelAnAmphibiousCar == null) fn__isThisModelAnAmphibiousCar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAnAmphibiousCar"); + if (fn__isThisModelAnAmphibiousCar == null) fn__isThisModelAnAmphibiousCar = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAnAmphibiousCar"); var success = false; var result = fn__isThisModelAnAmphibiousCar(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsThisModelAnAmphibiousQuadbike(uint _model) { unsafe { - if (fn__isThisModelAnAmphibiousQuadbike == null) fn__isThisModelAnAmphibiousQuadbike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAnAmphibiousQuadbike"); + if (fn__isThisModelAnAmphibiousQuadbike == null) fn__isThisModelAnAmphibiousQuadbike = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isThisModelAnAmphibiousQuadbike"); var success = false; var result = fn__isThisModelAnAmphibiousQuadbike(&success, _model); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97680,9 +97680,9 @@ public void _0x99CAD8E7AFDB60FA(int _vehicle, float _p1, float _p2) public void SetVehicleCanBeTargetted(int _vehicle, bool _state) { unsafe { - if (fn__setVehicleCanBeTargetted == null) fn__setVehicleCanBeTargetted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeTargetted"); + if (fn__setVehicleCanBeTargetted == null) fn__setVehicleCanBeTargetted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeTargetted"); var success = false; - fn__setVehicleCanBeTargetted(&success, _vehicle, _state); + fn__setVehicleCanBeTargetted(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97691,9 +97691,9 @@ public void SetVehicleCanBeTargetted(int _vehicle, bool _state) public void _0xDBC631F109350B8C(int _vehicle, bool _p1) { unsafe { - if (fn__0xDBC631F109350B8C == null) fn__0xDBC631F109350B8C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDBC631F109350B8C"); + if (fn__0xDBC631F109350B8C == null) fn__0xDBC631F109350B8C = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xDBC631F109350B8C"); var success = false; - fn__0xDBC631F109350B8C(&success, _vehicle, _p1); + fn__0xDBC631F109350B8C(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97702,9 +97702,9 @@ public void _0xDBC631F109350B8C(int _vehicle, bool _p1) public void SetVehicleCanBeVisiblyDamaged(int _vehicle, bool _state) { unsafe { - if (fn__setVehicleCanBeVisiblyDamaged == null) fn__setVehicleCanBeVisiblyDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeVisiblyDamaged"); + if (fn__setVehicleCanBeVisiblyDamaged == null) fn__setVehicleCanBeVisiblyDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeVisiblyDamaged"); var success = false; - fn__setVehicleCanBeVisiblyDamaged(&success, _vehicle, _state); + fn__setVehicleCanBeVisiblyDamaged(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97713,9 +97713,9 @@ public void SetVehicleCanBeVisiblyDamaged(int _vehicle, bool _state) public void SetVehicleHasUnbreakableLights(int _vehicle, bool _p1) { unsafe { - if (fn__setVehicleHasUnbreakableLights == null) fn__setVehicleHasUnbreakableLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasUnbreakableLights"); + if (fn__setVehicleHasUnbreakableLights == null) fn__setVehicleHasUnbreakableLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasUnbreakableLights"); var success = false; - fn__setVehicleHasUnbreakableLights(&success, _vehicle, _p1); + fn__setVehicleHasUnbreakableLights(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97724,9 +97724,9 @@ public void SetVehicleHasUnbreakableLights(int _vehicle, bool _p1) public void _0x2311DD7159F00582(int _vehicle, bool _p1) { unsafe { - if (fn__0x2311DD7159F00582 == null) fn__0x2311DD7159F00582 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2311DD7159F00582"); + if (fn__0x2311DD7159F00582 == null) fn__0x2311DD7159F00582 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2311DD7159F00582"); var success = false; - fn__0x2311DD7159F00582(&success, _vehicle, _p1); + fn__0x2311DD7159F00582(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97768,11 +97768,11 @@ public void SetVehicleDirtLevel(int _vehicle, float _dirtLevel) public bool IsVehicleDamaged(int _vehicle) { unsafe { - if (fn__isVehicleDamaged == null) fn__isVehicleDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDamaged"); + if (fn__isVehicleDamaged == null) fn__isVehicleDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDamaged"); var success = false; var result = fn__isVehicleDamaged(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97780,11 +97780,11 @@ public bool IsVehicleDamaged(int _vehicle) public bool IsVehicleDoorFullyOpen(int _vehicle, int _doorId) { unsafe { - if (fn__isVehicleDoorFullyOpen == null) fn__isVehicleDoorFullyOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDoorFullyOpen"); + if (fn__isVehicleDoorFullyOpen == null) fn__isVehicleDoorFullyOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDoorFullyOpen"); var success = false; var result = fn__isVehicleDoorFullyOpen(&success, _vehicle, _doorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97792,9 +97792,9 @@ public bool IsVehicleDoorFullyOpen(int _vehicle, int _doorId) public void SetVehicleEngineOn(int _vehicle, bool _value, bool _instantly, bool _disableAutoStart) { unsafe { - if (fn__setVehicleEngineOn == null) fn__setVehicleEngineOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleEngineOn"); + if (fn__setVehicleEngineOn == null) fn__setVehicleEngineOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleEngineOn"); var success = false; - fn__setVehicleEngineOn(&success, _vehicle, _value, _instantly, _disableAutoStart); + fn__setVehicleEngineOn(&success, _vehicle, (byte) (_value ? 1 : 0), (byte) (_instantly ? 1 : 0), (byte) (_disableAutoStart ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97803,9 +97803,9 @@ public void SetVehicleEngineOn(int _vehicle, bool _value, bool _instantly, bool public void SetVehicleUndriveable(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleUndriveable == null) fn__setVehicleUndriveable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUndriveable"); + if (fn__setVehicleUndriveable == null) fn__setVehicleUndriveable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUndriveable"); var success = false; - fn__setVehicleUndriveable(&success, _vehicle, _toggle); + fn__setVehicleUndriveable(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97814,9 +97814,9 @@ public void SetVehicleUndriveable(int _vehicle, bool _toggle) public void SetVehicleProvidesCover(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleProvidesCover == null) fn__setVehicleProvidesCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleProvidesCover"); + if (fn__setVehicleProvidesCover == null) fn__setVehicleProvidesCover = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleProvidesCover"); var success = false; - fn__setVehicleProvidesCover(&success, _vehicle, _toggle); + fn__setVehicleProvidesCover(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97836,9 +97836,9 @@ public void SetVehicleDoorControl(int _vehicle, int _doorId, int _speed, float _ public void SetVehicleDoorLatched(int _vehicle, int _doorId, bool _p2, bool _p3, bool _p4) { unsafe { - if (fn__setVehicleDoorLatched == null) fn__setVehicleDoorLatched = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorLatched"); + if (fn__setVehicleDoorLatched == null) fn__setVehicleDoorLatched = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorLatched"); var success = false; - fn__setVehicleDoorLatched(&success, _vehicle, _doorId, _p2, _p3, _p4); + fn__setVehicleDoorLatched(&success, _vehicle, _doorId, (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97871,9 +97871,9 @@ public int GetPedUsingVehicleDoor(int _vehicle, int _doord) public void SetVehicleDoorShut(int _vehicle, int _doorId, bool _closeInstantly) { unsafe { - if (fn__setVehicleDoorShut == null) fn__setVehicleDoorShut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorShut"); + if (fn__setVehicleDoorShut == null) fn__setVehicleDoorShut = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorShut"); var success = false; - fn__setVehicleDoorShut(&success, _vehicle, _doorId, _closeInstantly); + fn__setVehicleDoorShut(&success, _vehicle, _doorId, (byte) (_closeInstantly ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97882,9 +97882,9 @@ public void SetVehicleDoorShut(int _vehicle, int _doorId, bool _closeInstantly) public void SetVehicleDoorBroken(int _vehicle, int _doorId, bool _deleteDoor) { unsafe { - if (fn__setVehicleDoorBroken == null) fn__setVehicleDoorBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorBroken"); + if (fn__setVehicleDoorBroken == null) fn__setVehicleDoorBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorBroken"); var success = false; - fn__setVehicleDoorBroken(&success, _vehicle, _doorId, _deleteDoor); + fn__setVehicleDoorBroken(&success, _vehicle, _doorId, (byte) (_deleteDoor ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97893,9 +97893,9 @@ public void SetVehicleDoorBroken(int _vehicle, int _doorId, bool _deleteDoor) public void SetVehicleCanBreak(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanBreak == null) fn__setVehicleCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBreak"); + if (fn__setVehicleCanBreak == null) fn__setVehicleCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBreak"); var success = false; - fn__setVehicleCanBreak(&success, _vehicle, _toggle); + fn__setVehicleCanBreak(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -97904,11 +97904,11 @@ public void SetVehicleCanBreak(int _vehicle, bool _toggle) public bool DoesVehicleHaveRoof(int _vehicle) { unsafe { - if (fn__doesVehicleHaveRoof == null) fn__doesVehicleHaveRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveRoof"); + if (fn__doesVehicleHaveRoof == null) fn__doesVehicleHaveRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveRoof"); var success = false; var result = fn__doesVehicleHaveRoof(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -97946,11 +97946,11 @@ public void _0xB9562064627FF9DB(int _p0, int _p1) public bool IsBigVehicle(int _vehicle) { unsafe { - if (fn__isBigVehicle == null) fn__isBigVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBigVehicle"); + if (fn__isBigVehicle == null) fn__isBigVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isBigVehicle"); var success = false; var result = fn__isBigVehicle(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98016,9 +98016,9 @@ public int GetVehicleXenonLightsColor(int _vehicle) public void SetVehicleIsConsideredByPlayer(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleIsConsideredByPlayer == null) fn__setVehicleIsConsideredByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsConsideredByPlayer"); + if (fn__setVehicleIsConsideredByPlayer == null) fn__setVehicleIsConsideredByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsConsideredByPlayer"); var success = false; - fn__setVehicleIsConsideredByPlayer(&success, _vehicle, _toggle); + fn__setVehicleIsConsideredByPlayer(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98027,9 +98027,9 @@ public void SetVehicleIsConsideredByPlayer(int _vehicle, bool _toggle) public void _0xBE5C1255A1830FF5(int _vehicle, bool _toggle) { unsafe { - if (fn__0xBE5C1255A1830FF5 == null) fn__0xBE5C1255A1830FF5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBE5C1255A1830FF5"); + if (fn__0xBE5C1255A1830FF5 == null) fn__0xBE5C1255A1830FF5 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBE5C1255A1830FF5"); var success = false; - fn__0xBE5C1255A1830FF5(&success, _vehicle, _toggle); + fn__0xBE5C1255A1830FF5(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98038,9 +98038,9 @@ public void _0xBE5C1255A1830FF5(int _vehicle, bool _toggle) public void _0x9BECD4B9FEF3F8A6(int _vehicle, bool _p1) { unsafe { - if (fn__0x9BECD4B9FEF3F8A6 == null) fn__0x9BECD4B9FEF3F8A6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9BECD4B9FEF3F8A6"); + if (fn__0x9BECD4B9FEF3F8A6 == null) fn__0x9BECD4B9FEF3F8A6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9BECD4B9FEF3F8A6"); var success = false; - fn__0x9BECD4B9FEF3F8A6(&success, _vehicle, _p1); + fn__0x9BECD4B9FEF3F8A6(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98049,9 +98049,9 @@ public void _0x9BECD4B9FEF3F8A6(int _vehicle, bool _p1) public void _0x88BC673CA9E0AE99(int _vehicle, bool _p1) { unsafe { - if (fn__0x88BC673CA9E0AE99 == null) fn__0x88BC673CA9E0AE99 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x88BC673CA9E0AE99"); + if (fn__0x88BC673CA9E0AE99 == null) fn__0x88BC673CA9E0AE99 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x88BC673CA9E0AE99"); var success = false; - fn__0x88BC673CA9E0AE99(&success, _vehicle, _p1); + fn__0x88BC673CA9E0AE99(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98060,9 +98060,9 @@ public void _0x88BC673CA9E0AE99(int _vehicle, bool _p1) public void _0xE851E480B814D4BA(int _vehicle, bool _p1) { unsafe { - if (fn__0xE851E480B814D4BA == null) fn__0xE851E480B814D4BA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE851E480B814D4BA"); + if (fn__0xE851E480B814D4BA == null) fn__0xE851E480B814D4BA = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE851E480B814D4BA"); var success = false; - fn__0xE851E480B814D4BA(&success, _vehicle, _p1); + fn__0xE851E480B814D4BA(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98070,11 +98070,11 @@ public void _0xE851E480B814D4BA(int _vehicle, bool _p1) public void GetRandomVehicleModelInMemory(bool _p0, ref uint _modelHash, ref int _successIndicator) { unsafe { - if (fn__getRandomVehicleModelInMemory == null) fn__getRandomVehicleModelInMemory = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomVehicleModelInMemory"); + if (fn__getRandomVehicleModelInMemory == null) fn__getRandomVehicleModelInMemory = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getRandomVehicleModelInMemory"); var success = false; var ref_modelHash = _modelHash; var ref_successIndicator = _successIndicator; - fn__getRandomVehicleModelInMemory(&success, _p0, &ref_modelHash, &ref_successIndicator); + fn__getRandomVehicleModelInMemory(&success, (byte) (_p0 ? 1 : 0), &ref_modelHash, &ref_successIndicator); _modelHash = ref_modelHash; _successIndicator = ref_successIndicator; if (!success) throw new Exception("Native execution failed"); @@ -98109,11 +98109,11 @@ public int GetVehicleDoorDestroyType(int _vehicle, int _doorId) public bool IsVehicleDoorDamaged(int _veh, int _doorID) { unsafe { - if (fn__isVehicleDoorDamaged == null) fn__isVehicleDoorDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDoorDamaged"); + if (fn__isVehicleDoorDamaged == null) fn__isVehicleDoorDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDoorDamaged"); var success = false; var result = fn__isVehicleDoorDamaged(&success, _veh, _doorID); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98121,9 +98121,9 @@ public bool IsVehicleDoorDamaged(int _veh, int _doorID) public void SetVehicleDoorCanBreak(int _vehicle, int _doorId, bool _isBreakable) { unsafe { - if (fn__setVehicleDoorCanBreak == null) fn__setVehicleDoorCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorCanBreak"); + if (fn__setVehicleDoorCanBreak == null) fn__setVehicleDoorCanBreak = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDoorCanBreak"); var success = false; - fn__setVehicleDoorCanBreak(&success, _vehicle, _doorId, _isBreakable); + fn__setVehicleDoorCanBreak(&success, _vehicle, _doorId, (byte) (_isBreakable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98132,11 +98132,11 @@ public void SetVehicleDoorCanBreak(int _vehicle, int _doorId, bool _isBreakable) public bool IsVehicleBumperBouncing(int _vehicle, bool _frontBumper) { unsafe { - if (fn__isVehicleBumperBouncing == null) fn__isVehicleBumperBouncing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBumperBouncing"); + if (fn__isVehicleBumperBouncing == null) fn__isVehicleBumperBouncing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBumperBouncing"); var success = false; - var result = fn__isVehicleBumperBouncing(&success, _vehicle, _frontBumper); + var result = fn__isVehicleBumperBouncing(&success, _vehicle, (byte) (_frontBumper ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98144,22 +98144,22 @@ public bool IsVehicleBumperBouncing(int _vehicle, bool _frontBumper) public bool IsVehicleBumperBrokenOff(int _vehicle, bool _front) { unsafe { - if (fn__isVehicleBumperBrokenOff == null) fn__isVehicleBumperBrokenOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBumperBrokenOff"); + if (fn__isVehicleBumperBrokenOff == null) fn__isVehicleBumperBrokenOff = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleBumperBrokenOff"); var success = false; - var result = fn__isVehicleBumperBrokenOff(&success, _vehicle, _front); + var result = fn__isVehicleBumperBrokenOff(&success, _vehicle, (byte) (_front ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsCopVehicleInArea3d(float _x1, float _x2, float _y1, float _y2, float _z1, float _z2) { unsafe { - if (fn__isCopVehicleInArea3d == null) fn__isCopVehicleInArea3d = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCopVehicleInArea3d"); + if (fn__isCopVehicleInArea3d == null) fn__isCopVehicleInArea3d = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isCopVehicleInArea3d"); var success = false; var result = fn__isCopVehicleInArea3d(&success, _x1, _x2, _y1, _y2, _z1, _z2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98167,11 +98167,11 @@ public bool IsCopVehicleInArea3d(float _x1, float _x2, float _y1, float _y2, flo public bool IsVehicleOnAllWheels(int _vehicle) { unsafe { - if (fn__isVehicleOnAllWheels == null) fn__isVehicleOnAllWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleOnAllWheels"); + if (fn__isVehicleOnAllWheels == null) fn__isVehicleOnAllWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleOnAllWheels"); var success = false; var result = fn__isVehicleOnAllWheels(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98214,9 +98214,9 @@ public int _0xA01BC64DD4BFBBAC(int _vehicle, int _p1) public void SetRenderTrainAsDerailed(int _train, bool _toggle) { unsafe { - if (fn__setRenderTrainAsDerailed == null) fn__setRenderTrainAsDerailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRenderTrainAsDerailed"); + if (fn__setRenderTrainAsDerailed == null) fn__setRenderTrainAsDerailed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setRenderTrainAsDerailed"); var success = false; - fn__setRenderTrainAsDerailed(&success, _train, _toggle); + fn__setRenderTrainAsDerailed(&success, _train, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98331,9 +98331,9 @@ public void SetVehicleDeformationFixed(int _vehicle) public void SetVehicleCanEngineOperateOnFire(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanEngineOperateOnFire == null) fn__setVehicleCanEngineOperateOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanEngineOperateOnFire"); + if (fn__setVehicleCanEngineOperateOnFire == null) fn__setVehicleCanEngineOperateOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanEngineOperateOnFire"); var success = false; - fn__setVehicleCanEngineOperateOnFire(&success, _vehicle, _toggle); + fn__setVehicleCanEngineOperateOnFire(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98342,9 +98342,9 @@ public void SetVehicleCanEngineOperateOnFire(int _vehicle, bool _toggle) public void SetVehicleCanLeakOil(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanLeakOil == null) fn__setVehicleCanLeakOil = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanLeakOil"); + if (fn__setVehicleCanLeakOil == null) fn__setVehicleCanLeakOil = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanLeakOil"); var success = false; - fn__setVehicleCanLeakOil(&success, _vehicle, _toggle); + fn__setVehicleCanLeakOil(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98353,9 +98353,9 @@ public void SetVehicleCanLeakOil(int _vehicle, bool _toggle) public void SetVehicleCanLeakPetrol(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanLeakPetrol == null) fn__setVehicleCanLeakPetrol = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanLeakPetrol"); + if (fn__setVehicleCanLeakPetrol == null) fn__setVehicleCanLeakPetrol = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanLeakPetrol"); var success = false; - fn__setVehicleCanLeakPetrol(&success, _vehicle, _toggle); + fn__setVehicleCanLeakPetrol(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98364,9 +98364,9 @@ public void SetVehicleCanLeakPetrol(int _vehicle, bool _toggle) public void SetDisableVehiclePetrolTankFires(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisableVehiclePetrolTankFires == null) fn__setDisableVehiclePetrolTankFires = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehiclePetrolTankFires"); + if (fn__setDisableVehiclePetrolTankFires == null) fn__setDisableVehiclePetrolTankFires = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehiclePetrolTankFires"); var success = false; - fn__setDisableVehiclePetrolTankFires(&success, _vehicle, _toggle); + fn__setDisableVehiclePetrolTankFires(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98375,9 +98375,9 @@ public void SetDisableVehiclePetrolTankFires(int _vehicle, bool _toggle) public void SetDisableVehiclePetrolTankDamage(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisableVehiclePetrolTankDamage == null) fn__setDisableVehiclePetrolTankDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehiclePetrolTankDamage"); + if (fn__setDisableVehiclePetrolTankDamage == null) fn__setDisableVehiclePetrolTankDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehiclePetrolTankDamage"); var success = false; - fn__setDisableVehiclePetrolTankDamage(&success, _vehicle, _toggle); + fn__setDisableVehiclePetrolTankDamage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98386,9 +98386,9 @@ public void SetDisableVehiclePetrolTankDamage(int _vehicle, bool _toggle) public void SetDisableVehicleEngineFires(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisableVehicleEngineFires == null) fn__setDisableVehicleEngineFires = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleEngineFires"); + if (fn__setDisableVehicleEngineFires == null) fn__setDisableVehicleEngineFires = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleEngineFires"); var success = false; - fn__setDisableVehicleEngineFires(&success, _vehicle, _toggle); + fn__setDisableVehicleEngineFires(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98397,9 +98397,9 @@ public void SetDisableVehicleEngineFires(int _vehicle, bool _toggle) public void _0xC50CE861B55EAB8B(int _vehicle, bool _p1) { unsafe { - if (fn__0xC50CE861B55EAB8B == null) fn__0xC50CE861B55EAB8B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC50CE861B55EAB8B"); + if (fn__0xC50CE861B55EAB8B == null) fn__0xC50CE861B55EAB8B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC50CE861B55EAB8B"); var success = false; - fn__0xC50CE861B55EAB8B(&success, _vehicle, _p1); + fn__0xC50CE861B55EAB8B(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98408,9 +98408,9 @@ public void _0xC50CE861B55EAB8B(int _vehicle, bool _p1) public void _0x6EBFB22D646FFC18(int _vehicle, bool _p1) { unsafe { - if (fn__0x6EBFB22D646FFC18 == null) fn__0x6EBFB22D646FFC18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6EBFB22D646FFC18"); + if (fn__0x6EBFB22D646FFC18 == null) fn__0x6EBFB22D646FFC18 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x6EBFB22D646FFC18"); var success = false; - fn__0x6EBFB22D646FFC18(&success, _vehicle, _p1); + fn__0x6EBFB22D646FFC18(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98419,9 +98419,9 @@ public void _0x6EBFB22D646FFC18(int _vehicle, bool _p1) public void SetDisablePretendOccupants(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisablePretendOccupants == null) fn__setDisablePretendOccupants = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisablePretendOccupants"); + if (fn__setDisablePretendOccupants == null) fn__setDisablePretendOccupants = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisablePretendOccupants"); var success = false; - fn__setDisablePretendOccupants(&success, _vehicle, _toggle); + fn__setDisablePretendOccupants(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98451,11 +98451,11 @@ public void SetVehicleSteerBias(int _vehicle, float _value) public bool IsVehicleExtraTurnedOn(int _vehicle, int _extraId) { unsafe { - if (fn__isVehicleExtraTurnedOn == null) fn__isVehicleExtraTurnedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleExtraTurnedOn"); + if (fn__isVehicleExtraTurnedOn == null) fn__isVehicleExtraTurnedOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleExtraTurnedOn"); var success = false; var result = fn__isVehicleExtraTurnedOn(&success, _vehicle, _extraId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98463,9 +98463,9 @@ public bool IsVehicleExtraTurnedOn(int _vehicle, int _extraId) public void SetVehicleExtra(int _vehicle, int _extraId, bool _disable) { unsafe { - if (fn__setVehicleExtra == null) fn__setVehicleExtra = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleExtra"); + if (fn__setVehicleExtra == null) fn__setVehicleExtra = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleExtra"); var success = false; - fn__setVehicleExtra(&success, _vehicle, _extraId, _disable); + fn__setVehicleExtra(&success, _vehicle, _extraId, (byte) (_disable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98474,11 +98474,11 @@ public void SetVehicleExtra(int _vehicle, int _extraId, bool _disable) public bool DoesExtraExist(int _vehicle, int _extraId) { unsafe { - if (fn__doesExtraExist == null) fn__doesExtraExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesExtraExist"); + if (fn__doesExtraExist == null) fn__doesExtraExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesExtraExist"); var success = false; var result = fn__doesExtraExist(&success, _vehicle, _extraId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98486,11 +98486,11 @@ public bool DoesExtraExist(int _vehicle, int _extraId) public bool DoesVehicleTyreExist(int _vehicle, int _tyreIndex) { unsafe { - if (fn__doesVehicleTyreExist == null) fn__doesVehicleTyreExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleTyreExist"); + if (fn__doesVehicleTyreExist == null) fn__doesVehicleTyreExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleTyreExist"); var success = false; var result = fn__doesVehicleTyreExist(&success, _vehicle, _tyreIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98498,9 +98498,9 @@ public bool DoesVehicleTyreExist(int _vehicle, int _tyreIndex) public void SetConvertibleRoof(int _vehicle, bool _p1) { unsafe { - if (fn__setConvertibleRoof == null) fn__setConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setConvertibleRoof"); + if (fn__setConvertibleRoof == null) fn__setConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setConvertibleRoof"); var success = false; - fn__setConvertibleRoof(&success, _vehicle, _p1); + fn__setConvertibleRoof(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98509,9 +98509,9 @@ public void SetConvertibleRoof(int _vehicle, bool _p1) public void LowerConvertibleRoof(int _vehicle, bool _instantlyLower) { unsafe { - if (fn__lowerConvertibleRoof == null) fn__lowerConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_lowerConvertibleRoof"); + if (fn__lowerConvertibleRoof == null) fn__lowerConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_lowerConvertibleRoof"); var success = false; - fn__lowerConvertibleRoof(&success, _vehicle, _instantlyLower); + fn__lowerConvertibleRoof(&success, _vehicle, (byte) (_instantlyLower ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98520,9 +98520,9 @@ public void LowerConvertibleRoof(int _vehicle, bool _instantlyLower) public void RaiseConvertibleRoof(int _vehicle, bool _instantlyRaise) { unsafe { - if (fn__raiseConvertibleRoof == null) fn__raiseConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_raiseConvertibleRoof"); + if (fn__raiseConvertibleRoof == null) fn__raiseConvertibleRoof = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_raiseConvertibleRoof"); var success = false; - fn__raiseConvertibleRoof(&success, _vehicle, _instantlyRaise); + fn__raiseConvertibleRoof(&success, _vehicle, (byte) (_instantlyRaise ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98543,11 +98543,11 @@ public int GetConvertibleRoofState(int _vehicle) public bool IsVehicleAConvertible(int _vehicle, bool _p1) { unsafe { - if (fn__isVehicleAConvertible == null) fn__isVehicleAConvertible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAConvertible"); + if (fn__isVehicleAConvertible == null) fn__isVehicleAConvertible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAConvertible"); var success = false; - var result = fn__isVehicleAConvertible(&success, _vehicle, _p1); + var result = fn__isVehicleAConvertible(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98555,9 +98555,9 @@ public bool IsVehicleAConvertible(int _vehicle, bool _p1) public void TransformVehicleToSubmarine(int _vehicle, bool _noAnimation) { unsafe { - if (fn__transformVehicleToSubmarine == null) fn__transformVehicleToSubmarine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_transformVehicleToSubmarine"); + if (fn__transformVehicleToSubmarine == null) fn__transformVehicleToSubmarine = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_transformVehicleToSubmarine"); var success = false; - fn__transformVehicleToSubmarine(&success, _vehicle, _noAnimation); + fn__transformVehicleToSubmarine(&success, _vehicle, (byte) (_noAnimation ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98566,9 +98566,9 @@ public void TransformVehicleToSubmarine(int _vehicle, bool _noAnimation) public void TransformSubmarineToVehicle(int _vehicle, bool _noAnimation) { unsafe { - if (fn__transformSubmarineToVehicle == null) fn__transformSubmarineToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_transformSubmarineToVehicle"); + if (fn__transformSubmarineToVehicle == null) fn__transformSubmarineToVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_transformSubmarineToVehicle"); var success = false; - fn__transformSubmarineToVehicle(&success, _vehicle, _noAnimation); + fn__transformSubmarineToVehicle(&success, _vehicle, (byte) (_noAnimation ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98577,11 +98577,11 @@ public void TransformSubmarineToVehicle(int _vehicle, bool _noAnimation) public bool GetIsSubmarineVehicleTransformed(int _vehicle) { unsafe { - if (fn__getIsSubmarineVehicleTransformed == null) fn__getIsSubmarineVehicleTransformed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsSubmarineVehicleTransformed"); + if (fn__getIsSubmarineVehicleTransformed == null) fn__getIsSubmarineVehicleTransformed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsSubmarineVehicleTransformed"); var success = false; var result = fn__getIsSubmarineVehicleTransformed(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98589,11 +98589,11 @@ public bool GetIsSubmarineVehicleTransformed(int _vehicle) public bool IsVehicleStoppedAtTrafficLights(int _vehicle) { unsafe { - if (fn__isVehicleStoppedAtTrafficLights == null) fn__isVehicleStoppedAtTrafficLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStoppedAtTrafficLights"); + if (fn__isVehicleStoppedAtTrafficLights == null) fn__isVehicleStoppedAtTrafficLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStoppedAtTrafficLights"); var success = false; var result = fn__isVehicleStoppedAtTrafficLights(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98601,9 +98601,9 @@ public bool IsVehicleStoppedAtTrafficLights(int _vehicle) public void SetVehicleDamage(int _vehicle, float _xOffset, float _yOffset, float _zOffset, float _damage, float _radius, bool _focusOnModel) { unsafe { - if (fn__setVehicleDamage == null) fn__setVehicleDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDamage"); + if (fn__setVehicleDamage == null) fn__setVehicleDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDamage"); var success = false; - fn__setVehicleDamage(&success, _vehicle, _xOffset, _yOffset, _zOffset, _damage, _radius, _focusOnModel); + fn__setVehicleDamage(&success, _vehicle, _xOffset, _yOffset, _zOffset, _damage, _radius, (byte) (_focusOnModel ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98679,11 +98679,11 @@ public void SetVehiclePetrolTankHealth(int _vehicle, float _health) public bool IsVehicleStuckTimerUp(int _vehicle, int _p1, int _p2) { unsafe { - if (fn__isVehicleStuckTimerUp == null) fn__isVehicleStuckTimerUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStuckTimerUp"); + if (fn__isVehicleStuckTimerUp == null) fn__isVehicleStuckTimerUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStuckTimerUp"); var success = false; var result = fn__isVehicleStuckTimerUp(&success, _vehicle, _p1, _p2); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98702,11 +98702,11 @@ public void ResetVehicleStuckTimer(int _vehicle, int _nullAttributes) public bool IsVehicleDriveable(int _vehicle, bool _isOnFireCheck) { unsafe { - if (fn__isVehicleDriveable == null) fn__isVehicleDriveable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDriveable"); + if (fn__isVehicleDriveable == null) fn__isVehicleDriveable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleDriveable"); var success = false; - var result = fn__isVehicleDriveable(&success, _vehicle, _isOnFireCheck); + var result = fn__isVehicleDriveable(&success, _vehicle, (byte) (_isOnFireCheck ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98714,9 +98714,9 @@ public bool IsVehicleDriveable(int _vehicle, bool _isOnFireCheck) public void SetVehicleHasBeenOwnedByPlayer(int _vehicle, bool _owned) { unsafe { - if (fn__setVehicleHasBeenOwnedByPlayer == null) fn__setVehicleHasBeenOwnedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasBeenOwnedByPlayer"); + if (fn__setVehicleHasBeenOwnedByPlayer == null) fn__setVehicleHasBeenOwnedByPlayer = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasBeenOwnedByPlayer"); var success = false; - fn__setVehicleHasBeenOwnedByPlayer(&success, _vehicle, _owned); + fn__setVehicleHasBeenOwnedByPlayer(&success, _vehicle, (byte) (_owned ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98725,9 +98725,9 @@ public void SetVehicleHasBeenOwnedByPlayer(int _vehicle, bool _owned) public void SetVehicleNeedsToBeHotwired(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleNeedsToBeHotwired == null) fn__setVehicleNeedsToBeHotwired = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNeedsToBeHotwired"); + if (fn__setVehicleNeedsToBeHotwired == null) fn__setVehicleNeedsToBeHotwired = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNeedsToBeHotwired"); var success = false; - fn__setVehicleNeedsToBeHotwired(&success, _vehicle, _toggle); + fn__setVehicleNeedsToBeHotwired(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98736,9 +98736,9 @@ public void SetVehicleNeedsToBeHotwired(int _vehicle, bool _toggle) public void _0x9F3F689B814F2599(int _vehicle, bool _p1) { unsafe { - if (fn__0x9F3F689B814F2599 == null) fn__0x9F3F689B814F2599 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9F3F689B814F2599"); + if (fn__0x9F3F689B814F2599 == null) fn__0x9F3F689B814F2599 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9F3F689B814F2599"); var success = false; - fn__0x9F3F689B814F2599(&success, _vehicle, _p1); + fn__0x9F3F689B814F2599(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98747,9 +98747,9 @@ public void _0x9F3F689B814F2599(int _vehicle, bool _p1) public void _0x4E74E62E0A97E901(int _vehicle, bool _p1) { unsafe { - if (fn__0x4E74E62E0A97E901 == null) fn__0x4E74E62E0A97E901 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4E74E62E0A97E901"); + if (fn__0x4E74E62E0A97E901 == null) fn__0x4E74E62E0A97E901 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4E74E62E0A97E901"); var success = false; - fn__0x4E74E62E0A97E901(&success, _vehicle, _p1); + fn__0x4E74E62E0A97E901(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98758,9 +98758,9 @@ public void _0x4E74E62E0A97E901(int _vehicle, bool _p1) public void StartVehicleHorn(int _vehicle, int _duration, uint _mode, bool _forever) { unsafe { - if (fn__startVehicleHorn == null) fn__startVehicleHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startVehicleHorn"); + if (fn__startVehicleHorn == null) fn__startVehicleHorn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_startVehicleHorn"); var success = false; - fn__startVehicleHorn(&success, _vehicle, _duration, _mode, _forever); + fn__startVehicleHorn(&success, _vehicle, _duration, _mode, (byte) (_forever ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98769,9 +98769,9 @@ public void StartVehicleHorn(int _vehicle, int _duration, uint _mode, bool _fore public void SetVehicleSilent(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleSilent == null) fn__setVehicleSilent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSilent"); + if (fn__setVehicleSilent == null) fn__setVehicleSilent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSilent"); var success = false; - fn__setVehicleSilent(&success, _vehicle, _toggle); + fn__setVehicleSilent(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98780,9 +98780,9 @@ public void SetVehicleSilent(int _vehicle, bool _toggle) public void SetVehicleHasStrongAxles(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHasStrongAxles == null) fn__setVehicleHasStrongAxles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasStrongAxles"); + if (fn__setVehicleHasStrongAxles == null) fn__setVehicleHasStrongAxles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasStrongAxles"); var success = false; - fn__setVehicleHasStrongAxles(&success, _vehicle, _toggle); + fn__setVehicleHasStrongAxles(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98899,11 +98899,11 @@ public int GetVehicleRoofLiveryCount(int _vehicle) public bool IsVehicleWindowIntact(int _vehicle, int _windowIndex) { unsafe { - if (fn__isVehicleWindowIntact == null) fn__isVehicleWindowIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleWindowIntact"); + if (fn__isVehicleWindowIntact == null) fn__isVehicleWindowIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleWindowIntact"); var success = false; var result = fn__isVehicleWindowIntact(&success, _vehicle, _windowIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98911,11 +98911,11 @@ public bool IsVehicleWindowIntact(int _vehicle, int _windowIndex) public bool AreAllVehicleWindowsIntact(int _vehicle) { unsafe { - if (fn__areAllVehicleWindowsIntact == null) fn__areAllVehicleWindowsIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAllVehicleWindowsIntact"); + if (fn__areAllVehicleWindowsIntact == null) fn__areAllVehicleWindowsIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAllVehicleWindowsIntact"); var success = false; var result = fn__areAllVehicleWindowsIntact(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98923,11 +98923,11 @@ public bool AreAllVehicleWindowsIntact(int _vehicle) public bool AreAnyVehicleSeatsFree(int _vehicle) { unsafe { - if (fn__areAnyVehicleSeatsFree == null) fn__areAnyVehicleSeatsFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAnyVehicleSeatsFree"); + if (fn__areAnyVehicleSeatsFree == null) fn__areAnyVehicleSeatsFree = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areAnyVehicleSeatsFree"); var success = false; var result = fn__areAnyVehicleSeatsFree(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -98935,9 +98935,9 @@ public bool AreAnyVehicleSeatsFree(int _vehicle) public void ResetVehicleWheels(int _vehicle, bool _toggle) { unsafe { - if (fn__resetVehicleWheels == null) fn__resetVehicleWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_resetVehicleWheels"); + if (fn__resetVehicleWheels == null) fn__resetVehicleWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_resetVehicleWheels"); var success = false; - fn__resetVehicleWheels(&success, _vehicle, _toggle); + fn__resetVehicleWheels(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -98946,11 +98946,11 @@ public void ResetVehicleWheels(int _vehicle, bool _toggle) public bool IsHeliPartBroken(int _vehicle, bool _p1, bool _p2, bool _p3) { unsafe { - if (fn__isHeliPartBroken == null) fn__isHeliPartBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHeliPartBroken"); + if (fn__isHeliPartBroken == null) fn__isHeliPartBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isHeliPartBroken"); var success = false; - var result = fn__isHeliPartBroken(&success, _vehicle, _p1, _p2, _p3); + var result = fn__isHeliPartBroken(&success, _vehicle, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0), (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99016,9 +99016,9 @@ public void SetHeliTailRotorHealth(int _vehicle, float _health) public void SetHeliTailExplodeThrowDashboard(int _vehicle, bool _p1) { unsafe { - if (fn__setHeliTailExplodeThrowDashboard == null) fn__setHeliTailExplodeThrowDashboard = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHeliTailExplodeThrowDashboard"); + if (fn__setHeliTailExplodeThrowDashboard == null) fn__setHeliTailExplodeThrowDashboard = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setHeliTailExplodeThrowDashboard"); var success = false; - fn__setHeliTailExplodeThrowDashboard(&success, _vehicle, _p1); + fn__setHeliTailExplodeThrowDashboard(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99040,9 +99040,9 @@ public void SetVehicleNameDebug(int _vehicle, string _name) public void SetVehicleExplodesOnHighExplosionDamage(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleExplodesOnHighExplosionDamage == null) fn__setVehicleExplodesOnHighExplosionDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleExplodesOnHighExplosionDamage"); + if (fn__setVehicleExplodesOnHighExplosionDamage == null) fn__setVehicleExplodesOnHighExplosionDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleExplodesOnHighExplosionDamage"); var success = false; - fn__setVehicleExplodesOnHighExplosionDamage(&success, _vehicle, _toggle); + fn__setVehicleExplodesOnHighExplosionDamage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99061,9 +99061,9 @@ public void _0xD565F438137F0E10(int _p0, int _p1) public void _0x3441CAD2F2231923(int _vehicle, bool _p1) { unsafe { - if (fn__0x3441CAD2F2231923 == null) fn__0x3441CAD2F2231923 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3441CAD2F2231923"); + if (fn__0x3441CAD2F2231923 == null) fn__0x3441CAD2F2231923 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x3441CAD2F2231923"); var success = false; - fn__0x3441CAD2F2231923(&success, _vehicle, _p1); + fn__0x3441CAD2F2231923(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99072,9 +99072,9 @@ public void _0x3441CAD2F2231923(int _vehicle, bool _p1) public void SetVehicleDisableTowing(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleDisableTowing == null) fn__setVehicleDisableTowing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDisableTowing"); + if (fn__setVehicleDisableTowing == null) fn__setVehicleDisableTowing = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDisableTowing"); var success = false; - fn__setVehicleDisableTowing(&success, _vehicle, _toggle); + fn__setVehicleDisableTowing(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99083,11 +99083,11 @@ public void SetVehicleDisableTowing(int _vehicle, bool _toggle) public bool DoesVehicleHaveLandingGear(int _vehicle) { unsafe { - if (fn__doesVehicleHaveLandingGear == null) fn__doesVehicleHaveLandingGear = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveLandingGear"); + if (fn__doesVehicleHaveLandingGear == null) fn__doesVehicleHaveLandingGear = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveLandingGear"); var success = false; var result = fn__doesVehicleHaveLandingGear(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99117,11 +99117,11 @@ public int GetLandingGearState(int _vehicle) public bool IsAnyVehicleNearPoint(float _x, float _y, float _z, float _radius) { unsafe { - if (fn__isAnyVehicleNearPoint == null) fn__isAnyVehicleNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyVehicleNearPoint"); + if (fn__isAnyVehicleNearPoint == null) fn__isAnyVehicleNearPoint = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyVehicleNearPoint"); var success = false; var result = fn__isAnyVehicleNearPoint(&success, _x, _y, _z, _radius); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99151,11 +99151,11 @@ public void RemoveVehicleHighDetailModel(int _vehicle) public bool IsVehicleHighDetail(int _vehicle) { unsafe { - if (fn__isVehicleHighDetail == null) fn__isVehicleHighDetail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleHighDetail"); + if (fn__isVehicleHighDetail == null) fn__isVehicleHighDetail = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleHighDetail"); var success = false; var result = fn__isVehicleHighDetail(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99172,11 +99172,11 @@ public void RequestVehicleAsset(uint _vehicleHash, int _vehicleAsset) public bool HasVehicleAssetLoaded(int _vehicleAsset) { unsafe { - if (fn__hasVehicleAssetLoaded == null) fn__hasVehicleAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleAssetLoaded"); + if (fn__hasVehicleAssetLoaded == null) fn__hasVehicleAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleAssetLoaded"); var success = false; var result = fn__hasVehicleAssetLoaded(&success, _vehicleAsset); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99207,9 +99207,9 @@ public void SetVehicleTowTruckArmPosition(int _vehicle, float _position) public void AttachVehicleToTowTruck(int _towTruck, int _vehicle, bool _rear, float _hookOffsetX, float _hookOffsetY, float _hookOffsetZ) { unsafe { - if (fn__attachVehicleToTowTruck == null) fn__attachVehicleToTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachVehicleToTowTruck"); + if (fn__attachVehicleToTowTruck == null) fn__attachVehicleToTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_attachVehicleToTowTruck"); var success = false; - fn__attachVehicleToTowTruck(&success, _towTruck, _vehicle, _rear, _hookOffsetX, _hookOffsetY, _hookOffsetZ); + fn__attachVehicleToTowTruck(&success, _towTruck, _vehicle, (byte) (_rear ? 1 : 0), _hookOffsetX, _hookOffsetY, _hookOffsetZ); if (!success) throw new Exception("Native execution failed"); } } @@ -99231,11 +99231,11 @@ public void DetachVehicleFromTowTruck(int _towTruck, int _vehicle) public bool DetachVehicleFromAnyTowTruck(int _vehicle) { unsafe { - if (fn__detachVehicleFromAnyTowTruck == null) fn__detachVehicleFromAnyTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachVehicleFromAnyTowTruck"); + if (fn__detachVehicleFromAnyTowTruck == null) fn__detachVehicleFromAnyTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachVehicleFromAnyTowTruck"); var success = false; var result = fn__detachVehicleFromAnyTowTruck(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99245,11 +99245,11 @@ public bool DetachVehicleFromAnyTowTruck(int _vehicle) public bool IsVehicleAttachedToTowTruck(int _towTruck, int _vehicle) { unsafe { - if (fn__isVehicleAttachedToTowTruck == null) fn__isVehicleAttachedToTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToTowTruck"); + if (fn__isVehicleAttachedToTowTruck == null) fn__isVehicleAttachedToTowTruck = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToTowTruck"); var success = false; var result = fn__isVehicleAttachedToTowTruck(&success, _towTruck, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99269,9 +99269,9 @@ public int GetEntityAttachedToTowTruck(int _towTruck) public int SetVehicleAutomaticallyAttaches(int _vehicle, bool _p1, int _p2) { unsafe { - if (fn__setVehicleAutomaticallyAttaches == null) fn__setVehicleAutomaticallyAttaches = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAutomaticallyAttaches"); + if (fn__setVehicleAutomaticallyAttaches == null) fn__setVehicleAutomaticallyAttaches = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleAutomaticallyAttaches"); var success = false; - var result = fn__setVehicleAutomaticallyAttaches(&success, _vehicle, _p1, _p2); + var result = fn__setVehicleAutomaticallyAttaches(&success, _vehicle, (byte) (_p1 ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); return result; } @@ -99281,9 +99281,9 @@ public int SetVehicleAutomaticallyAttaches(int _vehicle, bool _p1, int _p2) public void SetVehicleBulldozerArmPosition(int _vehicle, float _position, bool _p2) { unsafe { - if (fn__setVehicleBulldozerArmPosition == null) fn__setVehicleBulldozerArmPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBulldozerArmPosition"); + if (fn__setVehicleBulldozerArmPosition == null) fn__setVehicleBulldozerArmPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBulldozerArmPosition"); var success = false; - fn__setVehicleBulldozerArmPosition(&success, _vehicle, _position, _p2); + fn__setVehicleBulldozerArmPosition(&success, _vehicle, _position, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99292,9 +99292,9 @@ public void SetVehicleBulldozerArmPosition(int _vehicle, float _position, bool _ public void SetVehicleTankTurretPosition(int _vehicle, float _position, bool _p2) { unsafe { - if (fn__setVehicleTankTurretPosition == null) fn__setVehicleTankTurretPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTankTurretPosition"); + if (fn__setVehicleTankTurretPosition == null) fn__setVehicleTankTurretPosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTankTurretPosition"); var success = false; - fn__setVehicleTankTurretPosition(&success, _vehicle, _position, _p2); + fn__setVehicleTankTurretPosition(&success, _vehicle, _position, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99379,9 +99379,9 @@ public float GetVehicleFlightNozzlePosition(int _plane) public void SetDisableVehicleFlightNozzlePosition(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisableVehicleFlightNozzlePosition == null) fn__setDisableVehicleFlightNozzlePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleFlightNozzlePosition"); + if (fn__setDisableVehicleFlightNozzlePosition == null) fn__setDisableVehicleFlightNozzlePosition = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleFlightNozzlePosition"); var success = false; - fn__setDisableVehicleFlightNozzlePosition(&success, _vehicle, _toggle); + fn__setDisableVehicleFlightNozzlePosition(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99389,7 +99389,7 @@ public void SetDisableVehicleFlightNozzlePosition(int _vehicle, bool _toggle) public bool _0xA4822F1CF23F4810(ref Vector3 _outVec, int _p1, ref Vector3 _outVec1, int _p3, int _p4, int _p5, int _p6, int _p7, int _p8) { unsafe { - if (fn__0xA4822F1CF23F4810 == null) fn__0xA4822F1CF23F4810 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA4822F1CF23F4810"); + if (fn__0xA4822F1CF23F4810 == null) fn__0xA4822F1CF23F4810 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA4822F1CF23F4810"); var success = false; var ref_outVec = _outVec; var ref_outVec1 = _outVec1; @@ -99397,7 +99397,7 @@ public bool _0xA4822F1CF23F4810(ref Vector3 _outVec, int _p1, ref Vector3 _outVe _outVec = ref_outVec; _outVec1 = ref_outVec1; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99405,9 +99405,9 @@ public bool _0xA4822F1CF23F4810(ref Vector3 _outVec, int _p1, ref Vector3 _outVe public void SetVehicleBurnout(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleBurnout == null) fn__setVehicleBurnout = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBurnout"); + if (fn__setVehicleBurnout == null) fn__setVehicleBurnout = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBurnout"); var success = false; - fn__setVehicleBurnout(&success, _vehicle, _toggle); + fn__setVehicleBurnout(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99416,11 +99416,11 @@ public void SetVehicleBurnout(int _vehicle, bool _toggle) public bool IsVehicleInBurnout(int _vehicle) { unsafe { - if (fn__isVehicleInBurnout == null) fn__isVehicleInBurnout = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleInBurnout"); + if (fn__isVehicleInBurnout == null) fn__isVehicleInBurnout = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleInBurnout"); var success = false; var result = fn__isVehicleInBurnout(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99428,9 +99428,9 @@ public bool IsVehicleInBurnout(int _vehicle) public void SetVehicleReduceGrip(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleReduceGrip == null) fn__setVehicleReduceGrip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleReduceGrip"); + if (fn__setVehicleReduceGrip == null) fn__setVehicleReduceGrip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleReduceGrip"); var success = false; - fn__setVehicleReduceGrip(&success, _vehicle, _toggle); + fn__setVehicleReduceGrip(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99450,9 +99450,9 @@ public void SetVehicleReduceTraction(int _vehicle, int _val) public void SetVehicleIndicatorLights(int _vehicle, int _turnSignal, bool _toggle) { unsafe { - if (fn__setVehicleIndicatorLights == null) fn__setVehicleIndicatorLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIndicatorLights"); + if (fn__setVehicleIndicatorLights == null) fn__setVehicleIndicatorLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIndicatorLights"); var success = false; - fn__setVehicleIndicatorLights(&success, _vehicle, _turnSignal, _toggle); + fn__setVehicleIndicatorLights(&success, _vehicle, _turnSignal, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99461,9 +99461,9 @@ public void SetVehicleIndicatorLights(int _vehicle, int _turnSignal, bool _toggl public void SetVehicleBrakeLights(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleBrakeLights == null) fn__setVehicleBrakeLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBrakeLights"); + if (fn__setVehicleBrakeLights == null) fn__setVehicleBrakeLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBrakeLights"); var success = false; - fn__setVehicleBrakeLights(&success, _vehicle, _toggle); + fn__setVehicleBrakeLights(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99472,9 +99472,9 @@ public void SetVehicleBrakeLights(int _vehicle, bool _toggle) public void SetVehicleHandbrake(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHandbrake == null) fn__setVehicleHandbrake = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHandbrake"); + if (fn__setVehicleHandbrake == null) fn__setVehicleHandbrake = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHandbrake"); var success = false; - fn__setVehicleHandbrake(&success, _vehicle, _toggle); + fn__setVehicleHandbrake(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99483,9 +99483,9 @@ public void SetVehicleHandbrake(int _vehicle, bool _toggle) public void SetVehicleBrake(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleBrake == null) fn__setVehicleBrake = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBrake"); + if (fn__setVehicleBrake == null) fn__setVehicleBrake = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleBrake"); var success = false; - fn__setVehicleBrake(&success, _vehicle, _toggle); + fn__setVehicleBrake(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99503,20 +99503,20 @@ public void InstantlyFillVehiclePopulation() public bool HasFilledVehiclePopulation() { unsafe { - if (fn__hasFilledVehiclePopulation == null) fn__hasFilledVehiclePopulation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasFilledVehiclePopulation"); + if (fn__hasFilledVehiclePopulation == null) fn__hasFilledVehiclePopulation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasFilledVehiclePopulation"); var success = false; var result = fn__hasFilledVehiclePopulation(&success); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x51DB102F4A3BA5E0(bool _toggle) { unsafe { - if (fn__0x51DB102F4A3BA5E0 == null) fn__0x51DB102F4A3BA5E0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x51DB102F4A3BA5E0"); + if (fn__0x51DB102F4A3BA5E0 == null) fn__0x51DB102F4A3BA5E0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x51DB102F4A3BA5E0"); var success = false; - fn__0x51DB102F4A3BA5E0(&success, _toggle); + fn__0x51DB102F4A3BA5E0(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99535,13 +99535,13 @@ public void _0xA4A9A4C40E615885(int _p0) public bool GetVehicleTrailerVehicle(int _vehicle, ref int _trailer) { unsafe { - if (fn__getVehicleTrailerVehicle == null) fn__getVehicleTrailerVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleTrailerVehicle"); + if (fn__getVehicleTrailerVehicle == null) fn__getVehicleTrailerVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleTrailerVehicle"); var success = false; var ref_trailer = _trailer; var result = fn__getVehicleTrailerVehicle(&success, _vehicle, &ref_trailer); _trailer = ref_trailer; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99549,9 +99549,9 @@ public bool GetVehicleTrailerVehicle(int _vehicle, ref int _trailer) public void SetVehicleUsesLargeRearRamp(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleUsesLargeRearRamp == null) fn__setVehicleUsesLargeRearRamp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUsesLargeRearRamp"); + if (fn__setVehicleUsesLargeRearRamp == null) fn__setVehicleUsesLargeRearRamp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUsesLargeRearRamp"); var success = false; - fn__setVehicleUsesLargeRearRamp(&success, _vehicle, _toggle); + fn__setVehicleUsesLargeRearRamp(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99560,9 +99560,9 @@ public void SetVehicleUsesLargeRearRamp(int _vehicle, bool _toggle) public void SetVehicleRudderBroken(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleRudderBroken == null) fn__setVehicleRudderBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRudderBroken"); + if (fn__setVehicleRudderBroken == null) fn__setVehicleRudderBroken = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRudderBroken"); var success = false; - fn__setVehicleRudderBroken(&success, _vehicle, _toggle); + fn__setVehicleRudderBroken(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99571,9 +99571,9 @@ public void SetVehicleRudderBroken(int _vehicle, bool _toggle) public void SetConvertibleRoofLatchState(int _vehicle, bool _state) { unsafe { - if (fn__setConvertibleRoofLatchState == null) fn__setConvertibleRoofLatchState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setConvertibleRoofLatchState"); + if (fn__setConvertibleRoofLatchState == null) fn__setConvertibleRoofLatchState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setConvertibleRoofLatchState"); var success = false; - fn__setConvertibleRoofLatchState(&success, _vehicle, _state); + fn__setConvertibleRoofLatchState(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99772,9 +99772,9 @@ public float GetVehicleClassMaxBraking(int _vehicleClass) public int AddRoadNodeSpeedZone(float _x, float _y, float _z, float _radius, float _speed, bool _p5) { unsafe { - if (fn__addRoadNodeSpeedZone == null) fn__addRoadNodeSpeedZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addRoadNodeSpeedZone"); + if (fn__addRoadNodeSpeedZone == null) fn__addRoadNodeSpeedZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_addRoadNodeSpeedZone"); var success = false; - var result = fn__addRoadNodeSpeedZone(&success, _x, _y, _z, _radius, _speed, _p5); + var result = fn__addRoadNodeSpeedZone(&success, _x, _y, _z, _radius, _speed, (byte) (_p5 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -99783,11 +99783,11 @@ public int AddRoadNodeSpeedZone(float _x, float _y, float _z, float _radius, flo public bool RemoveRoadNodeSpeedZone(int _speedzone) { unsafe { - if (fn__removeRoadNodeSpeedZone == null) fn__removeRoadNodeSpeedZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeRoadNodeSpeedZone"); + if (fn__removeRoadNodeSpeedZone == null) fn__removeRoadNodeSpeedZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeRoadNodeSpeedZone"); var success = false; var result = fn__removeRoadNodeSpeedZone(&success, _speedzone); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99817,11 +99817,11 @@ public void CloseBombBayDoors(int _vehicle) public bool AreBombBayDoorsOpen(int _aircraft) { unsafe { - if (fn__areBombBayDoorsOpen == null) fn__areBombBayDoorsOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areBombBayDoorsOpen"); + if (fn__areBombBayDoorsOpen == null) fn__areBombBayDoorsOpen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areBombBayDoorsOpen"); var success = false; var result = fn__areBombBayDoorsOpen(&success, _aircraft); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99829,11 +99829,11 @@ public bool AreBombBayDoorsOpen(int _aircraft) public bool IsVehicleSearchlightOn(int _vehicle) { unsafe { - if (fn__isVehicleSearchlightOn == null) fn__isVehicleSearchlightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSearchlightOn"); + if (fn__isVehicleSearchlightOn == null) fn__isVehicleSearchlightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSearchlightOn"); var success = false; var result = fn__isVehicleSearchlightOn(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99841,9 +99841,9 @@ public bool IsVehicleSearchlightOn(int _vehicle) public void SetVehicleSearchlight(int _heli, bool _toggle, bool _canBeUsedByAI) { unsafe { - if (fn__setVehicleSearchlight == null) fn__setVehicleSearchlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSearchlight"); + if (fn__setVehicleSearchlight == null) fn__setVehicleSearchlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleSearchlight"); var success = false; - fn__setVehicleSearchlight(&success, _heli, _toggle, _canBeUsedByAI); + fn__setVehicleSearchlight(&success, _heli, (byte) (_toggle ? 1 : 0), (byte) (_canBeUsedByAI ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -99852,11 +99852,11 @@ public void SetVehicleSearchlight(int _heli, bool _toggle, bool _canBeUsedByAI) public bool DoesVehicleHaveSearchlight(int _vehicle) { unsafe { - if (fn__doesVehicleHaveSearchlight == null) fn__doesVehicleHaveSearchlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveSearchlight"); + if (fn__doesVehicleHaveSearchlight == null) fn__doesVehicleHaveSearchlight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveSearchlight"); var success = false; var result = fn__doesVehicleHaveSearchlight(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99866,11 +99866,11 @@ public bool DoesVehicleHaveSearchlight(int _vehicle) public bool IsVehicleSeatAccessible(int _ped, int _vehicle, int _seatIndex, bool _side, bool _onEnter) { unsafe { - if (fn__isVehicleSeatAccessible == null) fn__isVehicleSeatAccessible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSeatAccessible"); + if (fn__isVehicleSeatAccessible == null) fn__isVehicleSeatAccessible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSeatAccessible"); var success = false; - var result = fn__isVehicleSeatAccessible(&success, _ped, _vehicle, _seatIndex, _side, _onEnter); + var result = fn__isVehicleSeatAccessible(&success, _ped, _vehicle, _seatIndex, (byte) (_side ? 1 : 0), (byte) (_onEnter ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99890,11 +99890,11 @@ public Vector3 GetEntryPositionOfDoor(int _vehicle, int _doorId) public bool CanShuffleSeat(int _vehicle, int _seatIndex) { unsafe { - if (fn__canShuffleSeat == null) fn__canShuffleSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canShuffleSeat"); + if (fn__canShuffleSeat == null) fn__canShuffleSeat = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canShuffleSeat"); var success = false; var result = fn__canShuffleSeat(&success, _vehicle, _seatIndex); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -99971,9 +99971,9 @@ public void SetVehicleWheelType(int _vehicle, int _WheelType) public int GetNumModColors(int _paintType, bool _p1) { unsafe { - if (fn__getNumModColors == null) fn__getNumModColors = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumModColors"); + if (fn__getNumModColors == null) fn__getNumModColors = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getNumModColors"); var success = false; - var result = fn__getNumModColors(&success, _paintType, _p1); + var result = fn__getNumModColors(&success, _paintType, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -100037,9 +100037,9 @@ public void GetVehicleModColor2(int _vehicle, ref int _paintType, ref int _color public string GetVehicleModColor1Name(int _vehicle, bool _p1) { unsafe { - if (fn__getVehicleModColor1Name == null) fn__getVehicleModColor1Name = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleModColor1Name"); + if (fn__getVehicleModColor1Name == null) fn__getVehicleModColor1Name = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleModColor1Name"); var success = false; - var result = fn__getVehicleModColor1Name(&success, _vehicle, _p1); + var result = fn__getVehicleModColor1Name(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); var strResult = Marshal.PtrToStringUTF8(result); freeString(result); @@ -100065,11 +100065,11 @@ public string GetVehicleModColor2Name(int _vehicle) public bool HaveVehicleModsStreamedIn(int _vehicle) { unsafe { - if (fn__haveVehicleModsStreamedIn == null) fn__haveVehicleModsStreamedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveVehicleModsStreamedIn"); + if (fn__haveVehicleModsStreamedIn == null) fn__haveVehicleModsStreamedIn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_haveVehicleModsStreamedIn"); var success = false; var result = fn__haveVehicleModsStreamedIn(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100077,9 +100077,9 @@ public bool HaveVehicleModsStreamedIn(int _vehicle) public void SetVehicleMod(int _vehicle, int _modType, int _modIndex, bool _customTires) { unsafe { - if (fn__setVehicleMod == null) fn__setVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleMod"); + if (fn__setVehicleMod == null) fn__setVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleMod"); var success = false; - fn__setVehicleMod(&success, _vehicle, _modType, _modIndex, _customTires); + fn__setVehicleMod(&success, _vehicle, _modType, _modIndex, (byte) (_customTires ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100100,11 +100100,11 @@ public int GetVehicleMod(int _vehicle, int _modType) public bool GetVehicleModVariation(int _vehicle, int _modType) { unsafe { - if (fn__getVehicleModVariation == null) fn__getVehicleModVariation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleModVariation"); + if (fn__getVehicleModVariation == null) fn__getVehicleModVariation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleModVariation"); var success = false; var result = fn__getVehicleModVariation(&success, _vehicle, _modType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100135,9 +100135,9 @@ public void RemoveVehicleMod(int _vehicle, int _modType) public void ToggleVehicleMod(int _vehicle, int _modType, bool _toggle) { unsafe { - if (fn__toggleVehicleMod == null) fn__toggleVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleVehicleMod"); + if (fn__toggleVehicleMod == null) fn__toggleVehicleMod = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_toggleVehicleMod"); var success = false; - fn__toggleVehicleMod(&success, _vehicle, _modType, _toggle); + fn__toggleVehicleMod(&success, _vehicle, _modType, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100146,11 +100146,11 @@ public void ToggleVehicleMod(int _vehicle, int _modType, bool _toggle) public bool IsToggleModOn(int _vehicle, int _modType) { unsafe { - if (fn__isToggleModOn == null) fn__isToggleModOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isToggleModOn"); + if (fn__isToggleModOn == null) fn__isToggleModOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isToggleModOn"); var success = false; var result = fn__isToggleModOn(&success, _vehicle, _modType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100233,11 +100233,11 @@ public void PreloadVehicleMod(int _p0, int _modType, int _p2) public bool HasPreloadModsFinished(int _p0) { unsafe { - if (fn__hasPreloadModsFinished == null) fn__hasPreloadModsFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPreloadModsFinished"); + if (fn__hasPreloadModsFinished == null) fn__hasPreloadModsFinished = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPreloadModsFinished"); var success = false; var result = fn__hasPreloadModsFinished(&success, _p0); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100370,11 +100370,11 @@ public void _0x5EE5632F47AE9695(int _vehicle, float _health) public bool GetIsLeftVehicleHeadlightDamaged(int _vehicle) { unsafe { - if (fn__getIsLeftVehicleHeadlightDamaged == null) fn__getIsLeftVehicleHeadlightDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsLeftVehicleHeadlightDamaged"); + if (fn__getIsLeftVehicleHeadlightDamaged == null) fn__getIsLeftVehicleHeadlightDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsLeftVehicleHeadlightDamaged"); var success = false; var result = fn__getIsLeftVehicleHeadlightDamaged(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100382,11 +100382,11 @@ public bool GetIsLeftVehicleHeadlightDamaged(int _vehicle) public bool GetIsRightVehicleHeadlightDamaged(int _vehicle) { unsafe { - if (fn__getIsRightVehicleHeadlightDamaged == null) fn__getIsRightVehicleHeadlightDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsRightVehicleHeadlightDamaged"); + if (fn__getIsRightVehicleHeadlightDamaged == null) fn__getIsRightVehicleHeadlightDamaged = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsRightVehicleHeadlightDamaged"); var success = false; var result = fn__getIsRightVehicleHeadlightDamaged(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100394,11 +100394,11 @@ public bool GetIsRightVehicleHeadlightDamaged(int _vehicle) public bool IsVehicleEngineOnFire(int _vehicle) { unsafe { - if (fn__isVehicleEngineOnFire == null) fn__isVehicleEngineOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleEngineOnFire"); + if (fn__isVehicleEngineOnFire == null) fn__isVehicleEngineOnFire = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleEngineOnFire"); var success = false; var result = fn__isVehicleEngineOnFire(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100428,9 +100428,9 @@ public void SetVehicleMaxSpeed(int _vehicle, float _speed) public void _0x1CF38D529D7441D9(int _vehicle, bool _toggle) { unsafe { - if (fn__0x1CF38D529D7441D9 == null) fn__0x1CF38D529D7441D9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1CF38D529D7441D9"); + if (fn__0x1CF38D529D7441D9 == null) fn__0x1CF38D529D7441D9 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1CF38D529D7441D9"); var success = false; - fn__0x1CF38D529D7441D9(&success, _vehicle, _toggle); + fn__0x1CF38D529D7441D9(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100439,9 +100439,9 @@ public void _0x1CF38D529D7441D9(int _vehicle, bool _toggle) public void _0x1F9FB66F3A3842D2(int _vehicle, bool _p1) { unsafe { - if (fn__0x1F9FB66F3A3842D2 == null) fn__0x1F9FB66F3A3842D2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1F9FB66F3A3842D2"); + if (fn__0x1F9FB66F3A3842D2 == null) fn__0x1F9FB66F3A3842D2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x1F9FB66F3A3842D2"); var success = false; - fn__0x1F9FB66F3A3842D2(&success, _vehicle, _p1); + fn__0x1F9FB66F3A3842D2(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100450,9 +100450,9 @@ public void _0x1F9FB66F3A3842D2(int _vehicle, bool _p1) public void _0x59C3757B3B7408E8(int _vehicle, bool _toggle, float _p2) { unsafe { - if (fn__0x59C3757B3B7408E8 == null) fn__0x59C3757B3B7408E8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x59C3757B3B7408E8"); + if (fn__0x59C3757B3B7408E8 == null) fn__0x59C3757B3B7408E8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x59C3757B3B7408E8"); var success = false; - fn__0x59C3757B3B7408E8(&success, _vehicle, _toggle, _p2); + fn__0x59C3757B3B7408E8(&success, _vehicle, (byte) (_toggle ? 1 : 0), _p2); if (!success) throw new Exception("Native execution failed"); } } @@ -100482,11 +100482,11 @@ public void RemoveVehicleCombatAvoidanceArea(int _p0) public bool IsAnyPedRappellingFromHeli(int _vehicle) { unsafe { - if (fn__isAnyPedRappellingFromHeli == null) fn__isAnyPedRappellingFromHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedRappellingFromHeli"); + if (fn__isAnyPedRappellingFromHeli == null) fn__isAnyPedRappellingFromHeli = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyPedRappellingFromHeli"); var success = false; var result = fn__isAnyPedRappellingFromHeli(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100504,9 +100504,9 @@ public void SetVehicleCheatPowerIncrease(int _vehicle, float _value) public void _0x0AD9E8F87FF7C16F(int _p0, bool _p1) { unsafe { - if (fn__0x0AD9E8F87FF7C16F == null) fn__0x0AD9E8F87FF7C16F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0AD9E8F87FF7C16F"); + if (fn__0x0AD9E8F87FF7C16F == null) fn__0x0AD9E8F87FF7C16F = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x0AD9E8F87FF7C16F"); var success = false; - fn__0x0AD9E8F87FF7C16F(&success, _p0, _p1); + fn__0x0AD9E8F87FF7C16F(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100515,9 +100515,9 @@ public void _0x0AD9E8F87FF7C16F(int _p0, bool _p1) public void SetVehicleIsWanted(int _vehicle, bool _state) { unsafe { - if (fn__setVehicleIsWanted == null) fn__setVehicleIsWanted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsWanted"); + if (fn__setVehicleIsWanted == null) fn__setVehicleIsWanted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsWanted"); var success = false; - fn__setVehicleIsWanted(&success, _vehicle, _state); + fn__setVehicleIsWanted(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100537,9 +100537,9 @@ public void SetBoatBoomPositionRatio(int _vehicle, float _ratio) public void GetBoatBoomPositionRatio2(int _vehicle, bool _p1) { unsafe { - if (fn__getBoatBoomPositionRatio2 == null) fn__getBoatBoomPositionRatio2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBoatBoomPositionRatio2"); + if (fn__getBoatBoomPositionRatio2 == null) fn__getBoatBoomPositionRatio2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBoatBoomPositionRatio2"); var success = false; - fn__getBoatBoomPositionRatio2(&success, _vehicle, _p1); + fn__getBoatBoomPositionRatio2(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100548,9 +100548,9 @@ public void GetBoatBoomPositionRatio2(int _vehicle, bool _p1) public void GetBoatBoomPositionRatio3(int _vehicle, bool _p1) { unsafe { - if (fn__getBoatBoomPositionRatio3 == null) fn__getBoatBoomPositionRatio3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBoatBoomPositionRatio3"); + if (fn__getBoatBoomPositionRatio3 == null) fn__getBoatBoomPositionRatio3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBoatBoomPositionRatio3"); var success = false; - fn__getBoatBoomPositionRatio3(&success, _vehicle, _p1); + fn__getBoatBoomPositionRatio3(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100571,9 +100571,9 @@ public float GetBoatBoomPositionRatio(int _vehicle) public void DisablePlaneAileron(int _vehicle, bool _p1, bool _p2) { unsafe { - if (fn__disablePlaneAileron == null) fn__disablePlaneAileron = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePlaneAileron"); + if (fn__disablePlaneAileron == null) fn__disablePlaneAileron = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disablePlaneAileron"); var success = false; - fn__disablePlaneAileron(&success, _vehicle, _p1, _p2); + fn__disablePlaneAileron(&success, _vehicle, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100582,11 +100582,11 @@ public void DisablePlaneAileron(int _vehicle, bool _p1, bool _p2) public bool GetIsVehicleEngineRunning(int _vehicle) { unsafe { - if (fn__getIsVehicleEngineRunning == null) fn__getIsVehicleEngineRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleEngineRunning"); + if (fn__getIsVehicleEngineRunning == null) fn__getIsVehicleEngineRunning = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleEngineRunning"); var success = false; var result = fn__getIsVehicleEngineRunning(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100594,9 +100594,9 @@ public bool GetIsVehicleEngineRunning(int _vehicle) public void SetVehicleUseAlternateHandling(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleUseAlternateHandling == null) fn__setVehicleUseAlternateHandling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUseAlternateHandling"); + if (fn__setVehicleUseAlternateHandling == null) fn__setVehicleUseAlternateHandling = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleUseAlternateHandling"); var success = false; - fn__setVehicleUseAlternateHandling(&success, _vehicle, _toggle); + fn__setVehicleUseAlternateHandling(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100616,9 +100616,9 @@ public void SetBikeOnStand(int _vehicle, float _x, float _y) public void _0xAB04325045427AAE(int _vehicle, bool _p1) { unsafe { - if (fn__0xAB04325045427AAE == null) fn__0xAB04325045427AAE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAB04325045427AAE"); + if (fn__0xAB04325045427AAE == null) fn__0xAB04325045427AAE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAB04325045427AAE"); var success = false; - fn__0xAB04325045427AAE(&success, _vehicle, _p1); + fn__0xAB04325045427AAE(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100670,9 +100670,9 @@ public void ClearLastDrivenVehicle() public void SetVehicleHasBeenDrivenFlag(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHasBeenDrivenFlag == null) fn__setVehicleHasBeenDrivenFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasBeenDrivenFlag"); + if (fn__setVehicleHasBeenDrivenFlag == null) fn__setVehicleHasBeenDrivenFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHasBeenDrivenFlag"); var success = false; - fn__setVehicleHasBeenDrivenFlag(&success, _vehicle, _toggle); + fn__setVehicleHasBeenDrivenFlag(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100703,9 +100703,9 @@ public void SetVehicleLodMultiplier(int _vehicle, float _multiplier) public void SetVehicleCanSaveInGarage(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanSaveInGarage == null) fn__setVehicleCanSaveInGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanSaveInGarage"); + if (fn__setVehicleCanSaveInGarage == null) fn__setVehicleCanSaveInGarage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanSaveInGarage"); var success = false; - fn__setVehicleCanSaveInGarage(&success, _vehicle, _toggle); + fn__setVehicleCanSaveInGarage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100737,9 +100737,9 @@ public int GetVehicleNumberOfBrokenBones(int _vehicle) public void _0x4D9D109F63FEE1D4(int _p0, bool _p1) { unsafe { - if (fn__0x4D9D109F63FEE1D4 == null) fn__0x4D9D109F63FEE1D4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4D9D109F63FEE1D4"); + if (fn__0x4D9D109F63FEE1D4 == null) fn__0x4D9D109F63FEE1D4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4D9D109F63FEE1D4"); var success = false; - fn__0x4D9D109F63FEE1D4(&success, _p0, _p1); + fn__0x4D9D109F63FEE1D4(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100748,9 +100748,9 @@ public void _0x4D9D109F63FEE1D4(int _p0, bool _p1) public void SetVehicleGeneratesEngineShockingEvents(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleGeneratesEngineShockingEvents == null) fn__setVehicleGeneratesEngineShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleGeneratesEngineShockingEvents"); + if (fn__setVehicleGeneratesEngineShockingEvents == null) fn__setVehicleGeneratesEngineShockingEvents = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleGeneratesEngineShockingEvents"); var success = false; - fn__setVehicleGeneratesEngineShockingEvents(&success, _vehicle, _toggle); + fn__setVehicleGeneratesEngineShockingEvents(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100805,13 +100805,13 @@ public void SetVehicleShootAtTarget(int _driver, int _entity, float _xTarget, fl public bool GetVehicleLockOnTarget(int _vehicle, ref int _entity) { unsafe { - if (fn__getVehicleLockOnTarget == null) fn__getVehicleLockOnTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleLockOnTarget"); + if (fn__getVehicleLockOnTarget == null) fn__getVehicleLockOnTarget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleLockOnTarget"); var success = false; var ref_entity = _entity; var result = fn__getVehicleLockOnTarget(&success, _vehicle, &ref_entity); _entity = ref_entity; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100819,9 +100819,9 @@ public bool GetVehicleLockOnTarget(int _vehicle, ref int _entity) public void SetForceHdVehicle(int _vehicle, bool _toggle) { unsafe { - if (fn__setForceHdVehicle == null) fn__setForceHdVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceHdVehicle"); + if (fn__setForceHdVehicle == null) fn__setForceHdVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setForceHdVehicle"); var success = false; - fn__setForceHdVehicle(&success, _vehicle, _toggle); + fn__setForceHdVehicle(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100864,11 +100864,11 @@ public void TrackVehicleVisibility(int _vehicle) public bool IsVehicleVisible(int _vehicle) { unsafe { - if (fn__isVehicleVisible == null) fn__isVehicleVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleVisible"); + if (fn__isVehicleVisible == null) fn__isVehicleVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleVisible"); var success = false; var result = fn__isVehicleVisible(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100876,9 +100876,9 @@ public bool IsVehicleVisible(int _vehicle) public void SetVehicleGravity(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleGravity == null) fn__setVehicleGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleGravity"); + if (fn__setVehicleGravity == null) fn__setVehicleGravity = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleGravity"); var success = false; - fn__setVehicleGravity(&success, _vehicle, _toggle); + fn__setVehicleGravity(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100886,9 +100886,9 @@ public void SetVehicleGravity(int _vehicle, bool _toggle) public void SetEnableVehicleSlipstreaming(bool _toggle) { unsafe { - if (fn__setEnableVehicleSlipstreaming == null) fn__setEnableVehicleSlipstreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableVehicleSlipstreaming"); + if (fn__setEnableVehicleSlipstreaming == null) fn__setEnableVehicleSlipstreaming = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setEnableVehicleSlipstreaming"); var success = false; - fn__setEnableVehicleSlipstreaming(&success, _toggle); + fn__setEnableVehicleSlipstreaming(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100919,11 +100919,11 @@ public float GetVehicleCurrentSlipstreamDraft(int _vehicle) public bool IsVehicleSlipstreamLeader(int _vehicle) { unsafe { - if (fn__isVehicleSlipstreamLeader == null) fn__isVehicleSlipstreamLeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSlipstreamLeader"); + if (fn__isVehicleSlipstreamLeader == null) fn__isVehicleSlipstreamLeader = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSlipstreamLeader"); var success = false; var result = fn__isVehicleSlipstreamLeader(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100931,9 +100931,9 @@ public bool IsVehicleSlipstreamLeader(int _vehicle) public void SetVehicleInactiveDuringPlayback(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleInactiveDuringPlayback == null) fn__setVehicleInactiveDuringPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleInactiveDuringPlayback"); + if (fn__setVehicleInactiveDuringPlayback == null) fn__setVehicleInactiveDuringPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleInactiveDuringPlayback"); var success = false; - fn__setVehicleInactiveDuringPlayback(&success, _vehicle, _toggle); + fn__setVehicleInactiveDuringPlayback(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100941,9 +100941,9 @@ public void SetVehicleInactiveDuringPlayback(int _vehicle, bool _toggle) public void SetVehicleActiveDuringPlayback(int _p0, bool _p1) { unsafe { - if (fn__setVehicleActiveDuringPlayback == null) fn__setVehicleActiveDuringPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleActiveDuringPlayback"); + if (fn__setVehicleActiveDuringPlayback == null) fn__setVehicleActiveDuringPlayback = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleActiveDuringPlayback"); var success = false; - fn__setVehicleActiveDuringPlayback(&success, _p0, _p1); + fn__setVehicleActiveDuringPlayback(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100952,11 +100952,11 @@ public void SetVehicleActiveDuringPlayback(int _p0, bool _p1) public bool IsVehicleSprayable(int _vehicle) { unsafe { - if (fn__isVehicleSprayable == null) fn__isVehicleSprayable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSprayable"); + if (fn__isVehicleSprayable == null) fn__isVehicleSprayable = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleSprayable"); var success = false; var result = fn__isVehicleSprayable(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -100964,9 +100964,9 @@ public bool IsVehicleSprayable(int _vehicle) public void SetVehicleEngineCanDegrade(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleEngineCanDegrade == null) fn__setVehicleEngineCanDegrade = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleEngineCanDegrade"); + if (fn__setVehicleEngineCanDegrade == null) fn__setVehicleEngineCanDegrade = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleEngineCanDegrade"); var success = false; - fn__setVehicleEngineCanDegrade(&success, _vehicle, _toggle); + fn__setVehicleEngineCanDegrade(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -100997,11 +100997,11 @@ public void RemoveVehicleShadowEffect(int _vehicle) public bool IsPlaneLandingGearIntact(int _plane) { unsafe { - if (fn__isPlaneLandingGearIntact == null) fn__isPlaneLandingGearIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaneLandingGearIntact"); + if (fn__isPlaneLandingGearIntact == null) fn__isPlaneLandingGearIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPlaneLandingGearIntact"); var success = false; var result = fn__isPlaneLandingGearIntact(&success, _plane); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101009,11 +101009,11 @@ public bool IsPlaneLandingGearIntact(int _plane) public bool ArePlanePropellersIntact(int _plane) { unsafe { - if (fn__arePlanePropellersIntact == null) fn__arePlanePropellersIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlanePropellersIntact"); + if (fn__arePlanePropellersIntact == null) fn__arePlanePropellersIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlanePropellersIntact"); var success = false; var result = fn__arePlanePropellersIntact(&success, _plane); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101032,9 +101032,9 @@ public void SetPlanePropellersHealth(int _plane, float _health) public void SetVehicleCanDeformWheels(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanDeformWheels == null) fn__setVehicleCanDeformWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanDeformWheels"); + if (fn__setVehicleCanDeformWheels == null) fn__setVehicleCanDeformWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanDeformWheels"); var success = false; - fn__setVehicleCanDeformWheels(&success, _vehicle, _toggle); + fn__setVehicleCanDeformWheels(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101043,11 +101043,11 @@ public void SetVehicleCanDeformWheels(int _vehicle, bool _toggle) public bool IsVehicleStolen(int _vehicle) { unsafe { - if (fn__isVehicleStolen == null) fn__isVehicleStolen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStolen"); + if (fn__isVehicleStolen == null) fn__isVehicleStolen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleStolen"); var success = false; var result = fn__isVehicleStolen(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101055,9 +101055,9 @@ public bool IsVehicleStolen(int _vehicle) public void SetVehicleIsStolen(int _vehicle, bool _isStolen) { unsafe { - if (fn__setVehicleIsStolen == null) fn__setVehicleIsStolen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsStolen"); + if (fn__setVehicleIsStolen == null) fn__setVehicleIsStolen = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleIsStolen"); var success = false; - fn__setVehicleIsStolen(&success, _vehicle, _isStolen); + fn__setVehicleIsStolen(&success, _vehicle, (byte) (_isStolen ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101077,11 +101077,11 @@ public void SetPlaneTurbulenceMultiplier(int _vehicle, float _multiplier) public bool ArePlaneWingsIntact(int _plane) { unsafe { - if (fn__arePlaneWingsIntact == null) fn__arePlaneWingsIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlaneWingsIntact"); + if (fn__arePlaneWingsIntact == null) fn__arePlaneWingsIntact = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_arePlaneWingsIntact"); var success = false; var result = fn__arePlaneWingsIntact(&success, _plane); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101113,11 +101113,11 @@ public void DetachVehicleFromCargobob(int _vehicle, int _cargobob) public bool DetachVehicleFromAnyCargobob(int _vehicle) { unsafe { - if (fn__detachVehicleFromAnyCargobob == null) fn__detachVehicleFromAnyCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachVehicleFromAnyCargobob"); + if (fn__detachVehicleFromAnyCargobob == null) fn__detachVehicleFromAnyCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_detachVehicleFromAnyCargobob"); var success = false; var result = fn__detachVehicleFromAnyCargobob(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101141,11 +101141,11 @@ public int DetachEntityFromCargobob(int _cargobob, int _entity) public bool IsVehicleAttachedToCargobob(int _cargobob, int _vehicleAttached) { unsafe { - if (fn__isVehicleAttachedToCargobob == null) fn__isVehicleAttachedToCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToCargobob"); + if (fn__isVehicleAttachedToCargobob == null) fn__isVehicleAttachedToCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleAttachedToCargobob"); var success = false; var result = fn__isVehicleAttachedToCargobob(&success, _cargobob, _vehicleAttached); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101199,9 +101199,9 @@ public void AttachEntityToCargobob(int _p0, int _p1, int _p2, int _p3, int _p4, public void SetCargobobHookCanDetach(int _cargobob, bool _toggle) { unsafe { - if (fn__setCargobobHookCanDetach == null) fn__setCargobobHookCanDetach = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobHookCanDetach"); + if (fn__setCargobobHookCanDetach == null) fn__setCargobobHookCanDetach = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobHookCanDetach"); var success = false; - fn__setCargobobHookCanDetach(&success, _cargobob, _toggle); + fn__setCargobobHookCanDetach(&success, _cargobob, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101243,11 +101243,11 @@ public Vector3 GetCargobobHookPosition(int _cargobob) public bool DoesCargobobHavePickUpRope(int _cargobob) { unsafe { - if (fn__doesCargobobHavePickUpRope == null) fn__doesCargobobHavePickUpRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCargobobHavePickUpRope"); + if (fn__doesCargobobHavePickUpRope == null) fn__doesCargobobHavePickUpRope = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCargobobHavePickUpRope"); var success = false; var result = fn__doesCargobobHavePickUpRope(&success, _cargobob); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101277,9 +101277,9 @@ public void RemovePickUpRopeForCargobob(int _cargobob) public void SetPickupRopeLengthForCargobob(int _cargobob, float _length1, float _length2, bool _p3) { unsafe { - if (fn__setPickupRopeLengthForCargobob == null) fn__setPickupRopeLengthForCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPickupRopeLengthForCargobob"); + if (fn__setPickupRopeLengthForCargobob == null) fn__setPickupRopeLengthForCargobob = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPickupRopeLengthForCargobob"); var success = false; - fn__setPickupRopeLengthForCargobob(&success, _cargobob, _length1, _length2, _p3); + fn__setPickupRopeLengthForCargobob(&success, _cargobob, _length1, _length2, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101318,11 +101318,11 @@ public void SetCargobobPickupRopeType(int _p0, int _p1) public bool DoesCargobobHavePickupMagnet(int _cargobob) { unsafe { - if (fn__doesCargobobHavePickupMagnet == null) fn__doesCargobobHavePickupMagnet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCargobobHavePickupMagnet"); + if (fn__doesCargobobHavePickupMagnet == null) fn__doesCargobobHavePickupMagnet = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesCargobobHavePickupMagnet"); var success = false; var result = fn__doesCargobobHavePickupMagnet(&success, _cargobob); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101330,9 +101330,9 @@ public bool DoesCargobobHavePickupMagnet(int _cargobob) public void SetCargobobPickupMagnetActive(int _cargobob, bool _isActive) { unsafe { - if (fn__setCargobobPickupMagnetActive == null) fn__setCargobobPickupMagnetActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobPickupMagnetActive"); + if (fn__setCargobobPickupMagnetActive == null) fn__setCargobobPickupMagnetActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobPickupMagnetActive"); var success = false; - fn__setCargobobPickupMagnetActive(&success, _cargobob, _isActive); + fn__setCargobobPickupMagnetActive(&success, _cargobob, (byte) (_isActive ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101420,9 +101420,9 @@ public void SetCargobobPickupMagnetReducedStrength(int _vehicle, int _cargobob) public void _0x9BDDC73CC6A115D4(int _vehicle, bool _p1, bool _p2) { unsafe { - if (fn__0x9BDDC73CC6A115D4 == null) fn__0x9BDDC73CC6A115D4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9BDDC73CC6A115D4"); + if (fn__0x9BDDC73CC6A115D4 == null) fn__0x9BDDC73CC6A115D4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x9BDDC73CC6A115D4"); var success = false; - fn__0x9BDDC73CC6A115D4(&success, _vehicle, _p1, _p2); + fn__0x9BDDC73CC6A115D4(&success, _vehicle, (byte) (_p1 ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101431,9 +101431,9 @@ public void _0x9BDDC73CC6A115D4(int _vehicle, bool _p1, bool _p2) public void _0x56EB5E94318D3FB6(int _vehicle, bool _p1) { unsafe { - if (fn__0x56EB5E94318D3FB6 == null) fn__0x56EB5E94318D3FB6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x56EB5E94318D3FB6"); + if (fn__0x56EB5E94318D3FB6 == null) fn__0x56EB5E94318D3FB6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x56EB5E94318D3FB6"); var success = false; - fn__0x56EB5E94318D3FB6(&success, _vehicle, _p1); + fn__0x56EB5E94318D3FB6(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101442,11 +101442,11 @@ public void _0x56EB5E94318D3FB6(int _vehicle, bool _p1) public bool DoesVehicleHaveWeapons(int _vehicle) { unsafe { - if (fn__doesVehicleHaveWeapons == null) fn__doesVehicleHaveWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveWeapons"); + if (fn__doesVehicleHaveWeapons == null) fn__doesVehicleHaveWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleHaveWeapons"); var success = false; var result = fn__doesVehicleHaveWeapons(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101454,9 +101454,9 @@ public bool DoesVehicleHaveWeapons(int _vehicle) public void _0x2C4A1590ABF43E8B(int _vehicle, bool _p1) { unsafe { - if (fn__0x2C4A1590ABF43E8B == null) fn__0x2C4A1590ABF43E8B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2C4A1590ABF43E8B"); + if (fn__0x2C4A1590ABF43E8B == null) fn__0x2C4A1590ABF43E8B = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x2C4A1590ABF43E8B"); var success = false; - fn__0x2C4A1590ABF43E8B(&success, _vehicle, _p1); + fn__0x2C4A1590ABF43E8B(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101467,9 +101467,9 @@ public void _0x2C4A1590ABF43E8B(int _vehicle, bool _p1) public void DisableVehicleWeapon(bool _disabled, uint _weaponHash, int _vehicle, int _owner) { unsafe { - if (fn__disableVehicleWeapon == null) fn__disableVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleWeapon"); + if (fn__disableVehicleWeapon == null) fn__disableVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleWeapon"); var success = false; - fn__disableVehicleWeapon(&success, _disabled, _weaponHash, _vehicle, _owner); + fn__disableVehicleWeapon(&success, (byte) (_disabled ? 1 : 0), _weaponHash, _vehicle, _owner); if (!success) throw new Exception("Native execution failed"); } } @@ -101480,20 +101480,20 @@ public void DisableVehicleWeapon(bool _disabled, uint _weaponHash, int _vehicle, public bool IsVehicleWeaponDisabled(uint _weaponHash, int _vehicle, int _owner) { unsafe { - if (fn__isVehicleWeaponDisabled == null) fn__isVehicleWeaponDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleWeaponDisabled"); + if (fn__isVehicleWeaponDisabled == null) fn__isVehicleWeaponDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleWeaponDisabled"); var success = false; var result = fn__isVehicleWeaponDisabled(&success, _weaponHash, _vehicle, _owner); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0xE05DD0E9707003A3(int _p0, bool _p1) { unsafe { - if (fn__0xE05DD0E9707003A3 == null) fn__0xE05DD0E9707003A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE05DD0E9707003A3"); + if (fn__0xE05DD0E9707003A3 == null) fn__0xE05DD0E9707003A3 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE05DD0E9707003A3"); var success = false; - fn__0xE05DD0E9707003A3(&success, _p0, _p1); + fn__0xE05DD0E9707003A3(&success, _p0, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101502,9 +101502,9 @@ public void _0xE05DD0E9707003A3(int _p0, bool _p1) public void SetVehicleActiveForPedNavigation(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleActiveForPedNavigation == null) fn__setVehicleActiveForPedNavigation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleActiveForPedNavigation"); + if (fn__setVehicleActiveForPedNavigation == null) fn__setVehicleActiveForPedNavigation = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleActiveForPedNavigation"); var success = false; - fn__setVehicleActiveForPedNavigation(&success, _vehicle, _toggle); + fn__setVehicleActiveForPedNavigation(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101547,9 +101547,9 @@ public void SetPlayersLastVehicle(int _vehicle) public void SetVehicleCanBeUsedByFleeingPeds(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleCanBeUsedByFleeingPeds == null) fn__setVehicleCanBeUsedByFleeingPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeUsedByFleeingPeds"); + if (fn__setVehicleCanBeUsedByFleeingPeds == null) fn__setVehicleCanBeUsedByFleeingPeds = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleCanBeUsedByFleeingPeds"); var success = false; - fn__setVehicleCanBeUsedByFleeingPeds(&success, _vehicle, _toggle); + fn__setVehicleCanBeUsedByFleeingPeds(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101569,9 +101569,9 @@ public void _0xE5810AC70602F2F5(int _vehicle, float _p1) public void SetVehicleDropsMoneyWhenBlownUp(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleDropsMoneyWhenBlownUp == null) fn__setVehicleDropsMoneyWhenBlownUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDropsMoneyWhenBlownUp"); + if (fn__setVehicleDropsMoneyWhenBlownUp == null) fn__setVehicleDropsMoneyWhenBlownUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleDropsMoneyWhenBlownUp"); var success = false; - fn__setVehicleDropsMoneyWhenBlownUp(&success, _vehicle, _toggle); + fn__setVehicleDropsMoneyWhenBlownUp(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101580,9 +101580,9 @@ public void SetVehicleDropsMoneyWhenBlownUp(int _vehicle, bool _toggle) public void SetVehicleJetEngineOn(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleJetEngineOn == null) fn__setVehicleJetEngineOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleJetEngineOn"); + if (fn__setVehicleJetEngineOn == null) fn__setVehicleJetEngineOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleJetEngineOn"); var success = false; - fn__setVehicleJetEngineOn(&success, _vehicle, _toggle); + fn__setVehicleJetEngineOn(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101656,9 +101656,9 @@ public void SetVehicleFrictionOverride(int _vehicle, float _friction) public void SetVehicleWheelsCanBreakOffWhenBlowUp(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleWheelsCanBreakOffWhenBlowUp == null) fn__setVehicleWheelsCanBreakOffWhenBlowUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsCanBreakOffWhenBlowUp"); + if (fn__setVehicleWheelsCanBreakOffWhenBlowUp == null) fn__setVehicleWheelsCanBreakOffWhenBlowUp = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsCanBreakOffWhenBlowUp"); var success = false; - fn__setVehicleWheelsCanBreakOffWhenBlowUp(&success, _vehicle, _toggle); + fn__setVehicleWheelsCanBreakOffWhenBlowUp(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101667,11 +101667,11 @@ public void SetVehicleWheelsCanBreakOffWhenBlowUp(int _vehicle, bool _toggle) public bool _0xF78F94D60248C737(int _vehicle, bool _p1) { unsafe { - if (fn__0xF78F94D60248C737 == null) fn__0xF78F94D60248C737 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF78F94D60248C737"); + if (fn__0xF78F94D60248C737 == null) fn__0xF78F94D60248C737 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xF78F94D60248C737"); var success = false; - var result = fn__0xF78F94D60248C737(&success, _vehicle, _p1); + var result = fn__0xF78F94D60248C737(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101690,9 +101690,9 @@ public void SetVehicleCeilingHeight(int _vehicle, float _height) public void _0x5E569EC46EC21CAE(int _vehicle, bool _toggle) { unsafe { - if (fn__0x5E569EC46EC21CAE == null) fn__0x5E569EC46EC21CAE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5E569EC46EC21CAE"); + if (fn__0x5E569EC46EC21CAE == null) fn__0x5E569EC46EC21CAE = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5E569EC46EC21CAE"); var success = false; - fn__0x5E569EC46EC21CAE(&success, _vehicle, _toggle); + fn__0x5E569EC46EC21CAE(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101711,13 +101711,13 @@ public void ClearVehicleRouteHistory(int _vehicle) public bool DoesVehicleExistWithDecorator(string _decorator) { unsafe { - if (fn__doesVehicleExistWithDecorator == null) fn__doesVehicleExistWithDecorator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleExistWithDecorator"); + if (fn__doesVehicleExistWithDecorator == null) fn__doesVehicleExistWithDecorator = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesVehicleExistWithDecorator"); var success = false; var ptr_decorator = MemoryUtils.StringToHGlobalUtf8(_decorator); var result = fn__doesVehicleExistWithDecorator(&success, ptr_decorator); Marshal.FreeHGlobal(ptr_decorator); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101725,9 +101725,9 @@ public bool DoesVehicleExistWithDecorator(string _decorator) public void _0x41062318F23ED854(int _vehicle, bool _toggle) { unsafe { - if (fn__0x41062318F23ED854 == null) fn__0x41062318F23ED854 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x41062318F23ED854"); + if (fn__0x41062318F23ED854 == null) fn__0x41062318F23ED854 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x41062318F23ED854"); var success = false; - fn__0x41062318F23ED854(&success, _vehicle, _toggle); + fn__0x41062318F23ED854(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101751,13 +101751,13 @@ public void SetVehicleExclusiveDriver(int _vehicle, int _ped, int _index) public bool IsPedExclusiveDriverOfVehicle(int _ped, int _vehicle, ref int _outIndex) { unsafe { - if (fn__isPedExclusiveDriverOfVehicle == null) fn__isPedExclusiveDriverOfVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedExclusiveDriverOfVehicle"); + if (fn__isPedExclusiveDriverOfVehicle == null) fn__isPedExclusiveDriverOfVehicle = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedExclusiveDriverOfVehicle"); var success = false; var ref_outIndex = _outIndex; var result = fn__isPedExclusiveDriverOfVehicle(&success, _ped, _vehicle, &ref_outIndex); _outIndex = ref_outIndex; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -101776,9 +101776,9 @@ public void DisableIndividualPlanePropeller(int _vehicle, int _propeller) public void SetVehicleForceAfterburner(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleForceAfterburner == null) fn__setVehicleForceAfterburner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleForceAfterburner"); + if (fn__setVehicleForceAfterburner == null) fn__setVehicleForceAfterburner = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleForceAfterburner"); var success = false; - fn__setVehicleForceAfterburner(&success, _vehicle, _toggle); + fn__setVehicleForceAfterburner(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101787,9 +101787,9 @@ public void SetVehicleForceAfterburner(int _vehicle, bool _toggle) public void SetDisableVehicleWindowCollisions(int _vehicle, bool _toggle) { unsafe { - if (fn__setDisableVehicleWindowCollisions == null) fn__setDisableVehicleWindowCollisions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleWindowCollisions"); + if (fn__setDisableVehicleWindowCollisions == null) fn__setDisableVehicleWindowCollisions = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleWindowCollisions"); var success = false; - fn__setDisableVehicleWindowCollisions(&success, _vehicle, _toggle); + fn__setDisableVehicleWindowCollisions(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101798,9 +101798,9 @@ public void SetDisableVehicleWindowCollisions(int _vehicle, bool _toggle) public void _0x4AD280EB48B2D8E6(int _vehicle, bool _togle) { unsafe { - if (fn__0x4AD280EB48B2D8E6 == null) fn__0x4AD280EB48B2D8E6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4AD280EB48B2D8E6"); + if (fn__0x4AD280EB48B2D8E6 == null) fn__0x4AD280EB48B2D8E6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x4AD280EB48B2D8E6"); var success = false; - fn__0x4AD280EB48B2D8E6(&success, _vehicle, _togle); + fn__0x4AD280EB48B2D8E6(&success, _vehicle, (byte) (_togle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101809,9 +101809,9 @@ public void _0x4AD280EB48B2D8E6(int _vehicle, bool _togle) public void _0xB68CFAF83A02768D(int _vehicle, bool _toggle) { unsafe { - if (fn__0xB68CFAF83A02768D == null) fn__0xB68CFAF83A02768D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB68CFAF83A02768D"); + if (fn__0xB68CFAF83A02768D == null) fn__0xB68CFAF83A02768D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB68CFAF83A02768D"); var success = false; - fn__0xB68CFAF83A02768D(&success, _vehicle, _toggle); + fn__0xB68CFAF83A02768D(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101840,9 +101840,9 @@ public void _0xCF9159024555488C(int _p0) public void SetDistantCarsEnabled(bool _toggle) { unsafe { - if (fn__setDistantCarsEnabled == null) fn__setDistantCarsEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDistantCarsEnabled"); + if (fn__setDistantCarsEnabled == null) fn__setDistantCarsEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDistantCarsEnabled"); var success = false; - fn__setDistantCarsEnabled(&success, _toggle); + fn__setDistantCarsEnabled(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101890,9 +101890,9 @@ public void GetVehicleNeonLightsColour(int _vehicle, ref int _r, ref int _g, ref public void SetVehicleNeonLightEnabled(int _vehicle, int _index, bool _toggle) { unsafe { - if (fn__setVehicleNeonLightEnabled == null) fn__setVehicleNeonLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNeonLightEnabled"); + if (fn__setVehicleNeonLightEnabled == null) fn__setVehicleNeonLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNeonLightEnabled"); var success = false; - fn__setVehicleNeonLightEnabled(&success, _vehicle, _index, _toggle); + fn__setVehicleNeonLightEnabled(&success, _vehicle, _index, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101901,20 +101901,20 @@ public void SetVehicleNeonLightEnabled(int _vehicle, int _index, bool _toggle) public bool IsVehicleNeonLightEnabled(int _vehicle, int _index) { unsafe { - if (fn__isVehicleNeonLightEnabled == null) fn__isVehicleNeonLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleNeonLightEnabled"); + if (fn__isVehicleNeonLightEnabled == null) fn__isVehicleNeonLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleNeonLightEnabled"); var success = false; var result = fn__isVehicleNeonLightEnabled(&success, _vehicle, _index); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x35E0654F4BAD7971(bool _p0) { unsafe { - if (fn__0x35E0654F4BAD7971 == null) fn__0x35E0654F4BAD7971 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x35E0654F4BAD7971"); + if (fn__0x35E0654F4BAD7971 == null) fn__0x35E0654F4BAD7971 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x35E0654F4BAD7971"); var success = false; - fn__0x35E0654F4BAD7971(&success, _p0); + fn__0x35E0654F4BAD7971(&success, (byte) (_p0 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101923,9 +101923,9 @@ public void _0x35E0654F4BAD7971(bool _p0) public void DisableVehicleNeonLights(int _vehicle, bool _toggle) { unsafe { - if (fn__disableVehicleNeonLights == null) fn__disableVehicleNeonLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleNeonLights"); + if (fn__disableVehicleNeonLights == null) fn__disableVehicleNeonLights = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_disableVehicleNeonLights"); var success = false; - fn__disableVehicleNeonLights(&success, _vehicle, _toggle); + fn__disableVehicleNeonLights(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -101934,9 +101934,9 @@ public void DisableVehicleNeonLights(int _vehicle, bool _toggle) public void SetDisableSuperdummyMode(int _vehicle, bool _p1) { unsafe { - if (fn__setDisableSuperdummyMode == null) fn__setDisableSuperdummyMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableSuperdummyMode"); + if (fn__setDisableSuperdummyMode == null) fn__setDisableSuperdummyMode = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableSuperdummyMode"); var success = false; - fn__setDisableSuperdummyMode(&success, _vehicle, _p1); + fn__setDisableSuperdummyMode(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102038,9 +102038,9 @@ public void SetHydraulicRaised(int _p0, int _p1) public void _0xA7DCDF4DED40A8F4(int _vehicle, bool _p1) { unsafe { - if (fn__0xA7DCDF4DED40A8F4 == null) fn__0xA7DCDF4DED40A8F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA7DCDF4DED40A8F4"); + if (fn__0xA7DCDF4DED40A8F4 == null) fn__0xA7DCDF4DED40A8F4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xA7DCDF4DED40A8F4"); var success = false; - fn__0xA7DCDF4DED40A8F4(&success, _vehicle, _p1); + fn__0xA7DCDF4DED40A8F4(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102061,11 +102061,11 @@ public float GetVehicleBodyHealth2(int _vehicle, float _maxEngineHealth, float _ public bool _0xD4C4642CB7F50B5D(int _vehicle) { unsafe { - if (fn__0xD4C4642CB7F50B5D == null) fn__0xD4C4642CB7F50B5D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD4C4642CB7F50B5D"); + if (fn__0xD4C4642CB7F50B5D == null) fn__0xD4C4642CB7F50B5D = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xD4C4642CB7F50B5D"); var success = false; var result = fn__0xD4C4642CB7F50B5D(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102073,9 +102073,9 @@ public bool _0xD4C4642CB7F50B5D(int _vehicle) public void _0xC361AA040D6637A8(int _vehicle, bool _p1) { unsafe { - if (fn__0xC361AA040D6637A8 == null) fn__0xC361AA040D6637A8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC361AA040D6637A8"); + if (fn__0xC361AA040D6637A8 == null) fn__0xC361AA040D6637A8 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xC361AA040D6637A8"); var success = false; - fn__0xC361AA040D6637A8(&success, _vehicle, _p1); + fn__0xC361AA040D6637A8(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102084,9 +102084,9 @@ public void _0xC361AA040D6637A8(int _vehicle, bool _p1) public void SetVehicleKersAllowed(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleKersAllowed == null) fn__setVehicleKersAllowed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleKersAllowed"); + if (fn__setVehicleKersAllowed == null) fn__setVehicleKersAllowed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleKersAllowed"); var success = false; - fn__setVehicleKersAllowed(&success, _vehicle, _toggle); + fn__setVehicleKersAllowed(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102095,11 +102095,11 @@ public void SetVehicleKersAllowed(int _vehicle, bool _toggle) public bool GetVehicleHasKers(int _vehicle) { unsafe { - if (fn__getVehicleHasKers == null) fn__getVehicleHasKers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleHasKers"); + if (fn__getVehicleHasKers == null) fn__getVehicleHasKers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleHasKers"); var success = false; var result = fn__getVehicleHasKers(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102107,9 +102107,9 @@ public bool GetVehicleHasKers(int _vehicle) public void _0xE16142B94664DEFD(int _vehicle, bool _p1) { unsafe { - if (fn__0xE16142B94664DEFD == null) fn__0xE16142B94664DEFD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE16142B94664DEFD"); + if (fn__0xE16142B94664DEFD == null) fn__0xE16142B94664DEFD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE16142B94664DEFD"); var success = false; - fn__0xE16142B94664DEFD(&success, _vehicle, _p1); + fn__0xE16142B94664DEFD(&success, _vehicle, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102279,9 +102279,9 @@ public void _0x73561D4425A021A2(int _p0, int _p1) public void SetVehicleControlsInverted(int _vehicle, bool _state) { unsafe { - if (fn__setVehicleControlsInverted == null) fn__setVehicleControlsInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleControlsInverted"); + if (fn__setVehicleControlsInverted == null) fn__setVehicleControlsInverted = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleControlsInverted"); var success = false; - fn__setVehicleControlsInverted(&success, _vehicle, _state); + fn__setVehicleControlsInverted(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102331,11 +102331,11 @@ public void _0xE2F53F172B45EDE1() public bool _0xBA91D045575699AD(int _vehicle) { unsafe { - if (fn__0xBA91D045575699AD == null) fn__0xBA91D045575699AD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBA91D045575699AD"); + if (fn__0xBA91D045575699AD == null) fn__0xBA91D045575699AD = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xBA91D045575699AD"); var success = false; var result = fn__0xBA91D045575699AD(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102363,11 +102363,11 @@ public void SetVehicleRampLaunchModifier(int _p0, int _p1) public bool GetIsDoorValid(int _vehicle, int _doorId) { unsafe { - if (fn__getIsDoorValid == null) fn__getIsDoorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsDoorValid"); + if (fn__getIsDoorValid == null) fn__getIsDoorValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsDoorValid"); var success = false; var result = fn__getIsDoorValid(&success, _vehicle, _doorId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102386,11 +102386,11 @@ public void SetVehicleRocketBoostRefillTime(int _vehicle, float _seconds) public bool GetHasRocketBoost(int _vehicle) { unsafe { - if (fn__getHasRocketBoost == null) fn__getHasRocketBoost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasRocketBoost"); + if (fn__getHasRocketBoost == null) fn__getHasRocketBoost = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasRocketBoost"); var success = false; var result = fn__getHasRocketBoost(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102398,11 +102398,11 @@ public bool GetHasRocketBoost(int _vehicle) public bool IsVehicleRocketBoostActive(int _vehicle) { unsafe { - if (fn__isVehicleRocketBoostActive == null) fn__isVehicleRocketBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRocketBoostActive"); + if (fn__isVehicleRocketBoostActive == null) fn__isVehicleRocketBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isVehicleRocketBoostActive"); var success = false; var result = fn__isVehicleRocketBoostActive(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102410,9 +102410,9 @@ public bool IsVehicleRocketBoostActive(int _vehicle) public void SetVehicleRocketBoostActive(int _vehicle, bool _active) { unsafe { - if (fn__setVehicleRocketBoostActive == null) fn__setVehicleRocketBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRocketBoostActive"); + if (fn__setVehicleRocketBoostActive == null) fn__setVehicleRocketBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleRocketBoostActive"); var success = false; - fn__setVehicleRocketBoostActive(&success, _vehicle, _active); + fn__setVehicleRocketBoostActive(&success, _vehicle, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102421,11 +102421,11 @@ public void SetVehicleRocketBoostActive(int _vehicle, bool _active) public bool GetHasRetractableWheels(int _vehicle) { unsafe { - if (fn__getHasRetractableWheels == null) fn__getHasRetractableWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasRetractableWheels"); + if (fn__getHasRetractableWheels == null) fn__getHasRetractableWheels = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getHasRetractableWheels"); var success = false; var result = fn__getHasRetractableWheels(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102433,11 +102433,11 @@ public bool GetHasRetractableWheels(int _vehicle) public bool GetIsWheelsLoweredStateActive(int _vehicle) { unsafe { - if (fn__getIsWheelsLoweredStateActive == null) fn__getIsWheelsLoweredStateActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWheelsLoweredStateActive"); + if (fn__getIsWheelsLoweredStateActive == null) fn__getIsWheelsLoweredStateActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsWheelsLoweredStateActive"); var success = false; var result = fn__getIsWheelsLoweredStateActive(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102467,11 +102467,11 @@ public void LowerRetractableWheels(int _vehicle) public bool GetCanVehicleJump(int _vehicle) { unsafe { - if (fn__getCanVehicleJump == null) fn__getCanVehicleJump = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCanVehicleJump"); + if (fn__getCanVehicleJump == null) fn__getCanVehicleJump = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCanVehicleJump"); var success = false; var result = fn__getCanVehicleJump(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102479,9 +102479,9 @@ public bool GetCanVehicleJump(int _vehicle) public void SetUseHigherVehicleJumpForce(int _vehicle, bool _toggle) { unsafe { - if (fn__setUseHigherVehicleJumpForce == null) fn__setUseHigherVehicleJumpForce = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUseHigherVehicleJumpForce"); + if (fn__setUseHigherVehicleJumpForce == null) fn__setUseHigherVehicleJumpForce = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUseHigherVehicleJumpForce"); var success = false; - fn__setUseHigherVehicleJumpForce(&success, _vehicle, _toggle); + fn__setUseHigherVehicleJumpForce(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102490,9 +102490,9 @@ public void SetUseHigherVehicleJumpForce(int _vehicle, bool _toggle) public void _0xB2E0C0D6922D31F2(int _vehicle, bool _toggle) { unsafe { - if (fn__0xB2E0C0D6922D31F2 == null) fn__0xB2E0C0D6922D31F2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB2E0C0D6922D31F2"); + if (fn__0xB2E0C0D6922D31F2 == null) fn__0xB2E0C0D6922D31F2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xB2E0C0D6922D31F2"); var success = false; - fn__0xB2E0C0D6922D31F2(&success, _vehicle, _toggle); + fn__0xB2E0C0D6922D31F2(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102524,11 +102524,11 @@ public int GetVehicleWeaponCapacity(int _vehicle, int _weaponIndex) public bool GetVehicleHasParachute(int _vehicle) { unsafe { - if (fn__getVehicleHasParachute == null) fn__getVehicleHasParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleHasParachute"); + if (fn__getVehicleHasParachute == null) fn__getVehicleHasParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleHasParachute"); var success = false; var result = fn__getVehicleHasParachute(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102536,11 +102536,11 @@ public bool GetVehicleHasParachute(int _vehicle) public bool GetVehicleCanActivateParachute(int _vehicle) { unsafe { - if (fn__getVehicleCanActivateParachute == null) fn__getVehicleCanActivateParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleCanActivateParachute"); + if (fn__getVehicleCanActivateParachute == null) fn__getVehicleCanActivateParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getVehicleCanActivateParachute"); var success = false; var result = fn__getVehicleCanActivateParachute(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102548,9 +102548,9 @@ public bool GetVehicleCanActivateParachute(int _vehicle) public void SetVehicleParachuteActive(int _vehicle, bool _active) { unsafe { - if (fn__setVehicleParachuteActive == null) fn__setVehicleParachuteActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleParachuteActive"); + if (fn__setVehicleParachuteActive == null) fn__setVehicleParachuteActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleParachuteActive"); var success = false; - fn__setVehicleParachuteActive(&success, _vehicle, _active); + fn__setVehicleParachuteActive(&success, _vehicle, (byte) (_active ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102570,9 +102570,9 @@ public int _0x3DE51E9C80B116CF(int _p0) public void SetVehicleReceivesRampDamage(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleReceivesRampDamage == null) fn__setVehicleReceivesRampDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleReceivesRampDamage"); + if (fn__setVehicleReceivesRampDamage == null) fn__setVehicleReceivesRampDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleReceivesRampDamage"); var success = false; - fn__setVehicleReceivesRampDamage(&success, _vehicle, _toggle); + fn__setVehicleReceivesRampDamage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102771,9 +102771,9 @@ public void SetVehicleRocketBoostPercentage(int _vehicle, float _percentage) public void SetOppressorTransformState(int _vehicle, bool _state) { unsafe { - if (fn__setOppressorTransformState == null) fn__setOppressorTransformState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setOppressorTransformState"); + if (fn__setOppressorTransformState == null) fn__setOppressorTransformState = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setOppressorTransformState"); var success = false; - fn__setOppressorTransformState(&success, _vehicle, _state); + fn__setOppressorTransformState(&success, _vehicle, (byte) (_state ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102823,9 +102823,9 @@ public void DisableVehicleWorldCollision(int _vehicle) public void _0x8235F1BEAD557629(int _vehicle, bool _toggle) { unsafe { - if (fn__0x8235F1BEAD557629 == null) fn__0x8235F1BEAD557629 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8235F1BEAD557629"); + if (fn__0x8235F1BEAD557629 == null) fn__0x8235F1BEAD557629 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8235F1BEAD557629"); var success = false; - fn__0x8235F1BEAD557629(&success, _vehicle, _toggle); + fn__0x8235F1BEAD557629(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102855,9 +102855,9 @@ public void _0x0BBB9A7A8FFE931B(int _p0, int _p1, int _p2) public void SetCargobobHookCanAttach(int _vehicle, bool _toggle) { unsafe { - if (fn__setCargobobHookCanAttach == null) fn__setCargobobHookCanAttach = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobHookCanAttach"); + if (fn__setCargobobHookCanAttach == null) fn__setCargobobHookCanAttach = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCargobobHookCanAttach"); var success = false; - fn__setCargobobHookCanAttach(&success, _vehicle, _toggle); + fn__setCargobobHookCanAttach(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102923,11 +102923,11 @@ public void _0x0A3F820A9A9A9AC5(int _vehicle, float _x, float _y, float _z) public bool _0x51F30DB60626A20E(int _vehicle, float _x, float _y, float _z, float _rotX, float _rotY, float _rotZ, int _p7, int _p8) { unsafe { - if (fn__0x51F30DB60626A20E == null) fn__0x51F30DB60626A20E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x51F30DB60626A20E"); + if (fn__0x51F30DB60626A20E == null) fn__0x51F30DB60626A20E = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x51F30DB60626A20E"); var success = false; var result = fn__0x51F30DB60626A20E(&success, _vehicle, _x, _y, _z, _rotX, _rotY, _rotZ, _p7, _p8); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -102935,9 +102935,9 @@ public bool _0x51F30DB60626A20E(int _vehicle, float _x, float _y, float _z, floa public void _0x97841634EF7DF1D6(int _vehicle, bool _toggle) { unsafe { - if (fn__0x97841634EF7DF1D6 == null) fn__0x97841634EF7DF1D6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x97841634EF7DF1D6"); + if (fn__0x97841634EF7DF1D6 == null) fn__0x97841634EF7DF1D6 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x97841634EF7DF1D6"); var success = false; - fn__0x97841634EF7DF1D6(&success, _vehicle, _toggle); + fn__0x97841634EF7DF1D6(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102968,9 +102968,9 @@ public void SetVehicleHoverTransformPercentage(int _vehicle, float _percentage) public void SetVehicleHoverTransformEnabled(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHoverTransformEnabled == null) fn__setVehicleHoverTransformEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHoverTransformEnabled"); + if (fn__setVehicleHoverTransformEnabled == null) fn__setVehicleHoverTransformEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHoverTransformEnabled"); var success = false; - fn__setVehicleHoverTransformEnabled(&success, _vehicle, _toggle); + fn__setVehicleHoverTransformEnabled(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -102979,9 +102979,9 @@ public void SetVehicleHoverTransformEnabled(int _vehicle, bool _toggle) public void SetVehicleHoverTransformActive(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleHoverTransformActive == null) fn__setVehicleHoverTransformActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHoverTransformActive"); + if (fn__setVehicleHoverTransformActive == null) fn__setVehicleHoverTransformActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleHoverTransformActive"); var success = false; - fn__setVehicleHoverTransformActive(&success, _vehicle, _toggle); + fn__setVehicleHoverTransformActive(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103013,9 +103013,9 @@ public Vector3 FindRandomPointInSpace(int _ped) public void SetDeployHeliStubWings(int _vehicle, bool _deploy, bool _p2) { unsafe { - if (fn__setDeployHeliStubWings == null) fn__setDeployHeliStubWings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDeployHeliStubWings"); + if (fn__setDeployHeliStubWings == null) fn__setDeployHeliStubWings = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDeployHeliStubWings"); var success = false; - fn__setDeployHeliStubWings(&success, _vehicle, _deploy, _p2); + fn__setDeployHeliStubWings(&success, _vehicle, (byte) (_deploy ? 1 : 0), (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103024,11 +103024,11 @@ public void SetDeployHeliStubWings(int _vehicle, bool _deploy, bool _p2) public bool AreHeliStubWingsDeployed(int _vehicle) { unsafe { - if (fn__areHeliStubWingsDeployed == null) fn__areHeliStubWingsDeployed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areHeliStubWingsDeployed"); + if (fn__areHeliStubWingsDeployed == null) fn__areHeliStubWingsDeployed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_areHeliStubWingsDeployed"); var success = false; var result = fn__areHeliStubWingsDeployed(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103036,9 +103036,9 @@ public bool AreHeliStubWingsDeployed(int _vehicle) public void _0xAA653AE61924B0A0(int _vehicle, bool _toggle) { unsafe { - if (fn__0xAA653AE61924B0A0 == null) fn__0xAA653AE61924B0A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAA653AE61924B0A0"); + if (fn__0xAA653AE61924B0A0 == null) fn__0xAA653AE61924B0A0 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xAA653AE61924B0A0"); var success = false; - fn__0xAA653AE61924B0A0(&success, _vehicle, _toggle); + fn__0xAA653AE61924B0A0(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103047,9 +103047,9 @@ public void _0xAA653AE61924B0A0(int _vehicle, bool _toggle) public void SetVehicleTurretUnk(int _vehicle, int _index, bool _toggle) { unsafe { - if (fn__setVehicleTurretUnk == null) fn__setVehicleTurretUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTurretUnk"); + if (fn__setVehicleTurretUnk == null) fn__setVehicleTurretUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleTurretUnk"); var success = false; - fn__setVehicleTurretUnk(&success, _vehicle, _index, _toggle); + fn__setVehicleTurretUnk(&success, _vehicle, _index, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103102,9 +103102,9 @@ public void SetUnkFloat0x104ForSubmarineVehicleTask(int _vehicle, float _value) public void SetUnkBool0x102ForSubmarineVehicleTask(int _vehicle, bool _value) { unsafe { - if (fn__setUnkBool0x102ForSubmarineVehicleTask == null) fn__setUnkBool0x102ForSubmarineVehicleTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUnkBool0x102ForSubmarineVehicleTask"); + if (fn__setUnkBool0x102ForSubmarineVehicleTask == null) fn__setUnkBool0x102ForSubmarineVehicleTask = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setUnkBool0x102ForSubmarineVehicleTask"); var success = false; - fn__setUnkBool0x102ForSubmarineVehicleTask(&success, _vehicle, _value); + fn__setUnkBool0x102ForSubmarineVehicleTask(&success, _vehicle, (byte) (_value ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103112,9 +103112,9 @@ public void SetUnkBool0x102ForSubmarineVehicleTask(int _vehicle, bool _value) public void _0x36DE109527A2C0C4(bool _toggle) { unsafe { - if (fn__0x36DE109527A2C0C4 == null) fn__0x36DE109527A2C0C4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x36DE109527A2C0C4"); + if (fn__0x36DE109527A2C0C4 == null) fn__0x36DE109527A2C0C4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x36DE109527A2C0C4"); var success = false; - fn__0x36DE109527A2C0C4(&success, _toggle); + fn__0x36DE109527A2C0C4(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103122,9 +103122,9 @@ public void _0x36DE109527A2C0C4(bool _toggle) public void _0x82E0AC411E41A5B4(bool _toggle) { unsafe { - if (fn__0x82E0AC411E41A5B4 == null) fn__0x82E0AC411E41A5B4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x82E0AC411E41A5B4"); + if (fn__0x82E0AC411E41A5B4 == null) fn__0x82E0AC411E41A5B4 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x82E0AC411E41A5B4"); var success = false; - fn__0x82E0AC411E41A5B4(&success, _toggle); + fn__0x82E0AC411E41A5B4(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103132,9 +103132,9 @@ public void _0x82E0AC411E41A5B4(bool _toggle) public void _0x99A05839C46CE316(bool _toggle) { unsafe { - if (fn__0x99A05839C46CE316 == null) fn__0x99A05839C46CE316 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x99A05839C46CE316"); + if (fn__0x99A05839C46CE316 == null) fn__0x99A05839C46CE316 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x99A05839C46CE316"); var success = false; - fn__0x99A05839C46CE316(&success, _toggle); + fn__0x99A05839C46CE316(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103143,11 +103143,11 @@ public void _0x99A05839C46CE316(bool _toggle) public bool GetIsVehicleShuntBoostActive(int _vehicle) { unsafe { - if (fn__getIsVehicleShuntBoostActive == null) fn__getIsVehicleShuntBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleShuntBoostActive"); + if (fn__getIsVehicleShuntBoostActive == null) fn__getIsVehicleShuntBoostActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleShuntBoostActive"); var success = false; var result = fn__getIsVehicleShuntBoostActive(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103155,11 +103155,11 @@ public bool GetIsVehicleShuntBoostActive(int _vehicle) public bool _0xE8718FAF591FD224(int _vehicle) { unsafe { - if (fn__0xE8718FAF591FD224 == null) fn__0xE8718FAF591FD224 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE8718FAF591FD224"); + if (fn__0xE8718FAF591FD224 == null) fn__0xE8718FAF591FD224 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0xE8718FAF591FD224"); var success = false; var result = fn__0xE8718FAF591FD224(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103178,9 +103178,9 @@ public int GetLastRammedVehicle(int _vehicle) public void SetDisableVehicleUnk(bool _toggle) { unsafe { - if (fn__setDisableVehicleUnk == null) fn__setDisableVehicleUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleUnk"); + if (fn__setDisableVehicleUnk == null) fn__setDisableVehicleUnk = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleUnk"); var success = false; - fn__setDisableVehicleUnk(&success, _toggle); + fn__setDisableVehicleUnk(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103189,9 +103189,9 @@ public void SetDisableVehicleUnk(bool _toggle) public void SetVehicleNitroEnabled(int _vehicle, bool _toggle, float _level, float _power, float _rechargeTime, bool _disableSound) { unsafe { - if (fn__setVehicleNitroEnabled == null) fn__setVehicleNitroEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNitroEnabled"); + if (fn__setVehicleNitroEnabled == null) fn__setVehicleNitroEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleNitroEnabled"); var success = false; - fn__setVehicleNitroEnabled(&success, _vehicle, _toggle, _level, _power, _rechargeTime, _disableSound); + fn__setVehicleNitroEnabled(&success, _vehicle, (byte) (_toggle ? 1 : 0), _level, _power, _rechargeTime, (byte) (_disableSound ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103200,9 +103200,9 @@ public void SetVehicleNitroEnabled(int _vehicle, bool _toggle, float _level, flo public void SetVehicleWheelsDealDamage(int _vehicle, bool _toggle) { unsafe { - if (fn__setVehicleWheelsDealDamage == null) fn__setVehicleWheelsDealDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsDealDamage"); + if (fn__setVehicleWheelsDealDamage == null) fn__setVehicleWheelsDealDamage = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setVehicleWheelsDealDamage"); var success = false; - fn__setVehicleWheelsDealDamage(&success, _vehicle, _toggle); + fn__setVehicleWheelsDealDamage(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103210,9 +103210,9 @@ public void SetVehicleWheelsDealDamage(int _vehicle, bool _toggle) public void SetDisableVehicleUnk2(bool _toggle) { unsafe { - if (fn__setDisableVehicleUnk2 == null) fn__setDisableVehicleUnk2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleUnk2"); + if (fn__setDisableVehicleUnk2 == null) fn__setDisableVehicleUnk2 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDisableVehicleUnk2"); var success = false; - fn__setDisableVehicleUnk2(&success, _toggle); + fn__setDisableVehicleUnk2(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103220,9 +103220,9 @@ public void SetDisableVehicleUnk2(bool _toggle) public void _0x5BBCF35BF6E456F7(bool _toggle) { unsafe { - if (fn__0x5BBCF35BF6E456F7 == null) fn__0x5BBCF35BF6E456F7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5BBCF35BF6E456F7"); + if (fn__0x5BBCF35BF6E456F7 == null) fn__0x5BBCF35BF6E456F7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x5BBCF35BF6E456F7"); var success = false; - fn__0x5BBCF35BF6E456F7(&success, _toggle); + fn__0x5BBCF35BF6E456F7(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103231,11 +103231,11 @@ public void _0x5BBCF35BF6E456F7(bool _toggle) public bool GetDoesVehicleHaveTombstone(int _vehicle) { unsafe { - if (fn__getDoesVehicleHaveTombstone == null) fn__getDoesVehicleHaveTombstone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDoesVehicleHaveTombstone"); + if (fn__getDoesVehicleHaveTombstone == null) fn__getDoesVehicleHaveTombstone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDoesVehicleHaveTombstone"); var success = false; var result = fn__getDoesVehicleHaveTombstone(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103243,9 +103243,9 @@ public bool GetDoesVehicleHaveTombstone(int _vehicle) public void HideVehicleTombstone(int _vehicle, bool _toggle) { unsafe { - if (fn__hideVehicleTombstone == null) fn__hideVehicleTombstone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hideVehicleTombstone"); + if (fn__hideVehicleTombstone == null) fn__hideVehicleTombstone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hideVehicleTombstone"); var success = false; - fn__hideVehicleTombstone(&success, _vehicle, _toggle); + fn__hideVehicleTombstone(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103254,20 +103254,20 @@ public void HideVehicleTombstone(int _vehicle, bool _toggle) public bool GetIsVehicleEmpDisabled(int _vehicle) { unsafe { - if (fn__getIsVehicleEmpDisabled == null) fn__getIsVehicleEmpDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleEmpDisabled"); + if (fn__getIsVehicleEmpDisabled == null) fn__getIsVehicleEmpDisabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsVehicleEmpDisabled"); var success = false; var result = fn__getIsVehicleEmpDisabled(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public void _0x8F0D5BA1C2CC91D7(bool _toggle) { unsafe { - if (fn__0x8F0D5BA1C2CC91D7 == null) fn__0x8F0D5BA1C2CC91D7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8F0D5BA1C2CC91D7"); + if (fn__0x8F0D5BA1C2CC91D7 == null) fn__0x8F0D5BA1C2CC91D7 = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native__0x8F0D5BA1C2CC91D7"); var success = false; - fn__0x8F0D5BA1C2CC91D7(&success, _toggle); + fn__0x8F0D5BA1C2CC91D7(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103344,9 +103344,9 @@ public void _0xF8B49F5BA7F850E7(int _vehicle, int _p1) public void SetReduceDriftVehicleSuspension(int _vehicle, bool _enable) { unsafe { - if (fn__setReduceDriftVehicleSuspension == null) fn__setReduceDriftVehicleSuspension = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReduceDriftVehicleSuspension"); + if (fn__setReduceDriftVehicleSuspension == null) fn__setReduceDriftVehicleSuspension = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setReduceDriftVehicleSuspension"); var success = false; - fn__setReduceDriftVehicleSuspension(&success, _vehicle, _enable); + fn__setReduceDriftVehicleSuspension(&success, _vehicle, (byte) (_enable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103355,9 +103355,9 @@ public void SetReduceDriftVehicleSuspension(int _vehicle, bool _enable) public void SetDriftTyresEnabled(int _vehicle, bool _toggle) { unsafe { - if (fn__setDriftTyresEnabled == null) fn__setDriftTyresEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDriftTyresEnabled"); + if (fn__setDriftTyresEnabled == null) fn__setDriftTyresEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setDriftTyresEnabled"); var success = false; - fn__setDriftTyresEnabled(&success, _vehicle, _toggle); + fn__setDriftTyresEnabled(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103366,11 +103366,11 @@ public void SetDriftTyresEnabled(int _vehicle, bool _toggle) public bool GetDriftTyresEnabled(int _vehicle) { unsafe { - if (fn__getDriftTyresEnabled == null) fn__getDriftTyresEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDriftTyresEnabled"); + if (fn__getDriftTyresEnabled == null) fn__getDriftTyresEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getDriftTyresEnabled"); var success = false; var result = fn__getDriftTyresEnabled(&success, _vehicle); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103378,9 +103378,9 @@ public bool GetDriftTyresEnabled(int _vehicle) public void NetworkUseHighPrecisionVehicleBlending(int _vehicle, bool _toggle) { unsafe { - if (fn__networkUseHighPrecisionVehicleBlending == null) fn__networkUseHighPrecisionVehicleBlending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUseHighPrecisionVehicleBlending"); + if (fn__networkUseHighPrecisionVehicleBlending == null) fn__networkUseHighPrecisionVehicleBlending = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_networkUseHighPrecisionVehicleBlending"); var success = false; - fn__networkUseHighPrecisionVehicleBlending(&success, _vehicle, _toggle); + fn__networkUseHighPrecisionVehicleBlending(&success, _vehicle, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103388,63 +103388,63 @@ public void NetworkUseHighPrecisionVehicleBlending(int _vehicle, bool _toggle) public bool GetWaterHeight(float _x, float _y, float _z, ref float _height) { unsafe { - if (fn__getWaterHeight == null) fn__getWaterHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWaterHeight"); + if (fn__getWaterHeight == null) fn__getWaterHeight = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWaterHeight"); var success = false; var ref_height = _height; var result = fn__getWaterHeight(&success, _x, _y, _z, &ref_height); _height = ref_height; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetWaterHeightNoWaves(float _x, float _y, float _z, ref float _height) { unsafe { - if (fn__getWaterHeightNoWaves == null) fn__getWaterHeightNoWaves = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWaterHeightNoWaves"); + if (fn__getWaterHeightNoWaves == null) fn__getWaterHeightNoWaves = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWaterHeightNoWaves"); var success = false; var ref_height = _height; var result = fn__getWaterHeightNoWaves(&success, _x, _y, _z, &ref_height); _height = ref_height; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool TestProbeAgainstWater(float _x1, float _y1, float _z1, float _x2, float _y2, float _z2, ref Vector3 _result) { unsafe { - if (fn__testProbeAgainstWater == null) fn__testProbeAgainstWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testProbeAgainstWater"); + if (fn__testProbeAgainstWater == null) fn__testProbeAgainstWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testProbeAgainstWater"); var success = false; var ref_result = _result; var result = fn__testProbeAgainstWater(&success, _x1, _y1, _z1, _x2, _y2, _z2, &ref_result); _result = ref_result; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool TestProbeAgainstAllWater(int _p0, int _p1, int _p2, int _p3, int _p4, int _p5, int _p6, int _p7) { unsafe { - if (fn__testProbeAgainstAllWater == null) fn__testProbeAgainstAllWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testProbeAgainstAllWater"); + if (fn__testProbeAgainstAllWater == null) fn__testProbeAgainstAllWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testProbeAgainstAllWater"); var success = false; var result = fn__testProbeAgainstAllWater(&success, _p0, _p1, _p2, _p3, _p4, _p5, _p6, _p7); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool TestVerticalProbeAgainstAllWater(float _x, float _y, float _z, int _p3, ref float _height) { unsafe { - if (fn__testVerticalProbeAgainstAllWater == null) fn__testVerticalProbeAgainstAllWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testVerticalProbeAgainstAllWater"); + if (fn__testVerticalProbeAgainstAllWater == null) fn__testVerticalProbeAgainstAllWater = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_testVerticalProbeAgainstAllWater"); var success = false; var ref_height = _height; var result = fn__testVerticalProbeAgainstAllWater(&success, _x, _y, _z, _p3, &ref_height); _height = ref_height; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103523,9 +103523,9 @@ public void ResetDeepOceanScaler() public void EnableLaserSightRendering(bool _toggle) { unsafe { - if (fn__enableLaserSightRendering == null) fn__enableLaserSightRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableLaserSightRendering"); + if (fn__enableLaserSightRendering == null) fn__enableLaserSightRendering = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_enableLaserSightRendering"); var success = false; - fn__enableLaserSightRendering(&success, _toggle); + fn__enableLaserSightRendering(&success, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103600,9 +103600,9 @@ public uint GetWeaponComponentVariantExtraComponentModel(uint _componentHash, in public void SetCurrentPedWeapon(int _ped, uint _weaponHash, bool _bForceInHand) { unsafe { - if (fn__setCurrentPedWeapon == null) fn__setCurrentPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCurrentPedWeapon"); + if (fn__setCurrentPedWeapon == null) fn__setCurrentPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCurrentPedWeapon"); var success = false; - fn__setCurrentPedWeapon(&success, _ped, _weaponHash, _bForceInHand); + fn__setCurrentPedWeapon(&success, _ped, _weaponHash, (byte) (_bForceInHand ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103611,13 +103611,13 @@ public void SetCurrentPedWeapon(int _ped, uint _weaponHash, bool _bForceInHand) public bool GetCurrentPedWeapon(int _ped, ref uint _weaponHash, bool _p2) { unsafe { - if (fn__getCurrentPedWeapon == null) fn__getCurrentPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCurrentPedWeapon"); + if (fn__getCurrentPedWeapon == null) fn__getCurrentPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCurrentPedWeapon"); var success = false; var ref_weaponHash = _weaponHash; - var result = fn__getCurrentPedWeapon(&success, _ped, &ref_weaponHash, _p2); + var result = fn__getCurrentPedWeapon(&success, _ped, &ref_weaponHash, (byte) (_p2 ? 1 : 0)); _weaponHash = ref_weaponHash; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103637,9 +103637,9 @@ public int GetCurrentPedWeaponEntityIndex(int _ped, int _p1) public uint GetBestPedWeapon(int _ped, bool _p1) { unsafe { - if (fn__getBestPedWeapon == null) fn__getBestPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBestPedWeapon"); + if (fn__getBestPedWeapon == null) fn__getBestPedWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getBestPedWeapon"); var success = false; - var result = fn__getBestPedWeapon(&success, _ped, _p1); + var result = fn__getBestPedWeapon(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -103649,11 +103649,11 @@ public uint GetBestPedWeapon(int _ped, bool _p1) public bool SetCurrentPedVehicleWeapon(int _ped, uint _weaponHash) { unsafe { - if (fn__setCurrentPedVehicleWeapon == null) fn__setCurrentPedVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCurrentPedVehicleWeapon"); + if (fn__setCurrentPedVehicleWeapon == null) fn__setCurrentPedVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCurrentPedVehicleWeapon"); var success = false; var result = fn__setCurrentPedVehicleWeapon(&success, _ped, _weaponHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103661,13 +103661,13 @@ public bool SetCurrentPedVehicleWeapon(int _ped, uint _weaponHash) public bool GetCurrentPedVehicleWeapon(int _ped, ref uint _weaponHash) { unsafe { - if (fn__getCurrentPedVehicleWeapon == null) fn__getCurrentPedVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCurrentPedVehicleWeapon"); + if (fn__getCurrentPedVehicleWeapon == null) fn__getCurrentPedVehicleWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getCurrentPedVehicleWeapon"); var success = false; var ref_weaponHash = _weaponHash; var result = fn__getCurrentPedVehicleWeapon(&success, _ped, &ref_weaponHash); _weaponHash = ref_weaponHash; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103686,22 +103686,22 @@ public void _0x50276EF8172F5F12(int _ped) public bool IsPedArmed(int _ped, int _typeFlags) { unsafe { - if (fn__isPedArmed == null) fn__isPedArmed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedArmed"); + if (fn__isPedArmed == null) fn__isPedArmed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedArmed"); var success = false; var result = fn__isPedArmed(&success, _ped, _typeFlags); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool IsWeaponValid(uint _weaponHash) { unsafe { - if (fn__isWeaponValid == null) fn__isWeaponValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWeaponValid"); + if (fn__isWeaponValid == null) fn__isWeaponValid = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isWeaponValid"); var success = false; var result = fn__isWeaponValid(&success, _weaponHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103709,11 +103709,11 @@ public bool IsWeaponValid(uint _weaponHash) public bool HasPedGotWeapon(int _ped, uint _weaponHash, bool _p2) { unsafe { - if (fn__hasPedGotWeapon == null) fn__hasPedGotWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedGotWeapon"); + if (fn__hasPedGotWeapon == null) fn__hasPedGotWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedGotWeapon"); var success = false; - var result = fn__hasPedGotWeapon(&success, _ped, _weaponHash, _p2); + var result = fn__hasPedGotWeapon(&success, _ped, _weaponHash, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103721,11 +103721,11 @@ public bool HasPedGotWeapon(int _ped, uint _weaponHash, bool _p2) public bool IsPedWeaponReadyToShoot(int _ped) { unsafe { - if (fn__isPedWeaponReadyToShoot == null) fn__isPedWeaponReadyToShoot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWeaponReadyToShoot"); + if (fn__isPedWeaponReadyToShoot == null) fn__isPedWeaponReadyToShoot = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWeaponReadyToShoot"); var success = false; var result = fn__isPedWeaponReadyToShoot(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103768,9 +103768,9 @@ public void AddAmmoToPed(int _ped, uint _weaponHash, int _ammo) public void SetPedAmmo(int _ped, uint _weaponHash, int _ammo, bool _p3) { unsafe { - if (fn__setPedAmmo == null) fn__setPedAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAmmo"); + if (fn__setPedAmmo == null) fn__setPedAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedAmmo"); var success = false; - fn__setPedAmmo(&success, _ped, _weaponHash, _ammo, _p3); + fn__setPedAmmo(&success, _ped, _weaponHash, _ammo, (byte) (_p3 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103779,9 +103779,9 @@ public void SetPedAmmo(int _ped, uint _weaponHash, int _ammo, bool _p3) public void SetPedInfiniteAmmo(int _ped, bool _toggle, uint _weaponHash) { unsafe { - if (fn__setPedInfiniteAmmo == null) fn__setPedInfiniteAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedInfiniteAmmo"); + if (fn__setPedInfiniteAmmo == null) fn__setPedInfiniteAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedInfiniteAmmo"); var success = false; - fn__setPedInfiniteAmmo(&success, _ped, _toggle, _weaponHash); + fn__setPedInfiniteAmmo(&success, _ped, (byte) (_toggle ? 1 : 0), _weaponHash); if (!success) throw new Exception("Native execution failed"); } } @@ -103790,9 +103790,9 @@ public void SetPedInfiniteAmmo(int _ped, bool _toggle, uint _weaponHash) public void SetPedInfiniteAmmoClip(int _ped, bool _toggle) { unsafe { - if (fn__setPedInfiniteAmmoClip == null) fn__setPedInfiniteAmmoClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedInfiniteAmmoClip"); + if (fn__setPedInfiniteAmmoClip == null) fn__setPedInfiniteAmmoClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedInfiniteAmmoClip"); var success = false; - fn__setPedInfiniteAmmoClip(&success, _ped, _toggle); + fn__setPedInfiniteAmmoClip(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103811,9 +103811,9 @@ public void _0x24C024BA8379A70A(int _p0, int _p1) public void GiveWeaponToPed(int _ped, uint _weaponHash, int _ammoCount, bool _isHidden, bool _bForceInHand) { unsafe { - if (fn__giveWeaponToPed == null) fn__giveWeaponToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveWeaponToPed"); + if (fn__giveWeaponToPed == null) fn__giveWeaponToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveWeaponToPed"); var success = false; - fn__giveWeaponToPed(&success, _ped, _weaponHash, _ammoCount, _isHidden, _bForceInHand); + fn__giveWeaponToPed(&success, _ped, _weaponHash, _ammoCount, (byte) (_isHidden ? 1 : 0), (byte) (_bForceInHand ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103822,9 +103822,9 @@ public void GiveWeaponToPed(int _ped, uint _weaponHash, int _ammoCount, bool _is public void GiveDelayedWeaponToPed(int _ped, uint _weaponHash, int _ammoCount, bool _bForceInHand) { unsafe { - if (fn__giveDelayedWeaponToPed == null) fn__giveDelayedWeaponToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveDelayedWeaponToPed"); + if (fn__giveDelayedWeaponToPed == null) fn__giveDelayedWeaponToPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_giveDelayedWeaponToPed"); var success = false; - fn__giveDelayedWeaponToPed(&success, _ped, _weaponHash, _ammoCount, _bForceInHand); + fn__giveDelayedWeaponToPed(&success, _ped, _weaponHash, _ammoCount, (byte) (_bForceInHand ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103833,9 +103833,9 @@ public void GiveDelayedWeaponToPed(int _ped, uint _weaponHash, int _ammoCount, b public void RemoveAllPedWeapons(int _ped, bool _p1) { unsafe { - if (fn__removeAllPedWeapons == null) fn__removeAllPedWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllPedWeapons"); + if (fn__removeAllPedWeapons == null) fn__removeAllPedWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllPedWeapons"); var success = false; - fn__removeAllPedWeapons(&success, _ped, _p1); + fn__removeAllPedWeapons(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103855,9 +103855,9 @@ public void RemoveWeaponFromPed(int _ped, uint _weaponHash) public void HidePedWeaponForScriptedCutscene(int _ped, bool _toggle) { unsafe { - if (fn__hidePedWeaponForScriptedCutscene == null) fn__hidePedWeaponForScriptedCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePedWeaponForScriptedCutscene"); + if (fn__hidePedWeaponForScriptedCutscene == null) fn__hidePedWeaponForScriptedCutscene = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hidePedWeaponForScriptedCutscene"); var success = false; - fn__hidePedWeaponForScriptedCutscene(&success, _ped, _toggle); + fn__hidePedWeaponForScriptedCutscene(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103866,9 +103866,9 @@ public void HidePedWeaponForScriptedCutscene(int _ped, bool _toggle) public void SetPedCurrentWeaponVisible(int _ped, bool _visible, bool _deselectWeapon, bool _p3, bool _p4) { unsafe { - if (fn__setPedCurrentWeaponVisible == null) fn__setPedCurrentWeaponVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCurrentWeaponVisible"); + if (fn__setPedCurrentWeaponVisible == null) fn__setPedCurrentWeaponVisible = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedCurrentWeaponVisible"); var success = false; - fn__setPedCurrentWeaponVisible(&success, _ped, _visible, _deselectWeapon, _p3, _p4); + fn__setPedCurrentWeaponVisible(&success, _ped, (byte) (_visible ? 1 : 0), (byte) (_deselectWeapon ? 1 : 0), (byte) (_p3 ? 1 : 0), (byte) (_p4 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103877,9 +103877,9 @@ public void SetPedCurrentWeaponVisible(int _ped, bool _visible, bool _deselectWe public void SetPedDropsWeaponsWhenDead(int _ped, bool _toggle) { unsafe { - if (fn__setPedDropsWeaponsWhenDead == null) fn__setPedDropsWeaponsWhenDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDropsWeaponsWhenDead"); + if (fn__setPedDropsWeaponsWhenDead == null) fn__setPedDropsWeaponsWhenDead = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedDropsWeaponsWhenDead"); var success = false; - fn__setPedDropsWeaponsWhenDead(&success, _ped, _toggle); + fn__setPedDropsWeaponsWhenDead(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -103888,11 +103888,11 @@ public void SetPedDropsWeaponsWhenDead(int _ped, bool _toggle) public bool HasPedBeenDamagedByWeapon(int _ped, uint _weaponHash, int _weaponType) { unsafe { - if (fn__hasPedBeenDamagedByWeapon == null) fn__hasPedBeenDamagedByWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedBeenDamagedByWeapon"); + if (fn__hasPedBeenDamagedByWeapon == null) fn__hasPedBeenDamagedByWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedBeenDamagedByWeapon"); var success = false; var result = fn__hasPedBeenDamagedByWeapon(&success, _ped, _weaponHash, _weaponType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103911,11 +103911,11 @@ public void ClearPedLastWeaponDamage(int _ped) public bool HasEntityBeenDamagedByWeapon(int _entity, uint _weaponHash, int _weaponType) { unsafe { - if (fn__hasEntityBeenDamagedByWeapon == null) fn__hasEntityBeenDamagedByWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByWeapon"); + if (fn__hasEntityBeenDamagedByWeapon == null) fn__hasEntityBeenDamagedByWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasEntityBeenDamagedByWeapon"); var success = false; var result = fn__hasEntityBeenDamagedByWeapon(&success, _entity, _weaponHash, _weaponType); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103956,9 +103956,9 @@ public void SetPedDropsInventoryWeapon(int _ped, uint _weaponHash, float _xOffse public int GetMaxAmmoInClip(int _ped, uint _weaponHash, bool _p2) { unsafe { - if (fn__getMaxAmmoInClip == null) fn__getMaxAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmoInClip"); + if (fn__getMaxAmmoInClip == null) fn__getMaxAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmoInClip"); var success = false; - var result = fn__getMaxAmmoInClip(&success, _ped, _weaponHash, _p2); + var result = fn__getMaxAmmoInClip(&success, _ped, _weaponHash, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -103968,13 +103968,13 @@ public int GetMaxAmmoInClip(int _ped, uint _weaponHash, bool _p2) public bool GetAmmoInClip(int _ped, uint _weaponHash, ref int _ammo) { unsafe { - if (fn__getAmmoInClip == null) fn__getAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAmmoInClip"); + if (fn__getAmmoInClip == null) fn__getAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getAmmoInClip"); var success = false; var ref_ammo = _ammo; var result = fn__getAmmoInClip(&success, _ped, _weaponHash, &ref_ammo); _ammo = ref_ammo; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103982,11 +103982,11 @@ public bool GetAmmoInClip(int _ped, uint _weaponHash, ref int _ammo) public bool SetAmmoInClip(int _ped, uint _weaponHash, int _ammo) { unsafe { - if (fn__setAmmoInClip == null) fn__setAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmmoInClip"); + if (fn__setAmmoInClip == null) fn__setAmmoInClip = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setAmmoInClip"); var success = false; var result = fn__setAmmoInClip(&success, _ped, _weaponHash, _ammo); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -103994,13 +103994,13 @@ public bool SetAmmoInClip(int _ped, uint _weaponHash, int _ammo) public bool GetMaxAmmo(int _ped, uint _weaponHash, ref int _ammo) { unsafe { - if (fn__getMaxAmmo == null) fn__getMaxAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmo"); + if (fn__getMaxAmmo == null) fn__getMaxAmmo = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmo"); var success = false; var ref_ammo = _ammo; var result = fn__getMaxAmmo(&success, _ped, _weaponHash, &ref_ammo); _ammo = ref_ammo; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104008,13 +104008,13 @@ public bool GetMaxAmmo(int _ped, uint _weaponHash, ref int _ammo) public bool GetMaxAmmoByType(int _ped, uint _ammoTypeHash, ref int _ammo) { unsafe { - if (fn__getMaxAmmoByType == null) fn__getMaxAmmoByType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmoByType"); + if (fn__getMaxAmmoByType == null) fn__getMaxAmmoByType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getMaxAmmoByType"); var success = false; var ref_ammo = _ammo; var result = fn__getMaxAmmoByType(&success, _ped, _ammoTypeHash, &ref_ammo); _ammo = ref_ammo; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104101,13 +104101,13 @@ public uint GetPedAmmoTypeFromWeapon2(int _ped, uint _weaponHash) public bool GetPedLastWeaponImpactCoord(int _ped, ref Vector3 _coords) { unsafe { - if (fn__getPedLastWeaponImpactCoord == null) fn__getPedLastWeaponImpactCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedLastWeaponImpactCoord"); + if (fn__getPedLastWeaponImpactCoord == null) fn__getPedLastWeaponImpactCoord = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getPedLastWeaponImpactCoord"); var success = false; var ref_coords = _coords; var result = fn__getPedLastWeaponImpactCoord(&success, _ped, &ref_coords); _coords = ref_coords; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104115,9 +104115,9 @@ public bool GetPedLastWeaponImpactCoord(int _ped, ref Vector3 _coords) public void SetPedGadget(int _ped, uint _gadgetHash, bool _p2) { unsafe { - if (fn__setPedGadget == null) fn__setPedGadget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGadget"); + if (fn__setPedGadget == null) fn__setPedGadget = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPedGadget"); var success = false; - fn__setPedGadget(&success, _ped, _gadgetHash, _p2); + fn__setPedGadget(&success, _ped, _gadgetHash, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104126,11 +104126,11 @@ public void SetPedGadget(int _ped, uint _gadgetHash, bool _p2) public bool GetIsPedGadgetEquipped(int _ped, uint _gadgetHash) { unsafe { - if (fn__getIsPedGadgetEquipped == null) fn__getIsPedGadgetEquipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPedGadgetEquipped"); + if (fn__getIsPedGadgetEquipped == null) fn__getIsPedGadgetEquipped = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getIsPedGadgetEquipped"); var success = false; var result = fn__getIsPedGadgetEquipped(&success, _ped, _gadgetHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104150,9 +104150,9 @@ public uint GetSelectedPedWeapon(int _ped) public void ExplodeProjectiles(int _ped, uint _weaponHash, bool _p2) { unsafe { - if (fn__explodeProjectiles == null) fn__explodeProjectiles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeProjectiles"); + if (fn__explodeProjectiles == null) fn__explodeProjectiles = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_explodeProjectiles"); var success = false; - fn__explodeProjectiles(&success, _ped, _weaponHash, _p2); + fn__explodeProjectiles(&success, _ped, _weaponHash, (byte) (_p2 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104160,9 +104160,9 @@ public void ExplodeProjectiles(int _ped, uint _weaponHash, bool _p2) public void RemoveAllProjectilesOfType(uint _weaponHash, bool _explode) { unsafe { - if (fn__removeAllProjectilesOfType == null) fn__removeAllProjectilesOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllProjectilesOfType"); + if (fn__removeAllProjectilesOfType == null) fn__removeAllProjectilesOfType = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAllProjectilesOfType"); var success = false; - fn__removeAllProjectilesOfType(&success, _weaponHash, _explode); + fn__removeAllProjectilesOfType(&success, _weaponHash, (byte) (_explode ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104197,11 +104197,11 @@ public float GetMaxRangeOfCurrentPedWeapon(int _ped) public bool HasVehicleGotProjectileAttached(int _driver, int _vehicle, uint _weaponHash, int _p3) { unsafe { - if (fn__hasVehicleGotProjectileAttached == null) fn__hasVehicleGotProjectileAttached = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleGotProjectileAttached"); + if (fn__hasVehicleGotProjectileAttached == null) fn__hasVehicleGotProjectileAttached = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasVehicleGotProjectileAttached"); var success = false; var result = fn__hasVehicleGotProjectileAttached(&success, _driver, _vehicle, _weaponHash, _p3); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104231,11 +104231,11 @@ public void RemoveWeaponComponentFromPed(int _ped, uint _weaponHash, uint _compo public bool HasPedGotWeaponComponent(int _ped, uint _weaponHash, uint _componentHash) { unsafe { - if (fn__hasPedGotWeaponComponent == null) fn__hasPedGotWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedGotWeaponComponent"); + if (fn__hasPedGotWeaponComponent == null) fn__hasPedGotWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasPedGotWeaponComponent"); var success = false; var result = fn__hasPedGotWeaponComponent(&success, _ped, _weaponHash, _componentHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104243,11 +104243,11 @@ public bool HasPedGotWeaponComponent(int _ped, uint _weaponHash, uint _component public bool IsPedWeaponComponentActive(int _ped, uint _weaponHash, uint _componentHash) { unsafe { - if (fn__isPedWeaponComponentActive == null) fn__isPedWeaponComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWeaponComponentActive"); + if (fn__isPedWeaponComponentActive == null) fn__isPedWeaponComponentActive = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedWeaponComponentActive"); var success = false; var result = fn__isPedWeaponComponentActive(&success, _ped, _weaponHash, _componentHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104255,11 +104255,11 @@ public bool IsPedWeaponComponentActive(int _ped, uint _weaponHash, uint _compone public bool RefillAmmoInstantly(int _ped) { unsafe { - if (fn__refillAmmoInstantly == null) fn__refillAmmoInstantly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_refillAmmoInstantly"); + if (fn__refillAmmoInstantly == null) fn__refillAmmoInstantly = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_refillAmmoInstantly"); var success = false; var result = fn__refillAmmoInstantly(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104267,11 +104267,11 @@ public bool RefillAmmoInstantly(int _ped) public bool MakePedReload(int _ped) { unsafe { - if (fn__makePedReload == null) fn__makePedReload = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_makePedReload"); + if (fn__makePedReload == null) fn__makePedReload = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_makePedReload"); var success = false; var result = fn__makePedReload(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104288,11 +104288,11 @@ public void RequestWeaponAsset(uint _weaponHash, int _p1, int _p2) public bool HasWeaponAssetLoaded(uint _weaponHash) { unsafe { - if (fn__hasWeaponAssetLoaded == null) fn__hasWeaponAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasWeaponAssetLoaded"); + if (fn__hasWeaponAssetLoaded == null) fn__hasWeaponAssetLoaded = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasWeaponAssetLoaded"); var success = false; var result = fn__hasWeaponAssetLoaded(&success, _weaponHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104309,9 +104309,9 @@ public void RemoveWeaponAsset(uint _weaponHash) public int CreateWeaponObject(uint _weaponHash, int _ammoCount, float _x, float _y, float _z, bool _showWorldModel, float _scale, int _p7, int _p8, int _p9) { unsafe { - if (fn__createWeaponObject == null) fn__createWeaponObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createWeaponObject"); + if (fn__createWeaponObject == null) fn__createWeaponObject = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_createWeaponObject"); var success = false; - var result = fn__createWeaponObject(&success, _weaponHash, _ammoCount, _x, _y, _z, _showWorldModel, _scale, _p7, _p8, _p9); + var result = fn__createWeaponObject(&success, _weaponHash, _ammoCount, _x, _y, _z, (byte) (_showWorldModel ? 1 : 0), _scale, _p7, _p8, _p9); if (!success) throw new Exception("Native execution failed"); return result; } @@ -104340,11 +104340,11 @@ public void RemoveWeaponComponentFromWeaponObject(int _p0, int _p1) public bool HasWeaponGotWeaponComponent(int _weapon, uint _addonHash) { unsafe { - if (fn__hasWeaponGotWeaponComponent == null) fn__hasWeaponGotWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasWeaponGotWeaponComponent"); + if (fn__hasWeaponGotWeaponComponent == null) fn__hasWeaponGotWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_hasWeaponGotWeaponComponent"); var success = false; var result = fn__hasWeaponGotWeaponComponent(&success, _weapon, _addonHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104362,11 +104362,11 @@ public void GiveWeaponObjectToPed(int _weaponObject, int _ped) public bool DoesWeaponTakeWeaponComponent(uint _weaponHash, uint _componentHash) { unsafe { - if (fn__doesWeaponTakeWeaponComponent == null) fn__doesWeaponTakeWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesWeaponTakeWeaponComponent"); + if (fn__doesWeaponTakeWeaponComponent == null) fn__doesWeaponTakeWeaponComponent = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesWeaponTakeWeaponComponent"); var success = false; var result = fn__doesWeaponTakeWeaponComponent(&success, _weaponHash, _componentHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104374,9 +104374,9 @@ public bool DoesWeaponTakeWeaponComponent(uint _weaponHash, uint _componentHash) public int GetWeaponObjectFromPed(int _ped, bool _p1) { unsafe { - if (fn__getWeaponObjectFromPed == null) fn__getWeaponObjectFromPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponObjectFromPed"); + if (fn__getWeaponObjectFromPed == null) fn__getWeaponObjectFromPed = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponObjectFromPed"); var success = false; - var result = fn__getWeaponObjectFromPed(&success, _ped, _p1); + var result = fn__getWeaponObjectFromPed(&success, _ped, (byte) (_p1 ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); return result; } @@ -104517,26 +104517,26 @@ public void _0x977CA98939E82E4B(int _weaponObject, int _p1) public bool GetWeaponHudStats(uint _weaponHash, ref int _outData) { unsafe { - if (fn__getWeaponHudStats == null) fn__getWeaponHudStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponHudStats"); + if (fn__getWeaponHudStats == null) fn__getWeaponHudStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponHudStats"); var success = false; var ref_outData = _outData; var result = fn__getWeaponHudStats(&success, _weaponHash, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } public bool GetWeaponComponentHudStats(uint _componentHash, ref int _outData) { unsafe { - if (fn__getWeaponComponentHudStats == null) fn__getWeaponComponentHudStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponComponentHudStats"); + if (fn__getWeaponComponentHudStats == null) fn__getWeaponComponentHudStats = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_getWeaponComponentHudStats"); var success = false; var ref_outData = _outData; var result = fn__getWeaponComponentHudStats(&success, _componentHash, &ref_outData); _outData = ref_outData; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104641,11 +104641,11 @@ public void _0xE6D2CEDD370FF98E(int _p0, int _p1) public bool IsPedCurrentWeaponSilenced(int _ped) { unsafe { - if (fn__isPedCurrentWeaponSilenced == null) fn__isPedCurrentWeaponSilenced = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedCurrentWeaponSilenced"); + if (fn__isPedCurrentWeaponSilenced == null) fn__isPedCurrentWeaponSilenced = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isPedCurrentWeaponSilenced"); var success = false; var result = fn__isPedCurrentWeaponSilenced(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104653,11 +104653,11 @@ public bool IsPedCurrentWeaponSilenced(int _ped) public bool IsFlashLightOn(int _ped) { unsafe { - if (fn__isFlashLightOn == null) fn__isFlashLightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFlashLightOn"); + if (fn__isFlashLightOn == null) fn__isFlashLightOn = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isFlashLightOn"); var success = false; var result = fn__isFlashLightOn(&success, _ped); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104676,9 +104676,9 @@ public int SetFlashLightFadeDistance(float _distance) public void SetFlashLightEnabled(int _ped, bool _toggle) { unsafe { - if (fn__setFlashLightEnabled == null) fn__setFlashLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFlashLightEnabled"); + if (fn__setFlashLightEnabled == null) fn__setFlashLightEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setFlashLightEnabled"); var success = false; - fn__setFlashLightEnabled(&success, _ped, _toggle); + fn__setFlashLightEnabled(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104719,11 +104719,11 @@ public void _0xE4DCEC7FD5B739A5(int _ped) public bool CanUseWeaponOnParachute(uint _weaponHash) { unsafe { - if (fn__canUseWeaponOnParachute == null) fn__canUseWeaponOnParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canUseWeaponOnParachute"); + if (fn__canUseWeaponOnParachute == null) fn__canUseWeaponOnParachute = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_canUseWeaponOnParachute"); var success = false; var result = fn__canUseWeaponOnParachute(&success, _weaponHash); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104752,11 +104752,11 @@ public int CreateAirDefenseArea(float _p0, float _p1, float _p2, float _p3, floa public bool RemoveAirDefenseZone(int _zoneId) { unsafe { - if (fn__removeAirDefenseZone == null) fn__removeAirDefenseZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAirDefenseZone"); + if (fn__removeAirDefenseZone == null) fn__removeAirDefenseZone = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_removeAirDefenseZone"); var success = false; var result = fn__removeAirDefenseZone(&success, _zoneId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104774,9 +104774,9 @@ public void RemoveAllAirDefenseZones() public void SetPlayerAirDefenseZoneFlag(int _player, int _zoneId, bool _enable) { unsafe { - if (fn__setPlayerAirDefenseZoneFlag == null) fn__setPlayerAirDefenseZoneFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerAirDefenseZoneFlag"); + if (fn__setPlayerAirDefenseZoneFlag == null) fn__setPlayerAirDefenseZoneFlag = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setPlayerAirDefenseZoneFlag"); var success = false; - fn__setPlayerAirDefenseZoneFlag(&success, _player, _zoneId, _enable); + fn__setPlayerAirDefenseZoneFlag(&success, _player, _zoneId, (byte) (_enable ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104784,13 +104784,13 @@ public void SetPlayerAirDefenseZoneFlag(int _player, int _zoneId, bool _enable) public bool IsAnyAirDefenseZoneInsideSphere(float _x, float _y, float _z, float _radius, ref int _outZoneId) { unsafe { - if (fn__isAnyAirDefenseZoneInsideSphere == null) fn__isAnyAirDefenseZoneInsideSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyAirDefenseZoneInsideSphere"); + if (fn__isAnyAirDefenseZoneInsideSphere == null) fn__isAnyAirDefenseZoneInsideSphere = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_isAnyAirDefenseZoneInsideSphere"); var success = false; var ref_outZoneId = _outZoneId; var result = fn__isAnyAirDefenseZoneInsideSphere(&success, _x, _y, _z, _radius, &ref_outZoneId); _outZoneId = ref_outZoneId; if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104807,11 +104807,11 @@ public void FireAirDefenseWeapon(int _zoneId, float _x, float _y, float _z) public bool DoesAirDefenseZoneExist(int _zoneId) { unsafe { - if (fn__doesAirDefenseZoneExist == null) fn__doesAirDefenseZoneExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesAirDefenseZoneExist"); + if (fn__doesAirDefenseZoneExist == null) fn__doesAirDefenseZoneExist = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_doesAirDefenseZoneExist"); var success = false; var result = fn__doesAirDefenseZoneExist(&success, _zoneId); if (!success) throw new Exception("Native execution failed"); - return result; + return result == 0 ? false : true; } } @@ -104819,9 +104819,9 @@ public bool DoesAirDefenseZoneExist(int _zoneId) public void SetCanPedEquipWeapon(int _ped, uint _weaponHash, bool _toggle) { unsafe { - if (fn__setCanPedEquipWeapon == null) fn__setCanPedEquipWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanPedEquipWeapon"); + if (fn__setCanPedEquipWeapon == null) fn__setCanPedEquipWeapon = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanPedEquipWeapon"); var success = false; - fn__setCanPedEquipWeapon(&success, _ped, _weaponHash, _toggle); + fn__setCanPedEquipWeapon(&success, _ped, _weaponHash, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104830,9 +104830,9 @@ public void SetCanPedEquipWeapon(int _ped, uint _weaponHash, bool _toggle) public void SetCanPedEquipAllWeapons(int _ped, bool _toggle) { unsafe { - if (fn__setCanPedEquipAllWeapons == null) fn__setCanPedEquipAllWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanPedEquipAllWeapons"); + if (fn__setCanPedEquipAllWeapons == null) fn__setCanPedEquipAllWeapons = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setCanPedEquipAllWeapons"); var success = false; - fn__setCanPedEquipAllWeapons(&success, _ped, _toggle); + fn__setCanPedEquipAllWeapons(&success, _ped, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } @@ -104888,9 +104888,9 @@ public string GetNameOfZone(float _x, float _y, float _z) public void SetZoneEnabled(int _zoneId, bool _toggle) { unsafe { - if (fn__setZoneEnabled == null) fn__setZoneEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setZoneEnabled"); + if (fn__setZoneEnabled == null) fn__setZoneEnabled = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Native_setZoneEnabled"); var success = false; - fn__setZoneEnabled(&success, _zoneId, _toggle); + fn__setZoneEnabled(&success, _zoneId, (byte) (_toggle ? 1 : 0)); if (!success) throw new Exception("Native execution failed"); } } From dd159498022888aebcf8252cc3ba913f831b9939 Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Sun, 10 Jul 2022 11:15:53 +0200 Subject: [PATCH 4/6] Fixed event handling --- api/AltV.Net.Shared/Events/EventType.cs | 2 +- .../Events/HashSetEventHandler.cs | 19 ++----------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/api/AltV.Net.Shared/Events/EventType.cs b/api/AltV.Net.Shared/Events/EventType.cs index ab4539f81e..ff31517825 100644 --- a/api/AltV.Net.Shared/Events/EventType.cs +++ b/api/AltV.Net.Shared/Events/EventType.cs @@ -60,7 +60,7 @@ public enum EventType : byte CONSOLE_COMMAND_EVENT, PLAYER_CHANGE_ANIMATION_EVENT, - + PLAYER_CHANGE_INTERIOR_EVENT, // Client diff --git a/api/AltV.Net.Shared/Events/HashSetEventHandler.cs b/api/AltV.Net.Shared/Events/HashSetEventHandler.cs index a564bd8d4a..27f7701eb0 100644 --- a/api/AltV.Net.Shared/Events/HashSetEventHandler.cs +++ b/api/AltV.Net.Shared/Events/HashSetEventHandler.cs @@ -18,30 +18,15 @@ public HashSetEventHandler() public void Add(TEvent value) { if (value == null) return; - var first = events.Count == 0; + if (type != null) core.EventStateManager.AddHandler(type.Value); events.Add(value); - - if (first && type != null) - { - unsafe - { - core.Library.Shared.Core_ToggleEvent(core.NativePointer, (byte) type, 1); - } - } } public void Remove(TEvent value) { if (value == null) return; + if (type != null) core.EventStateManager.RemoveHandler(type.Value); events.Remove(value); - - if (events.Count == 0 && type != null) - { - unsafe - { - core.Library.Shared.Core_ToggleEvent(core.NativePointer, (byte) type, 0); - } - } } public HashSet GetEvents() => events; From 968fdb517e43167ff995082579621bdb9bfa433b Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Sun, 10 Jul 2022 11:22:11 +0200 Subject: [PATCH 5/6] Added event enum size validation for client and server --- api/AltV.Net.CApi/Libraries/SharedLibrary.cs | 3 +++ api/AltV.Net.Client/ModuleWrapper.cs | 9 +++++++++ api/AltV.Net/ModuleWrapper.cs | 10 ++++++++++ runtime | 2 +- 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs index bce0ff2a96..4268231e5e 100644 --- a/api/AltV.Net.CApi/Libraries/SharedLibrary.cs +++ b/api/AltV.Net.CApi/Libraries/SharedLibrary.cs @@ -124,6 +124,7 @@ public unsafe interface ISharedLibrary public delegate* unmanaged[Cdecl] Core_GetBranch { get; } public delegate* unmanaged[Cdecl] Core_GetCoreInstance { get; } public delegate* unmanaged[Cdecl] Core_GetEntityById { get; } + public delegate* unmanaged[Cdecl] Core_GetEventEnumSize { get; } public delegate* unmanaged[Cdecl] Core_GetMetaData { get; } public delegate* unmanaged[Cdecl] Core_GetPlayerCount { get; } public delegate* unmanaged[Cdecl] Core_GetPlayers { get; } @@ -358,6 +359,7 @@ public unsafe class SharedLibrary : ISharedLibrary public delegate* unmanaged[Cdecl] Core_GetBranch { get; } public delegate* unmanaged[Cdecl] Core_GetCoreInstance { get; } public delegate* unmanaged[Cdecl] Core_GetEntityById { get; } + public delegate* unmanaged[Cdecl] Core_GetEventEnumSize { get; } public delegate* unmanaged[Cdecl] Core_GetMetaData { get; } public delegate* unmanaged[Cdecl] Core_GetPlayerCount { get; } public delegate* unmanaged[Cdecl] Core_GetPlayers { get; } @@ -592,6 +594,7 @@ public SharedLibrary(string dllName) Core_GetBranch = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetBranch"); Core_GetCoreInstance = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetCoreInstance"); Core_GetEntityById = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetEntityById"); + Core_GetEventEnumSize = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetEventEnumSize"); Core_GetMetaData = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetMetaData"); Core_GetPlayerCount = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetPlayerCount"); Core_GetPlayers = (delegate* unmanaged[Cdecl]) NativeLibrary.GetExport(handle, "Core_GetPlayers"); diff --git a/api/AltV.Net.Client/ModuleWrapper.cs b/api/AltV.Net.Client/ModuleWrapper.cs index 3f1739a98b..d4cb9bb072 100644 --- a/api/AltV.Net.Client/ModuleWrapper.cs +++ b/api/AltV.Net.Client/ModuleWrapper.cs @@ -9,6 +9,7 @@ using AltV.Net.Client.WinApi; using AltV.Net.Elements.Entities; using AltV.Net.Shared; +using AltV.Net.Shared.Events; namespace AltV.Net.Client { @@ -28,6 +29,14 @@ public static void MainWithAssembly(Assembly resourceAssembly, IntPtr resourcePo var logger = new Logger(library, corePointer); Alt.Logger = logger; Alt.Log("Library initialized"); + + unsafe + { + if (library.Shared.Core_GetEventEnumSize() != (byte) EventType.SIZE) + { + throw new Exception("Event type enum size doesn't match. Please, update the nuget"); + } + } AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; diff --git a/api/AltV.Net/ModuleWrapper.cs b/api/AltV.Net/ModuleWrapper.cs index 8e87895efd..bdc9f9e273 100644 --- a/api/AltV.Net/ModuleWrapper.cs +++ b/api/AltV.Net/ModuleWrapper.cs @@ -10,6 +10,7 @@ using AltV.Net.Elements.Factories; using AltV.Net.ResourceLoaders; using AltV.Net.Shared; +using AltV.Net.Shared.Events; [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: InternalsVisibleTo("AltV.Net.Mock")] @@ -75,6 +76,15 @@ internal static class ModuleWrapper //TODO: do the same with the pools var library = _resource.GetLibrary() ?? new Library("csharp-module", false); + + unsafe + { + if (library.Shared.Core_GetEventEnumSize() != (byte) EventType.SIZE) + { + throw new Exception("Event type enum size doesn't match. Please, update the nuget"); + } + } + var playerFactory = _resource.GetPlayerFactory() ?? new PlayerFactory(); var vehicleFactory = _resource.GetVehicleFactory() ?? new VehicleFactory(); var blipFactory = _resource.GetBlipFactory() ?? new BlipFactory(); diff --git a/runtime b/runtime index 72bb59314a..afb6c6b527 160000 --- a/runtime +++ b/runtime @@ -1 +1 @@ -Subproject commit 72bb59314afb77082953f022db0cecfbaf2c7a5a +Subproject commit afb6c6b5276a28eaceb4ef6a6578fc818970f786 From 282d6a34f1d9d18b5896687e518f3254b40e7c16 Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Tue, 12 Jul 2022 18:39:30 +0200 Subject: [PATCH 6/6] Runtime update --- runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime b/runtime index afb6c6b527..0fdea48aed 160000 --- a/runtime +++ b/runtime @@ -1 +1 @@ -Subproject commit afb6c6b5276a28eaceb4ef6a6578fc818970f786 +Subproject commit 0fdea48aed692df7bbe80bbeefe992c310907735