TGRHavoc / live_map

A FiveM addon for live maps
https://docs.tgrhavoc.co.uk/livemap-resource/
62 stars 38 forks source link

Issue? Im not sure.. #44

Closed WolfoTheWolf closed 3 years ago

WolfoTheWolf commented 3 years ago

Hey there im new to fivem (making servers) and I dont think I did this right.. Screenshot (5) Screenshot (6)

TGRHavoc commented 3 years ago

Should be right? What's your question?

The "socketPort" should be the same in the config file as it is in your "server.cfg" file. And you need to make sure it's allowed through your firewall.

WolfoTheWolf commented 3 years ago

So tbh im not even 100% if im doing this right, first I went to added the "live_map" then went to my CFG and put "set socket_port 2dcrp set livemap_debug "warn" # "[all]" 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'off' set blip_file "server/blips.json" set livemap_access_control "*"

start live_map"


I then installed the live map interface (please keep in mind im currently trying to localhost) I edited the config.json as provided i the picture below. Started my server and put in my ip and my port, along with the socket port I created. I try to localhost to it localhost:66.221.101.164 (not sure if I done that right) And nothing comes up.

----------------IMAGES------------------- Screenshot (95) Screenshot (96) Screenshot (97)

TGRHavoc commented 3 years ago

So tbh im not even 100% if im doing this right, first I went to added the "live_map" then went to my CFG and put "set socket_port 2dcrp

The socket port should be a number. By default it's 30121 (one higher than the port FiveM uses). So, 2drcp wouldn't work.

I try to localhost to it localhost:66.221.101.164 (not sure if I done that right) And nothing comes up.

I'm not sure what you mean by this. If the interface and FiveM server are both running on the same machine you're trying to open the interface on, then you will be able to change the IP to 127.0.0.1 but, you will need to change it to your external IP if you want other's to be able to use the interface themselves.

WolfoTheWolf commented 3 years ago

I guess the simple way to put what I'm asking is how to I connect to the interface. (I went back threw and fixed the 2dcrp and replaced it with 30121, and I'm trying to connect on the same machine. Sorry if I'm really stupid at this I'm not very familiar with ports, etcetera.

TGRHavoc commented 3 years ago

I guess the simple way to put what I'm asking is how to I connect to the interface. (I went back threw and fixed the 2dcrp and replaced it with 30121, and I'm trying to connect on the same machine. Sorry if I'm really stupid at this I'm not very familiar with ports, etcetera.

You place the interface in a folder that your webserver can serve. By default I think Apache looks in c:/Apache/Apache/htdocs so, you could place it in there or, in it's own folder. Then, you modify the config.json file... It seems you've already done this so, you should be good to just go to the website and see what happens from there.

WolfoTheWolf commented 3 years ago

I just want to say this, thank you so much for helping me out and walking threw it with me. It really does mean alot and make sure you keep up the amazing work!

WolfoTheWolf commented 3 years ago

oh and it worked.