C# resource leaves my game not responding

So, I started out learning C# a couple of weeks back, and I taught I can make a Fivem resource. Turns out I can’t :man_shrugging:
So my Client side code is (and the only code):

using System;
using System.Collections.Generic;
using CitizenFX.Core;
using static CitizenFX.Core.Native.API;

namespace Client {
    public class Client : BaseScript {
        public Client() {
            Debug.WriteLine("cs");
            Model startpedmodel = new Model("ig_lamardavis");
            Vector3 pedpos = new Vector3(-41.54f, 6435.91f, 31.49f);
            Ped starter = World.CreatePed(startpedmodel, pedpos, 2.04f).Result;
            SetEntityAsMissionEntity(starter.Handle, true, true);
        }
    }
}

It is supposed to spawn a ped at the specified coordinates and make it a mission entity.
Whenever I start the resource Fivem just stops responding. It doesn’t even crash.

So if someone who knows C# better can point the mistakes and bad practices I made in this code, I would be very greatful! :sweat_smile: