Skip to content

Commit

Permalink
docs: add license
Browse files Browse the repository at this point in the history
Added a license to the project
  • Loading branch information
TGRHavoc committed May 17, 2019
1 parent 8dca6b3 commit d6ea6ba
Show file tree
Hide file tree
Showing 9 changed files with 758 additions and 11 deletions.
19 changes: 19 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
--[[
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
]]


--[[
This file is an example. You can create your own resource that does something
similar but, updates diifferent values (if you want).
Expand Down
7 changes: 7 additions & 0 deletions client/reverse_weapon_hashes.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
--[[
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
]]
local WEAPON_HASHES = {
["2578778090"] = "Knife",
["1737195953"] = "Nightstick",
Expand Down
619 changes: 619 additions & 0 deletions license

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions server/server.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
--[[
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
]]

--[[
Blips!!!
This file should expose the "blips.json" file to that sexy new http handler
]]

local cache = {}

function cacheIsEmpty()
for _, _ in pairs(cache) do
return true
end
return false
end

local sendBlips(res)

end

SetHttpHandler(function(req, res)
local path = req.path

end)
18 changes: 18 additions & 0 deletions server/wrapper.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
--[[
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
]]

--[[
Simple file that wraps all the internal events so that they can just be called
by the client without any extra steps needed by the end-developer :)
Expand Down
24 changes: 21 additions & 3 deletions src/Live Map/LiveMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@

using CitizenFX.Core;
using CitizenFX.Core.Native;
using System.Linq;

/*
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
*/

namespace Havoc.Live_Map
{
Expand Down Expand Up @@ -82,7 +102,7 @@ public void OnStop(string name)
server.Stop();
server.Dispose();
}

}
}

Expand All @@ -103,7 +123,5 @@ private void InternalRemovePlayer(string id)
{
handler.RemovePlayer(id);
}


}
}
12 changes: 6 additions & 6 deletions src/Live Map/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Live Map")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Live Map")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © Jordan Dalton 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

Expand All @@ -25,11 +25,11 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
Expand Down
21 changes: 20 additions & 1 deletion src/Live Map/SocketHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@

using vtortola.WebSockets;

/*
LiveMap - A LiveMap for FiveM servers
Copyright (C) 2017 Jordan Dalton
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program in the file "LICENSE". If not, see <http://www.gnu.org/licenses/>.
*/


namespace Havoc.Live_Map
{
class SocketHandler
Expand Down Expand Up @@ -91,7 +110,7 @@ public void AddPlayerData(string identifier, string key, object data)
lock (playerData)
{
JObject playerObj = (JObject)playerData[identifier];

if(playerObj[key] == null)
playerObj.Add(key, JToken.FromObject(data));
}
Expand Down
9 changes: 8 additions & 1 deletion src/Live Map/WebSocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
using vtortola.WebSockets;
using vtortola.WebSockets.Rfc6455;

/*
Copyright (c) 2017 Kevin Poirot
Original file can be found at: https://github.com/Hellslicer/WebSocketServer/blob/master/WebSocketEventListener.cs
Modified (slighly) by Jordan Dalton
*/

namespace Havoc.Live_Map
{

Expand Down Expand Up @@ -40,7 +47,7 @@ public WebSocketServer(int port)

public void Start()
{
listener.StartAsync().Wait();
listener.StartAsync().Wait();
}

public void Stop()
Expand Down

0 comments on commit d6ea6ba

Please sign in to comment.