Skip to content

Commit

Permalink
Merge pull request #81 from loljoshie/revert-68-main
Browse files Browse the repository at this point in the history
Revert "Implement cash and live blur update"
  • Loading branch information
MonkeyWhisper authored Sep 7, 2022
2 parents b3a89b8 + 5b5d059 commit d20b1cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
10 changes: 0 additions & 10 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ end)
RegisterNetEvent("lj-inventory:client:showBlur", function()
Wait(50)
showBlur = not showBlur
if not showBlur then
TriggerScreenblurFadeOut(400)
else
TriggerScreenblurFadeIn(400)
end
end)

-- Functions
Expand Down Expand Up @@ -353,10 +348,6 @@ end)

RegisterNetEvent('QBCore:Player:SetPlayerData', function(val)
PlayerData = val
SendNUIMessage({
action = 'UpdateCash',
cash = PlayerData.money['cash']
})
end)

AddEventHandler('onResourceStop', function(name)
Expand Down Expand Up @@ -440,7 +431,6 @@ RegisterNetEvent('inventory:client:OpenInventory', function(PlayerAmmo, inventor
maxweight = Config.MaxInventoryWeight,
Ammo = PlayerAmmo,
maxammo = Config.MaximumAmmoValues,
cash = PlayerData.money['cash']
})
inInventory = true
end
Expand Down
12 changes: 0 additions & 12 deletions html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2406,11 +2406,6 @@ var requiredItemOpen = false;
totalWeight = 0;
totalWeightOther = 0;

$("#player-cash").html(data.cash.toLocaleString('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 0
}));
$(".player-inventory").find(".item-slot").remove();
$(".ply-hotbar-inventory").find(".item-slot").remove();
$(".ply-iteminfo-container").css("opacity", "0.0");
Expand Down Expand Up @@ -3020,13 +3015,6 @@ var requiredItemOpen = false;
);
$("#rob-money").data("TargetId", event.data.TargetId);
break;
case "UpdateCash":
$("#player-cash").html(event.data.cash.toLocaleString('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 0
}));
break;
}
});
};
Expand Down
6 changes: 3 additions & 3 deletions html/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div id="qbcore-inventory">
<div class="inventory-info">
<div class="player-inv-info">
<span id="player-inv-label"><span id='player-cash'>$0</span></span><br>
<span id="player-inv-label">Player</span><br>
<!-- <img class="weight-img" src="images/weight.png"> -->
<div>
<div id="progressbar">
Expand Down Expand Up @@ -51,8 +51,8 @@
<div class="inv-options">
<div class="inv-options-list">
<img class="brand-logo" src="./images/lj-symbol.svg"></img>
<input type="number" id="item-amount" class="inv-option-item" min=1 max="10000" placeholder="Amount" pattern="[0-9]" onfocus="this.value=''" placeholder="" oninput="validity.valid||(value='');"></input>
<div class="inv-option-item" id="item-use"><p>Use</p></div>
<input type="number" id="item-amount" class="inv-option-item" min=1 max="10000" placeholder="Amount" pattern="[0-9]" onfocus="this.value=''" placeholder="" oninput="validity.valid||(value='');"></input> <div class="inv-option-item" id="item-use"><p>Use</p></div>
<!-- <img class="inv-option-hand" id= "item-use" src="images/hand-1.png"> -->
<div class="inv-option-item" id="item-give"><p>Give</p></div>
<div class="inv-option-item" id="inv-close"><p>Close</p></div>
<div class="combine-option-container">
Expand Down

0 comments on commit d20b1cc

Please sign in to comment.