What is the event “csdirt:2”? What is HandleDirt2? Is this the same as the event “PlayerConnecting”??
Is there anyone who can write server event examples for C# in the wiki?
It isn’t possible to use C# if there aren’t any examples/documentation how to add/trigger/register the different events…
It’s the name of his custom event I would assume, the latter is the identifier of the function that handles the event.
And yes it’s possible - it’s called trial & error. Gotta start somewhere when documentation is lacking. Stop being lazy and expect everything to be served on a silver platter.
Figure it out like the rest of us and while at it why don’t YOU fill the wiki with examples?
Lol, I have filled the wiki with some stuff like Vehicle Mods, Ped Components, Weapon Componets s.o.
I’ve learned the FiveM lua scripting basics with help of the wiki and now I can used it.
Ok now I have understood that the example was abstract, sorry about this. If there is a little more documentation from basic fivem functions this thread doesn’t exist.
If I found the right way in C# I promise there will be a edit in the wiki for the server events.