Professional Documents
Culture Documents
V
V
local HydroMenu = {
ESP = {},
ObjectOptions = {
Sensitivity = 0.1,
cuarrentObject = {},
},
Functions = {},
DynamicTriggers = {
Search = {
-- Usage { Trigger To Search for but trim it down, ID that gets
uded in buttons }
{ "jail:jailPlayer", "ESXQalleJail" },
{ "job:rev", 'ESXRevive' },
{ "job:ESXHandcuff", 'ESXHandcuff' },
{ "job:drag", 'ESXDrag' },
{ "vangelico_robbery:rob", 'ESXVangelicoRobbery' },
{ "Tackle", "tryTackle"},
{ "InteractionMenu:Jail", 'JailSEM' },
{ "InteractionMenu:DragNear", 'DragSEM' },
},
Triggers = {
['JailSEM'] = "SEM_InteractionMenu:Jail",
['DragSEM'] = "SEM_InteractionMenu:DragNear",
},
},
Objectlist = {},
menus = {},
Cache = {},
UI = {
GTAInput = false,
RGB = true,
MenuX = 0.75,
MenuY = 0.025,
NotificationX = 0.011,
NotificationY = 0.3025,
TitleHeight = 0.11,
ButtonHeight = 0.038,
ButtonScale = 0.325,
ButtonFont = 0,
MaximumOptionCount = 14,
},
BottomText = nil,
Version = "1.1.0",
ScreenWidth, ScreenHeight = Citizen.InvokeNative(0x873C9F3104101DD3,
Citizen.PointerValueInt(), Citizen.PointerValueInt()),
rgb = { r = 255, g = 255, b = 255},
optionCount = 0,
currentMenu = nil,
}
function Ham.getName()
return "nil"
end
function Ham.getKeyState(val)
return 0
end
end
function HydroMenu.RGBRainbow(frequency)
if HydroMenu.UI.RGB then
local result = {}
return result
else
return HydroMenu.rgb
end
end
function HydroMenu.IsMenuVisible(id)
if id and HydroMenu.menus[id] then
return HydroMenu.menus[id].visible
else
return false
end
end
function HydroMenu.CloseMenu()
local menu = HydroMenu.menus[HydroMenu.currentMenu]
if menu then
if menu.aboutToBeClosed then
HydroMenu.optionCount = 0
menu.aboutToBeClosed = false
HydroMenu.SetMenuVisible(HydroMenu.currentMenu, false)
PlaySoundFrontend(-1, "QUIT", "HUD_FRONTEND_DEFAULT_SOUNDSET",
true)
HydroMenu.currentMenu = nil
else
menu.aboutToBeClosed = true
end
end
end
if visible then
if id ~= HydroMenu.currentMenu and
HydroMenu.IsMenuVisible(HydroMenu.currentMenu) then
HydroMenu.SetMenuProperty(HydroMenu.currentMenu, false)
end
HydroMenu.currentMenu = id
end
end
end
function HydroMenu.DrawTitle()
local menu = HydroMenu.menus[HydroMenu.currentMenu]
if menu then
local x = menu.x + menu.width / 2
local y = menu.y + HydroMenu.UI.TitleHeight / 2
function HydroMenu.DrawBottom()
local menu = HydroMenu.menus[HydroMenu.currentMenu]
if menu then
local x = menu.x + menu.width / 2
local multiplier = 1
--[[
if HydroMenu.BottomText ~= nil and HydroMenu.BottomText ~= "" then
end
]]
end
end
function HydroMenu.DrawSubTitle()
local menu = HydroMenu.menus[HydroMenu.currentMenu]
if menu then
local x = menu.x + menu.width / 2
local y = menu.y + HydroMenu.UI.TitleHeight + HydroMenu.UI.ButtonHeight
/ 2
local subTitleColor = { r = 0, g = 0, b = 0, a = 240 }
HydroMenu.DrawRect(x, y, menu.width, HydroMenu.UI.ButtonHeight,
subTitleColor)
HydroMenu.DrawRect(x, y - HydroMenu.UI.ButtonHeight / 2, menu.width,
0.001, {r = HydroMenu.rgb.r, g = HydroMenu.rgb.g, b = HydroMenu.rgb.b, a = 255})
HydroMenu.DrawText(menu.subTitle, {menu.x + menu.width / 2, y -
HydroMenu.UI.ButtonHeight / 2 + 0.005}, {255, 255, 255, 255},
HydroMenu.UI.ButtonScale, 0, 1, 0, 1)
end
end
menu = HydroMenu.menus[HydroMenu.currentMenu]
SetTextFont(font)
SetTextProportional(1)
SetTextScale(size, size)
if outline then
SetTextDropshadow(1, 0, 0, 0, 255)
SetTextEdge(1, 0, 0, 0, 255)
SetTextDropShadow()
SetTextOutline()
end
SetTextColour(r, g, b, a)
if alignment == 1 then
SetTextCentre(1)
elseif alignment == 2 then
if menu then
SetTextWrap(menu.x, menu.x + menu.width - 0.005)
end
SetTextRightJustify(true)
elseif alignment == 3 then
if menu then
SetTextWrap(menu.x, menu.x + menu.width - 0.022)
end
SetTextRightJustify(true)
elseif alignment == 4 then
if menu then
SetTextWrap(0.0, -1.0)
end
end
if type(textentry) == "string" then
AddTextEntry(textentry, text)
SetTextEntry(textentry)
else
SetTextEntry("STRING")
end
AddTextComponentString(text)
DrawText(x, y)
end
if multiplier then
local y = menu.y + HydroMenu.UI.TitleHeight + HydroMenu.UI.ButtonHeight
+ (HydroMenu.UI.ButtonHeight * multiplier) - HydroMenu.UI.ButtonHeight / 2
local backgroundColor = nil
if menubutton then
end
HydroMenu.DrawSprite('commonmenu', "shop_box_tick",
HydroMenu.menus[HydroMenu.currentMenu].width + 0.005 + menu.x - 0.017, y + 0.005 -
0.0048, 0.025, 0.025 * HydroMenu.ScreenWidth / HydroMenu.ScreenHeight, 0.0, 255,
255, 255, 200)
--HydroMenu.DrawText("~g~On", {menu.width + 0.005, y -
HydroMenu.UI.ButtonHeight / 2 + 0.005}, {255, 255, 255, 255},
HydroMenu.UI.ButtonScale, 0, 2)
HydroMenu.DrawSprite('commonmenu', "shop_box_blank",
HydroMenu.menus[HydroMenu.currentMenu].width + 0.005 + menu.x - 0.017, y + 0.005 -
0.0048, 0.025, 0.025 * HydroMenu.ScreenWidth / HydroMenu.ScreenHeight, 0.0, 255,
255, 255, 200)
--HydroMenu.DrawText("~r~Off", {menu.width + 0.005, y -
HydroMenu.UI.ButtonHeight / 2 + 0.005}, {255, 255, 255, 255},
HydroMenu.UI.ButtonScale, 0, 2)
end
end
end
if multiplier then
local y = menu.y + HydroMenu.UI.TitleHeight + HydroMenu.UI.ButtonHeight
+ (HydroMenu.UI.ButtonHeight * multiplier) - HydroMenu.UI.ButtonHeight / 2
local backgroundColor = nil
HydroMenu.DrawSprite('commonmenu', 'arrowright',
HydroMenu.UI.MenuX + menu.width - 0.0175, y, 0.0205, 0.0205 * HydroMenu.ScreenWidth
/ HydroMenu.ScreenHeight, 180.0, 255, 255, 255, 255)
end
end
end
HydroMenu.menus[id].visible = false
HydroMenu.menus[id].previousMenu = nil
HydroMenu.menus[id].aboutToBeClosed = false
HydroMenu.menus[id].x = 0.75
HydroMenu.menus[id].y = 0.025
HydroMenu.menus[id].width = 0.24
HydroMenu.menus[id].currentOption = 1
HydroMenu.menus[id].maxOptionCount = HydroMenu.UI.MaximumOptionCount
HydroMenu.menus[id].titleFont = 6
HydroMenu.menus[id].titleColor = { r = 255, g = 255, b = 255, a = 255 }
HydroMenu.menus[id].titleBackgroundColor = { r = 255, g = 0, b = 0, a = 255 }
HydroMenu.menus[id].titleBackgroundSprite = nil
HydroMenu.menus[id].subTitleBackgroundColor = { r =
HydroMenu.menus[id].menuBackgroundColor.r, g =
HydroMenu.menus[id].menuBackgroundColor.g, b =
HydroMenu.menus[id].menuBackgroundColor.b, a = 255 }
if subTitle then
HydroMenu.SetMenuProperty(id, 'subTitle', subTitle)
else
HydroMenu.SetMenuProperty(id, 'subTitle',
HydroMenu.menus[parent].subTitle)
end
if isCurrent then
if IsDisabledControlJustPressed(0, 201) then
PlaySoundFrontend(-1, menu.buttonPressedSound.name,
menu.buttonPressedSound.set, true)
HydroMenu.SetMenuVisible(HydroMenu.currentMenu, false)
HydroMenu.SetMenuProperty(id, 'x', HydroMenu.UI.MenuX)
HydroMenu.SetMenuProperty(id, 'y', HydroMenu.UI.MenuY)
HydroMenu.SetMenuVisible(id, true, true)
return true
elseif IsDisabledControlJustPressed(0, 189) or
IsDisabledControlJustPressed(0, 190) then
PlaySoundFrontend(-1, "NAV_UP_DOWN",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
end
end
return false
else
return false
end
end
function HydroMenu.CurrentMenu()
return HydroMenu.currentMenu
end
if menu then
HydroMenu.optionCount = HydroMenu.optionCount + 1
if retval then
return true
end
end
return false
end
if menu then
HydroMenu.optionCount = HydroMenu.optionCount + 1
HydroMenu.DrawChanger(text, selectedItem)
return false
else
return false
end
end
return false
else
return false
end
end
if isCurrent then
if IsDisabledControlJustPressed(0, 201) then
PlaySoundFrontend(-1, menu.buttonPressedSound.name,
menu.buttonPressedSound.set, true)
return true
elseif IsDisabledControlJustPressed(0, 189) or
IsDisabledControlJustPressed(0, 190) then
PlaySoundFrontend(-1, "NAV_UP_DOWN",
"HUD_FRONTEND_DEFAULT_SOUNDSET", true)
end
end
return false
else
return false
end
end
function HydroMenu.Display()
if HydroMenu.IsMenuVisible(HydroMenu.currentMenu) then
DisableControlAction(0, 187, true)
DisableControlAction(0, 188, true)
DisableControlAction(0, 189, true)
DisableControlAction(0, 190, true)
DisableControlAction(0, 201, true)
DisableControlAction(0, 202, true)
if menu.aboutToBeClosed then
HydroMenu.CloseMenu()
else
ClearAllHelpMessages()
if HydroMenu.menus[HydroMenu.currentMenu].currentOption == nil
then
HydroMenu.menus[HydroMenu.currentMenu].currentOption =
HydroMenu.optionCount
end
HydroMenu.DrawTitle()
HydroMenu.DrawSubTitle()
HydroMenu.DrawBottom()
HydroMenu.optionCount = 0
end
end
end
function HydroMenu.IsMenuOpened(id)
return HydroMenu.IsMenuVisible(id)
end
function HydroMenu.OpenMenu(id)
if id and HydroMenu.menus[id] then
PlaySoundFrontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", true)
HydroMenu.SetMenuVisible(id, true)
end
end
------------------------------------------------------
--------------------- Menu Code ----------------------
------------------------------------------------------
local globalAttachmentTable = {
-- Putting these at the top makes them work properly as they need to be
applied to the weapon first before other attachments
{ "COMPONENT_ADVANCEDRIFLE_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_CARBINERIFLE_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_ASSAULTRIFLE_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_MICROSMG_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_SAWNOFFSHOTGUN_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_SNIPERRIFLE_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_PISTOL_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_PISTOL50_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_APPISTOL_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_HEAVYPISTOL_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_SMG_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_MARKSMANRIFLE_VARMOD_LUXE", "Yusuf Amir Luxury Finish" },
{ "COMPONENT_AT_PI_FLSH_02", "Flashlight" },
{ "COMPONENT_AT_AR_FLSH ", "Flashlight" },
{ "COMPONENT_AT_PI_FLSH", "Flashlight" },
{ "COMPONENT_AT_AR_FLSH", "Flashlight" },
{ "COMPONENT_AT_PI_FLSH_03", "Flashlight" },
{ "COMPONENT_AT_PI_SUPP", "Suppressor" },
{ "COMPONENT_AT_PI_SUPP_02", "Suppressor" },
{ "COMPONENT_AT_AR_SUPP", "Suppressor" },
{ "COMPONENT_AT_AR_SUPP_02", "Suppressor" },
{ "COMPONENT_AT_SR_SUPP", "Suppressor" },
{ "COMPONENT_AT_SR_SUPP_03", "Suppressor" },
{ "COMPONENT_AT_PI_COMP", "Compensator" },
{ "COMPONENT_AT_PI_COMP_02", "Compensator" },
{ "COMPONENT_AT_PI_COMP_03", "Compensator" },
{ "COMPONENT_AT_MRFL_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_MRFL_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_SR_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_BP_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_BP_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_SC_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_SC_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_AR_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_SB_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_CR_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_MG_BARREL_01", "Barrel Attachment 1" },
{ "COMPONENT_AT_MG_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_CR_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_SR_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_SB_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_AR_BARREL_02", "Barrel Attachment 2" },
{ "COMPONENT_AT_MUZZLE_01", "Muzzle Attachment 1" },
{ "COMPONENT_AT_MUZZLE_02", "Muzzle Attachment 2" },
{ "COMPONENT_AT_MUZZLE_03", "Muzzle Attachment 3" },
{ "COMPONENT_AT_MUZZLE_04", "Muzzle Attachment 4" },
{ "COMPONENT_AT_MUZZLE_05", "Muzzle Attachment 5" },
{ "COMPONENT_AT_MUZZLE_06", "Muzzle Attachment 6" },
{ "COMPONENT_AT_MUZZLE_07", "Muzzle Attachment 7" },
{ "COMPONENT_AT_AR_AFGRIP", "Grip" },
{ "COMPONENT_AT_AR_AFGRIP_02", "Grip" },
{ "COMPONENT_AT_SCOPE_MACRO_02", "Scope" },
{ "COMPONENT_AT_SCOPE_SMALL_02", "Scope" },
{ "COMPONENT_AT_SCOPE_MACRO", "Scope" },
{ "COMPONENT_AT_SCOPE_MEDIUM", "Scope" },
{ "COMPONENT_AT_SCOPE_LARGE", "Scope" },
{ "COMPONENT_AT_SCOPE_SMALL", "Scope" },
local allWeapons = {
"WEAPON_UNARMED",
"WEAPON_KNIFE",
"WEAPON_KNUCKLE",
"WEAPON_NIGHTSTICK",
"WEAPON_HAMMER",
"WEAPON_BAT",
"WEAPON_GOLFCLUB",
"WEAPON_CROWBAR",
"WEAPON_BOTTLE",
"WEAPON_DAGGER",
"WEAPON_HATCHET",
"WEAPON_MACHETE",
"WEAPON_FLASHLIGHT",
"WEAPON_SWITCHBLADE",
"WEAPON_PISTOL",
"WEAPON_PISTOL_MK2",
"WEAPON_COMBATPISTOL",
"WEAPON_APPISTOL",
"WEAPON_PISTOL50",
"WEAPON_SNSPISTOL",
"WEAPON_HEAVYPISTOL",
"WEAPON_VINTAGEPISTOL",
"WEAPON_STUNGUN",
"WEAPON_FLAREGUN",
"WEAPON_MARKSMANPISTOL",
"WEAPON_REVOLVER",
"WEAPON_REVOLVER_MK2",
"WEAPON_MICROSMG",
"WEAPON_SMG",
"WEAPON_SMG_MK2",
"WEAPON_ASSAULTSMG",
"WEAPON_MG",
"WEAPON_COMBATMG",
"WEAPON_COMBATMG_MK2",
"WEAPON_COMBATPDW",
"WEAPON_GUSENBERG",
"WEAPON_MACHINEPISTOL",
"WEAPON_ASSAULTRIFLE",
"WEAPON_ASSAULTRIFLE_MK2",
"WEAPON_CARBINERIFLE",
"WEAPON_CARBINERIFLE_MK2",
"WEAPON_ADVANCEDRIFLE",
"WEAPON_SPECIALCARBINE",
"WEAPON_BULLPUPRIFLE",
"WEAPON_COMPACTRIFLE",
"WEAPON_PUMPSHOTGUN",
"WEAPON_SAWNOFFSHOTGUN",
"WEAPON_BULLPUPSHOTGUN",
"WEAPON_ASSAULTSHOTGUN",
"WEAPON_MUSKET",
"WEAPON_HEAVYSHOTGUN",
"WEAPON_DBSHOTGUN",
"WEAPON_SNIPERRIFLE",
"WEAPON_HEAVYSNIPER",
"WEAPON_HEAVYSNIPER_MK2",
"WEAPON_MARKSMANRIFLE",
"WEAPON_GRENADELAUNCHER",
"WEAPON_GRENADELAUNCHER_SMOKE",
"WEAPON_RPG",
"WEAPON_MINIGUN",
"WEAPON_STINGER",
"WEAPON_FIREWORK",
"WEAPON_HOMINGLAUNCHER",
"WEAPON_GRENADE",
"WEAPON_STICKYBOMB",
"WEAPON_PROXMINE",
"WEAPON_BZGAS",
"WEAPON_SMOKEGRENADE",
"WEAPON_MOLOTOV",
"WEAPON_FIREEXTINGUISHER",
"WEAPON_PETROLCAN",
"WEAPON_FLARE",
"WEAPON_RAYPISTOL",
"WEAPON_RAYCARBINE",
"WEAPON_RAYMINIGUN",
"WEAPON_STONE_HATCHET",
"WEAPON_BATTLEAXE",
"GADGET_PARACHUTE",
}
local PlayerModels = {
"mp_m_freemode_01",
"a_m_m_acult_01",
"a_m_m_afriamer_01",
"a_m_m_beach_01",
"a_m_m_beach_02",
"a_m_m_bevhills_01",
"a_m_m_bevhills_02",
"a_m_m_business_01",
"a_m_m_eastsa_01",
"a_m_m_eastsa_02",
"a_m_m_farmer_01",
"a_m_m_fatlatin_01",
"a_m_m_genfat_01",
"a_m_m_genfat_02",
"a_m_m_golfer_01",
"a_m_m_hasjew_01",
"a_m_m_hillbilly_01",
"a_m_m_hillbilly_02",
"a_m_m_indian_01",
"a_m_m_ktown_01",
"a_m_m_malibu_01",
"a_m_m_mexcntry_01",
"a_m_m_mexlabor_01",
"a_m_m_og_boss_01",
"a_m_m_paparazzi_01",
"a_m_m_polynesian_01",
"a_m_m_prolhost_01",
"a_m_m_rurmeth_01",
"a_m_m_salton_01",
"a_m_m_salton_02",
"a_m_m_salton_03",
"a_m_m_salton_04",
"a_m_m_skater_01",
"a_m_m_skidrow_01",
"a_m_m_socenlat_01",
"a_m_m_soucent_01",
"a_m_m_soucent_02",
"a_m_m_soucent_03",
"a_m_m_soucent_04",
"a_m_m_stlat_02",
"a_m_m_tennis_01",
"a_m_m_tourist_01",
"a_m_m_tramp_01",
"a_m_m_trampbeac_01",
"a_m_m_tranvest_01",
"a_m_m_tranvest_02",
"a_m_o_acult_01",
"a_m_o_acult_02",
"a_m_o_beach_01",
"a_m_o_genstreet_01",
"a_m_o_ktown_01",
"a_m_o_salton_01",
"a_m_o_soucent_01",
"a_m_o_soucent_02",
"a_m_o_soucent_03",
}
local DoorPropNames = {
"v_ilev_shrfdoor",
"v_ilev_ph_gendoor004",
"prop_faceoffice_door_l",
"v_ilev_ct_door03",
"v_ilev_ml_door1",
"v_ilev_ss_door04",
"v_ilev_ss_doorext",
"v_ilev_methdoorscuff",
"v_ilev_fibl_door01",
"v_ilev_fibl_door02",
"v_ilev_fib_doore_l",
"v_ilev_fib_doore_r",
"v_ilev_csr_door_l",
"v_ilev_csr_door_r",
"v_ilev_fib_door1",
"apa_prop_ss1_mpint_door_l",
"apa_prop_ss1_mpint_door_r",
"v_ilev_roc_door4",
"v_ilev_roc_door1_l",
"v_ilev_roc_door1_r",
"v_ilev_roc_door2",
"prop_strip_door_01",
"v_ilev_door_orange",
"v_ilev_door_orangesolid",
"v_ilev_247door",
"v_ilev_247door_r",
"v_ilev_mldoor2"
}
local HydroVariables = {
SelfOptions = {
Wardrobe = {
Head = 0,
Mask = 0,
},
AlienColorSpam = false,
invisiblitity = false,
godmode = false,
AutoHealthRefil = false,
AntiHeadshot = false,
MoonWalk = false,
InfiniteCombatRoll = false,
superjump = false,
superrun = false,
infstamina = false,
FreezeWantedLevel = false,
noragdoll = false,
disableobjectcollisions = false,
disablepedcollisions = false,
disablevehiclecollisions = false,
forceradar = false,
playercoords = false
},
VehicleOptions = {
AutoPilotOptions = {
DrivingStyles = {"Avoid Traffic Extremely", "Sometimes Overtake
Traffic", "Rushed", "Normal", "Ignore Lights", "Avoid Traffic"},
CruiseSpeed = 50.0,
DrivingStyle = 6,
SelCruiseSpeedIndex = 1,
CurCruiseSpeedIndex = 1,
},
SelDoorPV = 1,
CurDoorPV = 1,
SelCloseDoorPV = 1,
CurCloseDoorPV = 1,
AutoClean = false,
vehgodmode = false,
speedboost = false,
Waterproof = false,
InstantBreaks = false,
Hydroplate = false,
rainbowcar = false,
speedometer = false,
EasyHandling = false,
DriveOnWater = false,
AlwaysWheelie = false,
PersonalVehicle = false,
forcelauncontrol = false,
activetorquemulr = false,
activeenignemulr = false,
PersonalVehicleESP = false,
PersonalVehicleCam = false,
PersonalVehicleMarker = false,
vehenginemultiplier = { "x2", "x4", "x8", "x16", "x32", "x64", "x128",
"x256", "x512", "x1024" },
selactivetorqueIndex = 1,
curractivetorqueIndex = 1,
selactiveenignemulrIndex = 1,
curractiveenignemulrIndex = 1
},
TeleportOptions = {
smoothteleport = false,
teleportlocations = {
{"Mission Row PD", 440.22, -982.21, 30.69},
{"Sandy Shores PD", 1857.48, 3677.88, 33.73},
{"Paleto Bay PD", -434.34, 6020.89, 31.50}
}
},
WeaponOptions = {
BulletOptions = {
Enabled = false,
Bullets = { "Revolver", "Heavy Sniper", "RPG", "Firework
Launcher", "Ray Pistol" },
CurrentBullet = 1,
WeaponBulletName = "WEAPON_REVOLVER",
},
BulletToUse = "WEAPON_HEAVYSNIPER",
ExplosiveAmmo = false,
TriggerBot = false,
RapidFire = false,
Crosshair = false,
DelGun = false,
AimBot = {
Targeting = {
Target = nil,
LowestResult = { x = 1.0, y = 1.0}
},
ComboBox = {
SelIndex = 1,
CurIndex = 1,
IndexItems = { "Head", "Chest", "Pelvis" },
},
MultiTarget = 1,
Target = nil,
Enabled = false,
Bone = "SKEL_HEAD",
HitChance = 100,
ThroughWalls = false,
DrawFOV = true,
ShowTarget = false,
FOV = 0.50,
OnlyPlayers = false,
IgnoreFriends = true,
Distance = 1000.0,
InvisibilityCheck = true,
},
NoRecoil = false,
Tracers = false,
RageBot = false,
Spinbot = false,
InfAmmo = false,
NoReload = false,
OneShot = false
},
OnlinePlayer = {
ExplosionType = 1,
TrackingPlayer = nil,
attatchedplayer = nil,
attachtoplayer = false,
playertofreeze = nil,
freezeplayer = false,
messageloopplayer = nil,
messagetosend = ".",
messagelooping = false,
CargodPlayer = nil,
cargoplaneloop = false,
ExplosionLoop = false,
ExplodingPlayer = nil,
FlingingPlayer = false,
FireWorkPlayer = nil,
FireWorkLoop = false,
FireWork2Player = nil,
FireWork2Loop = false,
SmokeLoop = false,
SmokePlayer = nil,
JesusLightLoop = false,
JesusPlayer = nil,
AlienLightLoop = false,
ExplosionParticlePlayer = nil,
AlienPlayer = nil,
FlarePlayer = nil,
FlareLoop = false,
lighttroll = false,
lighttrollingplayer = nil
},
AllOnlinePlayers = {
DPEmotes = {"dancesilly", "twerk", "headbutted", "dancehorse", "slapped",
"bartender"},
CurrentEmote = 1,
IncludeSelf = true,
ParicleEffects = {
HugeExplosionLoop = false,
ClownLoop = false,
BloodLoop = false,
FireworksLoop = false,
},
busingserverloop = false,
cargoplaneserverloop = false,
freezeserver = false,
tugboatrainoverplayers = false,
ExplodisionLoop = false,
PTFXSpam = false,
},
ScriptOptions = {
GGACBypass = false,
SSBBypass = false,
script_crouch = false,
vault_doors = false,
blocktakehostage = false,
BlockBlackScreen = false,
blockbeingcarried = false,
BlockPeacetime = false
},
MiscOptions = {
GlifeHack = false,
UnlockAllVehicles = false,
SpamServerChat = false,
FlyingCars = false,
ESPLines = false,
ESPBones = false,
ESPName = false,
ESPBlips = false,
ESPBlipDB = {},
ESPBox = true,
ESPBoxStyle = 1,
ESPDistance = 1000.0,
},
MenuOptions = {
DiscordRichPresence = false,
Watermark = false
},
Keybinds = {
OpenKey = 344,
NoClipKey = 56,
DriftMode = 999,
RefilHealthKey = 999,
RefilArmourKey = 999,
AimBotToggleKey = 999,
},
ServerOptions = {
ESXServer = false,
VRPServer = false
}
}
local mocks = 0
local selectedPlayer = 0
local selectedWeapon = nil
local FriendsList = {}
local TazeLoop = false
local TazeLoopingPlayer = nil
local AntiCheats = {
ATG = false,
WaveSheild = false,
AntiCheese = false,
ChocoHax = false,
BadgerAC = false,
TigoAC = false,
ESXAC = false,
VAC = false,
}
local selDoorIndex = 1
local curDoorIndex = 1
local selClosedDoorIndex = 1
local curClosedDoorIndex = 1
local selClosedBreakIndex = 1
local curClosedBreakIndex = 1
local spawnedobjectslist = {}
function tablelength(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
AddEventHandler('cmg3_animations:syncTarget', function(target)
if HydroVariables.ScriptOptions.blocktakehostage then
TriggerEvent("cmg3_animations:cl_stop")
end
end)
AddEventHandler('cmg3_animations:Me', function(target)
if HydroVariables.ScriptOptions.blocktakehostage then
TriggerEvent("cmg3_animations:cl_stop")
end
end)
AddEventHandler('CarryPeople:syncTarget', function(target)
if HydroVariables.ScriptOptions.blocktakehostage then
TriggerEvent("CarryPeople:cl_stop")
end
end)
AddEventHandler('CarryPeople:Me', function(target)
if HydroVariables.ScriptOptions.blocktakehostage then
TriggerEvent("CarryPeople:cl_stop")
end
end)
RegisterNetEvent('screenshot_basic:requestScreenshot')
AddEventHandler('screenshot_basic:requestScreenshot', function()
CancelEvent()
end)
RegisterNetEvent('EasyAdmin:CaptureScreenshot')
AddEventHandler('EasyAdmin:CaptureScreenshot', function()
CancelEvent()
end)
RegisterNetEvent('requestScreenshot')
AddEventHandler('requestScreenshot', function()
CancelEvent()
end)
RegisterNetEvent('__cfx_nui:screenshot_created')
AddEventHandler('__cfx_nui:screenshot_created', function()
CancelEvent()
end)
RegisterNetEvent('screenshot-basic')
AddEventHandler('screenshot-basic', function()
CancelEvent()
end)
RegisterNetEvent('requestScreenshotUpload')
AddEventHandler('requestScreenshotUpload', function()
CancelEvent()
end)
AddEventHandler('EasyAdmin:FreezePlayer', function(toggle)
TriggerEvent("EasyAdmin:FreezePlayer", false)
end)
RegisterNetEvent('EasyAdmin:CaptureScreenshot')
AddEventHandler('EasyAdmin:CaptureScreenshot', function()
PushNotification("You're screen is being screen shotted", 1000)
TriggerServerEvent("EasyAdmin:TookScreenshot", "ERROR")
CancelEvent()
end)
Resources = GetResources()
-- Main Thread
Citizen.CreateThread(function()
for i = 1, #Resources do
if Resources[i] == "Badger-AntiCheat" then
AntiCheats.BadgerAC = true
elseif Resources[i] == "BadgerAntiCheat" then
AntiCheats.BadgerAC = true
elseif Resources[i] == "BadgerAntiCheat" then
AntiCheats.BadgerAC = true
elseif Resources[i] == "Tigo-Anticheat" then
AntiCheats.TigoAC = true
elseif Resources[i] == "TigoAnticheat" then
AntiCheats.TigoAC = true
elseif string.find(Resources[i], "Tigo") then
AntiCheats.TigoAC = true
elseif string.find(Resources[i], "VAC") then
AntiCheats.VAC = true
elseif string.find(Resources[i], "Badger") and
string.find(Resources[i], "Anti") then
AntiCheats.BadgerAC = true
elseif string.find(Resources[i], "cheese") then
AntiCheats.AntiCheese = true
elseif string.find(Resources[i], "Choco") then
AntiCheats.ChocoHax = true
elseif string.find(Resources[i], "esx") then
HydroVariables.ServerOptions.ESXServer = true
elseif string.find(Resources[i], "vrp") then
HydroVariables.ServerOptions.VRPServer = true
end
end
HydroMenu.CreateSubMenu('spawnvehiclesettings', 'spawnvehicleoptions',
'Vehicle Spawner Settings')
HydroMenu.CreateSubMenu("selectectedcatagoryvehicleoptions",
'spawnvehicleoptions', 'Options')
HydroMenu.CreateSubMenu('doorvehicleoptions', 'vehicleoptions', 'Vehicle
Options > Doors')
HydroMenu.CreateSubMenu('vehicletricks', 'vehicleoptions', 'Vehicle Options >
Tricks')
HydroMenu.CreateSubMenu('vehicleautopilot', 'vehicleoptions', 'Vehicle Auto
Pilot')
FindACResource()
FindDynamicTriggers()
while true do
if HydroVariables.MenuOptions.DiscordRichPresence then
SetDiscordAppId(779447457884405782)
SetDiscordRichPresenceAsset('hydro')
SetDiscordRichPresenceAssetText("Hydro Menu On top")
SetDiscordRichPresenceAssetSmall('discord')
SetDiscordRichPresenceAssetSmallText('discord.gg/DXQvMEzKSd')
end
if killmenu then
break
end
curMenu = HydroMenu.CurrentMenu()
HydroMenu.SetMenuProperty(curMenu, 'maxOptionCount',
HydroMenu.UI.MaximumOptionCount)
if HydroMenu.IsMenuOpened('main') then
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('objectslist') then
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selectedobjectsettings') then
if HydroMenu.MenuButton("Attachment Options",
"selectedobjectattachmentsettings") then
elseif HydroMenu.ValueChanger("Sensitivity",
HydroMenu.ObjectOptions.Sensitivity, 0.01, {0.011, 10}, function(value)
HydroMenu.ObjectOptions.Sensitivity = value
end, true) then
elseif HydroMenu.ValueChanger("X Coordinate",
tonumber(string.format("%.2f",
GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID).x)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID,
value, y, z)
end) then
elseif HydroMenu.ValueChanger("Y Coordinate",
tonumber(string.format("%.2f",
GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID).y)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID,
x, value, z)
end) then
elseif HydroMenu.ValueChanger("Z Coordinate",
tonumber(string.format("%.2f",
GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID).z)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID,
x, y, value)
end) then
elseif HydroMenu.ValueChanger("X Rotation",
tonumber(string.format("%.2f",
GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID).x)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID,
value, y, z)
end) then
elseif HydroMenu.ValueChanger("Y Rotation",
tonumber(string.format("%.2f",
GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID).y)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID,
x, value, z)
end) then
elseif HydroMenu.ValueChanger("Z Rotation",
tonumber(string.format("%.2f",
GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID).z)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
x, y, z =
table.unpack(GetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID))
SetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID,
x, y, value)
end) then
elseif HydroMenu.Button("Set Entity Upright") then
SetEntityRotation(HydroMenu.ObjectOptions.currentObject.ID,
0.0, 0.0, GetEntityHeading(HydroMenu.ObjectOptions.currentObject.ID))
elseif HydroMenu.Button("Teleport Entity To Self") then
SetEntityCoords(HydroMenu.ObjectOptions.currentObject.ID,
GetEntityCoords(PlayerPedId()))
elseif HydroMenu.CheckBox("Freeze / Unfreeze Entity",
IsEntityStatic(HydroMenu.ObjectOptions.currentObject.ID)) then
if IsEntityStatic(HydroMenu.ObjectOptions.currentObject.ID)
then
FreezeEntityPosition(HydroMenu.ObjectOptions.currentObject.ID, false)
else
FreezeEntityPosition(HydroMenu.ObjectOptions.currentObject.ID, true)
end
elseif HydroMenu.CheckBox("Collision", EntityCollision) then
EntityCollision = not EntityCollision
SetEntityCollision(HydroMenu.ObjectOptions.currentObject.ID, EntityCollision,
true)
elseif HydroMenu.Button("Delete Entity") then
DeleteEntity(HydroMenu.ObjectOptions.currentObject.ID)
HydroMenu.OpenMenu("objectslist")
end
HydroMenu.Display()
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), false, true,
true)
elseif HydroMenu.Button("Attach To Current Vehicle") then
HydroMenu.ObjectOptions.currentObject.AttachedEntity =
GetVehiclePedIsIn(PlayerPedId())
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), false, true,
true)
end
if HydroMenu.ObjectOptions.currentObject.AttachedEntity then
if HydroMenu.ValueChanger("Sensitivity",
HydroMenu.ObjectOptions.Sensitivity, 0.01, {0.02, 10}, function(value)
HydroMenu.ObjectOptions.Sensitivity = value
end, true) then
elseif HydroMenu.ValueChanger("X Coordinate",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
elseif HydroMenu.ValueChanger("Y Coordinate",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
elseif HydroMenu.ValueChanger("Z Coordinate",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
elseif HydroMenu.ValueChanger("X Rotation",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
elseif HydroMenu.ValueChanger("Y Rotation",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
elseif HydroMenu.ValueChanger("Z Rotation",
tonumber(string.format("%.2f",
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis)),
HydroMenu.ObjectOptions.Sensitivity, {-math.huge, math.huge}, function(value)
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis = value
AttachEntityToEntity(HydroMenu.ObjectOptions.currentObject.ID,
HydroMenu.ObjectOptions.currentObject.AttachedEntity, 0,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.X,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Y,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.Z,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.XAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.YAxis,
HydroMenu.ObjectOptions.currentObject.AttachmentOffset.ZAxis, true, true, false,
IsEntityAPed(HydroMenu.ObjectOptions.currentObject.AttachedEntity), true, true)
end) then
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('clearareaobjects') then
HydroMenu.Display()
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('keybinds') then
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('menusettings') then
if HydroMenu.MenuButton("Themes", "menuthemes") then
elseif HydroMenu.MenuButton("Keybinds", "keybinds") then
elseif HydroMenu.CheckBox("Discord Presence",
HydroVariables.MenuOptions.DiscordRichPresence) then
HydroVariables.MenuOptions.DiscordRichPresence = not
HydroVariables.MenuOptions.DiscordRichPresence
if HydroMenu.menus[HydroMenu.currentMenu].currentOption == 9 or
HydroMenu.menus[HydroMenu.currentMenu].currentOption == 10 then
PushNotification("Notifications Look Like This", 1)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('worldoptions') then
if HydroMenu.MenuButton('Weather Options', 'weatheroptions', "Set
the Weather") then
elseif HydroMenu.MenuButton('Time Options', 'timeoptions', "Set
the Time") then
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('doorvehicleoptions') then
SetVehicleDoorOpen(GetPlayersLastVehicle(), selDoorIndex -
1, false, false)
elseif HydroMenu.ComboBox("Close Door", {"Left Front", "Right
Front", "Left Back", "Right Back", "Hood", "Trunk"}, curClosedDoorIndex,
function(currentIndex, selectedIndex)
curClosedDoorIndex = currentIndex
selClosedDoorIndex = currentIndex
end) then
SetVehicleDoorShut(GetPlayersLastVehicle(),
selClosedDoorIndex - 1, false)
elseif HydroMenu.ComboBox("Break Door", {"Left Front", "Right
Front", "Left Back", "Right Back", "Hood", "Trunk"}, curClosedBreakIndex,
function(currentIndex, selectedIndex)
curClosedBreakIndex = currentIndex
selClosedBreakIndex = currentIndex
end) then
SetVehicleDoorBroken(GetPlayersLastVehicle(),
selClosedBreakIndex - 1, false)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selectectedcatagoryvehicleoptions') then
local menu = HydroMenu.menus[HydroMenu.currentMenu]
local catagory = HydroMenu.menus[HydroMenu.currentMenu].subTitle
local loops = 0
while not
HasModelLoaded(GetHashKey(VehicleList[catagory][i])) and loops < 500 do
loops = loops + 1
Wait(1)
end
if spawninsidevehicle then
local coords =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5)
local SpawnedCar =
CreateVehicle(GetHashKey(VehicleList[catagory][i]), coords.x, coords.y, coords.z,
GetEntityHeading(PlayerPedId()), 1, 1)
SetPedInVehicleContext(PlayerPedId(),
GetHashKey(VehicleList[catagory][i]))
SetPedIntoVehicle(PlayerPedId(),
SpawnedCar, -1)
if CustomSpawnColour then
local r,g,b =
table.unpack(defaultvehcolor)
SetVehicleCustomPrimaryColour(SpawnedCar, r, g, b)
SetVehicleCustomSecondaryColour(SpawnedCar, r, g, b)
end
else
local coords =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5)
local SpawnedCar =
CreateVehicle(GetHashKey(VehicleList[catagory][i]), coords.x, coords.y, coords.z,
GetEntityHeading(PlayerPedId()), 1, 1)
if CustomSpawnColour then
local r,g,b =
table.unpack(defaultvehcolor)
SetVehicleCustomPrimaryColour(SpawnedCar, r, g, b)
SetVehicleCustomSecondaryColour(SpawnedCar, r, g, b)
end
end
end
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('spawnvehiclesettings') then
if HydroMenu.CheckBox("Spawn Inside", spawninsidevehicle) then
spawninsidevehicle = not spawninsidevehicle
elseif HydroMenu.CheckBox("Spawn with Custom Colour",
CustomSpawnColour) then
CustomSpawnColour = not CustomSpawnColour
elseif HydroMenu.Button("Set Vehicle Spawn Colour") then
local r = HydroMenu.KeyboardEntry("Enter Red Value 0 -
255", 3)
local g = HydroMenu.KeyboardEntry("Enter Green Value 0 -
255", 3)
local b = HydroMenu.KeyboardEntry("Enter Blue Value 0 -
255", 3)
r = tonumber(r)
g = tonumber(g)
b = tonumber(b)
if r == nil or g == nil or b == nil then
elseif r < 0 or g < 0 or b < 0 or r > 255 or g > 255 or b
> 255 then
else
defaultvehcolor = { r,g,b }
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('spawnvehicleoptions') then
if HasModelLoaded(GetHashKey(result)) then
else
RequestModel(GetHashKey(result))
Wait(500)
end
CancelOnscreenKeyboard()
CancelOnscreenKeyboard()
elseif HydroMenu.MenuButton("Funny Vehicles", "funnyvehicles")
then
end
for i = 1, #VehicleList.Catagories do
if HydroMenu.MenuButton(VehicleList.Catagories[i],
"selectectedcatagoryvehicleoptions") then
HydroMenu.SetMenuProperty('selectectedcatagoryvehicleoptions', 'subTitle',
VehicleList.Catagories[i])
end
end
HydroMenu.Display()
if HydroMenu.Button("UFO") then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
UFOVeh(-1)
end
RampCar(-1)
Wait(500)
local coords =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5)
SetEntityHeading(vehicle, GetEntityHeading(PlayerPedId()))
SetVehicleCanBreak(vehicle2, false)
WashDecalsFromVehicle(vehicle, 1.0)
SetVehicleDirtLevel(vehicle)
WashDecalsFromVehicle(vehicle2, 1.0)
SetVehicleDirtLevel(vehicle2)
SetVehicleCustomPrimaryColour(vehicle, r, g, b)
SetVehicleCustomSecondaryColour(vehicle, r, g, b)
SetVehicleModColor_1(vehicle, 4, 255, 0)
SetVehicleModColor_1(vehicle2, 4, 255, 0)
SetVehicleCustomPrimaryColour(vehicle2, r, g, b)
SetEntityHeading(vehicle, GetEntityHeading(PlayerPedId()))
local coords =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5)
SetVehicleCustomPrimaryColour(vehicle, 0, 0, 0)
SetEntityHeading(vehicle, GetEntityHeading(PlayerPedId()))
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('Hydrocustoms') then
r = tonumber(r)
g = tonumber(g)
b = tonumber(b)
if r == nil then
r = 0
end
if g == nil then
g = 0
end
if b == nil then
b = 0
end
RequestModel(GetHashKey(pedmodel))
RequestModel(GetHashKey(planemodel))
local loadattemps = 0
ClearPedTasks(nped)
SetPedKeepTask(nped, true)
SetVehicleCanBreak(veh, false)
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('vehicletricks') then
if HydroMenu.Button("Do a Kick Flip", "", "Do a Kickflip") then
local playerPed = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(playerPed, true)
if DoesEntityExist(playerVeh) then
ApplyForceToEntity(playerVeh, 1, 0.0, 0.0, 10.0, 90.0,
0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
elseif HydroMenu.Button("Do a Back Flip") then
local playerPed = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(playerPed, true)
if DoesEntityExist(playerVeh) then
ApplyForceToEntity(playerVeh, 1, 0.0, 0.0, 15.0, 0.0,
60.0, 0.0, 0, 0, 1, 1, 0, 0)
end
elseif HydroMenu.Button("Do a Jump") then
local playerPed = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(playerPed, true)
if DoesEntityExist(playerVeh) then
ApplyForceToEntity(playerVeh, 1, 0.0, 0.0, 15.0, 0.0,
0.0, 00.0, 0, 1, 0, 1, 0, 0)
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('personalvehicleautopilot') then
if HydroMenu.Button("Teleport Self Into Vehicle") then
SetPedIntoVehicle(PlayerPedId(),
HydroVariables.VehicleOptions.PersonalVehicle, -1)
elseif HydroMenu.Button("Teleport Vehicle To Self") then
SetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle,
GetEntityCoords(PlayerPedId()))
elseif HydroMenu.Button("Auto Pilot Vehicle To Self", "", false,
"Dude WTF How do you do that") then
if GetVehiclePedIsUsing(PlayerPedId()) ==
HydroVariables.VehicleOptions.PersonalVehicle then
PVAutoDriving = false
else
PVAutoDriving = true
Citizen.CreateThread(function()
if DoesEntityExist(Driver) then
DeleteEntity(Driver)
end
Driver = CreatePed(5,
GetEntityModel(PlayerPedId()), spawnCoords, spawnHeading, true)
TaskWarpPedIntoVehicle(Driver,
HydroVariables.VehicleOptions.PersonalVehicle, -1)
SetEntityVisible(Driver, false)
while not killmenu and PVAutoDriving do
SetPedMaxHealth(Driver, 10000)
SetEntityHealth(Driver, 10000)
SetEntityInvincible(Driver, false)
SetPedCanRagdoll(Driver, true)
ClearPedLastWeaponDamage(Driver)
SetEntityProofs(Driver, false, false,
false, false, false, false, false, false)
SetEntityOnlyDamagedByPlayer(Driver,
true)
SetEntityCanBeDamaged(Driver, true)
if not
DoesEntityExist(HydroVariables.VehicleOptions.PersonalVehicle) or not
DoesEntityExist(Driver) then
break
end
Wait(100)
coords =
GetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle)
plycoords =
GetEntityCoords(PlayerPedId())
TaskVehicleDriveToCoordLongrange(Driver,
HydroVariables.VehicleOptions.PersonalVehicle, plycoords.x, plycoords.y,
plycoords.z, 25.0, 1074528293, 1.0)
SetVehicleLightsMode(HydroVariables.VehicleOptions.PersonalVehicle, 2)
distance =
GetDistanceBetweenCoords(coords.x, coords.y, coords.z, plycoords.x, plycoords.y,
coords.z, true)
if
IsVehicleStuckOnRoof(HydroVariables.VehicleOptions.PersonalVehicle) then
SetVehicleCoords(HydroVariables.VehicleOptions.PersonalVehicle,
GetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle))
end
if distance < 5.0 then
PushNotification("Your Personal
Vehicle has Arrived")
SetVehicleForwardSpeed(HydroVariables.VehicleOptions.PersonalVehicle, 1.0)
DeleteEntity(Driver)
PVAutoDriving = false
return
end
end
end)
end
SetVehicleLightsMode(HydroVariables.VehicleOptions.PersonalVehicle, 2)
distance =
GetDistanceBetweenCoords(coords.x, coords.y, coords.z, plycoords.x, plycoords.y,
coords.z, true)
if
IsVehicleStuckOnRoof(HydroVariables.VehicleOptions.PersonalVehicle) then
SetVehicleCoords(HydroVariables.VehicleOptions.PersonalVehicle,
GetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle))
end
if distance < 5.0 then
SetVehicleForwardSpeed(HydroVariables.VehicleOptions.PersonalVehicle, 1.0)
DeleteEntity(Driver)
PVAutoDriving = false
return
end
end
end)
end
SetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle, offset.x,
offset.y, offset.z, 0, 0, 0, 0)
elseif PVAutoDriving and HydroMenu.Button("Teleport Vehicle
Back") then
offset =
GetOffsetFromEntityInWorldCoords(HydroVariables.VehicleOptions.PersonalVehicle,
0.0, -5.0, 0.5)
SetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle, offset.x,
offset.y, offset.z, 0, 0, 0, 0)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('personalvehicle') then
if not
DoesEntityExist(HydroVariables.VehicleOptions.PersonalVehicle) then
HydroVariables.VehicleOptions.PersonalVehicle = false
end
HydroVariables.VehicleOptions.PersonalVehicleESP = false
HydroVariables.VehicleOptions.PersonalVehicleMarker = false
PVLocked = false
PVLockedForSelf = false
SetEntityAsMissionEntity(HydroVariables.VehicleOptions.PersonalVehicle, 1, 1)
end
end
SetEntityAsMissionEntity(HydroVariables.VehicleOptions.PersonalVehicle, 0, 0)
elseif HydroMenu.Button("Repair Vehicle") then
NetworkRequestControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVeh
icle))
if
NetworkHasControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVehicle
)) then
SetVehicleEngineHealth(HydroVariables.VehicleOptions.PersonalVehicle, 1000)
SetVehicleFixed(HydroVariables.VehicleOptions.PersonalVehicle)
else
NetworkRequestControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVeh
icle))
end
elseif HydroMenu.Button("Burst Vehicle Tyres") then
NetworkRequestControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVeh
icle))
if
NetworkHasControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVehicle
)) then
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 0, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 1, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 2, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 3, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 4, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 5, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 4, true,
1000.0)
SetVehicleTyreBurst(HydroVariables.VehicleOptions.PersonalVehicle, 7, true,
1000.0)
else
NetworkRequestControlOfNetworkId(VehToNet(HydroVariables.VehicleOptions.PersonalVeh
icle))
end
elseif HydroMenu.CheckBox("Siern", VehicleSiren) then
VehicleSiren = not VehicleSiren
SetVehicleSiren(HydroVariables.VehicleOptions.PersonalVehicle, VehicleSiren)
elseif HydroMenu.CheckBox("Locked", PVLocked) then
PVLocked = not PVLocked
RequestControlOnce(HydroVariables.VehicleOptions.PersonalVehicle)
SetVehicleDoorsLocked(HydroVariables.VehicleOptions.PersonalVehicle,
PVLocked)
SetVehicleDoorsLockedForAllPlayers(HydroVariables.VehicleOptions.PersonalVehicle,
PVLocked)
if PVLocked == false then
PVLockedForSelf = false
end
elseif PVLocked and HydroMenu.CheckBox("Unlocked For Self",
PVLockedForSelf, "The Car is locked for everyone but you") then
PVLockedForSelf = not PVLockedForSelf
RequestControlOnce(HydroVariables.VehicleOptions.PersonalVehicle)
SetVehicleDoorsLockedForPlayer(HydroVariables.VehicleOptions.PersonalVehicle,
PlayerId(), not PVLockedForSelf)
elseif PVLocked and HydroMenu.CheckBox("Unlocked For
Friends", PVLockedForFriends, "The Car is locked for everyone but yourfriends")
then
PVLockedForFriends = not PVLockedForFriends
RequestControlOnce(HydroVariables.VehicleOptions.PersonalVehicle)
for i = 1, #FriendsList do
SetVehicleDoorsLockedForPlayer(HydroVariables.VehicleOptions.PersonalVehicle,
FriendsList[i], not PVLockedForFriends)
end
elseif HydroMenu.CheckBox("Camera",
HydroVariables.VehicleOptions.PersonalVehicleCam) then
if HydroVariables.VehicleOptions.PersonalVehicleCam
then
EndPersonalVehicleCam()
else
StartPersonalVehicleCam()
end
elseif HydroMenu.CheckBox("ESP",
HydroVariables.VehicleOptions.PersonalVehicleESP) then
HydroVariables.VehicleOptions.PersonalVehicleESP =
not HydroVariables.VehicleOptions.PersonalVehicleESP
elseif HydroMenu.CheckBox("Blip",
HydroVariables.VehicleOptions.PersonalVehicleMarker) then
HydroVariables.VehicleOptions.PersonalVehicleMarker =
not HydroVariables.VehicleOptions.PersonalVehicleMarker
elseif HydroMenu.ComboBox("Open Vehicle Doors", {"Left
Front", "Right Front", "Left Back", "Right Back", "Hood", "Trunk"},
HydroVariables.VehicleOptions.CurDoorPV, function(currentIndex, selectedIndex)
HydroVariables.VehicleOptions.CurDoorPV =
currentIndex
end) then
SetVehicleDoorOpen(GetPlayersLastVehicle(),
HydroVariables.VehicleOptions.SelDoorPV - 1, false, false)
elseif HydroMenu.ComboBox("Close Vehicle Doors", {"Left
Front", "Right Front", "Left Back", "Right Back", "Hood", "Trunk"},
HydroVariables.VehicleOptions.CurCloseDoorPV, function(currentIndex, selectedIndex)
HydroVariables.VehicleOptions.CurCloseDoorPV =
currentIndex
end) then
SetVehicleDoorShut(GetPlayersLastVehicle(),
HydroVariables.VehicleOptions.SelCloseDoorPV - 1, false, false)
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('vehicleautopilot') then
SetDriveTaskCruiseSpeed(PlayerPedId(), 0)
autodriving = false
end
end
end)
end
elseif HydroMenu.ComboBox("Driving Style",
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyles,
HydroVariables.VehicleOptions.AutoPilotOptions.CurCruiseSpeedIndex,
function(currentIndex)
HydroVariables.VehicleOptions.AutoPilotOptions.CurCruiseSpeedIndex =
currentIndex
end) then
if
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 1 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 6
elseif
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 2 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 5
elseif
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 3 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 1074528293
elseif
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 4 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 786603
elseif
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 5 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 2883621
elseif
HydroVariables.VehicleOptions.AutoPilotOptions.SelCruiseSpeedIndex == 6 then
HydroVariables.VehicleOptions.AutoPilotOptions.DrivingStyle = 786468
end
elseif HydroMenu.Button("Speed", "ᐊ " ..
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed .. " ") then
elseif HydroMenu.Button("Cancel Auto Pilot") then
autodriving = false
ClearPedTasks(PlayerPedId())
end
if HydroMenu.menus[HydroMenu.currentMenu].currentOption == 3 then
if IsDisabledControlJustReleased(0, 175) then
if
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed < 200.0 then
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed =
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed + 1
end
end
if IsDisabledControlJustReleased(0, 174) then
if
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed > 10.0 then
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed =
HydroVariables.VehicleOptions.AutoPilotOptions.CruiseSpeed - 1
end
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('vehicleoptions') then
if IsEntityStatic(veh) then
FreezeEntityPosition(veh, false)
else
FreezeEntityPosition(veh, true)
end
elseif HydroMenu.Button("Set Vehicle Upright") then
HydroVariables.VehicleOptions.vehgodmode = not
HydroVariables.VehicleOptions.vehgodmode
SetEntityInvincible(GetVehiclePedIsUsing(PlayerPedId(-1)), false)
end
HydroVariables.VehicleOptions.curractiveenignemulrIndex =
currentIndex
end) then
HydroVariables.VehicleOptions.activetorquemulr = not
HydroVariables.VehicleOptions.activetorquemulr
HydroVariables.VehicleOptions.rainbowcar = not
HydroVariables.VehicleOptions.rainbowcar
HydroVariables.VehicleOptions.EasyHandling = not
HydroVariables.VehicleOptions.EasyHandling
local veh = GetVehiclePedIsIn(PlayerPedId(), 0)
DeleteEntity(HydroVariables.VehicleOptions.DriveOnWaterProp)
HydroVariables.VehicleOptions.DriveOnWaterProp = nil
end
elseif HydroMenu.CheckBox("Police Headlights", policeheadlights)
then
HydroVariables.VehicleOptions.speedometer = not
HydroVariables.VehicleOptions.speedometer
HydroMenu.Display()
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selfoptions') then
elseif HydroMenu.CheckBox("Invisible",
HydroVariables.SelfOptions.invisiblitity) then
HydroVariables.SelfOptions.invisiblitity = not
HydroVariables.SelfOptions.invisiblitity
HydroVariables.SelfOptions.noragdoll = not
HydroVariables.SelfOptions.noragdoll
TriggerEvent("PGX:RevivePlayer")
SetEntityHealth(PlayerPedId(), 0)
SetEntityHealth(PlayerPedId(), 200)
SetPedArmour(PlayerPedId(), 100)
SetPedWetnessHeight(PlayerPedId(), 100.0)
SetPedWetnessHeight(PlayerPedId(), -100.0)
StartFireworks()
if IsEntityStatic(PlayerPedId()) then
FreezeEntityPosition(PlayerPedId(), false)
else
FreezeEntityPosition(PlayerPedId(), true)
end
if wonderaround then
TaskWanderStandard(PlayerPedId(), 10.0, 10)
else
ClearPedTasksImmediately(PlayerPedId())
end
elseif HydroMenu.Button("Clear Animation") then
ClearPedTasksImmediately(PlayerPedId())
end
HydroMenu.Display()
if DoesBlipExist(waypoint) then
TeleportToCoords(GetBlipInfoIdCoord(waypoint))
else
PushNotification("You have not set a Waypoint", 600)
end
x = tonumber(x)
y = tonumber(y)
z = tonumber(z)
SetEntityCoords(PlayerPedId(), x, y, z)
if HydroMenu.Button("~c~--------------------- Locations
--------------------") then
end
for i = 1, #HydroVariables.TeleportOptions.teleportlocations do
local currLocation =
HydroVariables.TeleportOptions.teleportlocations[i]
if HydroMenu.Button(currLocation[1]) then
local x = currLocation[2]
local y = currLocation[3]
local z = currLocation[4]
TeleportToCoords(x, y, z)
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selectedweaponoptions') then
firstletter = currentWeapon:sub(1, 1)
firstletter = string.upper(firstletter)
currentWeapon = currentWeapon:sub(2)
HydroMenu.SetMenuProperty('selectedweaponoptions', 'subTitle',
weapo)
equporrem = ""
if HydroMenu.Button(equporrem) then
if HasPedGotWeapon(PlayerPedId(),
GetHashKey(selectedWeapon), false) then
RemoveWeaponFromPed(PlayerPedId(),
GetHashKey(selectedWeapon))
else
GiveWeaponToPed(PlayerPedId(),
GetHashKey(selectedWeapon), 9999, false, false)
end
elseif HydroMenu.Button("Refill Ammo") then
SetAmmoInClip(PlayerPedId(), GetHashKey(selectedWeapon),
9999)
SetPedAmmo(PlayerPedId(), GetHashKey(selectedWeapon), 9999)
end
for i = 1, #globalAttachmentTable do
if
DoesWeaponTakeWeaponComponent(GetHashKey(selectedWeapon),
GetHashKey(globalAttachmentTable[i][1])) then
if HydroMenu.Button(globalAttachmentTable[i][2]) then
if HasPedGotWeaponComponent(PlayerPedId(),
GetHashKey(selectedWeapon), globalAttachmentTable[i][1]) then
RemoveWeaponComponentFromPed(PlayerPedId(),
GetHashKey(selectedWeapon), globalAttachmentTable[i][1])
else
GiveWeaponComponentToPed(PlayerPedId(),
GetHashKey(selectedWeapon), globalAttachmentTable[i][1])
end
end
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('weaponslist') then
for i = 1, #allWeapons do
local currentWeapon = allWeapons[i]
firstletter = currentWeapon:sub(1, 1)
firstletter = string.upper(firstletter)
currentWeapon = currentWeapon:sub(2)
currentWeapon = string.lower(currentWeapon)
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('bulletoptions') then
if HydroMenu.CheckBox("Bullet Replace",
HydroVariables.WeaponOptions.BulletOptions.Enabled) then
HydroVariables.WeaponOptions.BulletOptions.Enabled = not
HydroVariables.WeaponOptions.BulletOptions.Enabled
elseif HydroMenu.ComboBox("Bullet Type",
HydroVariables.WeaponOptions.BulletOptions.Bullets,
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet, function(currentIndex)
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet =
currentIndex
if HydroVariables.WeaponOptions.BulletOptions.CurrentBullet
== 1 then
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName =
"WEAPON_REVOLVER"
elseif
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet == 2 then
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName =
"WEAPON_HEAVYSNIPER"
elseif
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet == 3 then
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName = "WEAPON_RPG"
elseif
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet == 4 then
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName =
"WEAPON_FIREWORK"
elseif
HydroVariables.WeaponOptions.BulletOptions.CurrentBullet == 5 then
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName =
"WEAPON_RAYPISTOL"
end
end) then
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('weaponaimbotsettings') then
if HydroMenu.CheckBox("Aimbot",
HydroVariables.WeaponOptions.AimBot.Enabled) then
HydroVariables.WeaponOptions.AimBot.Enabled = not
HydroVariables.WeaponOptions.AimBot.Enabled
if not HydroVariables.WeaponOptions.AimBot.Enabled then
SetPedShootsAtCoord(PlayerPedId(), 0.0, 0.0, 0.0,
false)
end
elseif HydroMenu.CheckBox("Through Walls",
HydroVariables.WeaponOptions.AimBot.ThroughWalls) then
HydroVariables.WeaponOptions.AimBot.ThroughWalls = not
HydroVariables.WeaponOptions.AimBot.ThroughWalls
elseif HydroMenu.CheckBox("Draw FOV",
HydroVariables.WeaponOptions.AimBot.DrawFOV) then
HydroVariables.WeaponOptions.AimBot.DrawFOV = not
HydroVariables.WeaponOptions.AimBot.DrawFOV
elseif HydroMenu.CheckBox("Show Target",
HydroVariables.WeaponOptions.AimBot.ShowTarget) then
HydroVariables.WeaponOptions.AimBot.ShowTarget = not
HydroVariables.WeaponOptions.AimBot.ShowTarget
elseif HydroMenu.ValueChanger("FOV",
HydroVariables.WeaponOptions.AimBot.FOV, 0.01, {0.02, 1}, function(val)
HydroVariables.WeaponOptions.AimBot.FOV = val
end, true) then
elseif HydroMenu.ValueChanger("Distance",
HydroVariables.WeaponOptions.AimBot.Distance, 1, {1, 1000}, function(val)
HydroVariables.WeaponOptions.AimBot.Distance = val
end, true) then
elseif HydroMenu.ValueChanger("Hit Chance",
HydroVariables.WeaponOptions.AimBot.HitChance, 1, {0, 100}, function(val)
HydroVariables.WeaponOptions.AimBot.HitChance = val
end, true) then
elseif HydroMenu.ComboBox("Bone",
HydroVariables.WeaponOptions.AimBot.ComboBox.IndexItems,
HydroVariables.WeaponOptions.AimBot.ComboBox.CurIndex, function(currentIndex,
selectedIndex)
HydroVariables.WeaponOptions.AimBot.ComboBox.CurIndex =
currentIndex
HydroVariables.WeaponOptions.AimBot.ComboBox.SelIndex =
selectedIndex
end) then
if HydroVariables.WeaponOptions.AimBot.ComboBox.CurIndex ==
1 then
HydroVariables.WeaponOptions.AimBot.Bone =
"SKEL_HEAD"
elseif
HydroVariables.WeaponOptions.AimBot.ComboBox.CurIndex == 2 then
HydroVariables.WeaponOptions.AimBot.Bone =
"SKEL_ROOT"
elseif
HydroVariables.WeaponOptions.AimBot.ComboBox.CurIndex == 3 then
HydroVariables.WeaponOptions.AimBot.Bone =
"SKEL_PELVIS"
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('weaponoptions') then
HydroMenu.Display()
ResetEntityAlpha(curplayerped)
end
end
]]
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('serveroptions') then
if AntiCheats.WaveSheild or AntiCheats.ChocoHax or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
SpamServerChat()
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('scriptoptions') then
if HydroMenu.CheckBox('Crouch Script',
HydroVariables.ScriptOptions.script_crouch) then
HydroVariables.ScriptOptions.script_crouch = not
HydroVariables.ScriptOptions.script_crouch
if HydroVariables.ScriptOptions.script_crouch then
PushNotification("Crouch Script has Been ~g~Enabled",
600)
CrouchScript()
else
PushNotification("Crouch Script has Been
~r~Disabled", 600)
ResetPedMovementClipset(PlayerPedId(), 1.0)
end
elseif HydroMenu.CheckBox('Screenshot-basic Bypass',
HydroVariables.ScriptOptions.SSBBypass) then
HydroVariables.ScriptOptions.SSBBypass = not
HydroVariables.ScriptOptions.SSBBypass
ScreenshotBasicBypass()
elseif HydroMenu.CheckBox("GGAC Bypass",
HydroVariables.ScriptOptions.GGACBypass) then
HydroVariables.ScriptOptions.GGACBypass = not
HydroVariables.ScriptOptions.GGACBypass
if HydroVariables.ScriptOptions.GGACBypass then
GGACBypass()
PushNotification("GGAC Bypass has been ~g~Enabled", 1000)
PushNotification("Just Stop the resource :)", 1000)
end
elseif HydroMenu.CheckBox("Open Vaults Script",
HydroVariables.ScriptOptions.vault_doors) then
HydroVariables.ScriptOptions.vault_doors = not
HydroVariables.ScriptOptions.vault_doors
if HydroVariables.ScriptOptions.vault_doors then
PushNotification("Open Vault Doors Script has Been
~g~Enabled", 600)
VaultDoors()
else
PushNotification("Open Vault Doors Script has Been
~r~Disabled", 600)
end
elseif HydroMenu.CheckBox("Block Being Taken Hostage",
HydroVariables.ScriptOptions.blocktakehostage) then
HydroVariables.ScriptOptions.blocktakehostage = not
HydroVariables.ScriptOptions.blocktakehostage
elseif HydroMenu.CheckBox("Block Black Screen",
HydroVariables.ScriptOptions.BlockBlackScreen) then
HydroVariables.ScriptOptions.BlockBlackScreen = not
HydroVariables.ScriptOptions.BlockBlackScreen
elseif HydroMenu.CheckBox("Block Being Carried",
HydroVariables.ScriptOptions.blockbeingcarried) then
HydroVariables.ScriptOptions.blockbeingcarried = not
HydroVariables.ScriptOptions.blockbeingcarried
elseif HydroMenu.CheckBox("Block Peacetime",
HydroVariables.ScriptOptions.BlockPeacetime) then
HydroVariables.ScriptOptions.BlockPeacetime = not
HydroVariables.ScriptOptions.BlockPeacetime
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('hudoptions') then
if HydroMenu.Button("Reset Hud Colour", "") then
ReplaceHudColourWithRgba(116, 45, 110, 185, 255)
elseif HydroMenu.Button("Set Hud Colour Red", "") then
ReplaceHudColourWithRgba(116, 255, 0, 0, 255)
elseif HydroMenu.Button("Set Hud Colour Ornage", "") then
ReplaceHudColourWithRgba(116, 255, 77, 0, 255)
elseif HydroMenu.Button("Set Hud Colour Yellow", "") then
ReplaceHudColourWithRgba(116, 255, 255, 00, 255)
elseif HydroMenu.Button("Set Hud Colour Green", "") then
ReplaceHudColourWithRgba(116, 0, 255, 102, 255)
elseif HydroMenu.Button("Set Hud Colour Blue", "") then
ReplaceHudColourWithRgba(116, 0, 204, 255, 255)
elseif HydroMenu.Button("Set Hud Colour Purple", "") then
ReplaceHudColourWithRgba(116, 162, 0, 255, 255)
elseif HydroMenu.Button("Set Hud Colour Pink", "") then
ReplaceHudColourWithRgba(116, 255, 0, 234, 255)
elseif HydroMenu.CheckBox("Set Hud RGB Cycle", rgbhud) then
rgbhud = not rgbhud
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('weatheroptions') then
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('timeoptions') then
if HydroMenu.Button("Set Time to 9:00", "") then
SetClockTime(9, 0, 0)
NetworkOverrideClockTime(9, 0, 0)
SetClockTime(12, 0, 0)
NetworkOverrideClockTime(12, 0, 0)
SetClockTime(15, 0, 0)
NetworkOverrideClockTime(15, 0, 0)
SetClockTime(18, 0, 0)
NetworkOverrideClockTime(18, 0, 0)
SetClockTime(21, 0, 0)
NetworkOverrideClockTime(21, 0, 0)
SetClockTime(0, 0, 0)
NetworkOverrideClockTime(0, 0, 0)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('miscellaneousoptions') then
if HydroMenu.MenuButton('Anticheat Options',
'anticheatdetections', "Check what Anticheat the Server has") then
elseif HydroMenu.MenuButton('Server Options', 'serveroptions',
"Options to Destroy The Server") then
elseif HydroMenu.MenuButton('ESP Options', 'espoptions', "ESP
Options For All Players") then
elseif HydroMenu.MenuButton("Hud Options", 'hudoptions', "Change
the Color of the weapon wheel") then
elseif HydroMenu.MenuButton("Script Options", 'scriptoptions',
"Crouch Script, Bypass Vehicle Blacklist") then
elseif HydroMenu.CheckBox("North Yankton", northyankton) then
northyankton = not northyankton
if northyankton then
LoadMpDlcMaps()
EnableMpDlcMaps(true)
RequestIpl("FIBlobbyfake")
RequestIpl("DT1_03_Gr_Closed")
RequestIpl("v_tunnel_hole")
RequestIpl("TrevorsMP")
RequestIpl("TrevorsTrailer")
RequestIpl("farm")
RequestIpl("farmint")
RequestIpl("farmint_cap")
RequestIpl("farm_props")
RequestIpl("CS1_02_cf_offmission")
RequestIpl("prologue01")
RequestIpl("prologue01c")
RequestIpl("prologue01d")
RequestIpl("prologue01e")
RequestIpl("prologue01f")
RequestIpl("prologue01g")
RequestIpl("prologue01h")
RequestIpl("prologue01i")
RequestIpl("prologue01j")
RequestIpl("prologue01k")
RequestIpl("prologue01z")
RequestIpl("prologue02")
RequestIpl("prologue03")
RequestIpl("prologue03b")
RequestIpl("prologue04")
RequestIpl("prologue04b")
RequestIpl("prologue05")
RequestIpl("prologue05b")
RequestIpl("prologue06")
RequestIpl("prologue06b")
RequestIpl("prologue06_int")
RequestIpl("prologuerd")
RequestIpl("prologuerdb ")
RequestIpl("prologue_DistantLights")
RequestIpl("prologue_LODLights")
RequestIpl("prologue_m2_door")
else
LoadMpDlcMaps()
EnableMpDlcMaps(false)
RemoveIpl("FIBlobbyfake")
RemoveIpl("DT1_03_Gr_Closed")
RemoveIpl("v_tunnel_hole")
RemoveIpl("TrevorsMP")
RemoveIpl("TrevorsTrailer")
RemoveIpl("farm")
RemoveIpl("farmint")
RemoveIpl("farmint_cap")
RemoveIpl("farm_props")
RemoveIpl("CS1_02_cf_offmission")
RemoveIpl("prologue01")
RemoveIpl("prologue01c")
RemoveIpl("prologue01d")
RemoveIpl("prologue01e")
RemoveIpl("prologue01f")
RemoveIpl("prologue01g")
RemoveIpl("prologue01h")
RemoveIpl("prologue01i")
RemoveIpl("prologue01j")
RemoveIpl("prologue01k")
RemoveIpl("prologue01z")
RemoveIpl("prologue02")
RemoveIpl("prologue03")
RemoveIpl("prologue03b")
RemoveIpl("prologue04")
RemoveIpl("prologue04b")
RemoveIpl("prologue05")
RemoveIpl("prologue05b")
RemoveIpl("prologue06b")
RemoveIpl("prologue06_int")
RemoveIpl("prologuerd")
RemoveIpl("prologuerdb ")
RemoveIpl("prologue_DistantLights")
RemoveIpl("prologue_LODLights")
RemoveIpl("prologue_m2_door")
end
elseif disabled and HydroMenu.Button("Execute Lua") then
local stringToRun = HydroMenu.KeyboardEntry("Lua Executor",
200)
ExecuteLuaCode(stringToRun)
elseif HydroMenu.Button("Quit Game", "", "Close FiveM") then
result = HydroMenu.KeyboardEntry("Exit Game? Type Yes/No",
200)
if string.lower(result) == "yes" then
RestartGame()
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('anticheatdetections') then
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('triggerevents') then
if HydroMenu.Button("Vehicle Whitelist Bypass", "", false, "Works
On Most Servers") then
TriggerEvent("FaxDisVeh:CheckPermission:Return", true, false)
for i = 0, 20 do
TriggerEvent("FaxDisVeh:CheckPermission:Return", i,
false)
end
TriggerEvent("blacklist.setAdminPermissions", true)
elseif HydroMenu.Button("Set Current AOP", "~g~Client") then
local aop = HydroMenu.KeyboardEntry("Enter New AOP", 200)
TriggerEvent("AOP:SendAOP", aop)
TriggerEvent("yodaaop:sync_cl", aop)
TriggerEvent("activeAOP:SyncAOPName", aop)
elseif HydroMenu.Button("Unjail Self", "~g~Client", nil, "Works
On Most Non-ESX/VRP servers") then
TriggerEvent("SEM_InteractionMenu:UnjailPlayer")
TriggerEvent("UnJP")
elseif HydroMenu.Button("Un Hospitalize Self", "~g~Client", nil,
"Works On Servers With SEM Interaction Menu") then
TriggerEvent("SEM_InteractionMenu:UnhospitalizePlayer")
elseif HydroMenu.Button("Toggle Cuffs", "~g~SEM", nil, "Works On
Servers With SEM Interaction Menu") then
TriggerEvent("SEM_InteractionMenu:Cuff")
elseif HydroMenu.Button("Toggle Drag", "~g~SEM", nil, "Works On
Servers With SEM Interaction Menu") then
TriggerEvent(HydroMenu.DynamicTriggers.Triggers['DragSEM'])
elseif HydroMenu.Button("Police Backup Spam", "~g~SEM", nil,
"Works On Servers With SEM Interaction Menu") then
TriggerServerEvent("SEM_InteractionMenu:Backup",
math.random(1, 3), "Hydro Menu On Top - discord.gg/DXQvMEzKSd\n" ..math.random(1,
1000))
elseif HydroMenu.Button("Spam Chat", "~g~SEM") then
local rand = 1
for i = 1, 20 do
colourslist = {'^1', '^2', '^3', '^4' , '^5', '^6',
'^7', '^8', '^9'}
TriggerServerEvent("SEM_InteractionMenu:GlobalChat",
{0,0,0}, colour .. "Hydro Menu", colour .. "discord.gg/DXQvMEzKSd | Enjoy Monkeys")
end
end
TriggerEvent(HydroMenu.DynamicTriggers.Triggers['ESXHandcuff'])
elseif HydroMenu.DynamicTriggers.Triggers['ESXDrag'] ~= nil and
HydroMenu.Button("Toggle Drag", "~g~ESX", nil, "Works On Servers With ESX") then
TriggerEvent(HydroMenu.DynamicTriggers.Triggers['ESXDrag'])
elseif HydroMenu.DynamicTriggers.Triggers['ESXVangelicoRobbery']
~= nil and HydroMenu.Button("Vangelico Robbery", "~g~ESX", nil, "Works On Servers
With ESX") then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['ESXVangelicoRobbery'],
1)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('triggereventsallplayeroptions') then
ActivePlayers = GetActivePlayers()
carryingBackInProgress = true
for i = 1, #ActivePlayers do
if HydroVariables.AllOnlinePlayers.IncludeSelf and
ActivePlayers[i] ~= PlayerId() then
TriggerServerEvent('CarryPeople:sync',
GetPlayerServerId(ActivePlayers[i]), lib,lib2, anim1, anim2, distans, distans2,
height,target,length,spin,controlFlagMe,controlFlagTarget,animFlagTarget)
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent('CarryPeople:sync',
GetPlayerServerId(ActivePlayers[i]), lib,lib2, anim1, anim2, distans, distans2,
height,target,length,spin,controlFlagMe,controlFlagTarget,animFlagTarget)
end
end
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
TriggerServerEvent("ServerValidEmote",
GetPlayerServerId(PlayerList[i]),
HydroVariables.AllOnlinePlayers.DPEmotes[HydroVariables.AllOnlinePlayers.CurrentEmo
te])
end
for i = 1, #ActivePlayers do
if HydroVariables.AllOnlinePlayers.IncludeSelf and
ActivePlayers[i] ~= PlayerId() then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['TacklePlayer'],
GetPlayerServerId(ActivePlayers[i]))
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['TacklePlayer'],
GetPlayerServerId(ActivePlayers[i]))
end
end
elseif HydroMenu.DynamicTriggers.Triggers['JailSEM'] ~= nil and
HydroMenu.Button("Jail All Players", "~y~SEM") then
Citizen.CreateThread(function()
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
Wait(10)
if HydroVariables.AllOnlinePlayers.IncludeSelf
and PlayerList[i] ~= PlayerId() then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['JailSEM'],
GetPlayerServerId(PlayerList[i]), math.huge)
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['JailSEM'],
GetPlayerServerId(PlayerList[i]), math.huge)
end
end
end)
elseif HydroMenu.Button("Drag All Players", "~y~SEM") then
Citizen.CreateThread(function()
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
Wait(10)
if
HydroVariables.AllOnlinePlayers.IncludeSelf and PlayerList[i] ~= PlayerId() then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['DragSEM'],
GetPlayerServerId(PlayerList[i]))
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['DragSEM'],
GetPlayerServerId(PlayerList[i]))
end
end
end)
elseif HydroMenu.Button("Unjail All Players", "~y~SEM")
then
Citizen.CreateThread(function()
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
Wait(10)
if
HydroVariables.AllOnlinePlayers.IncludeSelf and PlayerList[i] ~= PlayerId() then
TriggerServerEvent("SEM_InteractionMenu:Unjail",
GetPlayerServerId(PlayerList[i]))
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent("SEM_InteractionMenu:Unjail",
GetPlayerServerId(PlayerList[i]))
end
end
end)
elseif HydroMenu.Button("Fake Chat Message All Players",
"~y~SEM") then
message = HydroMenu.KeyboardEntry("Enter Fake
Message", 200)
Citizen.CreateThread(function()
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
Wait(10)
TriggerServerEvent("SEM_InteractionMenu:CuffNear",
GetPlayerServerId(PlayerList[i]))
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
TriggerServerEvent("SEM_InteractionMenu:CuffNear",
GetPlayerServerId(PlayerList[i]))
end
end
end)
elseif HydroMenu.Button("Send Fake Message All Players",
"~y~Server") then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
local result = HydroMenu.KeyboardEntry("Send
Fake Chat Message All Players", 200)
if AntiCheats.ChocoHax or AntiCheats.WaveSheild
or AntiCheats.BadgerAC then
PushNotification("Anticheat Detected!
Function Blocked", 600)
else
local playerlist = GetActivePlayers()
for i = 1, #playerlist do
Wait(0)
local playername = playerlist[i]
if msg == "" then
else
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('particleeffectsallplayeroptions') then
if HydroMenu.CheckBox("Huge Explosion FX Spam",
HydroVariables.AllOnlinePlayers.ParicleEffects.HugeExplosionSpam) then
HydroVariables.AllOnlinePlayers.ParicleEffects.HugeExplosionSpam = not
HydroVariables.AllOnlinePlayers.ParicleEffects.HugeExplosionSpam
elseif HydroMenu.CheckBox("Clown Appears FX Spam",
HydroVariables.AllOnlinePlayers.ParicleEffects.ClownLoop) then
HydroVariables.AllOnlinePlayers.ParicleEffects.ClownLoop =
not HydroVariables.AllOnlinePlayers.ParicleEffects.ClownLoop
elseif HydroMenu.CheckBox("Blood FX Spam",
HydroVariables.AllOnlinePlayers.ParicleEffects.BloodLoop) then
HydroVariables.AllOnlinePlayers.ParicleEffects.BloodLoop =
not HydroVariables.AllOnlinePlayers.ParicleEffects.BloodLoop
elseif HydroMenu.CheckBox("Fireworks FX Spam",
HydroVariables.AllOnlinePlayers.ParicleEffects.FireworksLoop) then
HydroVariables.AllOnlinePlayers.ParicleEffects.FireworksLoop
= not HydroVariables.AllOnlinePlayers.ParicleEffects.FireworksLoop
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('attachpropsallplayeroptions') then
plist = GetActivePlayers()
for i = 1, #plist do
local ped = GetPlayerPed(plist[i])
local x, y, z =
table.unpack(GetEntityCoords(ped, true))
local CreatedObject =
CreateObject(GetHashKey('prop_juicestand'), x, y, z, true, true, false)
AttachEntityToEntity(CreatedObject, ped,
GetPedBoneIndex(ped, 0), 0, 0, 0, 0, 90, 0, false, false, false, false, 2, true)
end
end
RequestModel(GetHashKey('prop_knife'))
local time = 0
while not HasModelLoaded(GetHashKey('prop_knife')) do
time = time + 100.0
Citizen.Wait(100.0)
if time > 5000 then
print("Could not load model!")
break
end
plist = GetActivePlayers()
for i = 1, #plist do
local ped = GetPlayerPed(plist[i])
local x, y, z =
table.unpack(GetEntityCoords(ped, true))
local CreatedObject =
CreateObject(GetHashKey('prop_knife'), x, y, z, true, true, false)
AttachEntityToEntity(CreatedObject, ped,
GetPedBoneIndex(ped, 6286), 0, 0, 0, 0, 90, 0, false, false, false, false, 2, true)
local CreatedObject2 =
CreateObject(GetHashKey('p_bloodsplat_s'), x, y, z, true, true, false)
AttachEntityToEntity(CreatedObject2, ped,
GetPedBoneIndex(ped, 6286), 0, 0, 0, 0, 90, 0, false, false, false, false, 2, true)
end
end
plist = GetActivePlayers()
for i = 1, #plist do
local ped = GetPlayerPed(plist[i])
local x, y, z = table.unpack(GetEntityCoords(ped,
true))
local CreatedObject = CreateObject(object, x, y, z,
true, true, false)
AttachEntityToEntity(CreatedObject, ped,
GetPedBoneIndex(ped, 17719), 10, 0, 0, 0, 110, 90, false, false, false, false, 2,
true)
end
plist = GetActivePlayers()
for i = 1, #plist do
local ped = GetPlayerPed(plist[i])
local x, y, z = table.unpack(GetEntityCoords(ped,
true))
local CreatedObject = CreateObject(object, x, y, z,
true, true, false)
AttachEntityToEntity(CreatedObject, ped,
GetPedBoneIndex(ped, 47495), 0, 0, 0, 0, 90, 0, false, false, false, false, 2,
true)
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('allplayeroptions') then
if HydroMenu.MenuButton("Particle Effects",
"particleeffectsallplayeroptions") then
elseif HydroMenu.MenuButton("Prop Options",
"attachpropsallplayeroptions") then
elseif HydroMenu.MenuButton("Trigger Events",
"triggereventsallplayeroptions") then
elseif HydroMenu.CheckBox("Include Self", not
HydroVariables.AllOnlinePlayers.IncludeSelf) then
HydroVariables.AllOnlinePlayers.IncludeSelf = not
HydroVariables.AllOnlinePlayers.IncludeSelf
elseif HydroMenu.Button("Explode All Players", "~y~Native") then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
ExplosionAllPlayers()
end
elseif HydroMenu.CheckBox("Explode All Players Loop",
HydroVariables.AllOnlinePlayers.ExplodisionLoop) then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
HydroVariables.AllOnlinePlayers.ExplodisionLoop = not
HydroVariables.AllOnlinePlayers.ExplodisionLoop
NativeExplosionServerLoop()
end
elseif HydroMenu.Button("Give All Players Weapons", "~y~Risky")
then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
playerlist = GetActivePlayers()
for i = 1, #playerlist do
if HydroVariables.AllOnlinePlayers.IncludeSelf
and playerlist[i] ~= PlayerId() then
for i = 1, #allWeapons do
RemoveAllPedWeapons(GetPlayerPed(curPlayer), true)
RemoveWeaponFromPed(GetPlayerPed(curPlayer), "WEAPON_UNARMED")
elseif not
HydroVariables.AllOnlinePlayers.IncludeSelf then
curPlayer = playerlist[i]
RemoveAllPedWeapons(GetPlayerPed(curPlayer), true)
RemoveWeaponFromPed(GetPlayerPed(curPlayer), "WEAPON_UNARMED")
end
end
end
HydroVariables.AllOnlinePlayers.tugboatrainoverplayers = not
HydroVariables.AllOnlinePlayers.tugboatrainoverplayers
end
elseif HydroMenu.CheckBox("Freeze Server",
HydroVariables.AllOnlinePlayers.freezeserver) then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
elseif SafeMode then
SafeModeNotification()
else
HydroVariables.AllOnlinePlayers.freezeserver = not
HydroVariables.AllOnlinePlayers.freezeserver
end
elseif HydroMenu.Button("Bus Server", "~y~Native") then
if AntiCheats.VAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
elseif SafeMode then
SafeModeNotification()
else
BusServer()
end
elseif HydroMenu.CheckBox("Bus Server ~r~LOOP",
HydroVariables.AllOnlinePlayers.busingserverloop) then
if AntiCheats.VAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
elseif SafeMode then
SafeModeNotification()
else
HydroVariables.AllOnlinePlayers.busingserverloop =
not HydroVariables.AllOnlinePlayers.busingserverloop
BusServerLoop()
end
if TableHasValue(FriendsList,
GetPlayerServerId(currPlayer)) then
friend = "Friend | "
elseif currPlayer == PlayerId() then
friend = "Self | "
end
if HydroMenu.MenuButton(friend ..
GetPlayerServerId(currPlayer) .. " | " .. GetPlayerName(currPlayer),
'selectedonlineplayr', "Options For ".. GetPlayerName(currPlayer)) then
selectedPlayer = currPlayer
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('collisionoptions') then
end
end
elseif HydroMenu.CheckBox("Disable Ped Collisions",
HydroVariables.SelfOptions.disablepedcollisions, "Peds may fall through the Map")
then
HydroVariables.SelfOptions.disablepedcollisions = not
HydroVariables.SelfOptions.disablepedcollisions
if not HydroVariables.SelfOptions.disablepedcollisions then
for ped in EnumeratePeds() do
end
end
elseif HydroMenu.CheckBox("Disable Vehicle Collisions",
HydroVariables.SelfOptions.disablevehiclecollisions, "Every single Vehicle won't
have Collision") then
HydroVariables.SelfOptions.disablevehiclecollisions = not
HydroVariables.SelfOptions.disablevehiclecollisions
if not HydroVariables.SelfOptions.disablevehiclecollisions
then
for vehicle in EnumerateVehicles() do
SetEntityCollision(vehicle, true, true)
end
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('superpowers') then
if HydroMenu.CheckBox("Anti Headshot",
HydroVariables.SelfOptions.AntiHeadshot) then
HydroVariables.SelfOptions.AntiHeadshot = not
HydroVariables.SelfOptions.AntiHeadshot
if not HydroVariables.SelfOptions.AntiHeadshot then
SetPedSuffersCriticalHits(PlayerPedId(), true)
end
elseif HydroMenu.CheckBox("Infinite Combat Roll",
HydroVariables.SelfOptions.InfiniteCombatRoll) then
HydroVariables.SelfOptions.InfiniteCombatRoll = not
HydroVariables.SelfOptions.InfiniteCombatRoll
elseif HydroMenu.CheckBox("Moon Walk",
HydroVariables.SelfOptions.MoonWalk) then
HydroVariables.SelfOptions.MoonWalk = not
HydroVariables.SelfOptions.MoonWalk
elseif HydroMenu.CheckBox("Super Jump",
HydroVariables.SelfOptions.superjump) then
HydroVariables.SelfOptions.superjump = not
HydroVariables.SelfOptions.superjump
elseif HydroMenu.CheckBox("Super Run",
HydroVariables.SelfOptions.superrun) then
HydroVariables.SelfOptions.superrun = not
HydroVariables.SelfOptions.superrun
elseif HydroMenu.CheckBox("Force Footstep Trail", forcefoottrail)
then
forcefoottrail = not forcefoottrail
SetForcePedFootstepsTracks(forcefoottrail)
elseif HydroMenu.CheckBox("Super Swim", superswim) then
if superswim then
SetSwimMultiplierForPlayer(PlayerId(), 1.49)
else
SetSwimMultiplierForPlayer(PlayerId(), 1.0)
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('premadeoutfits') then
if HasModelLoaded(GetHashKey("mp_m_freemode_01")) then
SetPlayerModel(PlayerId(), "mp_m_freemode_01")
SetPedComponentVariation(PlayerPedId(), 1, 3, 0, 0)
SetPedComponentVariation(PlayerPedId(), 2, 4, 3, 0)
SetPedComponentVariation(PlayerPedId(), 3, 17, 0, 0)
SetPedComponentVariation(PlayerPedId(), 4, 4, 0, 0)
SetPedComponentVariation(PlayerPedId(), 6, 4, 1, 0)
SetPedComponentVariation(PlayerPedId(), 8, 15, 0, 0)
SetPedComponentVariation(PlayerPedId(), 11, 256, 0,
0)
else
PushNotification("Requesting Model Timeout", 600)
end
--[[
elseif HydroMenu.Button("Kyler | MP Rasta") then
AntiMenuCrash = 0
RequestModel("mp_m_freemode_01")
Wait(450)
if HasModelLoaded(GetHashKey("mp_m_freemode_01")) then
SetPlayerModel(PlayerId(), "mp_m_freemode_01")
SetPedComponentVariation(PlayerPedId(), 1, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 2, 17, 1, 0)
SetPedComponentVariation(PlayerPedId(), 4, 4, 0, 0)
SetPedComponentVariation(PlayerPedId(), 6, 6, 1, 0)
SetPedComponentVariation(PlayerPedId(), 11, 121, 3,
0)
SetPedPropIndex(PlayerPedId(), 1, 25, 3, 0)
else
PushNotification("Requesting Model Timeout", 600)
end
]]
elseif HydroMenu.Button("Fuse | Gangsta") then
AntiMenuCrash = 0
RequestModel("mp_m_freemode_01")
Wait(450)
Wait(450)
if HasModelLoaded(GetHashKey("mp_m_freemode_01")) then
SetPlayerModel(PlayerId(), "mp_m_freemode_01")
SetPedComponentVariation(PlayerPedId(), 1, -1, 0, 0)
SetPedComponentVariation(PlayerPedId(), 2, 2, 4, 0)
SetPedComponentVariation(PlayerPedId(), 3, 17, 0, 0)
SetPedComponentVariation(PlayerPedId(), 4, 66, 0, 0)
SetPedComponentVariation(PlayerPedId(), 6, 4, 1, 0)
SetPedComponentVariation(PlayerPedId(), 7, 8, 0, 0)
SetPedComponentVariation(PlayerPedId(), 8, 37, 0, 0)
SetPedComponentVariation(PlayerPedId(), 9, 1, 0, 0)
SetPedComponentVariation(PlayerPedId(), 11, 166, 0,
0)
SetPedPropIndex(PlayerPedId(), 0, 130, 0, 0)
SetPedPropIndex(PlayerPedId(), 1, 6, 0, 0)
else
PushNotification("Requesting Model Timeout", 600)
end
elseif HydroMenu.CheckBox("Purple And Green Alien",
HydroVariables.SelfOptions.AlienColorSpam, "Because why not both") then
HydroVariables.SelfOptions.AlienColorSpam = not
HydroVariables.SelfOptions.AlienColorSpam
if HydroVariables.SelfOptions.AlienColorSpam then
AlienColourSpam()
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selfwardrobe') then
else
SetPlayerModel(PlayerId(), GetHashKey(result))
CancelOnscreenKeyboard()
end
end
local modelslist = PlayerModels
for i = 1, #modelslist do
if HydroMenu.Button(modelslist[i]) then
while not HasModelLoaded(GetHashKey(modelslist[i])) and not
killmenu do
RequestModel(GetHashKey(modelslist[i]))
Wait(500)
end
SetPlayerModel(PlayerId(), GetHashKey(modelslist[i]))
HydroMenu.Display()
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('pedspawningonplayer') then
HydroMenu.SetMenuProperty('pedspawningonplayer', 'subTitle',
GetPlayerName(selectedPlayer) .. " > Ped Options")
HydroMenu.Functions.SpawnPed(Data)
elseif HydroMenu.Button("Spawn Fat Man") then
SpawnPed(selectedPlayer, "a_m_m_afriamer_01", HostilePeds)
elseif HydroMenu.Button("Spawn Indian Man") then
SpawnPed(selectedPlayer, "a_m_m_indian_01", HostilePeds)
elseif HydroMenu.Button("Spawn Mr Muscle") then
SpawnPed(selectedPlayer, "u_m_y_babyd", HostilePeds)
elseif HydroMenu.Button("Spawn Michael") then
SpawnPed(selectedPlayer, "player_zero", HostilePeds)
elseif HydroMenu.Button("Spawn Franklin") then
SpawnPed(selectedPlayer, "player_one", HostilePeds)
elseif HydroMenu.Button("Spawn Trevor") then
SpawnPed(selectedPlayer, "player_two", HostilePeds)
elseif HydroMenu.Button("Spawn Stripper") then
SpawnPed(selectedPlayer, "csb_stripper_01", HostilePeds)
elseif HydroMenu.Button("Spawn Dog") then
SpawnPed(selectedPlayer, "a_c_chop", HostilePeds)
elseif HydroMenu.Button("Spawn Merryweather Guard") then
SpawnPed(selectedPlayer, "csb_mweather", HostilePeds)
elseif HydroMenu.Button("Spawn Fat Man") then
SpawnPed(selectedPlayer, "a_m_m_afriamer_01", HostilePeds)
end
HydroMenu.Display()
local coords =
GetEntityCoords(GetPlayerPed(selectedPlayer))
RequestCollisionAtCoord(coords.x, coords.y, coords.z)
ShootSingleBulletBetweenCoords(coords.x, coords.y, coords.z,
coords.x, coords.y, coords.z + 2, 0, true, "WEAPON_STUNGUN", ped, false, false,
100)
CagePlayer(selectedPlayer)
BusPlayer(selectedPlayer)
HelicopterChase(selectedPlayer)
FlyPlaneIntoPlayer(selectedPlayer)
SWATTeamPullUp(selectedPlayer)
RampPlayer(selectedPlayer)
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
elseif SafeMode then
SafeModeNotification()
else
HydroVariables.OnlinePlayer.freezeplayer = not
HydroVariables.OnlinePlayer.freezeplayer
HydroVariables.OnlinePlayer.playertofreeze =
selectedPlayer
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('attachpropstoplayer') then
HydroMenu.SetMenuProperty('attachpropstoplayer', 'subTitle',
GetPlayerName(selectedPlayer) .. " > Attach Props")
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selectedplayerTriggerEvents') then
HydroMenu.SetMenuProperty('selectedplayerTriggerEvents',
'subTitle', GetPlayerName(selectedPlayer) .. " > Trigger Events")
amount = tonumber(amount)
TriggerServerEvent("esx_billing:sendBill",
GetPlayerServerId(selectedPlayer), GetPlayerName(selectedPlayer), name, amount)
carryingBackInProgress = true
TriggerServerEvent('CarryPeople:sync',
GetPlayerServerId(selectedPlayer), lib,lib2, anim1, anim2, distans, distans2,
height,target,length,spin,controlFlagMe,controlFlagTarget,animFlagTarget)
TriggerEvent("esx_inventoryhud:openPlayerInventory",
GetPlayerServerId(selectedPlayer), selectedPlayer, GetPlayerName(selectedPlayer))
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['ESXHandcuff'],
GetPlayerServerId(selectedPlayer))
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['ESXDrag'],
GetPlayerServerId(selectedPlayer))
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['ESXQalleJail'],
GetPlayerServerId(selectedPlayer), math.huge, "Hydro Menu On top ")
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['TacklePlayer'],
selectedPlayer)
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['DragSEM'],
GetPlayerServerId(selectedPlayer))
TriggerServerEvent("SEM_InteractionMenu:CuffNear",
GetPlayerServerId(selectedPlayer))
TriggerServerEvent(HydroMenu.DynamicTriggers.Triggers['JailSEM'],
GetPlayerServerId(selectedPlayer), math.huge)
elseif HydroMenu.Button("Unjail Player", "~g~SEM") then
TriggerServerEvent("SEM_InteractionMenu:Unjail",
GetPlayerServerId(selectedPlayer))
TriggerServerEvent('SEM_InteractionMenu:UnseatNear',
GetPlayerServerId(selectedPlayer))
TriggerServerEvent('SEM_InteractionMenu:SeatNear',
GetPlayerServerId(selectedPlayer), HydroVariables.VehicleOptions.PersonalVehicle)
RequestModel(GetHashKey("baller"))
Timout = 0
if HasModelLoaded(GetHashKey("baller")) then
local Vehicle = CreateVehicle(GetHashKey("baller"),
10000.0, 10000.0, 1000.0, 0.0, 1, 1)
SetEntityAsMissionEntity(Vehicle, true, true)
FreezeEntityPosition(Vehicle)
TriggerServerEvent('SEM_InteractionMenu:UnseatNear',
GetPlayerServerId(selectedPlayer))
TriggerServerEvent('SEM_InteractionMenu:SeatNear',
GetPlayerServerId(selectedPlayer), Vehicle)
DeleteEntity(Vehicle)
end
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
FakeChatMessage(GetPlayerName(selectedPlayer))
end
elseif HydroMenu.CheckBox("Send Fake Message Loop",
HydroVariables.OnlinePlayer.messagelooping) then
HydroVariables.OnlinePlayer.messageloopplayer =
selectedPlayer
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
elseif HydroVariables.OnlinePlayer.messagelooping then
HydroVariables.OnlinePlayer.messagelooping = false
elseif SafeMode then
SafeModeNotification()
else
if HasModelLoaded(GetHashKey(result)) then
else
RequestModel(GetHashKey(result))
Wait(500)
end
CancelOnscreenKeyboard()
HydroVariables.OnlinePlayer.messagelooping = not
HydroVariables.OnlinePlayer.messagelooping
HydroVariables.OnlinePlayer.messagetosend = result
end
end
HydroMenu.Display()
elseif HydroMenu.IsMenuOpened('selectedPlayervehicleopts') then
HydroMenu.SetMenuProperty('selectedPlayervehicleopts', 'subTitle',
GetPlayerName(selectedPlayer) .. " > Vehicle Options")
if HydroMenu.Button("Give Player a Car") then
local coords =
GetOffsetFromEntityInWorldCoords(GetPlayerPed(selectedPlayer), 0.0, 8.0, 0.5)
local x = coords.x
local y = coords.y
local z = coords.z
result = HydroMenu.KeyboardEntry("Vehicle Spawn Code", 200)
if HasModelLoaded(GetHashKey(result)) then
else
RequestModel(GetHashKey(result))
Wait(500)
end
CancelOnscreenKeyboard()
if result == "t20ramp" then
RampCar(selectedPlayer)
elseif result == "ufo" then
UFOVeh(selectedPlayer)
else
local vehicle = CreateVehicle(GetHashKey(result), x,
y, z, 0.0, 1, 1)
SetEntityHeading(vehicle,
GetEntityHeading(GetPlayerPed(selectedPlayer)))
SetEntityHeading(vehicle,
GetEntityHeading(PlayerPedId()))
SetVehicleEngineOn(vehicle, true, false, false)
SetVehRadioStation(vehicle, 'OFF')
end
CancelOnscreenKeyboard()
if IsVehicleSeatFree(veh, 0) then
SetPedIntoVehicle(PlayerPedId(), veh, 0)
else
if IsVehicleSeatFree(veh, 1) then
SetPedIntoVehicle(PlayerPedId(), veh, 1)
else
if IsVehicleSeatFree(veh, 2) then
SetPedIntoVehicle(PlayerPedId(), veh, 2)
else
if IsVehicleSeatFree(veh, 3) then
SetPedIntoVehicle(PlayerPedId(),
veh, 3)
else
PushNotification("Vehicle has no
Empty Seat", 600)
end
end
end
end
elseif HydroMenu.Button("Repair Vehicle") then
NetworkRequestControlOfEntity(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer)))
SetVehicleFixed(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer), false))
SetVehicleDirtLevel(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer), false),
0.0)
SetVehicleLights(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer), false), 0)
SetVehicleBurnout(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer), false),
false)
Citizen.InvokeNative(0x1FD09E7390A74D54,
GetVehiclePedIsIn(GetPlayerPed(selectedPlayer), false), 0)
elseif HydroMenu.Button("Destroy Engine") then
local playerPed = GetPlayerPed(selectedPlayer)
NetworkRequestControlOfEntity(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer)))
SetVehicleUndriveable(GetVehiclePedIsIn(playerPed),true)
SetVehicleEngineHealth(GetVehiclePedIsIn(playerPed), 10)
elseif HydroMenu.Button("Kick From Vehicle") then
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or
AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function
Blocked", 600)
else
ClearPedTasksImmediately(GetPlayerPed(selectedPlayer))
end
elseif HydroMenu.Button("Destroy Vehicle") then
local playerPed = GetPlayerPed(selectedPlayer)
local playerVeh = GetVehiclePedIsIn(playerPed, true)
NetworkRequestControlOfEntity(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer)))
StartVehicleAlarm(playerVeh)
DetachVehicleWindscreen(playerVeh)
SmashVehicleWindow(playerVeh, 0)
SmashVehicleWindow(playerVeh, 1)
SmashVehicleWindow(playerVeh, 2)
SmashVehicleWindow(playerVeh, 3)
SetVehicleTyreBurst(playerVeh, 0, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 1, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 2, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 3, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 4, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 5, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 4, true, 1000.0)
SetVehicleTyreBurst(playerVeh, 7, true, 1000.0)
SetVehicleDoorBroken(playerVeh, 0, true)
SetVehicleDoorBroken(playerVeh, 1, true)
SetVehicleDoorBroken(playerVeh, 2, true)
SetVehicleDoorBroken(playerVeh, 3, true)
SetVehicleDoorBroken(playerVeh, 4, true)
SetVehicleDoorBroken(playerVeh, 5, true)
SetVehicleDoorBroken(playerVeh, 6, true)
SetVehicleDoorBroken(playerVeh, 7, true)
SetVehicleLights(playerVeh, 1)
Citizen.InvokeNative(0x1FD09E7390A74D54, playerVeh, 1)
SetVehicleDirtLevel(playerVeh, 10.0)
SetVehicleBurnout(playerVeh, true)
elseif HydroMenu.Button("Delete Vehicle") then
local playerPed = GetPlayerPed(selectedPlayer)
local playerVeh = GetVehiclePedIsIn(playerPed, true)
NetworkRequestControlOfEntity(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer)))
DeleteVehicle(playerVeh)
elseif HydroMenu.Button("Teleport Vehicle To Waypoint") then
local playerPed = GetPlayerPed(selectedPlayer)
local playerVeh = GetVehiclePedIsIn(playerPed, true)
local waypoint = GetFirstBlipInfoId(8)
NetworkRequestControlOfEntity(GetVehiclePedIsIn(GetPlayerPed(selectedPlayer)))
if DoesBlipExist(waypoint) then
SetEntityCoords(playerVeh,
GetBlipInfoIdCoord(waypoint))
end
elseif HydroMenu.Button("Ramp Players Vehicle") then
Citizen.CreateThread(function()
Wait(5000)
DeleteEntity(faggot)
return ExitThread
end)
elseif HydroMenu.Button("Add Ramp to Players Vehicle") then
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, 5000.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, -5000.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, 0.0, 5000.0, 0.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, 0.0, -5000.0, 0.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, 0.0, 0.0, 5000.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
if playerVeh ~= 0 then
NetworkRequestControlOfEntity(playerVeh)
ApplyForceToEntity(playerVeh, 1, 0.0, 0.0, -5000.0,
0.0, 0.0, 0.0, 0, 0, 1, 1, 0, 1)
end
end
HydroMenu.Display()
HydroMenu.SetMenuProperty('selectedonlineplayr', 'subTitle',
string.upper(GetPlayerServerId(selectedPlayer) .. " | ~s~" ..
GetPlayerName(selectedPlayer)))
if HydroMenu.MenuButton('Vehicle Options',
'selectedPlayervehicleopts', "Mess with Player's Vehicle" ) then
elseif HydroMenu.MenuButton('Trigger Events',
'selectedplayerTriggerEvents', "Trigger Events For Player") then
elseif HydroMenu.MenuButton('Particle Effects',
'particleeffectsonplayer', "Particle Effects") then
elseif HydroMenu.MenuButton('Attach Objects',
'attachpropstoplayer', "Attach Objects On Player") then
elseif HydroMenu.MenuButton('Troll Options', 'trollonlineplayr',
"Troll Options") then
elseif HydroMenu.MenuButton('Ped Options', 'pedspawningonplayer',
"Spawn Friendly / Hostile Peds") then
TeleportToPlayer(selectedPlayer)
local coords =
GetEntityCoords(GetPlayerPed(selectedPlayer))
SetNewWaypoint(coords.x, coords.y)
if HydroVariables.OnlinePlayer.TrackingPlayer then
HydroVariables.OnlinePlayer.TrackingPlayer = nil
else
HydroVariables.OnlinePlayer.TrackingPlayer =
selectedPlayer
end
end
isSpectatingTarget = not isSpectatingTarget
NetworkSetOverrideSpectatorMode(false)
RequestCollisionAtCoord(GetEntityCoords(PlayersPed))
NetworkSetInSpectatorModeExtended(true, PlayersPed,
false)
NetworkSetOverrideSpectatorMode(false)
else
local coords = GetEntityCoords(PlayersPed)
local targetx = coords.x
local targety = coords.y
local targetz = coords.z
NetworkSetOverrideSpectatorMode(false)
RequestCollisionAtCoord(targetx, targety, targetz)
NetworkSetInSpectatorModeExtended(false, PlayersPed,
false)
NetworkSetOverrideSpectatorMode(false)
end
end
HydroMenu.Display()
elseif IsDisabledControlJustPressed(0,
tonumber(HydroVariables.Keybinds.OpenKey)) then -- Open Key
HydroMenu.OpenMenu('main')
end
Wait(0)
if OnlinePlayerOptions then
if IsPedInAnyVehicle(ped) then
invehicle = "~g~Yes"
else
invehicle = "~r~No"
end
x = tonumber(string.format("%.2f", coords.x))
y = tonumber(string.format("%.2f", coords.y))
z = tonumber(string.format("%.2f", coords.z))
HydroMenu.DrawRect(HydroMenu.UI.MenuX - 0.0690,
HydroMenu.UI.MenuY + 0.085, 0.13, 0.165, { r = 0, g = 0, b = 0, a = 200 })
HydroMenu.DrawRect(HydroMenu.UI.MenuX - 0.0690,
HydroMenu.UI.MenuY + 0.169, 0.13, 0.002, { r = rgb.r, g = rgb.g, b = rgb.b, a = 255
})
HydroMenu.DrawRect(HydroMenu.UI.MenuX - 0.0690,
HydroMenu.UI.MenuY + 0.001, 0.13, 0.002, { r = rgb.r, g = rgb.g, b = rgb.b, a = 255
})
else
HydroMenu.DrawText("Godmode: " ..
tostring(IsPlayerInGodmode(selectedPlayer)) ..
"\n~s~Health: " .. health ..
"\nArmour: " .. armour .. " / 100 " ..
"\nIn Vehicle: " .. invehicle .. "~s~" ..
"\nRoad: " ..
GetStreetNameFromHashKey(GetStreetNameAtCoord(x, y, z)) ..
"\nDistance: " .. string.format("%.2f", distance) .. "m"
, {HydroMenu.UI.MenuX + 0.248, HydroMenu.UI.MenuY + 0.002},
{255, 255, 255, 255}, 0.45, 4, 0, "PlayerInfoText")
HydroMenu.DrawRect(HydroMenu.UI.MenuX + 0.31,
HydroMenu.UI.MenuY + 0.085, 0.13, 0.165, { r = 0, g = 0, b = 0, a = 200 })
HydroMenu.DrawRect(HydroMenu.UI.MenuX + 0.31,
HydroMenu.UI.MenuY + 0.169, 0.13, 0.002, { r = rgb.r, g = rgb.g, b = rgb.b, a = 255
})
HydroMenu.DrawRect(HydroMenu.UI.MenuX + 0.31,
HydroMenu.UI.MenuY + 0.001, 0.13, 0.002, { r = rgb.r, g = rgb.g, b = rgb.b, a = 255
})
end
end
end
end)
function IsPlayerInGodmode(player)
local isgod = GetPlayerInvincible_2(player)
if isgod == 1 then
return "~g~Yes"
else
return "~r~No"
end
end
function NoClip()
if not IsPedInAnyVehicle(PlayerPedId(), true) then
ClearPedTasksImmediately(PlayerPedId())
end
Citizen.CreateThread(function()
noclipping = not noclipping
if not noclipping then
local vehicle = GetVehiclePedIsIn(PlayerPedId())
SetEntityCollision(vehicle, true, true)
SetEntityLocallyVisible(PlayerPedId())
SetEntityCollision(PlayerPedId(), true, true)
ResetEntityAlpha(PlayerPedId())
FreezeEntityPosition(PlayerPedId(), false)
FreezeEntityPosition(vehicle, false)
ResetEntityAlpha(vehicle)
DisableControlAction(0, 85, false)
end
end
if IsDisabledControlPressed(0, 34) then -- A
SetEntityHeading(PlayerPedId(), heading + 2)
end
if IsDisabledControlPressed(0, 30) then -- D
SetEntityHeading(PlayerPedId(), heading - 2)
end
if IsDisabledControlPressed(0, 20) then -- Z
local coords = GetEntityCoords(PlayerPedId())
SetEntityVelocity(PlayerPedId(), 0.0, 0.0, 0.0)
SetEntityRotation(PlayerPedId(), 0.0, 0.0, 0.0, 0,
false)
SetEntityHeading(PlayerPedId(), heading)
SetEntityCoordsNoOffset(PlayerPedId(), coords.x,
coords.y, coords.z - NoclipSpeed * 2, noclipping, noclipping, noclipping)
end
if IsDisabledControlPressed(0, 44) then -- Q
local coords = GetEntityCoords(PlayerPedId())
SetEntityVelocity(PlayerPedId(), 0.0, 0.0, 0.0)
SetEntityRotation(PlayerPedId(), 0.0, 0.0, 0.0, 0,
false)
SetEntityHeading(PlayerPedId(), heading)
SetEntityCoordsNoOffset(PlayerPedId(), coords.x,
coords.y, coords.z + NoclipSpeed, noclipping, noclipping, noclipping)
end
end
Wait(0)
end
end)
end
local PVRemoteControlButtons = {
{
["label"] = "Toggle Camera",
["button"] = "~INPUT_DETONATE~"
},
}
local BottomTextEntries = {}
local YLoc = 1.02
Citizen.CreateThread(function()
while not killmenu do
for i = 1, #BottomTextEntries do
CurEntry = BottomTextEntries[i]
XWidth = HydroMenu.GetTextWidth(CurEntry, 4, 0.45) + 0.01
DrawY = i * 0.0455
end
BottomTextEntries = {}
Wait(0)
end
end)
function HydroMenu.DrawBottomText(text)
table.insert(BottomTextEntries, #BottomTextEntries + 1, text)
end
function GetFPS()
curtime = GetGameTimer()
curframes = GetFrameCount()
return fps
end
BulletCoords = {}
local Targets = 0
-- PTFX Loop for any niggers seeing this we made everything here name 1 menu you
seen this from faggots niggers we have your ip just from injecting this menu kys
kys kys kys kys
Citizen.CreateThread(function()
while not killmenu do
RemoveParticleFx("scr_indep_firework_trailburst", 1)
RemoveParticleFx("scr_ex1_plane_exp_sp", 1)
RemoveParticleFx("scr_clown_appears", 1)
RemoveParticleFx("td_blood_throat", 1)
OnlinePlayers = GetActivePlayers()
if HydroVariables.AllOnlinePlayers.ParicleEffects.HugeExplosionSpam
then
for i = 1, #OnlinePlayers do
RequestNamedPtfxAsset("scr_exile1")
UseParticleFxAssetNextCall("scr_exile1")
StartNetworkedParticleFxNonLoopedAtCoord("scr_ex1_plane_exp_sp", pedcoords,
0.0, 0.0, 0.0, 20.0, false, false, false, false)
end
end
if HydroVariables.AllOnlinePlayers.ParicleEffects.ClownLoop then
for i = 1, #OnlinePlayers do
RequestNamedPtfxAsset("scr_rcbarry2")
UseParticleFxAssetNextCall("scr_rcbarry2")
end
end
if HydroVariables.AllOnlinePlayers.ParicleEffects.BloodLoop then
for i = 1, #OnlinePlayers do
RequestNamedPtfxAsset("core")
UseParticleFxAssetNextCall("core")
StartNetworkedParticleFxNonLoopedAtCoord("td_blood_throat",
pedcoords, 0.0, 0.0, 0.0, 200.0, false, false, false, false)
end
end
if HydroVariables.AllOnlinePlayers.ParicleEffects.FireworksLoop then
for i = 1, #OnlinePlayers do
RequestNamedPtfxAsset("scr_indep_fireworks")
UseParticleFxAssetNextCall("scr_indep_fireworks")
StartNetworkedParticleFxNonLoopedAtCoord("scr_indep_firework_trailburst",
pedcoords, 0.0, 0.0, 0.0, 200.0, false, false, false, false)
end
end
Wait(750)
end
end)
-- Secondary Loop
Citizen.CreateThread(function()
while not killmenu do
if HydroVariables.WeaponOptions.AimBot.Enabled and
HydroVariables.WeaponOptions.AimBot.DrawFOV and not IsControlPressed(0, 37) then
if not HasStreamedTextureDictLoaded('mpmissmarkers256') then
RequestStreamedTextureDict('mpmissmarkers256', true)
end
if HydroVariables.MenuOptions.Watermark then
DisplayText = "Hydro Menu | FPS: " .. GetFPS() .. " | Resource: "
..GetCurrentResourceName()
HydroMenu.DrawBottomText(DisplayText)
end
if noclipping then
HydroMenu.DrawBottomText("Noclip | Speed "..RoundedNoClipSpeed..
"m")
end
if HydroVariables.SelfOptions.InfiniteCombatRoll then
for i = 0, 3 do
StatSetInt(GetHashKey("mp" .. i .. "_shooting_ability"),
9999, true)
StatSetInt(GetHashKey("sp" .. i .. "_shooting_ability"),
9999, true)
end
end
if HydroVariables.VehicleOptions.speedometer then
if IsPedInAnyVehicle(PlayerPedId()) then
local veh = GetVehiclePedIsIn(PlayerPedId(), 0)
local carSpeed = GetEntitySpeed(veh) * 2.236936 -- convert
to mph
local carkphSpeed = GetEntitySpeed(veh) * 3.6 -- convert to
kph
carspeedround = tonumber(string.format("%.0f", carSpeed))
carkphspeedround = tonumber(string.format("%.0f",
carkphSpeed))
rgb = HydroMenu.RGBRainbow(1)
year, month, day, hour, minute, second = GetLocalTime()
if HydroVariables.WeaponOptions.NoRecoil and
IsDisabledControlPressed(0, 24) then
local GameplayCamPitch = GetGameplayCamRelativePitch()
SetGameplayCamRelativePitch(GameplayCamPitch, 0.0)
end
if HydroVariables.WeaponOptions.Tracers then
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
if weapon ~= -1569615261 then
local wepent =
GetCurrentPedWeaponEntityIndex(PlayerPedId())
local launchPos = GetEntityCoords(wepent)
local targetPos = GetGameplayCamCoord() +
(RotationToDirection(GetGameplayCamRot(2)) * 2000.0)
if IsPedShooting(PlayerPedId()) then
Hit, ImpactCoord =
GetPedLastWeaponImpactCoord(PlayerPedId())
LineToInsertOn = tablelength(BulletCoords) + 1
Coords = table.pack(launchPos, targetPos,
ImpactCoord)
table.insert(BulletCoords, LineToInsertOn, Coords)
DeleteInSeconds(BulletCoords, 3 * 1000)
end
end
for i = 1, #BulletCoords do
CurBullet = BulletCoords[i]
if CurBullet ~= nil then
launchPos = CurBullet[1]
TargetPos = CurBullet[2]
ImpactCoord = CurBullet[3]
Lx, Ly, Lz = table.unpack(ImpactCoord)
if IsControlJustReleased(0,
tonumber(HydroVariables.Keybinds.NoClipKey)) then -- No Clip
NoClip()
end
if HydroVariables.Keybinds.RefilHealthKey and
IsDisabledControlJustPressed(0, tonumber(HydroVariables.Keybinds.RefilHealthKey))
then
SetEnitityHealth(PlayerPedId(), 200)
end
if HydroVariables.Keybinds.RefilArmourKey and
IsDisabledControlJustPressed(0, tonumber(HydroVariables.Keybinds.RefilArmourKey))
then
SetPedArmour(PlayerPedId(), 100)
end
if IsControlPressed(0, tonumber(HydroVariables.Keybinds.DriftMode))
then
SetVehicleReduceGrip(GetVehiclePedIsUsing(PlayerPedId()), true)
else
SetVehicleReduceGrip(GetVehiclePedIsUsing(PlayerPedId()), false)
end
if killmenu then
break
end
if HydroVariables.MiscOptions.UnlockAllVehicles then
for Vehicle in EnumerateVehicles() do
SetVehicleDoorsLockedForPlayer(Vehicle, PlayerId(), false)
end
end
if HydroVariables.OnlinePlayer.TrackingPlayer then
local coords =
GetEntityCoords(GetPlayerPed(HydroVariables.OnlinePlayer.TrackingPlayer))
SetNewWaypoint(coords.x, coords.y)
end
if HydroVariables.VehicleOptions.PersonalVehicleCam then
local camCoords =
GetCamCoord(HydroVariables.VehicleOptions.PersonalVehicleCam)
SetFocusEntity(HydroVariables.VehicleOptions.PersonalVehicle)
SetCamRot(HydroVariables.VehicleOptions.PersonalVehicleCam, -2.0,
0.0, GetEntityHeading(HydroVariables.VehicleOptions.PersonalVehicle), 0)
end
if HydroVariables.VehicleOptions.rainbowcar then
local vehicle = GetVehiclePedIsIn(PlayerPedId())
SetVehicleCustomPrimaryColour(vehicle, HydroMenu.rgb.r,
HydroMenu.rgb.g, HydroMenu.rgb.b)
SetVehicleCustomSecondaryColour(vehicle, HydroMenu.rgb.r,
HydroMenu.rgb.g, HydroMenu.rgb.b)
SetVehicleTyreSmokeColor(vehicle, HydroMenu.rgb.r,
HydroMenu.rgb.g, HydroMenu.rgb.b)
end
if rgbhud then
ReplaceHudColourWithRgba(116, HydroMenu.rgb.r, HydroMenu.rgb.g,
HydroMenu.rgb.b, 255)
end
if HydroVariables.VehicleOptions.vehgodmode then
SetEntityInvincible(GetVehiclePedIsUsing(PlayerPedId(-1)), true)
end
if HydroVariables.VehicleOptions.AutoClean then
SetVehicleDirtLevel(GetVehiclePedIsUsing(PlayerPedId()), 0.0)
end
if HydroVariables.VehicleOptions.PersonalVehicle == false or
DoesEntityExist(HydroVariables.VehicleOptions.PersonalVehicle) == false then
HydroVariables.VehicleOptions.PersonalVehicleESP = false
HydroVariables.VehicleOptions.PersonalVehicleMarker = false
PVLocked = false
end
if HydroVariables.VehicleOptions.PersonalVehicleCam then
RenderScriptCams(true, false, 0, true, false)
end
if HydroVariables.SelfOptions.FreezeWantedLevel then
if HydroVariables.SelfOptions.FrozenWantedLevel > 0 then
SetPlayerWantedCentrePosition(PlayerId(),
GetEntityCoords(PlayerPedId()))
SetPlayerWantedLevel(PlayerId(),
HydroVariables.SelfOptions.FrozenWantedLevel + 1, true)
SetPlayerWantedLevelNow(PlayerId())
SetPlayerWantedLevel(PlayerId(),
HydroVariables.SelfOptions.FrozenWantedLevel, true)
SetPlayerWantedLevelNow(PlayerId())
else
SetPlayerWantedLevel(PlayerId(), 0, true)
SetPlayerWantedLevelNow(PlayerId())
end
end
if HydroVariables.VehicleOptions.PersonalVehicleESP then
plycoords = GetEntityCoords(PlayerPedId())
coords =
GetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle)
if HydroVariables.VehicleOptions.PersonalVehicleMarker then
coords =
GetEntityCoords(HydroVariables.VehicleOptions.PersonalVehicle)
if blip == nil then
blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 1)
SetBlipDisplay(blip, 4)
SetBlipScale(blip, 0.9)
SetBlipColour(blip, 3)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("Personal Vehicle")
EndTextCommandSetBlipName(blip)
end
SetBlipDisplay(blip, 2)
SetBlipCoords(blip, coords.x, coords.y, coords.z)
else
SetBlipDisplay(blip, 0)
end
if HydroVariables.VehicleOptions.Waterproof then
SetVehicleEngineOn(GetVehiclePedIsUsing(PlayerPedId()), true, true,
true)
end
if HydroVariables.VehicleOptions.InstantBreaks then
if IsDisabledControlPressed(0, 33) and
IsPedInAnyVehicle(PlayerPedId()) then
local ped = GetPlayerPed(-1)
local playerVeh = GetVehiclePedIsIn(ped, false)
SetVehicleForwardSpeed(playerVeh, 0.0)
end
end
if HydroVariables.VehicleOptions.EasyHandling and
IsPedInAnyVehicle(PlayerPedId()) then
local veh = GetVehiclePedIsIn(PlayerPedId(), 0)
SetVehicleGravityAmount(veh, 60.0)
end
if HydroVariables.VehicleOptions.DriveOnWater then
x, y, z = table.unpack(GetEntityCoords(GetPlayersLastVehicle()))
sucess, z = GetWaterHeight(x, y, z)
if sucess and HydroVariables.VehicleOptions.DriveOnWaterProp then
SetEntityVisible(HydroVariables.VehicleOptions.DriveOnWaterProp, false,
false)
SetEntityCoords(HydroVariables.VehicleOptions.DriveOnWaterProp, x, y, z)
SetEntityHeading(HydroVariables.VehicleOptions.DriveOnWaterProp,
GetEntityHeading(PlayerPedId()))
elseif not sucess then
SetEntityCoords(HydroVariables.VehicleOptions.DriveOnWaterProp, x, y, z -
100.5)
end
end
if HydroVariables.VehicleOptions.AlwaysWheelie then
local veh = GetVehiclePedIsIn(PlayerPedId(), 0)
if IsPedInAnyVehicle(PlayerPedId()) and
GetPedInVehicleSeat(GetVehiclePedIsIn(PlayerPedId()), -1) == PlayerPedId() then
SetVehicleWheelieState(veh, 129)
end
end
if HydroVariables.VehicleOptions.speedboost then
DisableControlAction(0, 86, true)
if IsDisabledControlPressed(0, 86) and
IsPedInAnyVehicle(PlayerPedId()) then
local ped = GetPlayerPed(-1)
local playerVeh = GetVehiclePedIsIn(ped, false)
SetVehicleForwardSpeed(playerVeh, 336.0)
end
end
if HydroVariables.VehicleOptions.activeenignemulr then
local vehicle = GetPlayersLastVehicle()
local curractiveenignemulrIndex =
HydroVariables.VehicleOptions.curractiveenignemulrIndex
if curractiveenignemulrIndex == 1 then
SetVehicleEnginePowerMultiplier(vehicle, 2.0)
elseif curractiveenignemulrIndex == 2 then
SetVehicleEnginePowerMultiplier(vehicle, 4.0)
elseif curractiveenignemulrIndex == 3 then
SetVehicleEnginePowerMultiplier(vehicle, 8.0)
elseif curractiveenignemulrIndex == 4 then
SetVehicleEnginePowerMultiplier(vehicle, 16.0)
elseif curractiveenignemulrIndex == 5 then
SetVehicleEnginePowerMultiplier(vehicle, 32.0)
elseif curractiveenignemulrIndex == 6 then
SetVehicleEnginePowerMultiplier(vehicle, 64.0)
elseif curractiveenignemulrIndex == 7 then
SetVehicleEnginePowerMultiplier(vehicle, 128.0)
elseif curractiveenignemulrIndex == 8 then
SetVehicleEnginePowerMultiplier(vehicle, 256.0)
elseif curractiveenignemulrIndex == 9 then
SetVehicleEnginePowerMultiplier(vehicle, 512.0)
elseif curractiveenignemulrIndex == 10 then
SetVehicleEnginePowerMultiplier(vehicle, 1024.0)
end
end
if HydroVariables.MiscOptions.ESPBox then
local PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
local curplayerped = GetPlayerPed(PlayerList[i])
if HydroVariables.MiscOptions.ESPMenuColours
then
color = { r = HydroMenu.rgb.r, g =
HydroMenu.rgb.g, b = HydroMenu.rgb.b}
else
color = { r = 255, g = 255, b = 255}
end
retval, _x, _y =
GetScreenCoordFromWorldCoord(x, y, z)
width = 0.00045
height = 0.0023
health = GetEntityHealth(curplayerped)
if health > 200 then
health = 200
end
end
end
end
end
if HydroVariables.MiscOptions.ESPName then
local PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
local curplayerped = GetPlayerPed(PlayerList[i])
if HydroVariables.MiscOptions.ESPBones then
local playerlist = GetActivePlayers()
for i = 1, #playerlist do
local curplayer = playerlist[i]
local curplayerped = GetPlayerPed(curplayer)
local PlayerCoords = GetEntityCoords(curplayerped)
x,y,z = table.unpack(PlayerCoords)
local rightshoulder =
GetWorldPositionOfEntityBone(curplayerped, RightShoulderBone, 0.0, 0.0, 0.0)
local rightelbow =
GetWorldPositionOfEntityBone(curplayerped, RightElbowBone, 0.0, 0.0, 0.0)
local rightelhand =
GetWorldPositionOfEntityBone(curplayerped, RightHand, 0.0, 0.0, 0.0)
local leftelbow =
GetWorldPositionOfEntityBone(curplayerped, LeftElbowBone, 0.0, 0.0, 0.0)
local lefthand = GetWorldPositionOfEntityBone(curplayerped,
LeftHand, 0.0, 0.0, 0.0)
ResetEntityAlpha(curplayerped)
SetEntityAlpha(curplayerped, 200, true)
end
end
if HydroVariables.MiscOptions.ESPLines then
local pedcoords = GetEntityCoords(PlayerPedId())
if HydroVariables.VehicleOptions.activetorquemulr then
local vehicle = GetPlayersLastVehicle()
local curractivetorqueIndex =
HydroVariables.VehicleOptions.curractivetorqueIndex
if curractivetorqueIndex == 1 then
SetVehicleEngineTorqueMultiplier(vehicle, 2.0)
elseif curractivetorqueIndex == 2 then
SetVehicleEngineTorqueMultiplier(vehicle, 4.0)
elseif curractivetorqueIndex == 3 then
SetVehicleEngineTorqueMultiplier(vehicle, 8.0)
elseif curractivetorqueIndex == 4 then
SetVehicleEngineTorqueMultiplier(vehicle, 16.0)
elseif curractivetorqueIndex == 5 then
SetVehicleEngineTorqueMultiplier(vehicle, 32.0)
elseif curractivetorqueIndex == 6 then
SetVehicleEngineTorqueMultiplier(vehicle, 64.0)
elseif curractivetorqueIndex == 7 then
SetVehicleEngineTorqueMultiplier(vehicle, 128.0)
elseif curractivetorqueIndex == 8 then
SetVehicleEngineTorqueMultiplier(vehicle, 256.0)
elseif curractivetorqueIndex == 9 then
SetVehicleEngineTorqueMultiplier(vehicle, 512.0)
elseif curractivetorqueIndex == 10 then
SetVehicleEngineTorqueMultiplier(vehicle, 1024.0)
end
end
if HydroVariables.OnlinePlayer.cargoplaneloop then
local coords =
GetEntityCoords(GetPlayerPed(HydroVariables.OnlinePlayer.CargodPlayer))
SpawnVehAtCoords("cargoplane", coords)
end
if HydroVariables.OnlinePlayer.attachtoplayer then
local self = PlayerPedId()
AttachEntityToEntity(self,
GetPlayerPed(HydroVariables.OnlinePlayer.attatchedplayer), 0, 0.0, 0.0, 0.0, 0.0,
0.0, 180.0, false, false, true, false, 0, true)
end
if HydroVariables.ScriptOptions.BlockBlackScreen then
DoScreenFadeIn(0)
end
if HydroVariables.ScriptOptions.BlockPeacetime then
TriggerEvent("AOP:SendPT", false)
TriggerEvent("yoda:peacetime", false)
TriggerEvent("Badssentials:SetPT", false)
end
if HydroVariables.SelfOptions.infstamina then
RestorePlayerStamina(PlayerId(),
GetPlayerSprintStaminaRemaining(PlayerId()))
end
if HydroVariables.SelfOptions.superrun then
if IsDisabledControlPressed(0, 21) and not
IsPedRagdoll(PlayerPedId()) then
local x, y, z =
GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 30.0,
GetEntityVelocity(PlayerPedId())[3]) - GetEntityCoords(PlayerPedId())
SetEntityVelocity(PlayerPedId(), x, y, z)
end
end
if HydroVariables.MiscOptions.FlyingCars then
for vehicle in EnumerateVehicles() do
NetworkRequestControlOfEntity(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 HydroVariables.MiscOptions.GlifeHack then
for ped in EnumeratePeds() do
if not IsPedAPlayer(ped) and ped ~= PlayerPedId() then
Wait(1)
RequestControlOnce(ped)
SetEntityHealth(ped, 0)
SetEntityCoords(ped, GetEntityCoords(PlayerPedId()))
end
end
end
if HydroVariables.OnlinePlayer.freezeplayer then
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.playertofreeze)
if HydroVariables.AllOnlinePlayers.freezeserver then
ActivePlayers = GetActivePlayers()
for i = 1, #ActivePlayers do
if HydroVariables.AllOnlinePlayers.IncludeSelf and
ActivePlayers[i] ~= PlayerId() then
local ped = GetPlayerPed(ActivePlayers[i])
FreezeEntityPosition(HydroVariables.OnlinePlayer.playertofreeze, true)
ClearPedTasksImmediately(ped)
elseif not HydroVariables.AllOnlinePlayers.IncludeSelf then
local ped = GetPlayerPed(ActivePlayers[i])
FreezeEntityPosition(HydroVariables.OnlinePlayer.playertofreeze, true)
ClearPedTasksImmediately(ped)
end
end
end
if HydroVariables.AllOnlinePlayers.tugboatrainoverplayers then
for i = 1, #GetActivePlayers() do
if HydroVariables.AllOnlinePlayers.IncludeSelf and
GetActivePlayers()[i] ~= PlayerId() then
coords =
GetEntityCoords(GetPlayerPed(GetActivePlayers()[i]))
if HydroVariables.WeaponOptions.RageBot then
if IsDisabledControlPressed(0, 24) then
for k in EnumeratePeds() do
if k ~= PlayerPedId() then
RageShoot(k)
end
end
end
end
if HydroVariables.WeaponOptions.InfAmmo then
if IsPedShooting(PlayerPedId()) then
local __, weapon = GetCurrentPedWeapon(PlayerPedId())
ammo = GetAmmoInPedWeapon(PlayerPedId(), weapon)
SetPedAmmo(PlayerPedId(), weapon, ammo + 1)
end
end
if HydroVariables.WeaponOptions.NoReload then
if IsPedShooting(PlayerPedId()) then
PedSkipNextReloading(PlayerPedId())
MakePedReload(PlayerPedId())
end
end
if HydroVariables.WeaponOptions.AimBot.Enabled then
FOV = HydroVariables.WeaponOptions.AimBot.FOV
--[[
DrawRect(0.5 - FOV / 2, 0.5, 0.01, 0.515, 255, 80, 80, 100)
DrawRect(0.5 + FOV / 2, 0.5, 0.01, 0.515, 255, 80, 80, 100)
DrawRect(0.5, 0.5 - FOV / 1.2, 0.49, 0.015, 255, 80, 80, 100)
DrawRect(0.5, 0.5 + FOV / 1.2, 0.49, 0.015, 255, 80, 80, 100)
]]
if GetEntityType(PedAimingAt) == 1 then
HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult
= { x = 0, y = 0}
HydroVariables.WeaponOptions.AimBot.Targeting.Target =
PedAimingAt
end
if
IsPedDeadOrDying(HydroVariables.WeaponOptions.AimBot.Targeting.Target) then
HydroVariables.WeaponOptions.AimBot.Targeting.Target = nil
HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult
= { x = 1.0, y = 1.0}
end
if SuccessAimbot then
CrosshairCheck(Ped, _x, _y)
end
end
end
else
HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult = { x = 1.0, y =
1.0}
end
end
end
end
if HydroVariables.WeaponOptions.AimBot.ShowTarget and
HydroVariables.WeaponOptions.AimBot.Targeting.Target ~= nil then
local wepent =
GetCurrentPedWeaponEntityIndex(PlayerPedId())
local launchPos = GetEntityCoords(wepent)
DrawLine(launchPos,
GetEntityCoords(HydroVariables.WeaponOptions.AimBot.Targeting.Target),
HydroMenu.rgb.r, HydroMenu.rgb.g, HydroMenu.rgb.b, 255)
end
if
IsEntityOnScreen(HydroVariables.WeaponOptions.AimBot.Targeting.Target) and
IsPedShooting(PlayerPedId()) and IsPlayerFreeAiming(PlayerId()) then
local coords =
GetEntityCoords(HydroVariables.WeaponOptions.AimBot.Targeting.Target)
RequestCollisionAtCoord(coords.x, coords.y, coords.z)
ShootAtBone(HydroVariables.WeaponOptions.AimBot.Targeting.Target,
HydroVariables.WeaponOptions.AimBot.Bone, 50)
end
end
if HydroVariables.WeaponOptions.RapidFire then
DoRapidFireTick()
end
if HydroVariables.WeaponOptions.BulletOptions.Enabled then
if IsPedShooting(PlayerPedId()) then
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local wepent =
GetCurrentPedWeaponEntityIndex(PlayerPedId())
local launchPos = GetEntityCoords(wepent)
local targetPos = GetGameplayCamCoord() +
(RotationToDirection(GetGameplayCamRot(2)) * 200.0)
local weaponbullet =
HydroVariables.WeaponOptions.BulletOptions.WeaponBulletName
ShootSingleBulletBetweenCoords(launchPos, targetPos, 5, 1,
GetHashKey(weaponbullet), PlayerPedId(), true, true, 24000.0)
end
end
if HydroVariables.WeaponOptions.TriggerBot then
local hasTarget, target =
GetEntityPlayerIsFreeAimingAt(PlayerId())
if HydroVariables.WeaponOptions.ExplosiveAmmo then
local ret, pos = GetPedLastWeaponImpactCoord(PlayerPedId())
if ret then
AddExplosion(pos.x, pos.y, pos.z, 1, 1.0, 1, 0, 0.1)
end
end
if HydroVariables.WeaponOptions.DelGun then
if IsPlayerFreeAiming(PlayerId()) then
local entity = getEntity(PlayerId())
if GetEntityType(entity) == 2 or 3 then
if aimCheck(GetPlayerPed(-1)) then
SetEntityAsMissionEntity(entity, true, true)
DeleteEntity(entity)
end
end
end
end
if HydroVariables.WeaponOptions.OneShot then
SetWeaponDamageModifier(GetSelectedPedWeapon(PlayerPedId()),
1000.0)
else
SetWeaponDamageModifier(GetSelectedPedWeapon(PlayerPedId()), 1.0)
end
if HydroVariables.SelfOptions.noragdoll then
SetPedCanRagdoll(PlayerPedId(), false)
else
SetPedCanRagdoll(PlayerPedId(), true)
end
if HydroVariables.SelfOptions.superjump then
SetSuperJumpThisFrame(PlayerId())
end
if HydroVariables.SelfOptions.MoonWalk then
if IsDisabledControlPressed(0, 21) and
IsDisabledControlPressed(0, 32) then
forwardback = -9.8
elseif IsPedWalking(PlayerPedId()) then
forwardback = -3.6
else
forwardback = 0.0
end
local x, y, z = GetOffsetFromEntityInWorldCoords(PlayerPedId(),
0.0, forwardback, GetEntityVelocity(PlayerPedId())[3]) -
GetEntityCoords(PlayerPedId())
SetEntityVelocity(PlayerPedId(), x, y, z)
end
if HydroVariables.OnlinePlayer.messagelooping then
if
NetworkIsPlayerConnected(HydroVariables.OnlinePlayer.messageloopplayer) then
TriggerServerEvent("_chat:messageEntered",
GetPlayerName(HydroVariables.OnlinePlayer.messageloopplayer), { 255, 255, 255 },
HydroVariables.OnlinePlayer.messagetosend)
else
HydroVariables.OnlinePlayer.messagelooping = false
HydroVariables.OnlinePlayer.messageloopplayer = nil
HydroVariables.OnlinePlayer.messagetosend = "."
end
end
if HydroVariables.SelfOptions.disableobjectcollisions then
for door in EnumerateObjects() do
end
end
if HydroVariables.SelfOptions.disablepedcollisions then
for ped in EnumeratePeds() do
if ped ~= PlayerPedId() and IsPedAPlayer(ped) ~= true then
SetEntityCollision(ped, false, true)
end
end
end
if HydroVariables.SelfOptions.disablevehiclecollisions then
local ped = PlayerPedId()
if HydroVariables.SelfOptions.forceradar then
DisplayRadar(true)
end
if HydroVariables.SelfOptions.playercoords then
end
if HydroVariables.OnlinePlayer.MolotovWLoop then
local coords =
GetEntityCoords(GetPlayerPed(HydroVariables.OnlinePlayer.MolotovWPlayer))
AddExplosion(coords.x, coords.y, coords.z, 3, 100.0, true, false,
0.0)
end
if HydroVariables.OnlinePlayer.HydrantPlayer then
local coords =
GetEntityCoords(GetPlayerPed(HydroVariables.OnlinePlayer.MolotovWPlayer))
AddExplosion(coords.x, coords.y, coords.z, 13, 100.0, true,
false, 0.0)
end
if HydroVariables.SelfOptions.godmode then
SetPedCanRagdoll(PlayerPedId(), false)
ClearPedBloodDamage(PlayerPedId())
ResetPedVisibleDamage(PlayerPedId())
ClearPedLastWeaponDamage(PlayerPedId())
SetEntityProofs(PlayerPedId(), true, true, true, true, true,
true, true, true)
SetEntityOnlyDamagedByPlayer(PlayerPedId(), false)
SetEntityCanBeDamaged(PlayerPedId(), false)
end
if HydroVariables.SelfOptions.AutoHealthRefil then
SetEntityHealth(PlayerPedId(), 200)
end
if HydroVariables.SelfOptions.AntiHeadshot then
SetPedSuffersCriticalHits(PlayerPedId(), false)
end
if HydroVariables.SelfOptions.invisiblitity then
SetEntityVisible(PlayerPedId(), false, true)
end
if HydroVariables.OnlinePlayer.FlingingPlayer then
local coords =
GetEntityCoords(GetPlayerPed(HydroVariables.OnlinePlayer.FlingingPlayer))
ShootSingleBulletBetweenCoords(AddVectors(coords, vector3(0, 0,
0.1)), coords, 0.0, true, GetHashKey("WEAPON_RAYPISTOL"), PlayerPedId(), true,
true, 100)
end
if HydroVariables.OnlinePlayer.MolotovLoop then
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.MolotovPlayer)
local pedcoords = GetEntityCoords(ped)
RequestNamedPtfxAsset("core")
UseParticleFxAssetNextCall("core")
StartNetworkedParticleFxNonLoopedAtCoord("exp_air_molotov",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.FireWorkLoop then
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.FireWorkPlayer)
RequestNamedPtfxAsset("scr_indep_fireworks")
UseParticleFxAssetNextCall("scr_indep_fireworks")
StartNetworkedParticleFxNonLoopedAtCoord("scr_indep_firework_trailburst",
pedcoords, 0.0, 0.0, 0.0, 1.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.FireWork2Loop then
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.FireWork2Player)
RequestNamedPtfxAsset("proj_indep_firework_v2")
UseParticleFxAssetNextCall("proj_indep_firework_v2")
StartNetworkedParticleFxNonLoopedAtCoord("scr_firework_indep_ring_burst_rwb",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.SmokeLoop then
RequestNamedPtfxAsset("scr_agencyheist")
UseParticleFxAssetNextCall("scr_agencyheist")
StartNetworkedParticleFxNonLoopedAtCoord("scr_fbi_dd_breach_smoke",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.JesusLightLoop then
RequestNamedPtfxAsset("scr_rcbarry1")
UseParticleFxAssetNextCall("scr_rcbarry1")
StartNetworkedParticleFxNonLoopedAtCoord("scr_alien_teleport",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.AlienLightLoop then
RequestNamedPtfxAsset("scr_rcbarry2")
UseParticleFxAssetNextCall("scr_rcbarry2")
StartNetworkedParticleFxNonLoopedAtCoord("scr_clown_appears",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if HydroVariables.OnlinePlayer.ExplosionParticlePlayer then
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.ExplosionParticlePlayer)
RequestNamedPtfxAsset("scr_exile1")
UseParticleFxAssetNextCall("scr_exile1")
StartNetworkedParticleFxNonLoopedAtCoord("scr_ex1_plane_exp_sp",
pedcoords, 0.0, 0.0, 0.0, 10.0, false, false, false, false)
end
if TazeLoop then
end
DrawRect2(HydroMenu.ScreenWidth / 2 - 2, HydroMenu.ScreenHeight /
2 - 7, 3, 13, 0, 0, 0, 255)
DrawRect2(HydroMenu.ScreenWidth / 2 - 7, HydroMenu.ScreenHeight /
2 - 2, 13, 3, 0, 0, 0, 255)
DrawRect2(HydroMenu.ScreenWidth / 2 - 1, HydroMenu.ScreenHeight /
2 - 6, 1, 11, 255, 255, 255, 255)
DrawRect2(HydroMenu.ScreenWidth / 2 - 6, HydroMenu.ScreenHeight /
2 - 1, 11, 1, 255, 255, 255, 255)
end
Wait(0)
end
end)
function CrosshairCheck(Ped, x, y)
if x < 0.0 then
x = x * -1
end
if y < 0.0 then
y = y * -1
end
if HydroVariables.WeaponOptions.AimBot.ThroughWalls then
if x < HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.x and
y < HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.y then
HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.x = x
HydroVariables.WeaponOptions.AimBot.Targeting.Target = Ped
end
elseif HasEntityClearLosToEntityInFront(PlayerPedId(), Ped) then
if x < HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.x and
y < HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.y then
HydroVariables.WeaponOptions.AimBot.Targeting.LowestResult.x = x
HydroVariables.WeaponOptions.AimBot.Targeting.Target = Ped
end
end
end
function DrawRect2(x, y, w, h, r, g, b, a)
local _w, _h = w / HydroMenu.ScreenWidth, h / HydroMenu.ScreenHeight
local _x, _y = x / HydroMenu.ScreenWidth + _w / 2, y / HydroMenu.ScreenHeight +
_h / 2
Citizen.InvokeNative(0x3A618A217E5154F0,_x, _y, _w, _h, r, g, b, a)
end
function NativeExplosionServerLoop()
Citizen.CreateThread(function()
while HydroVariables.AllOnlinePlayers.ExplodisionLoop do
OnlinePlayers = GetActivePlayers()
Wait(250)
for i = 1, #OnlinePlayers do
if HydroVariables.AllOnlinePlayers.IncludeSelf and
OnlinePlayers[i] ~= PlayerId() then
local ped = GetPlayerPed(OnlinePlayers[i])
local coords = GetEntityCoords(ped)
AddExplosion(coords.x, coords.y, coords.z, 29, 100.0,
true, false, 0.0)
elseif not HydroVariables.AllOnlinePlayers.IncludeSelf then
local ped = GetPlayerPed(OnlinePlayers[i])
local coords = GetEntityCoords(ped)
AddExplosion(coords.x, coords.y, coords.z, 29, 100.0,
true, false, 0.0)
end
end
end
end)
end
function NativeExplosionLoop()
Citizen.CreateThread(function()
while HydroVariables.OnlinePlayer.ExplosionLoop do
Wait(1)
local ped =
GetPlayerPed(HydroVariables.OnlinePlayer.ExplodingPlayer)
local coords = GetEntityCoords(ped)
AddExplosion(coords.x, coords.y, coords.z,
HydroVariables.OnlinePlayer.ExplosionType, 100.0, true, false, 0.0)
end
end)
end
function GetVelocityAimbot(entity)
vel = GetEntityVelocity(entity)
vel = vel[2]
if vel < 0 then
vel = vel * -1
end
vel = vel / 2
return vel
end
function DoRapidFireTick()
DisablePlayerFiring(PlayerPedId(), true)
if IsDisabledControlPressed(0, 257) and IsPlayerFreeAiming(PlayerId()) then
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
local wepent = GetCurrentPedWeaponEntityIndex(PlayerPedId())
local launchPos = GetEntityCoords(wepent)
local targetPos = GetGameplayCamCoord() +
(RotationToDirection(GetGameplayCamRot(2)) * 200.0)
function getEntity(player)
local _, entity = GetEntityPlayerIsFreeAimingAt(player)
return entity
end
function aimCheck(player)
if onAim == "true" then
return true
else
return IsPedShooting(player)
end
end
function HelpAlert(msg)
SetTextComponentFormat("STRING")
AddTextComponentString(msg)
DisplayHelpTextFromStringLabel(0,0,1,-1)
end
-- How To Use
-- local clientid, serverid = HydroMenu.GetPlayerFromPedId(ped)
function HydroMenu.GetPlayerFromPedId(ped)
PlayerList = GetActivePlayers()
for i = 1, #PlayerList do
local playerped = GetPlayerPed(PlayerList[i])
if playerped == ped then
return i, GetPlayerServerId(PlayerList[i])
end
end
return false
end
function TogPoliceHeadlights()
Citizen.CreateThread(function()
while not killmenu do
if not policeheadlights then
local veh = GetVehiclePedIsUsing(PlayerPedId())
ToggleVehicleMod(veh, 22, true)
SetVehicleHeadlightsColour(veh, 0)
return
end
Wait(500)
local veh = GetVehiclePedIsUsing(PlayerPedId())
ToggleVehicleMod(veh, 22, true) -- toggle xenon
SetVehicleHeadlightsColour(veh, 1)
Wait(500)
SetVehicleHeadlightsColour(veh, 8)
end
end)
end
local Keybinds = {
{ 0x30, "0", false },
{ 0x31, "1", false },
{ 0x32, "2", false },
{ 0x33, "3", false },
{ 0x34, "4", false },
{ 0x35, "5", false },
{ 0x36, "6", false },
{ 0x37, "7", false },
{ 0x38, "8", false },
{ 0x39, "9", false },
{ 0x41, "A", false },
{ 0x42, "B", false },
{ 0x43, "C", false },
{ 0x44, "D", false },
{ 0x45, "E", false },
{ 0x46, "F", false },
{ 0x47, "G", false },
{ 0x48, "H", false },
{ 0x49, "I", false },
{ 0x4A, "J", false },
{ 0x4B, "K", false },
{ 0x4C, "L", false },
{ 0x4D, "M", false },
{ 0x4E, "N", false },
{ 0x4F, "O", false },
{ 0x50, "P", false },
{ 0x51, "Q", false },
{ 0x52, "R", false },
{ 0x53, "S", false },
{ 0x54, "T", false },
{ 0x55, "U", false },
{ 0x56, "V", false },
{ 0x57, "W", false },
{ 0x58, "X", false },
{ 0x59, "Y", false },
{ 0x5A, "Z", false },
{ 0x20, " ", false },
{ 0xBD, "_", false }
}
Wait(30)
local OneUsed = 0
local FlashThing = 0
local Input = ""
for i = 1, #Keybinds do
Keybinds[i][3] = false
end
while true do
DisableAllControlActions(0)
Wait(0)
end
end
function AlienColourSpam()
Citizen.CreateThread(function()
while HydroVariables.SelfOptions.AlienColorSpam do
SetPedComponentVariation(PlayerPedId(), 0, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 1, 134, 8, 0)
SetPedComponentVariation(PlayerPedId(), 2, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 3, 13, 0, 0)
SetPedComponentVariation(PlayerPedId(), 4, 106, 8, 0)
SetPedComponentVariation(PlayerPedId(), 8, 274, 8, 0)
SetPedComponentVariation(PlayerPedId(), 11, 274, 8, 0)
SetPedComponentVariation(PlayerPedId(), 6, 83, 8, 0)
SetPedPropIndex(PlayerPedId(), 1, 0, 0, 0)
Wait(30)
SetPedComponentVariation(PlayerPedId(), 0, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 1, 134, 9, 0)
SetPedComponentVariation(PlayerPedId(), 2, 0, 0, 0)
SetPedComponentVariation(PlayerPedId(), 3, 13, 0, 0)
SetPedComponentVariation(PlayerPedId(), 4, 106, 9, 0)
SetPedComponentVariation(PlayerPedId(), 8, 274, 9, 0)
SetPedComponentVariation(PlayerPedId(), 11, 274, 9, 0)
SetPedComponentVariation(PlayerPedId(), 6, 83, 9, 0)
SetPedPropIndex(PlayerPedId(), 1, 0, 0, 0)
Wait(30)
end
end)
end
if (GetOnscreenKeyboardResult()) then
result = GetOnscreenKeyboardResult()
CancelOnscreenKeyboard()
end
CancelOnscreenKeyboard()
return result
end
function RampAllCars()
for vehicle in EnumerateVehicles() do
local ramp = CreateObject(GetHashKey("stt_prop_stunt_track_start"), 0,
0, 0, true, true, true)
NetworkRequestControlOfEntity(vehicle)
if DoesEntityExist(vehicle) then
AttachEntityToEntity(ramp, vehicle, 0, 0, -1.0, 0.0, 0.0, 0,
true, true, false, true, 1, true)
end
NetworkRequestControlOfEntity(ramp)
SetEntityAsMissionEntity(ramp, true, true)
end
end
function DisableAnticheat(anticheat)
if string.find(anticheat, "anticheese") then
TriggerServerEvent("anticheese:SetComponentStatus", "Teleport", false)
TriggerServerEvent("anticheese:SetComponentStatus", "GodMode", false)
TriggerServerEvent("anticheese:SetComponentStatus", "Speedhack", false)
TriggerServerEvent("anticheese:SetComponentStatus", "WeaponBlacklist",
false)
TriggerServerEvent("anticheese:SetComponentStatus", "CustomFlag",
false)
TriggerServerEvent("anticheese:SetComponentStatus", "Explosions",
false)
TriggerServerEvent("anticheese:SetComponentStatus", "CarBlacklist",
false)
PushNotification("Disabled Anticheese", 600)
elseif string.find(anticheat, "badger") then
TriggerEvent("Anticheat:CheckStaffReturn", true)
end
end
local specialmessage = 1
local messsage = "Hydro "
function HydroPlate()
Citizen.CreateThread(function()
while HydroVariables.VehicleOptions.Hydroplate do
if specialmessage == 1 then
messsage = "Hydro "
elseif specialmessage == 2 then
messsage = "ydro "
elseif specialmessage == 3 then
messsage = "dro "
elseif specialmessage == 4 then
messsage = "ro "
elseif specialmessage == 5 then
messsage = "o "
elseif specialmessage == 6 then
messsage = " "
elseif specialmessage == 7 then
messsage = " H"
elseif specialmessage == 8 then
messsage = " Hy"
elseif specialmessage == 9 then
messsage = " Hyd"
elseif specialmessage == 10 then
messsage = " Hydr"
elseif specialmessage == 11 then
messsage = " Hydro"
elseif specialmessage == 12 then
messsage = " Hydro "
elseif specialmessage == 13 then
messsage = " Hydro "
elseif specialmessage == 14 then
messsage = "Hydro "
end
if specialmessage > 13 then
specialmessage = 1
end
local vehicle = GetVehiclePedIsIn(PlayerPedId())
local lastveh = GetPlayersLastVehicle(PlayerPedId())
SetVehicleNumberPlateText(vehicle, messsage)
SetVehicleNumberPlateText(lastveh, messsage)
specialmessage = specialmessage + 1
Citizen.Wait(250)
if killmenu then
break
end
end
end)
end
function HydroMenu.DoesServerHaveResource(resource)
local resourcelist = GetResources()
for i = 1, #resourcelist do
if resourcelist[i] == resource then
return true
end
end
return false
end
function IsEntityAlreadyAdded(entity)
for i = 1, #HydroMenu.Objectlist do
local id = HydroMenu.Objectlist[i].ID
if HydroMenu.Objectlist[i].ID == entity then
return true
end
end
return false
end
return false
end
function ForceMod(Toggle)
ForceTog = Toggle
if ForceTog then
Citizen.CreateThread(function()
PushNotification("Force ~g~Enabled ~w~Press E to use", 600)
local ForceKey = 38
local KeyPressed = false
local KeyTimer = 0
local KeyDelay = 15
local ForceEnabled = false
local StartPush = false
local Distance = 20
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 and k ~=
HydroVariables.VehicleOptions.PersonalVehicle 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)) * Distance)
for k in EnumerateVehicles() do
SetEntityInvincible(k, true)
if IsEntityOnScreen(k) and (k ~= PlayerVeh) and k ~=
HydroVariables.VehicleOptions.PersonalVehicle 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
while ForceTog do forcetick() Wait(0) end
end)
else PushNotification("Force ~r~Disabled ~w~Press E to use", 600) end
end
function RequestControlOnce(entity)
if not NetworkIsInSession or NetworkHasControlOfEntity(entity) then
return true
end
SetNetworkIdCanMigrate(NetworkGetNetworkIdFromEntity(entity), true)
return NetworkRequestControlOfEntity(entity)
end
ApplyForce(entity, targetPos)
end
function KickAllFromVeh()
local playerlist = GetActivePlayers()
for i = 1, #playerlist do
Wait(50)
local currPlayer = playerlist[i]
if HydroVariables.AllOnlinePlayers.IncludeSelf and playerlist[i] ~=
PlayerId() then
ClearPedTasksImmediately(GetPlayerPed(currPlayer))
elseif not HydroVariables.AllOnlinePlayers.IncludeSelf then
ClearPedTasksImmediately(GetPlayerPed(currPlayer))
end
end
end
function AddRampToCar(player)
local ped = GetPlayerPed(player)
local vehi = GetVehiclePedIsIn(ped, 0)
local ramp = CreateObject(GetHashKey("prop_jetski_ramp_01"), 0, 0, 0, 1, 1,
1)
AttachEntityToEntity(ramp, vehi, 0, 0.0, 5.0, 0.0, 0.0, 0.0, 180.0, false,
false, true, false, 0, true)
end
function MaxOut(veh)
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)
end
function CagePlayer(player)
local ped = GetPlayerPed(player)
local coords = GetEntityCoords(ped)
local inveh = IsPedInAnyVehicle(ped)
if inveh then
end
end
function UFOVeh(player)
local ped = GetPlayerPed(player)
local coords = GetOffsetFromEntityInWorldCoords(ped, 0.0, 8.0, 0.5)
local x = coords.x
local y = coords.y
local z = coords.z
if not HasModelLoaded(GetHashKey("hydra")) then
RequestModel(GetHashKey("hydra"))
Wait(500)
end
function ScreenToWorld(screenCoord)
local camRot = GetGameplayCamRot(2)
local camPos = GetGameplayCamCoord()
function WorldToScreenRel(worldCoords)
local check, x, y = GetScreenCoordFromWorldCoord(worldCoords.x, worldCoords.y,
worldCoords.z)
if not check then
return false
end
function RotationToDirection(rotation)
local retz = math.rad(rotation.z)
local retx = math.rad(rotation.x)
local absx = math.abs(math.cos(retx))
return vector3(-math.sin(retz) * absx, math.cos(retz) * absx, math.sin(retx))
end
return x, y, z
end
function GetCamDirFromScreenCenter()
local pos = GetGameplayCamCoord()
local world = ScreenToWorld(0, 0)
local ret = SubVectors(world, pos)
return ret
end
function RampCar(player)
local ped = GetPlayerPed(player)
local coords = GetOffsetFromEntityInWorldCoords(ped, 0.0, 8.0, 0.5)
local x = coords.x
local y = coords.y
local z = coords.z
function SWATTeamPullUp(player)
for i = 1, 1 do
local ped = GetPlayerPed(player)
local coords = GetEntityCoords(ped)
RequestModel(GetHashKey(pedmodel))
RequestModel(GetHashKey(carmodel))
local loadattemps = 0
SetVehicleSiren(veh, true)
ClearPedTasks(nped)
if DoesEntityExist(veh) then
SetPedIntoVehicle(nped, veh, -1)
SetPedIntoVehicle(nped2, veh, 0)
SetPedIntoVehicle(nped3, veh, 1)
SetPedIntoVehicle(nped4, veh, 2)
else
DeleteEntity(nped)
DeleteEntity(nped2)
DeleteEntity(nped3)
DeleteEntity(nped4)
DeleteEntity(veh)
end
SetVehicleOnGroundProperly(veh)
end
end
function StartFireworks()
Citizen.CreateThread(function()
box = nil
repeat
UseParticleFxAssetNextCall("scr_indep_fireworks")
local part1 =
StartNetworkedParticleFxNonLoopedAtCoord("scr_indep_firework_trailburst",
firecoords, 0.0, 0.0, 0.0, 1.0, false, false, false, false)
times = times - 1
Citizen.Wait(2000)
until(times == 0)
DeleteEntity(box)
box = nil
end)
end
function FlyPlaneIntoPlayer(player)
RequestModel(GetHashKey(pedmodel))
RequestModel(GetHashKey(planemodel))
local loadattemps = 0
ClearPedTasks(nped)
-- SetPedIntoVehicle(PlayerPedId(), veh, 0)
SetVehicleForwardSpeed(veh, 336.0)
SetPedKeepTask(nped, true)
end
function HelicopterChase(player)
ped = GetPlayerPed(player)
coords = GetEntityCoords(ped)
RequestModel(GetHashKey(pedmodel))
RequestModel(GetHashKey(planemodel))
local loadattemps = 0
ClearPedTasks(nped)
TaskVehicleChase(nped, GetPlayerPed(selectedPlayer))
SetPedKeepTask(nped, true)
SetPedCanSwitchWeapon(nped2, true)
SetPedCanSwitchWeapon(nped3, true)
SetPedCanSwitchWeapon(nped4, true)
SetEntityInvincible(nped, true)
SetEntityInvincible(nped2, true)
SetEntityInvincible(nped3, true)
SetEntityInvincible(nped2, true)
SetPedKeepTask(nped, true)
SetPedKeepTask(nped2, true)
SetPedKeepTask(nped3, true)
SetPedKeepTask(nped4, true)
SetRelationshipBetweenGroups(5,GetHashKey("PLAYER"),GetHashKey(pedmodel))
SetRelationshipBetweenGroups(5,GetHashKey(pedmodel),GetHashKey("PLAYER"))
end
local stops = 0
function SpamServerChatLoop()
stops = 0
Citizen.CreateThread(function()
while HydroVariables.MiscOptions.SpamServerChat do
Wait(1)
SpamServerChat()
mocks = mocks + 1
if mocks > 1250 then
stops = stops + 1
Wait(10 * 1000)
mocks = 0
elseif stops > 5 then
Wait(60 * 1000)
stops = 0
end
if killmenu then
break
end
end
end)
end
local rand = 1
function SpamServerChat()
colourslist = {'^1', '^2', '^3', '^4' , '^5', '^6', '^7', '^8', '^9'}
function TeleportToPlayer(target)
local ped = GetPlayerPed(target)
local pos = GetEntityCoords(ped)
SetEntityCoords(PlayerPedId(), pos)
end
function HydroMenu.Functions.SpawnPed(Data)
local LoadAttemps = 0
RequestModel(GetHashKey(Data.Model))
x, y, z = table.unpack(Data.Coords)
if Data.Behaviour == 24 then
TaskCombatPed(Ped, GetPlayerPed(selectedPlayer), 0, 16 )
end
if Data.Weapon then
GiveWeaponToPed(Ped, Data.Weapon, 9999, false, true)
end
SetEntityCoords(Ped, Data.Coords)
return Ped
end
RequestModel(GetHashKey(model))
local loadattemps = 0
if angry then
local nped = CreatePed(31, model, x, y, z, 0.0, true, true)
TaskCombatPed(nped, ped, 0, 16 )
if (model == "csb_mweather") then
SetEntityInvincible(nped, true)
GiveWeaponToPed(nped, "WEAPON_RAYMINIGUN", 9999, false, true)
end
else
local nped = CreatePed(4, model, x, y, z, 0.0, true, true)
end
SetEntityCoords(nped, x, y, z, 1, 1, 1, false)
return nped
end
function FakeChatMessage(name)
if AntiCheats.ChocoHax or AntiCheats.WaveSheild or AntiCheats.BadgerAC then
PushNotification("Anticheat Detected! Function Blocked", 600)
else
local result = HydroMenu.KeyboardEntry("Message as " .. name, 200)
else
TriggerServerEvent("_chat:messageEntered", name, { 255, 255, 255 },
result)
end
end
end
else
RequestModel(GetHashKey(model))
Wait(500)
end
if HasModelLoaded(GetHashKey(model)) then
local veh = CreateVehicle(GetHashKey(model), coords.x + 1.0, coords.y +
1.0, coords.z, 0.0, 1, 1)
return veh
end
end
function ExplosionAllPlayers()
local playerlist = GetActivePlayers()
for i = 1, #playerlist do
if HydroVariables.AllOnlinePlayers.IncludeSelf and playerlist[i] ~=
PlayerId() then
local ped = GetPlayerPed(playerlist[i])
local coords = GetEntityCoords(ped)
AddExplosion(coords.x, coords.y, coords.z, 4, 100.0, true, false,
0.0)
elseif not HydroVariables.AllOnlinePlayers.IncludeSelf then
local ped = GetPlayerPed(playerlist[i])
local coords = GetEntityCoords(ped)
AddExplosion(coords.x, coords.y, coords.z, 4, 100.0, true, false,
0.0)
end
end
end
function RampPlayer(player)
Citizen.CreateThread(function()
local ped = GetPlayerPed(player)
local coords = GetEntityCoords(ped)
local x = coords.x
local y = coords.y
local z = coords.z
if killmenu then
return
end
return ExitThread
end)
end
function DildosServer()
local playerlist = GetActivePlayers()
local anticrash = 0
RequestModel("prop_cs_dildo_01")
for i = 1, #playerlist do
local ped = GetPlayerPed(playerlist[i])
local coords = GetEntityCoords(ped)
for i = 1, 15 do
CreateObject(GetHashKey("prop_cs_dildo_01"), coords.x, coords.y,
coords.z, 1, 1, 1)
end
end
end
function AllPlayersAreARamp()
local playerlist = GetActivePlayers()
for i = 1, #playerlist do
Wait(0)
local PlayerToRamp = playerlist[i]
RampPlayer(PlayerToRamp)
end
end
function BusServerLoop()
local playerlist = GetActivePlayers()
if HasModelLoaded(GetHashKey(model)) then
else
RequestModel(GetHashKey(model))
Wait(500)
end
Citizen.CreateThread(function()
while HydroVariables.AllOnlinePlayers.busingserverloop do
Wait(150)
if killmenu then
break
end
BusServer()
end
end)
end
function CargoPlaneServerLoop()
local playerlist = GetActivePlayers()
if HasModelLoaded(GetHashKey(model)) then
else
RequestModel(GetHashKey(model))
Wait(500)
end
Citizen.CreateThread(function()
while HydroVariables.AllOnlinePlayers.cargoplaneserverloop do
if killmenu then
break
end
Wait(150)
CargoplaneServer()
end
end)
end
function CargoplaneServer()
local playerlist = GetActivePlayers()
if HasModelLoaded(GetHashKey(model)) then
else
RequestModel(GetHashKey(model))
Wait(500)
end
for i = 1, #playerlist do
if HydroVariables.AllOnlinePlayers.IncludeSelf and playerlist[i] ~=
PlayerId() then
local currPlayer = playerlist[i]
local coords = GetEntityCoords(GetPlayerPed(currPlayer))
function BusServer()
if HasModelLoaded(GetHashKey(model)) then
else
RequestModel(GetHashKey(model))
Wait(500)
end
for i = 1, #playerlist do
if HydroVariables.AllOnlinePlayers.IncludeSelf and ActivePlayers[i] ~=
PlayerId() then
local currPlayer = playerlist[i]
BusPlayer(currPlayer)
elseif not HydroVariables.AllOnlinePlayers.IncludeSelf then
local currPlayer = playerlist[i]
BusPlayer(currPlayer)
end
end
end
function BusPlayer(player)
local model = "airbus"
local anticrash = 0
while not HasModelLoaded(GetHashKey(model)) and anticrash < 5000 do
anticrash = anticrash + 1
RequestModel(GetHashKey(model))
Wait(0)
end
if DoesEntityExist(busone) then
ApplyForceToEntity(busone, 1, -5000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0,
1, 1, 0, 1)
else
SetEntityCoords(busone, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0,
false)
end
Wait(150)
if DoesEntityExist(bustwo) then
ApplyForceToEntity(bustwo, 1, -5000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 1,
1, 0, 1)
else
SetEntityCoords(bustwo, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0,
false)
end
end
function RageShoot(target)
if not IsPedDeadOrDying(target) then
local boneTarget = GetPedBoneCoords(target,
GetEntityBoneIndexByName(target, "SKEL_HEAD"), 0.0, 0.0, 0.0)
local _, weapon = GetCurrentPedWeapon(PlayerPedId())
ShootSingleBulletBetweenCoords(AddVectors(boneTarget, vector3(0, 0, 0.1)),
boneTarget, 9999, true, weapon, PlayerPedId(), false, false, 1000.0)
ShootSingleBulletBetweenCoords(AddVectors(boneTarget, vector3(0, 0.1, 0)),
boneTarget, 9999, true, weapon, PlayerPedId(), false, false, 1000.0)
ShootSingleBulletBetweenCoords(AddVectors(boneTarget, vector3(0.1, 0, 0)),
boneTarget, 9999, true, weapon, PlayerPedId(), false, false, 1000.0)
end
end
HydroVariables.Notifications = {}
Citizen.CreateThread(function()
while not killmenu do
for i = 1, #HydroVariables.Notifications do
if HydroVariables.Notifications[i][2] == nil then
HydroVariables.Notifications[i][2] = 2
end
Wait(1)
end
end)
function SafeModeNotification()
PushNotification("Safe Mode is ~g~Active ~s~Function Blocked", 600)
end
function VaultDoors()
Citizen.CreateThread(function()
while HydroVariables.ScriptOptions.vault_doors do
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local door = GetClosestObjectOfType(coords.x, coords.y, coords.z,
1.0, "v_ilev_gb_vauldr", false, false, false)
local door2 = GetClosestObjectOfType(coords.x, coords.y,
coords.z, 1.0, "v_ilev_bk_vaultdoor", false, false, false)
SetEntityCoords(door, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, false)
SetEntityCoords(door2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, false)
DeleteEntity(door)
DeleteEntity(door2)
Wait(5000)
end
end)
end
function GGACBypass()
Citizen.CreateThread(function()
while HydroVariables.ScriptOptions.GGACBypass do
TriggerServerEvent("gameCheck")
Wait(5000)
end
end)
end
function ScreenshotBasicBypass()
Citizen.CreateThread(function()
while HydroVariables.ScriptOptions.SSBBypass and not killmenu do
for i = 1, 20 do
TriggerServerEvent("EasyAdmin:CaptureScreenshot")
end
Wait(20000)
end
end)
end
function CrouchScript()
Citizen.CreateThread( function()
while HydroVariables.ScriptOptions.script_crouch do
Citizen.Wait( 1 )
-----------------------------------------------------------------------------------
--------------------------------------------------
-------------------------------------------------------- Anticheat Detection
--------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------------------------
function RapePlayer(player)
RequestModel(GetHashKey(rmodel))
RequestAnimDict("rcmpaparazzo_2")
SetPedKeepTask(nped)
TaskPlayAnim(nped, "rcmpaparazzo_2", "shag_loop_a", 2.0, 2.5, -1,49, 0, 16,
0, 0)
AttachEntityToEntity(nped, ped, 0, 0.0, -0.3, 0.0, 0.0, 0.0, 0.0, true, true,
true, true, 0, true)
end
function PlayerBlips()
if not HydroVariables.MiscOptions.ESPBlips then
Wait(100)
end
for i = 1, #HydroVariables.MiscOptions.ESPBlipDB do
local CurrentEntry = HydroVariables.MiscOptions.ESPBlipDB[i]
if CurrentEntry ~= nil then
local Blip = CurrentEntry.Blip
if DoesBlipExist(Blip) then
SetBlipDisplay(Blip, 0)
RemoveBlip(Blip)
end
if DoesBlipExist(CurrentEntry.Blip) then
SetBlipDisplay(Blip, 0)
RemoveBlip(CurrentEntry.Blip)
end
table.remove(HydroVariables.MiscOptions.ESPBlipDB, i)
end
end
Citizen.CreateThread(function()
while HydroVariables.MiscOptions.ESPBlips do
Wait(100)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(GetPlayerName(CurPlayer))
EndTextCommandSetBlipName(Blipa)
SetBlipShrink(Blipa, true)
SetBlipCategory(Blipa, 7)
for i = 1, #HydroVariables.MiscOptions.ESPBlipDB do
local CurrentEntry = HydroVariables.MiscOptions.ESPBlipDB[i]
if CurrentEntry ~= nil then
local CurPlayer = CurrentEntry.Player
local CurPlayerPed = GetPlayerPed(CurPlayer)
local x, y, z =
table.unpack(GetEntityCoords(CurPlayerPed))
local Blip = CurrentEntry.Blip
if TableHasValue(FriendsList,
GetPlayerServerId(CurPlayer)) then
ShowCrewIndicatorOnBlip(Blip, true)
ShowFriendIndicatorOnBlip(Blip, true)
else
ShowCrewIndicatorOnBlip(Blip, false)
ShowFriendIndicatorOnBlip(Blip, false)
end
SetBlipCoords(Blip, x, y, z)
if IsEntityDead(CurPlayerPed) then
SetBlipColour(Blip, 1)
else
SetBlipColour(Blip, 0)
end
if NetworkIsPlayerConnected(CurPlayer) ~= 1 then
if DoesBlipExist(Blip) then
RemoveBlip(Blip)
end
if DoesBlipExist(CurrentEntry.Blip) then
RemoveBlip(CurrentEntry.Blip)
end
table.remove(HydroVariables.MiscOptions.ESPBlipDB, i)
end
end
end
end
end)
end
function BlipCreatedForPlayer(player)
for k = 1, #HydroVariables.MiscOptions.ESPBlipDB do
CurrentEntry = HydroVariables.MiscOptions.ESPBlipDB[k]
if player == CurrentEntry.Player then
return true
end
end
return false
end
local SpecialCharacter = {
ClosingBracket = ")",
}
function FindDynamicTriggers()
PushNotification("Searching for Triggers", 1000)
Citizen.CreateThread(function()
local Resources = GetResources()
for i = 1, #Resources do
Time = math.random(5, 100)
Wait(Time)
curres = Resources[i]
for k, v in pairs({'fxmanifest.lua', '__resource.lua'}) do
data = LoadResourceFile(curres, v)
HydroMenu.DynamicTriggers.Triggers[CurSearch[2]] = resline
end
end
elseif string.find(resline,
"RegisterNetEvent") then
for i = 1,
#HydroMenu.DynamicTriggers.Search do
local CurSearch =
HydroMenu.DynamicTriggers.Search[i]
if
string.find(resline, CurSearch[1]) then
resline =
resline:gsub("RegisterNetEvent(", "")
resline =
resline:gsub("'", "")
resline =
resline:gsub([["]], "")
resline =
splitString(resline, "(")[1]
resline =
splitString(resline, ")")[1]
HydroMenu.DynamicTriggers.Triggers[CurSearch[2]] = resline
end
end
elseif string.find(resline,
"TriggerServerEvent") then
for i = 1,
#HydroMenu.DynamicTriggers.Search do
local CurSearch =
HydroMenu.DynamicTriggers.Search[i]
if resline ~= nil
and string.find(resline, CurSearch[1]) then
resline =
resline:gsub("TriggerServerEvent(", "")
backup =
resline
resline =
splitString(resline, "(")[2]
if resline
~= nil then
HydroMenu.DynamicTriggers.Triggers[CurSearch[2]] = resline
else
backup
= backup:gsub(" ", "")
backup
= splitString(backup, ",")[1]
backup
= backup:gsub('%W','')
HydroMenu.DynamicTriggers.Triggers[CurSearch[2]] = backup
end
end
end
elseif string.find(resline,
"TriggerServerCallback") then
for i = 1,
#HydroMenu.DynamicTriggers.Search do
local CurSearch =
HydroMenu.DynamicTriggers.Search[i]
if
string.find(resline, CurSearch[1]) then
resline =
resline:gsub("TriggerServerCallback(", "")
resline =
splitString(resline, "(")[2]
resline =
splitString(resline, ")")[1]
resline =
splitString(resline, " ")[1]
resline =
resline:gsub(" ", "")
resline =
resline:gsub("'", "")
resline =
resline:gsub('"', "")
resline =
resline:gsub(',', "")
HydroMenu.DynamicTriggers.Triggers[CurSearch[2]] = resline
end
end
end
end
end
end
end
end
end
end
PushNotification("Triggers Search Complete", 1000)
end)
end
function FindACResource()
PushNotification("Searching for Servers Anticheat", 1000)
Citizen.CreateThread(function()
local Resources = GetResources()
for i = 1, #Resources do
curres = Resources[i]
for k, v in pairs({'fxmanifest.lua', '__resource.lua'}) do
data = LoadResourceFile(curres, v)
if tonumber(FinishedString) then
if AntiCheats.ChocoHax == false then
PushNotification("ChocoHax Detected
in " .. curres, 1000)
end
AntiCheats.ChocoHax = true
end
end
end
RegisterNetEvent('chatMessage')
AddEventHandler('chatMessage', function(author, color, text)
local pname = GetPlayerName(source)
local pid = GetPlayerServerId(source)
if pid ~= 0 then
return
end
function StartPersonalVehicleCam()
ClearFocus()
HydroVariables.VehicleOptions.PersonalVehicleCam =
CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", GetEntityCoords(playerPed), 0, 0, 0,
50.0 * 1.0)
SetCamActive(HydroVariables.VehicleOptions.PersonalVehicleCam, true)
RenderScriptCams(true, false, 0, true, false)
SetCamAffectsAiming(HydroVariables.VehicleOptions.PersonalVehicleCam, false)
AttachCamToEntity(HydroVariables.VehicleOptions.PersonalVehicleCam,
HydroVariables.VehicleOptions.PersonalVehicle, 0.0, -6.6, 1.2, true)
end
function EndPersonalVehicleCam()
ClearFocus()
SetFocusEntity(PlayerPedId())
HydroVariables.VehicleOptions.PersonalVehicleCam = nil
end
--------------------------------------------------
---- CINEMATIC CAM FOR FIVEM MADE BY KIMINAZE ----
--------------------------------------------------
--------------------------------------------------
------------------- VARIABLES --------------------
--------------------------------------------------
-- main variables
local offsetCoords = {}
offsetCoords.x = 0.0
offsetCoords.y = 0.0
offsetCoords.z = 0.0
local counter = 0
local precision = 1.0
local currPrecisionIndex
local precisions = {}
local currFilter = 1
local currFilterIntensity = 10
local filterInten = {}
for i=0.1, 2.01, 0.1 do table.insert(filterInten, tostring(i)) end
-- menu variables
local itemCamPrecision
local itemFilter
local itemFilterIntensity
local itemAttachCam
local itemPointEntity
local ObjectSpoonerButtons = {
{
["label"] = "Open Menu",
["button"] = "~INPUT_ENTER~"
},
{
["label"] = "Go Faster",
["button"] = "~INPUT_SPRINT~"
},
{
["label"] = "Edit",
["button"] = "~INPUT_AIM~"
},
{
["label"] = "Delete",
["button"] = "~INPUT_CREATOR_DELETE~"
},
{
["label"] = "Duplicate",
["button"] = "~INPUT_LOOK_BEHIND~"
},
{
["label"] = "Add Object To DB",
["button"] = "~INPUT_REPLAY_STARTPOINT~"
},
{
["label"] = "Create Vehicle",
["button"] = "~INPUT_PICKUP~"
}
}
local FreeCameraButtons = {
{
["label"] = "Go Faster",
["button"] = "~INPUT_SPRINT~"
},
{
["label"] = "Set Vehicle As Personal Vehicle",
["button"] = "~INPUT_CONTEXT_SECONDARY~"
},
{
["label"] = "Teleport Into Vehicle",
["button"] = "~INPUT_MULTIPLAYER_INFO~"
}
}
function GetGroundZAtCoords(x, y)
for i = 1, 500 do
local retval, z, normal = GetGroundZAndNormalFor_3dCoord(x, y, i)
print(normal)
if retval == 1 then
return z
end
end
end
--------------------------------------------------
---------------------- LOOP ----------------------
--------------------------------------------------
Citizen.CreateThread(function()
while not killmenu do
if (cam) then
if noclipping then
NoClip()
end
ProcessCamControls()
if FreeCameraMode == "Object Spooner" then
if GetEntityInFrontOfCam() == 0 then
HydroMenu.DrawRect(0.5, 0.5, 0.00075, 0.035, { r =
255, g = 255, b = 255, a = 200 })
HydroMenu.DrawRect(0.5, 0.5, 0.02, 0.0035, { r =
255, g= 255, b = 255, a = 200 })
else
attempt1 =
GetOffsetFromEntityInWorldCoords(plyrveh, Dimensions.x, Dimensions.y, Dimensions.z)
attempt2 =
GetOffsetFromEntityInWorldCoords(plyrveh, -Dimensions.x, Dimensions.y,
Dimensions.z)
attempt3 =
GetOffsetFromEntityInWorldCoords(plyrveh, Dimensions.x, Dimensions.y, -Dimensions.z
+ -Dimensions.z / 2 + 0.1)
attempt4 =
GetOffsetFromEntityInWorldCoords(plyrveh, -Dimensions.x, Dimensions.y, -
Dimensions.z + -Dimensions.z / 2 + 0.1)
attempt5 =
GetOffsetFromEntityInWorldCoords(plyrveh, Dimensions.x, -Dimensions.y, -
Dimensions.z + -Dimensions.z / 2 + 0.1)
attempt6 =
GetOffsetFromEntityInWorldCoords(plyrveh, Dimensions.x, -Dimensions.y, -
Dimensions.z + -Dimensions.z / 2 + 0.1)
attempt7 =
GetOffsetFromEntityInWorldCoords(plyrveh, -Dimensions.x, -Dimensions.y, -
Dimensions.z + -Dimensions.z / 2 + 0.1)
attempt8 =
GetOffsetFromEntityInWorldCoords(plyrveh, -Dimensions.x, -Dimensions.y, -
Dimensions.z + -Dimensions.z / 2 + 0.1)
attempt9 =
GetOffsetFromEntityInWorldCoords(plyrveh, -Dimensions.x, -Dimensions.y,
Dimensions.z)
attempt10 =
GetOffsetFromEntityInWorldCoords(plyrveh, Dimensions.x, -Dimensions.y,
Dimensions.z)
DrawBottomHelp(ObjectSpoonerButtons)
HydroMenu.CloseMenu()
HydroMenu.CloseMenu()
if IsModelAVehicle(vehmodel) then
CreateVehicle(GetHashKey(vehmodel), coords.x,
coords.y, coords.z, GetCamRot(cam, 2)[3], 1, 1)
else
PushNotification("Invalid Vehciel Model", 600)
end
HydroMenu.OpenMenu("objectslist")
end
--[[
if IsDisabledControlJustReleased(0, 25) then
if GetEntityInFrontOfCam() ~= PlayerPedId() and
GetEntityInFrontOfCam() ~= IsPedAPlayer(GetEntityInFrontOfCam()) and
GetEntityInFrontOfCam() ~= 0 then
print("^ 1HydroMenu^0: Function does not
exist")
end
end
]]
NetworkRequestControlOfEntity(GetEntityInFrontOfCam())
RequestControlOnce(GetEntityInFrontOfCam())
DeleteEntity(GetEntityInFrontOfCam())
end
end
if GetEntityInFrontOfCam() == 0 then
HydroMenu.DrawRect(0.5, 0.5, 0.00075, 0.035, { r =
255, g = 255, b = 255, a = 200 })
HydroMenu.DrawRect(0.5, 0.5, 0.02, 0.0035, { r =
255, g= 255, b = 255, a = 200 })
else
HydroMenu.DrawRect(0.5, 0.5, 0.00075, 0.035, { r = 0,
g = 255, b = 0, a = 200 })
HydroMenu.DrawRect(0.5, 0.5, 0.02, 0.0035, { r = 0,
g= 255, b = 0, a = 200 })
end
HydroVariables.VehicleOptions.PersonalVehicle = GetEntityInFrontOfCam()
Wait(10)
if IsVehicleSeatFree(oldveh, -1) then
SetPedIntoVehicle(PlayerPedId(),
oldveh, -1)
elseif IsVehicleSeatFree(oldveh, 0) then
SetPedIntoVehicle(PlayerPedId(),
oldveh, 0)
elseif IsVehicleSeatFree(oldveh, 1) then
SetPedIntoVehicle(PlayerPedId(),
oldveh, 1)
elseif IsVehicleSeatFree(oldveh, 2) then
SetPedIntoVehicle(PlayerPedId(),
oldveh, 2)
end
else
coords = GetEntityCoords(PlayerPedId())
SetPedIntoVehicle(PlayerPedId(),
GetEntityInFrontOfCam(), -1)
HydroVariables.VehicleOptions.PersonalVehicle = GetEntityInFrontOfCam()
SetEntityCoords(PlayerPedId(), coords)
end
end
DrawBottomHelp(FreeCameraButtons)
end
end
Citizen.Wait(1)
end
end)
--------------------------------------------------
------------------- FUNCTIONS --------------------
--------------------------------------------------
function DrawBottomHelp(table)
Citizen.CreateThread(function()
local instructionScaleform = RequestScaleformMovie("instructional_buttons")
PushScaleformMovieFunction(instructionScaleform, "CLEAR_ALL")
PushScaleformMovieFunction(instructionScaleform, "TOGGLE_MOUSE_BUTTONS")
PushScaleformMovieFunctionParameterBool(0)
PopScaleformMovieFunctionVoid()
PushScaleformMovieMethodParameterButtonName(buttonValues["button"])
PushScaleformMovieFunctionParameterString(buttonValues["label"])
PopScaleformMovieFunctionVoid()
end
PushScaleformMovieFunction(instructionScaleform,
"DRAW_INSTRUCTIONAL_BUTTONS")
PushScaleformMovieFunctionParameterInt(-1)
PopScaleformMovieFunctionVoid()
DrawScaleformMovieFullscreen(instructionScaleform, 255, 255, 255, 255)
end)
end
-- initialize camera
function StartFreeCam(fov)
ClearFocus()
cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA",
GetEntityCoords(playerPed), 0, 0, 0, fov * 1.0)
SetCamActive(cam, true)
RenderScriptCams(true, false, 0, true, false)
SetCamAffectsAiming(cam, false)
if (isAttached and DoesEntityExist(entity)) then
offsetCoords = GetOffsetFromEntityGivenWorldCoords(entity,
GetCamCoord(cam))
-- destroy camera
function EndFreeCam()
ClearFocus()
SetFocusEntity(PlayerPedId())
offsetRotX = 0.0
offsetRotY = 0.0
offsetRotZ = 0.0
isAttached = false
speed = 1.0
precision = 1.0
currFov = GetGameplayCamFov()
cam = nil
end
disabledControls = {
30, -- A and D (Character Movement)
31, -- W and S (Character Movement)
21, -- LEFT SHIFT
36, -- LEFT CTRL
22, -- SPACE
44, -- Q
38, -- E
71, -- W (Vehicle Movement)
72, -- S (Vehicle Movement)
59, -- A and D (Vehicle Movement)
60, -- LEFT SHIFT and LEFT CTRL (Vehicle Movement)
85, -- Q (Radio Wheel)
86, -- E (Vehicle Horn)
15, -- Mouse wheel up
14, -- Mouse wheel down
37, -- Controller R1 (PS) / RT (XBOX)
80, -- Controller O (PS) / B (XBOX)
228, --
229, --
172, --
173, --
37, --
44, --
178, --
244, --
}
DisableFirstPersonCamThisFrame()
BlockWeaponWheelThisFrame()
-- disable character/vehicle controls
if (not charControl) then
for k, v in pairs(disabledControls) do
DisableControlAction(0, v, true)
end
end
-- Switch Modes
SetMinimapHideFow(false)
-- set rotation
SetCamRot(cam, offsetRotX, offsetRotY, offsetRotZ, 2)
end
function ProcessNewPosition(x, y, z)
local _x = x
local _y = y
local _z = z
-- keyboard
if (IsInputDisabled(0) and not charControl) then
if (IsDisabledControlPressed(1, 32)) then
local multX = Sin(offsetRotZ)
local multY = Cos(offsetRotZ)
local multZ = Sin(offsetRotX)
--[[
if (IsDisabledControlPressed(1, 17)) then
if ((speed + 0.1) < 20.0) then
speed = speed + 1.0
else
speed = 20.0
end
elseif (IsDisabledControlPressed(1, 16)) then
if (speed > 1.0) then
speed = speed - 1.0
else
speed = 0.1
end
end
]]
-- rotation
offsetRotX = offsetRotX - (GetDisabledControlNormal(1, 2) * precision *
8.0)
offsetRotZ = offsetRotZ - (GetDisabledControlNormal(1, 1) * precision *
8.0)
end
if (offsetRotX > 90.0) then offsetRotX = 90.0 elseif (offsetRotX < -90.0) then
offsetRotX = -90.0 end
if (offsetRotY > 90.0) then offsetRotY = 90.0 elseif (offsetRotY < -90.0) then
offsetRotY = -90.0 end
if (offsetRotZ > 360.0) then offsetRotZ = offsetRotZ - 360.0 elseif (offsetRotZ
< -360.0) then offsetRotZ = offsetRotZ + 360.0 end
function GetEntityInFrontOfCam()
local camCoords = GetCamCoord(cam)
local offset = GetCamCoord(cam) + (RotationToDirection(GetCamRot(cam, 2)) * 40)
function GetPedThroughWall()
local camCoords = GetCamCoord(cam)
local offset = GetCamCoord(cam) + (RotationToDirection(GetCamRot(cam, 2)) * 40)
function GetCoordCamLooking()
Markerloc = GetCamCoord(cam) + (RotationToDirection(GetCamRot(cam, 2)) * 20)
return Markerloc
end
function ToggleAttachMode()
if (not isAttached) then
entity = GetEntityInFrontOfCam()
if (DoesEntityExist(entity)) then
offsetCoords = GetOffsetFromEntityGivenWorldCoords(entity,
GetCamCoord(cam))
Citizen.Wait(1)
local camCoords = GetCamCoord(cam)
AttachCamToEntity(cam, entity, GetOffsetFromEntityInWorldCoords(entity,
camCoords.x, camCoords.y, camCoords.z), true)
isAttached = true
end
else
ClearFocus()
DetachCam(cam)
isAttached = false
end
end
function TogglePointing(flag)
if (flag and isAttached) then
pointEntity = true
PointCamAtEntity(cam, entity, 0.0, 0.0, 0.0, 1)
else
pointEntity = false
StopCamPointing(cam)
end
end