[Release] LiveMap

You have to download the map folder from above and put it in the images in a folder called map

Is there any way to get a postal code map of my own on this?

also, is there a way to put this into HTML so I can display it on my webpage?

I’d have to look im not sure if you could inspect the element and place it in, we just have a button they click on and it takes them to it

ok, if you could look into that for me.

hey man I tried to do the inspect element form for the map it didn’t work, the best thing to do is make a button on the site that hyperlinks to the address. Sorry if this isn’t the answer you were looking for I tried

@Michsel_S
if you put this on a different part of your site as its own page then use HTML iframe tags to embed the page into your website. that’s how I embed things like my cad into my RP site.
My Page HTML Looks Like This For The Embed

< iframe height = “800” width = “500” id=“opencad” src=“https://cad.rp.jjl-computers.co.uk/”>
(remove the space before the first iframe had to remove it for it to show the code)

Embedded Example Click Here
Original Page Click Here

I get this when I install the “live_map” I simply put it in my scripts folder, then add “start live_map” to the server.cfg and start the server then I get this…

Error

Loaded live_map.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_261518816
Loaded deniszykov.WebSocketListener, Version=4.1.3.0, Culture=neutral, PublicKeyToken=7f78616efb4a208d into ScriptDomain_261518816
Loaded Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed into ScriptDomain_261518816
Instantiated instance of script Havoc.Live_Map.LiveMap.
Started resource live_map
Unhandled exception: 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_1 (System.Object state) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
GlobalError: Unhandled exception in Mono script environment: 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.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at vtortola.WebSockets.WebSocketListener+&lt;StartAsync&gt;d__22.MoveNext () [0x00363] in &lt;4fa23baef5524ca6ae016d7d9fe505e5&gt;:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at Havoc.Live_Map.WebSocketServer+&lt;Start&gt;d__14.MoveNext () [0x0006e] in &lt;f24e395ee07f432ebbebe727ba6c4c0f&gt;:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+&lt;&gt;c.&lt;ThrowAsync&gt;b__6_1 (System.Object state) [0x00000] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in &lt;7d13762c3f3046279fc4d30c52f6f595&gt;: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 &lt;4fa23baef5524ca6ae016d7d9fe505e5&gt;:0 at vtortola.WebSockets.Transports.Tcp.TcpListener..ctor (vtortola.WebSockets.Transports.Tcp.TcpTransport transport, System.Net.EndPoint[] endPointsToListen, vtortola.WebSockets.WebSocketListenerOptions options) [0x00000] in &lt;4fa23baef5524ca6ae016d7d9fe505e5&gt;:0 at vtortola.WebSockets.Transports.Tcp.TcpTransport+&lt;ListenAsync&gt;d__39.MoveNext () [0x00157] in &lt;4fa23baef5524ca6ae016d7d9fe505e5&gt;:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in &lt;0123fd5b1a1040fe9d70a7e0d4b28acb&gt;:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+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_1 (System.Object state) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0

Things to check
Are you running the latest artifact for the server?
Is the socket port you are using occupied by something else?
Is your webserver configured properly?
Is the resource configured properly?

so it works on the virtual machine. But when I go to the ip in the browser none of the blips of players are online. Im using Xampp btw

on the vm it says online, on my pc disconnected

Do you have the socket port forwarded for the vm?

i did not set a socket port in the config. if that is what you are asking.

It should be default of 30121, you can change it if you need to, but you have to go into your routers admin panel to allow the socket to be seen. Just like you have to do with a server to make it visible to other players

im using a vps, it was auto ported.

Then I’d change the port

@Havoc Works great and I’m doing lots with

TriggerServerEvent("livemap:AddPlayerData", "Name", "Havoc") 

event but just wondering if it is possible to force change a blip? for example: player presses a panic button so their blip goes red or even to a different blip completely?

Edit:

Worked it out by editing var MarkerTypes in the marker.js file and sending

TriggerServerEvent("livemap:AddPlayerData", "icon",  13) 
1 Like

So I Have To Have A Website?

No you have a webserver you can run it to a website but have to have the web server tosend it there

How Do I Get A Web Server And Who From ??? Because IDK Im New