Hey, i know this is the worng topic but because of my accout rights i cant create it in the right place.
I am currently looking into RedM Coding with .Net and i try to build myself a small script to test some things. I created my script with the help over the cfx creater site, and created it over the dotnet new cfx-reource thing. After that i changed in the fxmanifest the game and added the warning.
Now i try to make a little marker with the Native and i run in the following problem:
log .txt (4.0 KB)
This is my code:
using System;
using System.Threading.Tasks;
using CitizenFX.Core;
using CitizenFX.Core.Native;
using static CitizenFX.Core.Native.API;
namespace test_code.Client
{
public class ClientMain : BaseScript
{
public ClientMain()
{
Debug.WriteLine("test01");
Function.Call(Hash.DRAW_MARKER, -1795314153, 0.0F, 0.0F, 0.0F, 0, 0, 0, 0, 0, 0, 1.0, 1.0, 0.9, 255, 255, 0, 155, 0, 0, 2, 0, 0, 0);
Debug.WriteLine("test02");
}
}
}
Thanks for your help