-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b625fb
commit bf02d33
Showing
10 changed files
with
7,550 additions
and
3,848 deletions.
There are no files selected for viewing
463 changes: 233 additions & 230 deletions
463
server-data/resources/[esx_addons]/esx_property/client/cctv.lua
Large diffs are not rendered by default.
Oops, something went wrong.
695 changes: 348 additions & 347 deletions
695
server-data/resources/[esx_addons]/esx_property/client/furniture.lua
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 20 additions & 18 deletions
38
server-data/resources/[esx_addons]/esx_property/client/html/copy.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
<!-- Cred: https://github.com/TerbSEC/FiveM-CoordsSaver/tree/master/html --> | ||
<html> | ||
<script> | ||
function ready(fn) { | ||
<script> | ||
function ready(fn) { | ||
if (document.readyState !== "loading") { | ||
fn(); | ||
fn(); | ||
} else { | ||
document.addEventListener("DOMContentLoaded", fn); | ||
}} | ||
document.addEventListener("DOMContentLoaded", fn); | ||
} | ||
} | ||
|
||
ready(function () { | ||
window.addEventListener("message", function (event) { | ||
let node = document.createElement("textarea"); | ||
let selection = document.getSelection(); | ||
ready(function () { | ||
window.addEventListener("message", function (event) { | ||
let node = document.createElement("textarea"); | ||
let selection = document.getSelection(); | ||
|
||
node.textContent = event.data.link; | ||
document.body.appendChild(node); | ||
node.textContent = event.data.link; | ||
document.body.appendChild(node); | ||
|
||
selection.removeAllRanges(); | ||
node.select(); | ||
document.execCommand("copy"); | ||
selection.removeAllRanges(); | ||
node.select(); | ||
document.execCommand("copy"); | ||
|
||
selection.removeAllRanges(); | ||
document.body.removeChild(node); | ||
}); | ||
selection.removeAllRanges(); | ||
document.body.removeChild(node); | ||
}); | ||
</script> | ||
}); | ||
</script> | ||
|
||
</html> |
Oops, something went wrong.