Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage authored Sep 23, 2023
2 parents f175bcf + 01ccf06 commit f3578b2
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '41 15 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has had 60 days of inactivity & will close within 7 days'
stale-pr-message: 'This PR has had 60 days of inactivity & will close within 7 days'
close-issue-label: 'Stale Closed'
close-pr-label: 'Stale Closed'
exempt-issue-labels: 'Suggestion'
exempt-pr-labels: 'Suggestion'
27 changes: 27 additions & 0 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,33 @@ function QBCore.Functions.GetPlayerByPhone(number)
return nil
end

---Get player by account id
---@param account string
---@return table?
function QBCore.Functions.GetPlayerByAccount(account)
for src in pairs(QBCore.Players) do
if QBCore.Players[src].PlayerData.charinfo.account == account then
return QBCore.Players[src]
end
end
return nil
end

---Get player passing property and value to check exists
---@param property string
---@param value string
---@return table?
function QBCore.Functions.GetPlayerByCharInfo(property, value)
for src in pairs(QBCore.Players) do
local charinfo = QBCore.Players[src].PlayerData.charinfo
if charinfo[property] ~= nil and charinfo[property] == value then
return QBCore.Players[src]
end
end
return nil
end


---Get all players. Returns the server ids of all players.
---@return table
function QBCore.Functions.GetPlayers()
Expand Down
6 changes: 3 additions & 3 deletions shared/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ QBShared.Items = {
['pistol50_defaultclip'] = {['name'] = 'pistol50_defaultclip', ['label'] = 'Pistol Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '.50 Pistol Default Clip'},
['pistol50_extendedclip'] = {['name'] = 'pistol50_extendedclip', ['label'] = 'Pistol EXT Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '.50 Pistol Extended Clip'},
['pistol50_luxuryfinish'] = {['name'] = 'pistol50_luxuryfinish', ['label'] = 'Pistol Finish', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_suppressor.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '.50 Pistol Luxury Finish'},
['revolver_defaultclip'] = {['name'] = 'revolver_defaultclip', ['label'] = 'Pistol Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revovler Default Clip'},
['revolver_vipvariant'] = {['name'] = 'revolver_vipvariant', ['label'] = 'Pistol Variant', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revovler Variant'},
['revolver_bodyguardvariant'] = {['name'] = 'revolver_bodyguardvariant', ['label'] = 'Pistol Variant', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_suppressor.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revovler Variant'},
['revolver_defaultclip'] = {['name'] = 'revolver_defaultclip', ['label'] = 'Pistol Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revolver Default Clip'},
['revolver_vipvariant'] = {['name'] = 'revolver_vipvariant', ['label'] = 'Pistol Variant', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revolver Variant'},
['revolver_bodyguardvariant'] = {['name'] = 'revolver_bodyguardvariant', ['label'] = 'Pistol Variant', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_suppressor.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Revolver Variant'},
['snspistol_defaultclip'] = {['name'] = 'snspistol_defaultclip', ['label'] = 'Pistol Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'SNS Pistol Default Clip'},
['snspistol_extendedclip'] = {['name'] = 'snspistol_extendedclip', ['label'] = 'Pistol EXT Clip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_extendedclip.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'SNS Pistol Extended Clip'},
['snspistol_grip'] = {['name'] = 'snspistol_grip', ['label'] = 'Pistol Grip', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pistol_suppressor.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'SNS Pistol Grip Attachment'},
Expand Down
150 changes: 150 additions & 0 deletions shared/vehicles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5546,5 +5546,155 @@ QBShared.Vehicles = {
['categoryLabel'] = 'Super',
['hash'] = `virtue`,
['shop'] = 'luxury',
},--- Game build 2944 San Andreas Mercenaries
['buffalo5'] = {
['name'] = 'Buffalo EVX',
['brand'] = 'Bravado',
['model'] = 'buffalo5',
['price'] = 214000,
['category'] = 'muscle',
['categoryLabel'] = 'Muscle',
['hash'] = `buffalo5`,
['shop'] = 'pdm',
},
['gauntlet6'] = {
['name'] = 'Hotring Hellfire',
['brand'] = 'Bravado',
['model'] = 'gauntlet6',
['price'] = 181000,
['category'] = 'sports',
['categoryLabel'] = 'Sports',
['hash'] = `gauntlet6`,
['shop'] = 'pdm',
},
['coureur'] = {
['name'] = 'La Coureuse',
['brand'] = 'Penaud',
['model'] = 'coureur',
['price'] = 199000,
['category'] = 'sports',
['categoryLabel'] = 'Sports',
['hash'] = `coureur`,
['shop'] = 'pdm',
},
['ratel'] = {
['name'] = 'Ratel',
['brand'] = 'Vapid',
['model'] = 'ratel',
['price'] = 199000,
['category'] = 'offroad',
['categoryLabel'] = 'Off Road',
['hash'] = `ratel`,
['shop'] = 'pdm',
},
['l35'] = {
['name'] = 'Walton L35',
['brand'] = 'Declasse',
['model'] = 'l35',
['price'] = 167000,
['category'] = 'offroad',
['categoryLabel'] = 'Off Road',
['hash'] = `l35`,
['shop'] = 'pdm',
},
['monstrociti'] = {
['name'] = 'MonstroCiti',
['brand'] = 'Maibatsu',
['model'] = 'monstrociti',
['price'] = 48000,
['category'] = 'offroad',
['categoryLabel'] = 'Off Road',
['hash'] = `monstrociti`,
['shop'] = 'pdm',
},
['stingertt'] = {
['name'] = 'Itali GTO Stinger TT',
['brand'] = 'Maibatsu',
['model'] = 'stingertt',
['price'] = 238000,
['category'] = 'sports',
['categoryLabel'] = 'Sports',
['hash'] = `stingertt`,
['shop'] = 'pdm',
},
['speedo5'] = {
['name'] = 'Speedo Custom',
['brand'] = 'Vapid',
['model'] = 'speedo5',
['price'] = 238000,
['category'] = 'vans',
['categoryLabel'] = 'Vans',
['hash'] = `speedo5`,
['shop'] = 'pdm',
},
['clique2'] = {
['name'] = 'Clique Wagon',
['brand'] = 'Vapid',
['model'] = 'clique2',
['price'] = 102500,
['category'] = 'muscle',
['categoryLabel'] = 'Muscle',
['hash'] = `clique2`,
['shop'] = 'pdm',
},
['brigham'] = {
['name'] = 'Brigham',
['brand'] = 'Albany',
['model'] = 'brigham',
['price'] = 149900,
['category'] = 'muscle',
['categoryLabel'] = 'Muscle',
['hash'] = `brigham`,
['shop'] = 'pdm',
},
['inductor'] = {
['name'] = 'Inductor',
['brand'] = 'Unknown',
['model'] = 'inductor',
['price'] = 5000,
['category'] = 'cycles',
['categoryLabel'] = 'Cycles',
['hash'] = `inductor`,
['shop'] = 'pdm',
},
['inductor2'] = {
['name'] = 'Junk Energy Inductor',
['brand'] = 'Unknown',
['model'] = 'inductor2',
['price'] = 5000,
['category'] = 'cycles',
['categoryLabel'] = 'Cycles',
['hash'] = `inductor2`,
['shop'] = 'pdm',
},
['raiju'] = {
['name'] = 'F-160 Raiju',
['brand'] = 'Mammoth',
['model'] = 'raiju',
['price'] = 6855000,
['category'] = 'planes',
['categoryLabel'] = 'Planes',
['hash'] = `raiju`,
['shop'] = 'air',
},
['streamer216'] = {
['name'] = 'Streamer216',
['brand'] = 'Mammoth',
['model'] = 'streamer216',
['price'] = 2238000,
['category'] = 'planes',
['categoryLabel'] = 'Planes',
['hash'] = `streamer216`,
['shop'] = 'air',
},
['conada2'] = {
['name'] = 'Weaponized Conada',
['brand'] = 'Buckingham',
['model'] = 'conada2',
['price'] = 3385000,
['category'] = 'planes',
['categoryLabel'] = 'Planes',
['hash'] = `conada2`,
['shop'] = 'air',
},
}

0 comments on commit f3578b2

Please sign in to comment.