Have there been any issues with this release or features youād like to see?
As is, this release works fine. However, there are some security issues that I may want to address. These security issues mainly stem from the possibility of cheaters/exploiters executing events that may result in unwanted actions. If thereās enough animo for it, I will be happy to implement some server side logic to keep track of a userās actions.
Hello, we seem to have an issue with this resource which people can move the map icons and drag them somewhere else and then deliver mail continuously. Here is an example of whatās happening. Any help would be great.
I was aware of the annoyance that @putyerhandzup was having, but thought that it wouldnāt impact the actual delivery. Therefore, I have changed the default blip to a flag.
New Features
Added 6 new ConVars to change all blip sprites and colors (see Configuration -> ConVars)
Thanks for the quicky reply and fix, greatly appreciated!
As a side note, is it possible to add more delivery locations by adding them to the source code? like if we wanted to add 20 new stops to Sandy Shores, for example?
Yes ofcourse! Go ahead. If you want to share those locations just make a pull request to the repository and Iāll merge them for everyone to enjoy. Just make sure they are low enough to reach and the arrow marker that gets drawn looks good
Sorry, it is my code fatal issue to cause this problem, thereās nothing wrong with System.Drawing.Color or so. Everything works fine.
Only the glitch is that if sets reference path to clientc\itizen\clr2\lib\mono\4.5, source code wonāt compile because System.Drawing.dll is just an empty dll file.
It is empty but System.Drawing works in runtime, itās that because thereās a namespace named System.Drawing in CitizenFX.Core.dll, and thus covers necessary class used in fivem.
Conclusion: Iād considered itās a bug/issue in fivem client.
If set reference path as Microsoft default, it compiles without error, and works in runtime. Reason describes above.
If set reference path to fivem client library, it wonāt compile. Because thereās no such a System.Drawing.Color in lib folder.
AFAIK, thereās no way to directly use namespace CitizenFx.Core.System.Drawing,
In my opinion, we should use fivem client library as standard reference. And thereās a glitch inside CitizenFX.Core.dll/System.Drawing.dll
BTW, Iām trying to describe as clearly as possibile but Iām new to C#. Sorry if said above are hard to understand
If this do is an issue in fivem, Iāll report this issue in more proper place.
Original Post:
It seems System.Drawing.Color not working properly in recent fivem release.
Exception thrown at line with World.DrawMarker (which use Color inline):
System.NullReferenceException: Object reference not set to an instance of an object.
Sorry itās my fault, I make null reference when learning/editing your source code .
What you write are totally fine.
In addition, it may be a glitch in fivem client I found during research. Iāve edit my original post to describe that.
Feel free to help me to resolve this issue, thank
Yes I thought of that when I was testing the latest update.
Iāll add another event for that. The ESX addon will also be updated then either separately or I might build it right into the resource so people donāt have to run two resources.