[Release] LiveMap

That’s because the images haven’t been released yet. Waiting on a member to complete them (should be done soon).

ahh okay you just added the opition a head of time :slight_smile: i see… not sure why i’m getting this

Failed to run a tick for LiveMap: vtortola.WebSockets.WebSocketException: Write operation on WebSocket stream is failed: The I/O operation has been aborted because of either a thread exit or an application request.
 ---> System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request.

  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+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at vtortola.WebSockets.Rfc6455.WebSocketConnectionRfc6455+<SendFrameAsync>d__43.MoveNext () [0x001dc] in <4fa23baef5524ca6ae016d7d9fe505e5>:0
   --- End of inner exception stack trace ---
  at vtortola.WebSockets.Rfc6455.WebSocketConnectionRfc6455+<SendFrameAsync>d__43.MoveNext () [0x00383] 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.Rfc6455.WebSocketMessageWriteRfc6455Stream+<FlushAsync>d__12.MoveNext () [0x000d6] 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+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at System.IO.StreamWriter+<FlushAsyncInternal>d__67.MoveNext () [0x001c3] in <0123fd5b1a1040fe9d70a7e0d4b28acb>: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+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at vtortola.WebSockets.WebSocketStringExtensions+<WriteStringAsync>d__2.MoveNext () [0x0014d] 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+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
  at Havoc.Live_Map.SocketHandler+<SendWebsocketData>d__10.MoveNext () [0x004cf] in <f24e395ee07f432ebbebe727ba6c4c0f>:0```

I’ve had this problem as well and was forced to discontinue the script.

we had the same issue and discontinued using it but we started reusing it on last Thursday and not had an issue since. just my above comment but as far as timing the server out that seems to be gone

Capture

It states it cannot save the blips to a file? I am confused. Where would I save this? I read it states to set it as servers/blips.json but where is that located

1 Like

That’s a typo in readme. Change “Servers” to “Server” in your server.cfg to correct this. The file will then save to …/resources/live_map/server/blips.json

Thank you. It fixed the problem

dear @Havoc

can you maybe add a function to send a waypoint with gps to the players ingame? that would be very nice. otherwise i’ll look into that myself. hope to hear soon!

How much demand on the server will this cause?

I have tried this on a full server without issues. I have 30 slots. Works real well. I recommend this 100% for dispatchers, otherwise it’ll be easy to “cheat”.

Error getting blips! blip cache is empty

Map works great! Can’t wait until the postal’s are released.

Did you follow the following steps?

Check that and it should work.

Me neither dude, so excited for this release!

theres no Blips.json Tho why is that

Loaded live_map.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_983201371
Loaded deniszykov.WebSocketListener, Version=4.1.3.0, Culture=neutral, PublicKeyToken=7f78616efb4a208d into ScriptDomain_983201371
Loaded Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed into ScriptDomain_983201371
Instantiated instance of script Havoc.Live_Map.LiveMap.
Started resource live_map
Error running system event handling function for resource live_map: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/blips_server.lua:340: bad argument #1 to ‘pairs’ (table expected, got nil)
stack traceback:
[C]: in function ‘pairs’
server/blips_server.lua:340: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:163: in function citizen:/scripting/lua/scheduler.lua:162
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:162: in function citizen:/scripting/lua/scheduler.lua:131

What does your server.cfg look like?

is there a way to filter players with jobs?
so maybe only cops will show up on the map?

(useful for dispatching stuff)

1 Like

inside of the config file their is a enable postal code map has this been implemented yet?

Great Idea. I would love that