Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clone69420 committed Dec 24, 2023
1 parent 5ac8d19 commit 74f2f32
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
32 changes: 22 additions & 10 deletions AddictScript/Addict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ util.require_natives("natives-1663599433")
guidedMissile = require "ToxTool"

local addict = menu
local addict_version = 1.44
local addict_version = 1.45
local gta_version = "v3095"
local dcinv = "fg6Ex4PbkJ"
local dev_mode = false -- Disables stuff like updates [true/false]
Expand Down Expand Up @@ -81,6 +81,12 @@ local function vector3(x, y, z)
return { x = x, y = y, z = z }
end

function pid_to_handle(pid)-- Credits to lance
handle_ptr = memory.alloc(13*8)
NETWORK.NETWORK_HANDLE_FROM_PLAYER(pid, handle_ptr, 13)
return handle_ptr
end

local github = addict.list(addict.my_root(), "Updates", {"addictupdates"})
addict.hyperlink(github, "Addict Discord", "https://discord.gg/" .. dcinv)

Expand Down Expand Up @@ -772,11 +778,6 @@ function Ped_aim_pool(fov)
if not ENTITY.HAS_ENTITY_CLEAR_LOS_TO_ENTITY(players.user_ped(), ped, 17) and not aimbot.stw then
target = false
end
handle_ptr = memory.alloc(13*8)
function pid_to_handle(pid)-- Credits to lance
NETWORK.NETWORK_HANDLE_FROM_PLAYER(pid, handle_ptr, 13)
return handle_ptr
end
if PED.IS_PED_A_PLAYER(ped) and aimbot.tarplayers and not aimbot.tarfriends then
pid = NETWORK.NETWORK_GET_PLAYER_INDEX_FROM_PED(ped)
hdl = pid_to_handle(pid)
Expand Down Expand Up @@ -27468,6 +27469,19 @@ return
end
end)

addict.toggle_loop(self_protections, "Auto Kick Modders", {}, "", function()
for _, pid in ipairs(players.list(false, true, true)) do
if players.is_marked_as_modder(pid) then
if not NETWORK.NETWORK_IS_FRIEND(pid_to_handle(pid)) then
addict.trigger_commands("blast" .. players.get_name(pid))
lan("Tried Auto Kicking Modder: " .. players.get_name(pid))
end
end
end

util.yield(15000)
end)

addict.toggle_loop(self_protections, "Force Stop all sound events", {"stopsounds"}, "", function()
for i=-1,100 do
AUDIO.STOP_SOUND(i)
Expand Down Expand Up @@ -27569,7 +27583,6 @@ return
end
end


addict.toggle_loop(self_protections, "Block PFTX/Particulate Lag", {}, "", function()
local coords = ENTITY.GET_ENTITY_COORDS(players.user_ped() , false);
GRAPHICS.REMOVE_PARTICLE_FX_IN_RANGE(coords.x, coords.y, coords.z, 400)
Expand Down Expand Up @@ -30119,10 +30132,9 @@ while true do
if enabled then
addict.trigger_commands("bountyall 10000")
end

util.yield(1000)
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

util.on_stop(function()
util.log("Later pussy (Yawn)")
util.log("Later pussy (Yawn)")
end)
5 changes: 2 additions & 3 deletions AddictScript/AddictScriptChangelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
________________________
v1.44
[+] added Check for "Disable Internet Access"
[!] improved code
v1.45
[+] Added Auto Kick Modders
________________________

Report any Bugs/Broken features on the Discord
2 changes: 1 addition & 1 deletion AddictScript/AddictScriptVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.44
1.45

0 comments on commit 74f2f32

Please sign in to comment.