altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

DrawMarker native call crash after v15 update in release branch

Open nyitrairicsi99 opened this issue 1 year ago • 2 comments

Description of the problem

In C# client the drawMarker native call causes crash since v15. The following code worked before v15.

Reproduction steps

using AltV.Net.Client;

namespace alt_test_client
{
    internal class Main : Resource
    {
        public override void OnStart()
        { }

        public override void OnStop()
        { }

        public override void OnTick()
        {
            Alt.Natives.DrawMarker(
                (int)0,
                (float)0, (float)0, (float)300,
                (float)0, (float)0, (float)0,
                (float)0, (float)0, (float)0,
                (float)1, (float)1, (float)1,
                (int)255, (int)255, (int)255, (int)50,
                (bool)false, (bool)true, (int)2, (bool)false, null, null, (bool)false
            );
        }
    }
}

Expected behaviour

Draws a marker at 0 0 300 position.

Additional context

No response

Operating system

Windows 11

Version

15.0.10

Crashdump ID

No response

Confirmation of issue's presence

  • [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.

nyitrairicsi99 avatar Jan 07 '24 10:01 nyitrairicsi99

@Doxoh or @zziger can you test that?

ThomasMarangoni avatar Jan 16 '24 17:01 ThomasMarangoni

I have same issue. Any updates for fix?

axeok avatar Apr 02 '24 03:04 axeok