Skip to content

Instantly share code, notes, and snippets.

@Randolio
Randolio / washup.lua
Created December 21, 2025 23:13
beach washup scene
-- am_beach_washup_cinematic.c --
RegisterCommand('wakeup', function()
local pos = GetEntityCoords(cache.ped)
local heading = GetEntityHeading(cache.ped)
local coords = vec4(pos.x, pos.y, pos.z-1.0, heading)
local dict = IsPedMale(cache.ped) and 'anim@scripted@heist@ig25_beach@male@' or 'anim@scripted@heist@ig25_beach@heeled@'
DoScreenFadeOut(500) while not IsScreenFadedOut() do Wait(10) end
SetEntityCoords(cache.ped, coords.x, coords.y, coords.z, false, false, false, true)
SetEntityHeading(cache.ped, coords.w)
@Randolio
Randolio / taxiresearch.lua
Created December 18, 2025 23:05
GTA:O Taxi Research - Randolio
local taxiScaleform, TAX_CAM, driver, meter, vehicle
local pricePerMeter = 0.05
local zeroCoords = vec3(0.000000, 0.000000, 0.000000)
local pickingWaypoint = false
local function normalizeVec(vec)
local mag = #(vec)
if mag ~= 0.0 then
local inv = 1.0 / mag
return vec3(vec.x * inv, vec.y * inv, vec.z * inv)
@Randolio
Randolio / mutedead.lua
Last active December 30, 2025 05:39
Mute on death (randol_medical)
AddEventHandler('randol_medical:onPlayerDeath', function()
if not exports['pma-voice']:isPlayerMuted(cache.serverId) then
exports['pma-voice']:toggleMutePlayer(cache.serverId)
end
end)
AddEventHandler('randol_medical:onPlayerLastStand', function()
if not exports['pma-voice']:isPlayerMuted(cache.serverId) then
exports['pma-voice']:toggleMutePlayer(cache.serverId)
end
@Randolio
Randolio / sv_wipe.lua
Created September 26, 2024 19:55
Vehicle Wipe
local wipeTimer = 60 -- Every hour
local function canDeleteVehicle(veh)
local ped = GetPedInVehicleSeat(veh, -1)
return not Entity(veh)?.state.keepVehicle and (ped == 0 or not IsPedAPlayer(ped))
end
local function clearAllVehicles()
TriggerClientEvent('ox_lib:notify', -1, {
title = 'Vehicle wipe in 30 seconds. Please sit in the driver seat of your vehicle.',
@Randolio
Randolio / houses.lua
Created September 5, 2024 13:47
700+ house location coords with labels.
Houses = {
{label = 'Mirror Park Blvd 1', coords = vec3(1228.86, -725.41, 60.80)},
{label = 'Mirror Park Blvd 2', coords = vec3(1222.79, -697.04, 60.80)},
{label = 'Mirror Park Blvd 3', coords = vec3(1221.39, -668.83, 63.49)},
{label = 'Mirror Park Blvd 4', coords = vec3(1206.88, -620.22, 66.44)},
{label = 'Mirror Park Blvd 5', coords = vec3(1203.69, -598.96, 68.06)},
{label = 'Mirror Park Blvd 6', coords = vec3(1200.84, -575.72, 69.14)},
{label = 'Mirror Park Blvd 7', coords = vec3(1204.48, -557.80, 69.62)},
{label = 'East Mirror Dr 1', coords = vec3(1241.99, -565.69, 69.66)},
{label = 'East Mirror Dr 2', coords = vec3(1241.38, -601.70, 69.43)},
@Randolio
Randolio / objects.lua
Created March 31, 2024 13:08
A table with every object, up to build 3095.
ObjectList = {
'02gate3_l',
'apa_heist_apart2_door',
'apa_mp_apa_crashed_usaf_01a',
'apa_mp_apa_y1_l1a',
'apa_mp_apa_y1_l1b',
'apa_mp_apa_y1_l1c',
'apa_mp_apa_y1_l1d',
'apa_mp_apa_y1_l2a',
'apa_mp_apa_y1_l2b',