forked from Simnation/Main
housing update
This commit is contained in:
parent
7dfe792351
commit
630007bbdc
17 changed files with 28 additions and 25 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -11,12 +11,12 @@ More informations about the script: https://docs.brutalscripts.com
|
||||||
|
|
||||||
Config = {
|
Config = {
|
||||||
Core = 'QBCORE', -- 'ESX' / 'QBCORE' | Other core setting on the 'core' folder.
|
Core = 'QBCORE', -- 'ESX' / 'QBCORE' | Other core setting on the 'core' folder.
|
||||||
VoiceSytem = 'yaca-voice', -- "pma-voice" / "mumble" / "SaltyChat"
|
VoiceSytem = 'pma-voice', -- "pma-voice" / "mumble" / "SaltyChat"
|
||||||
Inventory = 'qb_inventory_new', -- 'ox_inventory' / 'qb_inventory_old'/ 'qb_inventory_new' / 'quasar_inventory' / 'chezza_inventory' / 'codem_inventory' / 'core_inventory' // Custom can be add in the cl_utils.lua!!!
|
Inventory = 'ox_inventory', -- 'ox_inventory' / 'qb_inventory_old'/ 'qb_inventory_new' / 'quasar_inventory' / 'chezza_inventory' / 'codem_inventory' / 'core_inventory' // Custom can be add in the cl_utils.lua!!!
|
||||||
Wardrobe = 'illenium_appearance', -- 'default' / 'ak47_clothing' / 'codem_apperance' / 'fivem_appearance' / 'illenium_appearance' / 'qb_clothing' / 'raid_clothes' / 'rcore_clothes' / 'rcore_clothing' / 'sleek_clothestore' / 'tgiann_clothing' // Custom can be add in the cl_utils.lua!!!
|
Wardrobe = 'default', -- 'default' / 'ak47_clothing' / 'codem_apperance' / 'fivem_appearance' / 'illenium_appearance' / 'qb_clothing' / 'raid_clothes' / 'rcore_clothes' / 'rcore_clothing' / 'sleek_clothestore' / 'tgiann_clothing' // Custom can be add in the cl_utils.lua!!!
|
||||||
TextUI = 'ox_lib', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!!
|
TextUI = 'brutal_textui', -- false / 'brutal_textui' / 'ox_lib' / 'okokTextUI' / 'ESXTextUI' / 'QBDrawText' // Custom can be add in the cl_utils.lua!!!
|
||||||
BrutalKeys = true, -- Buy here: https://store.brutalscripts.com
|
BrutalKeys = true, -- Buy here: https://store.brutalscripts.com
|
||||||
BrutalPoliceJob = false, -- Buy here: https://store.brutalscripts.com | Better connection
|
BrutalPoliceJob = true, -- Buy here: https://store.brutalscripts.com | Better connection
|
||||||
BrutalNotify = false, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
|
BrutalNotify = false, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
|
||||||
|
|
||||||
SteamName = false, -- true = Steam name | false = character name
|
SteamName = false, -- true = Steam name | false = character name
|
||||||
|
@ -36,14 +36,16 @@ Config = {
|
||||||
|
|
||||||
Blips = {
|
Blips = {
|
||||||
available = true,
|
available = true,
|
||||||
availableHouse = {label = "Kaufbares Haus", size = 0.7, sprite = 40, color = 2},
|
availableHouse = {label = "Available House", size = 0.7, sprite = 40, color = 2},
|
||||||
availableGarage = {label = "Kaufbare Garage", size = 0.7, sprite = 357, color = 2},
|
availableGarage = {label = "Available Garage", size = 0.7, sprite = 357, color = 2},
|
||||||
owned = false,
|
myproperties = true,
|
||||||
myHouse = {label = "Mein Haus", size = 0.7, sprite = 40, color = 53},
|
myHouse = {label = "Mein Haus", size = 0.7, sprite = 40, color = 53},
|
||||||
myGarage = {label = "Meine Garage", size = 0.7, sprite = 357, color = 53},
|
myGarage = {label = "Meine Garage", size = 0.7, sprite = 357, color = 53},
|
||||||
hasKeyHouse = {label = "Haus", size = 0.7, sprite = 40, color = 53},
|
haskey = true,
|
||||||
hasKeyGarage = {label = "Haus", size = 0.7, sprite = 40, color = 53},
|
hasKeyHouse = {label = "House", size = 0.7, sprite = 40, color = 53},
|
||||||
ownedHouse = {label = "Haus", size = 0.7, sprite = 40, color = 1},
|
hasKeyGarage = {label = "Garage", size = 0.7, sprite = 40, color = 53},
|
||||||
|
owned = false,
|
||||||
|
ownedHouse = {label = "House", size = 0.7, sprite = 40, color = 1},
|
||||||
ownedGarage = {label = "Garage", size = 0.7, sprite = 357, color = 1},
|
ownedGarage = {label = "Garage", size = 0.7, sprite = 357, color = 1},
|
||||||
police = true,
|
police = true,
|
||||||
burglarAlarm = {label = "Einbruch Alarm", size = 1.0, sprite = 161, color = 1},
|
burglarAlarm = {label = "Einbruch Alarm", size = 1.0, sprite = 161, color = 1},
|
||||||
|
@ -171,7 +173,7 @@ Config = {
|
||||||
MyProperties = {
|
MyProperties = {
|
||||||
Command = 'myproperties',
|
Command = 'myproperties',
|
||||||
Suggestion = 'To manage your propertys',
|
Suggestion = 'To manage your propertys',
|
||||||
Control = 'F7', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
|
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
|
||||||
},
|
},
|
||||||
|
|
||||||
ServerDestroy = {
|
ServerDestroy = {
|
||||||
|
|
|
@ -68,6 +68,11 @@ if Config['Core']:upper() == 'ESX' then
|
||||||
function GetItemCount(source, item)
|
function GetItemCount(source, item)
|
||||||
local xPlayer = GETPFI(source)
|
local xPlayer = GETPFI(source)
|
||||||
|
|
||||||
|
if xPlayer.getInventoryItem(item) == nil then
|
||||||
|
print("^1PROBLEM!^7 The ^3" ..item.. "^7 item is not created.")
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
if _esx_ == 'new' then
|
if _esx_ == 'new' then
|
||||||
return xPlayer.getInventoryItem(item).count
|
return xPlayer.getInventoryItem(item).count
|
||||||
else
|
else
|
||||||
|
@ -151,7 +156,7 @@ elseif Config['Core']:upper() == 'QBCORE' then
|
||||||
RESCB = Core.Functions.CreateCallback
|
RESCB = Core.Functions.CreateCallback
|
||||||
GETPFI = Core.Functions.GetPlayer
|
GETPFI = Core.Functions.GetPlayer
|
||||||
RUI = Core.Functions.CreateUseableItem
|
RUI = Core.Functions.CreateUseableItem
|
||||||
SetJobEvent = 'QBCore:Server:SetGang'
|
SetJobEvent = 'QBCore:Server:SetJob'
|
||||||
onPlayerDeath = GetResourceState("brutal_ambulancejob") == "started" and 'onPlayerDeath' or 'hospital:server:SetDeathStatus'
|
onPlayerDeath = GetResourceState("brutal_ambulancejob") == "started" and 'onPlayerDeath' or 'hospital:server:SetDeathStatus'
|
||||||
SQLData = {
|
SQLData = {
|
||||||
players = 'players',
|
players = 'players',
|
||||||
|
@ -232,7 +237,7 @@ elseif Config['Core']:upper() == 'QBCORE' then
|
||||||
|
|
||||||
function GetPlayerJob(source)
|
function GetPlayerJob(source)
|
||||||
local xPlayer = GETPFI(source)
|
local xPlayer = GETPFI(source)
|
||||||
return xPlayer.PlayerData.gang.name
|
return xPlayer.PlayerData.job.name
|
||||||
end
|
end
|
||||||
|
|
||||||
function CreateCoreJob(name, label, grades)
|
function CreateCoreJob(name, label, grades)
|
||||||
|
|
|
@ -4,7 +4,7 @@ lua54 'yes'
|
||||||
|
|
||||||
author 'Keres & Dév'
|
author 'Keres & Dév'
|
||||||
description 'Brutal Housing - store.brutalscripts.com'
|
description 'Brutal Housing - store.brutalscripts.com'
|
||||||
version '1.1.5'
|
version '1.2.0'
|
||||||
|
|
||||||
client_scripts {
|
client_scripts {
|
||||||
'config.lua',
|
'config.lua',
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -63,10 +63,6 @@ function t(key) {
|
||||||
window.addEventListener('message', function(event) {
|
window.addEventListener('message', function(event) {
|
||||||
let data = event.data
|
let data = event.data
|
||||||
|
|
||||||
if (data.action == "NUILanguage") {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.action === "OpenDuiMenu") {
|
if (data.action === "OpenDuiMenu") {
|
||||||
|
|
||||||
let DoorStatus = data.dooropen
|
let DoorStatus = data.dooropen
|
||||||
|
@ -1622,7 +1618,7 @@ function SwitchPage(id, noanim){
|
||||||
<div class="key_section float-end home_con">
|
<div class="key_section float-end home_con">
|
||||||
<div class="key_hider"></div>
|
<div class="key_hider"></div>
|
||||||
<div class="lock"><i class="fa-solid fa-lock"></i></div>
|
<div class="lock"><i class="fa-solid fa-lock"></i></div>
|
||||||
<div class="key_text">Buy the keys at<br><a onclick="window.invokeNative('openUrl', 'https://store.brutalscripts.com')" href="https://store.brutalscripts.com" rel="noopener noreferrer" target="_blank">store.brutalscripts.com</a></div>
|
<div class="key_text">Key System Locked<br><a onclick="window.invokeNative('openUrl', 'https://store.brutalscripts.com')" href="https://store.brutalscripts.com" rel="noopener noreferrer" target="_blank">store.brutalscripts.com</a></div>
|
||||||
<div class="small_icon gold"><img src="assets/key.png"></div>
|
<div class="small_icon gold"><img src="assets/key.png"></div>
|
||||||
<div class="title">${t('remained')}</div>
|
<div class="title">${t('remained')}</div>
|
||||||
<div class="key_count"></div>
|
<div class="key_count"></div>
|
||||||
|
|
|
@ -617,10 +617,10 @@ hr{
|
||||||
.properties_menu .panel .key_section .key_hider{
|
.properties_menu .panel .key_section .key_hider{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 80%;
|
left: 20%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
transform: translate(-50%, -50%) rotate(-45deg);
|
transform: translate(-50%, -50%) rotate(45deg);
|
||||||
background-color: rgba(33, 41, 50, 0.8);
|
background-color: rgba(33, 41, 50, 0.8);
|
||||||
backdrop-filter: blur(5px) brightness(50%);
|
backdrop-filter: blur(5px) brightness(50%);
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
|
@ -629,9 +629,9 @@ hr{
|
||||||
.properties_menu .panel .key_section .key_text{
|
.properties_menu .panel .key_section .key_text{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
right: 20px;
|
left: 20px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
text-align: right;
|
text-align: left;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
line-height: 23px;
|
line-height: 23px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
@ -646,7 +646,7 @@ hr{
|
||||||
.properties_menu .panel .key_section .lock{
|
.properties_menu .panel .key_section .lock{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
right: 50px;
|
left: 50px;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
color: rgba(255, 255, 255, 0.747);
|
color: rgba(255, 255, 255, 0.747);
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue