[C#] Client side not working

I honestly don’t know what is happening and why it is not working… I really need some help because it seems like it is not starting at all and I am doing everything right. I even made the script as simple as possible and it doesn’t work. HELP!

The problem is that the client side doesn’t display a message in chat when it starts up, only the server side does.

Client

using CitizenFX.Core;

public class DSClient : BaseScript
{
    public DSClient()
    {
        TriggerEvent("chatMessage", "a_script", new[] { 0, 0, 0 }, "a_script client side started");
    }
}

_resource.lua

client_script 'a_script.client.net.dll'

EDIT 8/23/17:
I’ve been trying for 3 days now ever since I made this post to fix my issue but nothing has works, I have edited the __resource.lua and edited the script itself, added a newer version of the client side CitizenFX.Core yet nothing has made it work. I honestly have no idea what is going on in this and I would like some help soon.

EDIT 8/25/17:
This has been unanswered for 5 days now and no one has the answer to this? Not even the citizenfx-collective? I really need help, because the faster I get help, the faster you guys get a new release!

I don’t think you can trigger a event in the constructor, instead you have to do it onFirstTick (listen of the onTick event)

1 Like

On server side C# I think you can trigger an event in the constructor so I think that it would work client side too, but Ill try your way first.

EDIT: I tried your way and it didn’t seem to make a difference. It still didn’t work when it was using the Tick event.

I’m having the same problem.

1 Like