Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(client): Color Picker and Liveries
  • Loading branch information
renzuzu committed Sep 15, 2021
1 parent 8b0dac0 commit 1bdd740
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 252 deletions.
450 changes: 265 additions & 185 deletions client/client.lua

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions config.lua
Expand Up @@ -3,20 +3,22 @@ Config.Locale = "en"
Config.Mysql = 'mysql-async' -- "ghmattisql", "mysql-async"
Config.UseRayZone = false -- unrelease script https://github.com/renzuzu/renzu_rayzone
Config.UsePopUI = true -- Create a Thread for checking playercoords and Use POPUI to Trigger Event, set this to false if using rayzone. Popui is originaly built in to RayZone -- DOWNLOAD https://github.com/renzuzu/renzu_popui
Config.Quickpick = true -- if false system will create a garage shell and spawn every vehicle you preview
Config.Quickpick = false -- if false system will create a garage shell and spawn every vehicle you preview
Config.EnableTestDrive = true
Config.PlateSpace = true -- enable / disable plate spaces (compatibility with esx 1.1?)
Config.SaveJob = true -- this config is to save the value to owned_vehicles.job column
Config.Licensed = false -- Enable Driver Licensed Checker
Config.DisplayCars = true -- enable display of cars
Config.Marker = false -- use draw marker and Iscontrollpress native , popui will not work if this is true
Config.Marker = true -- use draw marker and Iscontrollpress native , popui will not work if this is true
Config.CustomImg = false -- if true your Config.CustomImgColumn IMAGE url will be used for each vehicles else, the imgs/uploads/MODEL.jpg
Config.CustomImgColumn = 'imglink' -- db column name
Config.RgbColor = true -- your framework or garage must support custom colors ex. https://github.com/renzuzu/renzu_garage

