-
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.
chore: bpt_hud fxmanifest updated to version 1.0.1 + Run formatter
- Loading branch information
1 parent
aa41c52
commit d355a79
Showing
9 changed files
with
452 additions
and
428 deletions.
There are no files selected for viewing
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
380 changes: 206 additions & 174 deletions
380
server-data/resources/[bpt_addons]/bpt_hud/client/carhud.lua
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,4 +1,4 @@ | ||
Config = {} | ||
|
||
Config.Hidemapoutsidecar = true -- set to true if you want to hide the minimap when not in a vehicle | ||
Config.Hidemapwhenengineoff = true -- set to true if you want to hide the map when a vehicles engine is off | ||
Config.Hidemapwhenengineoff = true -- set to true if you want to hide the map when a vehicles engine is off |
34 changes: 17 additions & 17 deletions
34
server-data/resources/[bpt_addons]/bpt_hud/fxmanifest.lua
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,22 +1,22 @@ | ||
fx_version 'adamant' | ||
fx_version("adamant") | ||
|
||
game 'gta5' | ||
author 'bitpredator' | ||
description 'bitpredator HUD' | ||
version '1.0.0' | ||
game("gta5") | ||
author("bitpredator") | ||
description("bitpredator HUD") | ||
version("1.0.1") | ||
|
||
ui_page 'html/ui.html' | ||
ui_page("html/ui.html") | ||
|
||
shared_script '@es_extended/imports.lua' | ||
shared_script("@es_extended/imports.lua") | ||
|
||
files { | ||
'html/*.css', | ||
'html/*.js', | ||
'html/*.png', | ||
'html/ui.html', | ||
} | ||
files({ | ||
"html/*.css", | ||
"html/*.js", | ||
"html/*.png", | ||
"html/ui.html", | ||
}) | ||
|
||
client_scripts { | ||
'client/*.lua', | ||
'config.lua' | ||
} | ||
client_scripts({ | ||
"client/*.lua", | ||
"config.lua", | ||
}) |
27 changes: 14 additions & 13 deletions
27
server-data/resources/[bpt_addons]/bpt_hud/html-map/script.js
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,17 +1,18 @@ | ||
$(document).ready(function () { | ||
window.addEventListener("message", function (event) { | ||
let data = event.data; | ||
window.addEventListener("message", function (event) { | ||
let data = event.data; | ||
|
||
if (data.mapoutline == true) { | ||
$(".outline").show(); | ||
} else if (data.mapoutline == false) { | ||
$(".outline").hide(); | ||
} | ||
if (data.mapoutline == true) { | ||
$(".outline").show(); | ||
} else if (data.mapoutline == false) { | ||
$(".outline").hide(); | ||
} | ||
|
||
if (data.mapfoil == true) { | ||
$(".mapfoil").hide(); | ||
} else if (data.mapfoil == false) { | ||
$(".mapfoil").show(); | ||
} | ||
if (data.mapfoil == true) { | ||
$(".mapfoil").hide(); | ||
} else if (data.mapfoil == false) { | ||
$(".mapfoil").show(); | ||
} | ||
|
||
})}) | ||
}) | ||
}) |
Oops, something went wrong.