Hey, how to use Commands with MonoV2, im writing this its not working
using System;
using System.Collections.Generic;
using CitizenFX.Core;
using CitizenFX.FiveM;
using CitizenFX.FiveM.Native;
namespace Basics.Client
{
public class Commands : BaseScript
{
public Commands()
{
Natives.RegisterCommand("car", new Action<int, List<object>, string>(async (source, args, raw) =>
{
await Delay(1);
}), false);
}
}
}
This is the error: