Skip to content

Instantly share code, notes, and snippets.

View ihyajb's full-sized avatar

aj ihyajb

View GitHub Profile
@ihyajb
ihyajb / stuff.lua
Last active February 13, 2024 05:12
FiveM QBCore Weapon Throwing
--- CLIENT ---
local DroppedWeapons = {}
RegisterCommand('dropweapon', function()
local dict = 'anim@am_hold_up@male'; local name = 'shoplift_mid'
lib.requestAnimDict(dict)
TaskPlayAnim(PlayerPedId(),dict, name, 5.0, 1.5, -1, 48, 0.0, 0, 0, 0)
Wait(500)
local weaponEntity = GetCurrentPedWeaponEntityIndex(cache.ped)
@ihyajb
ihyajb / smoke.lua
Created January 1, 2024 18:30
GTA:O Smoking Scenes
-- I didnt fully finish this, I planned for it to be like configable with different locations and stuff but 🤷🏻‍♂️
AddTextEntry('BLUNT_HELP_PC', '~INPUT_FRONTEND_X~ Smoke\n~INPUT_FRONTEND_CANCEL~ Exit')
AddTextEntry('BLUNT_ENTER_PC', 'Enter')
local sSmokingActivityData = {
eCurrentState = 'SMOKING_ACTIVITY_STATE_INIT'
}
local Debug = true
local serverBD = { --TODO: Sync this data?
@ihyajb
ihyajb / carscaleform.lua
Created December 26, 2023 19:02
carscaleform.lua
--* idc if you use this in public / private script *--
--* But if you use *most / all* of my code credit would be nice 💖 *--
local MaxCars = 20 --Max is a HARD CAP OF 20, only make this number lower!
local function func_7050(string)
local scaleform = RequestScaleformMovie(string)
repeat
Wait(100)
until HasScaleformMovieLoaded(scaleform)
return scaleform
@ihyajb
ihyajb / hack.lua
Created September 24, 2023 09:18
FBI Server Room Computer Hack
local function CallScaleformMethod(scaleform, method, ...) --? i dont remember where i stole this function from but, credit to them lol
local t
local args = { ... }
BeginScaleformMovieMethod(scaleform, method)
for k, v in ipairs(args) do
t = type(v)
if t == 'string' then
PushScaleformMovieMethodParameterString(v)
elseif t == 'number' then
if string.match(tostring(v), "%.") then