powiększ bindy i żeby na każdym slocie był numerek
code
<div id="hud"></div>
<div id="inventory_notifications"></div>
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
<script src="js/mustache.min.js"></script>
<script src="js/app.js"></script>
<div id="binds-container">
<div class="bind-slot" data-bind="1">
<span>1</span>
<img src="" alt="" id="bind-img-1">
</div>
<div class="bind-slot" data-bind="2">
<span>2</span>
<img src="" alt="" id="bind-img-2">
</div>
<div class="bind-slot" data-bind="3">
<span>3</span>
<img src="" alt="" id="bind-img-3">
</div>
<div class="bind-slot" data-bind="4">
<span>4</span>
<img src="" alt="" id="bind-img-4">
</div>
<div class="bind-slot" data-bind="5">
<span>5</span>
<img src="" alt="" id="bind-img-5">
</div>
</div>
</body>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
- {
font-family: 'Poppins' !important;
font-weight: 500;
}
html {
overflow: hidden;
}
#hud {
position : absolute;
font-size: 25px;
font-weight: 200;
color : white;
padding : 4px;
text-align: right;
top : 35;
right : 10;
-webkit-filter: drop-shadow(1px 1px 3px #222222);
filter: drop-shadow(1px 1px 3px #222222);
}
#inventory_notifications {
position: absolute;
right: 20px;
bottom: 75px;
display: flex;
flex-direction: column;
gap: 10px;
font-size: 0.87em;
font-weight: bold;
overflow: visible;
}
.inventory-notification {
background: linear-gradient(170deg, rgba(15,15,15,0.8) 0%, rgba(40,40,40,0.8) 100%);
color: #FFF;
border-radius: 6px;
padding: 5px 15px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.87em;
font-weight: bold;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
min-width: 180px;
max-width: 500px;
white-space: nowrap;
opacity: 0;
transform: translateX(100%);
transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.inventory-notification.show {
opacity: 1;
transform: translateX(0);
}
.inventory-notification.hide {
opacity: 0;
transform: translateX(100%);
transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}
.inventory-notification .count {
margin-left: 5px;
}
.menu {
font-family: 'Open Sans', sans-serif;
min-width: 400px;
min-height: 250px;
color: #fff;
position: absolute;
left: 40;
top: 0;
}
.menu .head {
font-family: 'Open Sans', sans-serif;
font-size: 28px;
padding: 10px;
background: #1A1A1A;
border-bottom: 3px solid #BC1635;
border-radius: 10px 10px 0 0;
-webkit-border-radius: 10px 10px 0 0;
-moz-border-radius: 10px 10px 0 0;
-o-border-radius: 10px 10px 0 0;
box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28);
-webkit-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28);
-moz-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28);
-o-box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.28);
box-shadow: 1px 1px 10px 4px rgba(0, 0, 0, 0.4);
}
.menu .head span {
font-family: 'Pricedown';
font-size: 28px;
padding-left: 15px;
padding-top: 6px;
}
.menu .menu-items .menu-item {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
height: 40px;
display: block;
background-color: #f1f1f1;
box-shadow: inset 1px 0px 0px 1px #b8b8b8;
height: 32px;
line-height: 32px;
color: #3A3A3A;
text-align: center;
}
.menu .menu-items .menu-item.selected {
background-color: #ccc;
}
#binds-container {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
width: 50px;
display: flex;
flex-direction: column;
gap: 10px;
}
.bind-slot {
width: 50px;
height: 50px;
background: linear-gradient(165deg, rgba(15,15,15,0.85) 0%, rgba(40,40,40,0.85) 100%);
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
opacity: 1;
transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.bind-slot img {
max-width: 60%;
max-height: 60%;
}
.bind-slot span {
position: absolute;
top: 5px;
left: 5px;
color: #fff;
font-size: 10px;
font-weight: bold;
}
.bind-slot.hidden {
opacity: 0;
pointer-events: none;
transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}
(() => {
})();