altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

DrawMarker native call crash after v15 update in release branch #2171

Open nyitrairicsi99 opened 8 months ago

nyitrairicsi99 commented 8 months ago

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

ThomasMarangoni commented 7 months ago

@Doxoh or @zziger can you test that?

axeok commented 5 months ago

I have same issue. Any updates for fix?