[Release] LiveMap


#359

Use the host’s external IP. Not the internal one.

Sounds like you messed something up in the config or, the webserver.

Sounds like you’re using an internal IP like Sasquatch


#360

We want to put it on our website through weebly but if you have to have a server for it to run on that’s my issue not sure what the best way to do it is.


#361

I have tried all kinds of different IPs and same thing


#362

Can you give a demo of what its like? Maby add like a video of it working to this form.


#363

#364

@Havoc Nice resource, although the map pictures aren’t working for some reason. Does someone know how to fix this?


#365

How can I do that the map updates like every 10 minutes?


#366

Anyway to make it so it tracks people in emergency service uniforms only?


#367

I do not get how people like you do this, amazing work while still super clean code. Keep up the good work. -Eden


#368

Is there a way to create custom markers on the livemap at the location of the mouse? or get the coordinates of the mouse? I know it is possible to do this in-game, but it would also be nice to be able to do this in a web-browser


#369

What Do you mean by extract the map interface and images into my webserver?


#370

He means that you need to upload all the files on your webserver where you want to host your website for the live map.


#371

I am getting an error with google maps… Can someone please helplivemap


#372

You don’t have a Google API Key added. The author of the mod did have a fix but looks like Google have worked out a way around it.

You can get an API key through Google for free for the first year.

On Github it looks like Havoc is looking at open source mapping solutions (seeing as we’re not actually using the mapping images we only need the mapping engine)

If you do get an API key, add it in the index page after the Google Maps URL.


#373

I’m getting this. What in the world am I doing wrong??


#374

how do i get the url to the map and is ther a video install


#375

is Anyone willing to give me a demo account to see this LiveMap work. ( demo does not work on this ) If so, please message me.


#376

I’m sorry, but can someone help me set this up I still cannot find our how to set this up.


#377

Add me on discord if you still need some help: TacticalTigers | Reaver#3014


#378

Can I have a working example for adding a blip please?

This appears not to be working, says the pos wasn’t provided in server console.

    local blip = { x=playerPos.x, y=playerPos.y, z=playerPos.z } -- Set the position of the blip

    blip["sprite"] = 420 -- CaptureFlag sprite
    blip["name"] = GetPlayerName(PlayerId()) .. " Panic" -- Set the name of the blip to "<PlayerName> Panic"
    blip["description"] = GetPlayerName(PlayerId()) .. " is panicing, do something about it.. Or don't.." -- Set the description
    
    TriggerServerEvent("livemap:AddBlip", blip) -- Add the blip to the UI