Skip to content

Instantly share code, notes, and snippets.

@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',