Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clrcore): add setter for ped's IsInStealthMode #3124

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions code/client/clrcore/External/Ped.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
using CitizenFX.Core.Native;
using System.Security;

#if MONO_V2
using CitizenFX.Core;
#if MONO_V2
using CitizenFX.Core;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you avoid the modification of these lines without any change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are automatic Git changes due to mixing CR+LF and LF linebreaks

using CitizenFX.FiveM.Native;
using CitizenFX.FiveM.NaturalMotion;
using CitizenFX.FiveM.NaturalMotion;
using API = CitizenFX.FiveM.Native.Natives;
using Function = CitizenFX.FiveM.Native.Natives;
using Function = CitizenFX.FiveM.Native.Natives;
namespace CitizenFX.FiveM
#else
using CitizenFX.Core.NaturalMotion;
using CitizenFX.Core.NaturalMotion;
namespace CitizenFX.Core
#endif
{
Expand Down Expand Up @@ -1039,6 +1039,10 @@ public bool IsInStealthMode
{
return API.GetPedStealthMovement(Handle);
}
set
{
API.SetPedStealthMovement(Handle, value, "DEFAULT_ACTION");
}
}
public bool IsAmbientSpeechplaying
{
Expand Down
Loading