Skip to content

Instantly share code, notes, and snippets.

View JamesSc0tt's full-sized avatar
🦄
Working

James JamesSc0tt

🦄
Working
View GitHub Profile
QBCore = exports['qb-core']:GetCoreObject()
config = {}
config.realestate_job = 'realestate' -- job that can manage the sale of bunkers
config.police_job = 'police' -- job that can 'raid' bunkers, false to disable
config.storage_maxweight = 4000000
config.storage_slots = 25
local vs = {}
function GetHashName(hash)
for k,v in pairs(vs) do
if tostring(v[1]) == tostring(hash) then
return v[2]
end
end
end
@JamesSc0tt
JamesSc0tt / gta_cars.lua
Last active August 17, 2021 14:56
Table of GTA cars, spawn hash, name, type and group
local classes = {
['A+'] = {'Super'},
['A'] = {'Sports', 'Off-Road'},
['B'] = {'SUVs', 'Motorcycles'},
['C'] = {'Sedans', 'Vans'},
['D'] = {'Utility'}
}
local boostable = {
Adder={"3078201489","Adder","Car","Super"},
@JamesSc0tt
JamesSc0tt / http_codes.sh
Last active February 8, 2024 15:46
HTTP status codes as bash array
# found this useful at work, probably will be useful again
declare -a http_code
http_code[000]="Unknown"
http_code[100]="Continue"
http_code[101]="Switching Protocols"
http_code[200]="OK"
http_code[201]="Created"
http_code[202]="Accepted"
http_code[203]="Non-Authoritative Information"
http_code[204]="No Content"