For those still interested, a new update has been released for the interface (if you’ve kept up-to-date you should have the latest resource).
The main difference is the UI, it’s now dark and (I think) much nicer.
The config now has space to allow for multiple servers on the same interface. All you have to do is modify the “$servers” array in “config.php” to include your servers, if you want them.
Example configuration
public static $servers = array(
"Test server" => array( // The name of the server (make unique)
"ip" => "127.0.0.1", // The IP (if on something different to the one in the config)
"fivemPort" => "30120", // The fivem port
"socketPort" => "30121", // Set to the port that you set in the "socket_port" convar (if different to the one in the config)
"liveMapName" => "live_map" // Set to the resource's name (if different to the one in the config)
),
"Server 2" => array(
"ip" => "192.168.0.10" // This server is only on another IP.. No need to set the other values
)
);
Full changelog:
Changelog v2.2.6 -> v2.2.8
v2.2.8 (04-03-2018)
New
-
Add dynamic blip controls. [Jordan Dalton]
Blip controls are now created and popped into the right div when the webapp is navigated to.
Still need to implement the actual behaviour.
-
Add version to title. [Jordan Dalton]
The webapp now displays the current version next to it’s name. E.g. “Live Map v2.2.7”
-
Add temporary favicon. [Jordan Dalton]
Added a temp favicon for the webpage.
-
Add dynamic blip CSS. [Jordan Dalton]
Blip images for use in HTML is dynamically created in the generateBlipShit function in “markers.js”. Since there’s a load of blips, I felt dynamically creating them would be better than sitting down for two hours and manually putting them in. It doesn’t take into account the other marker types (yet).
Changes
-
Update to latest development. [Jordan Dalton]
I can’t remember what I changed but, something has so…
-
Update dropdown CSS. [Jordan Dalton]
Dropdowns now comply with the dark theme
-
Update sidebar to be more mobile friendly. [Jordan Dalton]
Before the sidebar wasn’t very nice on smaller devices such as mobiles. This change should fix this. This also means that the map takes up the full webpage and users need to click the “Hide/Show Controls” button before they can see the controls.
-
Update alerts. [Jordan Dalton]
Alerts can now be scrolled though
Fix
-
Fixed map background. [Jordan Dalton]
Background for the map now changed with the map instead of staying the same colour.
-
Fixed alert holder width. [Jordan Dalton]
The new alert holder would cut off alerts on smaller screens. Should be fixed now.
Other
-
Removed servers.php. [Jordan Dalton]
The server array is now in the config.
v2.2.7 (13-12-2017)
New
-
Add server selection. [Jordan Dalton]
Users can now select a server to view, if you have multiple servers to show.
I will update the readme to reflect these changes but, the easiest way to get this working is to add a empty array to the servers file with a name of your choice.
Changes
-
Update changelog. [Jordan Dalton]
-
Update to v2.2.7. [Jordan Dalton]
-
Update readme. [Jordan Dalton]
-
Update navbar. [Jordan Dalton]
Navbar now has stuff in it… Well, it will do when I add them.
-
Update style. [Jordan Dalton]
Bootstrap 4 was released so, I thought I’d give it a try. With this, I’ve had to update the style of the interface.
The interface is now fully dark. This means the navigation elements (mainly the sidebar and navbar) is now dark.
Labels have changed… Well, bootstrap have renamed them to “badges” so, I’ve been forced to call them the same.
I’ve re-done the sidebar so, it no longer uses lists. It’s just plain 'ol links.
Alerts are now just a solid color instead of a gradient… Ew, who likes gradients anyways?
Fix
-
Fixed socket label not using bootstrap 4. [Jordan Dalton]
Socket label was updated to “badge” as per the new bootstrap system.
Note: The blip controls don’t do anything at the minute. It will in the next update.