Skip to content

Instantly share code, notes, and snippets.

View Mobius1's full-sized avatar

Karl Mobius1

  • West Midlands, England
View GitHub Profile
@Mobius1
Mobius1 / eg.js
Last active May 30, 2017 22:55
Greasemonkey Eurogamer Modal Blocker
// ==UserScript==
// @name Eurogamer Anti-adblock
// @namespace eg
// @include http://www.eurogamer.net/articles/*
// @version 1
// @grant none
// ==/UserScript==
var db = document.body, interval, modal = false;
@Mobius1
Mobius1 / config.lua
Last active June 1, 2023 07:03
Playboy Mansion door and gate config for use with esx_doorlock
--
-- Automatic Gate 1
--
{
objHash = -2125423493,
objHeading = 5.000,
objCoords = vector3(-1474.12900, 68.38937, 52.52709),
textCoords = vector3(-1471.15, 68.99, 54.32),
authorizedJobs = {},
locked = true,
@Mobius1
Mobius1 / client.lua
Last active May 20, 2020 14:56
esx_doorlock modified to use Steam ID
function isAuthorized(door)
local checkID = false
local employed = true
if not ESX then
return false
end
if not ESX.PlayerData.job or (ESX.PlayerData.job and ESX.PlayerData.job.name == 'unemployed') then
employed = false
@Mobius1
Mobius1 / __init__.lua
Last active January 10, 2021 19:40
Spawn a dropped weapon with attachments in Venice Unleashed
-- Spawns dropped weapons and adds random attachments.
-- List of weapons to add
local weapons = {
{
name = "M98B",
container = "Weapons/Model98B/U_M98B",
slot = WeaponSlot.WeaponSlot_0,
attachments = {
optics = {