[Release] LiveMap

It’s being worked on by someone else.

1 Like

I am still relatively new to this. so do I add the live map interface into the resource i created for the first part or do i make another resource for that? also how do i know what the address is to look at live map for my server? Like i said i apologize that i am new to this and didnt quite understand the second part of instructions.

the live_map will go inside your resources. the live_map interface and the map images must go on a cpanel of some sort or hosted from xampp i recommand hostblast.net their pretty cheap i have the live map and the opencad hosted off the same dns

is this free cause i already have a website for our community…just looking for something to help dispatchers

1 Like

Yeah it’s free for use.

By the looks of it, you have a file but, it has nothing inside it. Best thing to do is to delete the file and try again.

Not at the minute. It sounds like a feature I could implement (not specifically jobs but, player filtering in general). My general idea for this resource is to not implement anything that is specific to one community but, will benefit everyone.

Nope. The guy who’s working on it is a little busy with exams and stuff (same here) so, there’s no ETA on it. There is an issue open on the interface’s Github page which will be closed when implemented. I will also probably post here with an update and the changelog will show it being implemented.

It will be your website (if you have one) that you put the interface on. The interface is the thing the users will access to see the map.

Yes. DO NOT PAY for this resource. It is completely free and will always be free.

2 Likes

I would love to be able to use this as a dispatcher of a roleplay community but I need help with the web sockets. Can anyone please help me?

The resource would handle the socket data from the interface (where you would implement the bulk of the dispatcher logic). So, you would have to go into the C# code and handle the server-side of the logic there. Specifically, the SocketHandler file line 55 downwards.

You’d then have to recompile the DLL and upload to the server.

As for sending data from the interface, you would have to call the websockets function send to send data to the server. More information can be found here

What could be the problem here?

You’re not using the latest server version. Update it and it will work.

Can you please state the updated versions please.
2.2.9?

No that (2.2.9) is the latest version of this resource.

What havoc is talking about is the FXServer version.

1 Like

Thanks! Its working now!! Is there a way for me to use this [Release] Modified Street Names w/ Postal Numbers?

Since the latest update i have been unable to run two live maps off the same IP just different ports. i have two servers on the same ip address and i was always able to run them off the same ip just different sockports but its not been working i been getting this error.

Exception during executing Post callback: System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted.

  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <7d13762c3f3046279fc4d30c52f6f595>:0
  at vtortola.WebSockets.Transports.Sockets.SocketListener..ctor (vtortola.WebSockets.Transports.Sockets.SocketTransport transport, System.Net.EndPoint[] endPointsToListen, System.Net.Sockets.ProtocolType protocolType, vtortola.WebSockets.WebSocketListenerOptions options) [0x000ba] in <4fa23baef5524ca6ae016d7d9fe505e5>:0
  at vtortola.WebSockets.Transports.Tcp.TcpListener..ctor (vtortola.WebSockets.Transports.Tcp.TcpTransport transport, System.Net.EndPoint[] endPointsToListen, vtortola.WebSockets.WebSocketListenerOptions options) [0x00000] in <4fa23baef5524ca6ae016d7d9fe505e5>:0
  at vtortola.WebSockets.Transports.Tcp.TcpTransport+<ListenAsync>d__39.MoveNext () [0x00157] in <4fa23baef5524ca6ae016d7d9fe505e5>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at vtortola.WebSockets.WebSocketListener+<StartAsync>d__22.MoveNext () [0x00363] in <4fa23baef5524ca6ae016d7d9fe505e5>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at Havoc.Live_Map.WebSocketServer+<Start>d__14.MoveNext () [0x0006e] in <f24e395ee07f432ebbebe727ba6c4c0f>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at CitizenFX.Core.CitizenSynchronizationContext+<>c__DisplayClass1_0.<Post>b__0 () [0x00000] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\CitizenTaskScheduler.cs:20
  at CitizenFX.Core.CitizenSynchronizationContext.Tick () [0x0003e] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\CitizenTaskScheduler.cs:38

Are you changing the socket port? It doesn’t look like you are :confused:

1 Like

i have been changing it see here’s my cfgs

OK, so it could be that you already have something listening on those ports which, is why the error is occurring…

The only thing I can suggest is you keep changing the socket port until you find one that isn’t already bound. Maybe start at 31120 and increment them?

yeah, i had it as 30122 and 30123 so I changed it to make sure cause it was the 30122 that was doing it before now its the 30124 doing it to me. what kinda numbers can I use like for instance does it have to be above 3000 or can i use something such as 13 as a port

Pretty sure you can use any number. They may need to be between 1024-65535 (quick range I’ve found here).

alright thanks ill give it a try