VehicleShop = {
['pdm'] = { -- same with name
name = "pdm", --LEGION
title = "PDM Vehicle Shop",
icon = 'https://i.imgur.com/05SLYUP.png',
type = 'car',
job = 'all',
default_garage = 'A',
Expand All @@ -31,14 +33,16 @@ VehicleShop = {
heading = 340.23065185547, -- Vehicle spawn location,
displaycars = {
[1] = {label = 'Suprang Bagal', model = 'jester3', value = 100000, coord = vector4(-47.427722930908,-1101.3747558594,25.714616775513,341.64694213867)},
[2] = {label = 'Suprang Bagal', model = 'elegy', value = 1000000, coord = vector4(-44.736125946045,-1094.1976318359,25.748092651367,158.2547454834)},
[2] = {label = 'Suprang Bagal', model = 'zr350', value = 1000000, coord = vector4(-44.736125946045,-1094.1976318359,25.748092651367,158.2547454834)},
[3] = {label = 'Suprang Bagal', model = 'adder', value = 1000000, coord = vector4(-40.32751083374,-1095.6105957031,26.009906768799,158.58676147461)},
[4] = {label = 'Suprang Bagal', model = 'ruston', value = 1000000, coord = vector4(-43.318450927734,-1102.1627197266,25.758722305298,340.29724121094)},
[4] = {label = 'Suprang Bagal', model = 'rt3000', value = 1000000, coord = vector4(-43.318450927734,-1102.1627197266,25.758722305298,340.29724121094)},
}
},

['Police Vehicle Shop'] = { -- same with name
name = "Police Vehicle Shop", --MRPD police shop
title = "Police Vehicle Shop",
icon = 'https://i.imgur.com/t1OPuVL.png',
job = 'police',
type = 'car',
default_garage = 'Police Garage',
Expand All @@ -63,6 +67,8 @@ VehicleShop = {
['Yacht Club Boat Shop'] = { -- same with name
name = "Yacht Club Boat Shop", --LEGION
type = 'boat', -- type of shop
title = "Yacht Club Boat Shop",
icon = 'https://i.imgur.com/62bRdH6.png',
job = 'all',
default_garage = 'Boat Garage A',
Dist = 7, -- distance (DEPRECATED)
Expand All @@ -89,6 +95,7 @@ VehicleShop = {
['DEVIN WESTON PLANE SHOP'] = { -- same with name
name = "DEVIN WESTON PLANE SHOP", --LEGION
title = "DEVIN PLANE SHOP",
icon = 'https://i.imgur.com/12rKk6E.png',
type = 'plane', -- type of shop
job = 'all',
default_garage = 'Plane Hangar A',
Expand Down
139 changes: 110 additions & 29 deletions html/design.css
Expand Up @@ -175,7 +175,7 @@
align-self: center;
/* justify-content: space-between; */
color: white;
text-shadow: 3px 5px #505050;
text-shadow: 1px 2px #505050;
line-height: 1.8em;
}

Expand Down Expand Up @@ -676,42 +676,36 @@ box-sizing: border-box;
body {
font-family: "Roboto Condensed", sans-serif;
}
body .right {
float: right;
position: relative;
height: 200vh;
top:20%;
right:5%;
width: 100%;
}
body .right {/* float: right; */position: relative;height: 200vh;top:20%;right:5%;width: 100%;}

.app::-webkit-scrollbar {
.app_inner::-webkit-scrollbar {
width: 1em;
background-color: rgba(34, 34, 34, 0.582);
}

.app::-webkit-scrollbar-track {/* box-shadow: inset 0 0 6px rgba(3, 117, 170, 0.3); */}
.app_inner::-webkit-scrollbar-track {/* box-shadow: inset 0 0 6px rgba(3, 117, 170, 0.3); */}

.app::-webkit-scrollbar-thumb {background-color: rgba(0, 0, 0, 0.705);outline: 1px solid rgb(6, 110, 214);}
.app_inner::-webkit-scrollbar-thumb {background-color: rgba(0, 0, 0, 0.705);outline: 1px solid rgb(6, 110, 214);}
.app {
font-size: 20px;
border-radius: 10px;
width: 30vw;
margin: 0 auto;
height: auto;
min-height: 370px;
background: #00000042;
/* background: #00000042; */
max-height: 70vh;
position: absolute;
right: 0;
top: 300px;
top: 0;
/* padding-top: 26vh; */
/* margin-top: 100px; */
overflow-y: scroll;
overflow-x: hidden;
box-shadow: 4px 5px 5px 5px rgb(64 47 47 / 11%);
-webkit-animation: intro 0.34s 0.4s cubic-bezier(1, 1.4, 0.41, 1.01) forwards;
animation: intro 0.34s 0.4s cubic-bezier(1, 1.4, 0.41, 1.01) forwards;
transform: translateY(-50%) scale(0) rotateX(10deg) rotateY(10deg) rotateZ(10deg);
/* overflow-y: scroll; */
/* overflow-x: hidden; */
/* box-shadow: 4px 5px 5px 5px rgb(64 47 47 / 11%); */
/* -webkit-animation: intro 0.34s 0.4s cubic-bezier(1, 1.4, 0.41, 1.01) forwards; */
/* animation: intro 0.34s 0.4s cubic-bezier(1, 1.4, 0.41, 1.01) forwards; */
/* transform: translateY(-50%) scale(0) rotateX(10deg) rotateY(10deg) rotateZ(10deg); */
margin: auto;
font-family: "
Roboto Condensed",
Expand Down Expand Up @@ -756,7 +750,7 @@ width: 17vw;
opacity: 1;
}
}
.app_inner {position: relative;/* top: 0; */}
.app_inner {position: relative;/* top: 0; */height: 60vh;overflow-x: hidden;}
.app_inner input[type=radio] {
display: none;
}
Expand Down Expand Up @@ -788,7 +782,7 @@ transition: all 0.3s 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
left:10px !important;
}
.app_inner input[type=radio]:checked + label .app_inner__tab .tab_left .big {
#left: 260px;top: -31px;opacity: 0.8;}
#left: 260px;top: -50px;opacity: 0.8;}
.app_inner input[type=radio]:checked + label .app_inner__tab .tab_left .imageborder {background: rgb(15 15 15 / 74%);padding:2px;border-radius: 20px;margin-left:0.5vw;margin-bottom:-40px !important;}

.app_inner input[type=radio]:checked + label .app_inner__tab {
Expand All @@ -809,7 +803,7 @@ display: block;
width: 100%;
}
.app_inner label:nth-of-type(1) .app_inner__tab {
background: #0a0a0abf;
background: #000000bd;
height: 200px;
}
.app_inner label:nth-of-type(1) .app_inner__tab:hover {
Expand Down Expand Up @@ -1121,19 +1115,22 @@ border-color: #41EFB6;
}

.main-menu {
position: absolute;
top: 7.6%;
bottom: 0;
height: 100%;
right: 30%;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
top: -3.3%;
bottom: 0;
height: 100%;
right: 30%;
width: 55px;
/* margin-left: 66%; */
height: 36.6vh;
overflow: hidden;
-webkit-transition: width .2s linear;
transition: width .2s linear;
-webkit-transform: translateZ(0) scale(1,1);
opacity: 1;
}
position: absolute;
}

.main-menu>ul {
margin:7px 0;
Expand Down Expand Up @@ -1474,4 +1471,88 @@ input[type="radio"]{
-ms-transform: none;
transform: none;
}
}

@charset "UTF-8";
body {
}

header {
color: #485f6e;
font-size: 30px;
font-weight: bold;
height: 40px;
position: relative;
}
header::after {
position: absolute;
right: 10px;
}

main {
border: 1px solid darkgray;
box-shadow: 0px 4px 15px -2px #757575;
/* margin: 1% auto 0; */
max-width: 340px;
position: absolute;
left: 1.5%;
top: 50%;
background: #100f0ff0;
z-index: 9999;
border-radius: 20px;
}

.colors {
display: flex;
flex-wrap: wrap;
padding: 5px;
}
.colors div {
cursor: auto;
padding: 10px 0;
text-align: center;
width: 25%;
}
.colors div:hover .color {
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 0 0 2px rgba(205, 205, 205, 0.9);
transform: scale(1.05);
}
.colors div.selected .color {
opacity: 0.9;
position: relative;
transform: scale(1.25);
}
.colors div.selected .color::after {
color: azure;
content: "✓";
height: 100%;
left: 0;
line-height: 34px;
position: absolute;
text-indent: 0;
width: 100%;
}
.colors .color {
border-radius: 100%;
cursor: pointer;
display: block;
height: 33px;
margin: 0 auto;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
width: 33px;
}

.colors::-webkit-scrollbar {
width: 5px;
}

.colors::-webkit-scrollbar-track {
background-color: #e4e4e4;
border-radius: 100px;
}

.colors::-webkit-scrollbar-thumb {
background-color: #1f55eb;
border-radius: 100px;
}
1 change: 1 addition & 0 deletions html/index.html
Expand Up @@ -98,6 +98,7 @@ <h4 style="margin: 11px;margin-bottom: 10px;">Vehicle Info</h4>
</article>
<div style="text-align: center; position: absolute; bottom: 4%; right: 40%; display: block;" id="seemod">Press [E] to Purchase this Vehicle</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chance/0.5.6/chance.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
Expand Down

0 comments on commit 1bdd740

Please sign in to comment.