Skip to content

Instantly share code, notes, and snippets.

@CaptainStabs
CaptainStabs / bsw_import.txt
Created April 28, 2023 22:35
bsw import stats
20-2850920.csv
Rows Processed: 117,244, Additions: 109,962, Modifications: 3,147, Had No Effect: 4,135
20-3749695.csv
Rows Processed: 256,321, Additions: 245,773, Modifications: 6,383, Had No Effect: 4,165
26-0194016.csv
Rows Processed: 170,777, Additions: 165,908, Modifications: 4,721, Had No Effect: 148
26-3603862.csv
@CaptainStabs
CaptainStabs / client_customise_me.lua
Last active September 13, 2023 17:02
cd_dispatch custom 111 command
RegisterNetEvent('cd_dispatch:PillboxBell')
AddEventHandler('cd_dispatch:PillboxBell', function()
QBCore.Functions.Notify('You rang the bell letting NHS know that you are here.', "primary", 7500)
local data = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'ambulance'},
coords = data.coords,
title = 'Somebody rang the bell at Pillbox',
message = 'Somebody rang the bell at Pillbox',
flash = 0,
RegisterNetEvent("919-admin:server:MonetaryAction", function(targetId, action, amount)
local src = source
if AdminPanel.HasPermission(src, "givetakemoney") then
if action == "givecash" then
Compat.PlayerActions.AddMoney(targetId, amount)
print("TARGETID", targetId)
print("name", getCharName(targetId))
local logMessage = string.format("**STAFF MEMBER %s** added £%d to **%s[%d]** (%s)'s **wallet**", GetPlayerName(src), amount, GetPlayerName(targetId), targetId, getCharName(targetId))
@CaptainStabs
CaptainStabs / converter.py
Created February 6, 2024 02:03
Qb-inventory to qs-inventory. Convert from qb to quasar inventory
import json
import pandas as pd
import csv
# Export from database by running `SELECT citizenid, inventory FROM players;`
# Make sure to export using an app like TablePlus and use the `Quote if needed` option. This will not work if you export from HeidiSQL
# The output should look something like this
'''
citizenid,inventory
AFN86608,"[{""slot"":1,""name"":""weapon_nightstick"",""type"":""weapon"",""info"":{""serie"":""54yiL4at180nbcg"",""quality"":100},""amount"":1}