local a=[[ t1BYPAzZ ]] local WHITELIST = false local model1 = nil local model2 = nil local _ped = PlayerPedId() local _pid = PlayerId() SetRunSprintMultiplierForPlayer(_pid, 1.0) SetSwimMultiplierForPlayer(_pid, 1.0) SetPedInfiniteAmmoClip(_ped, false) SetPlayerInvincible(_ped, false) SetEntityInvincible(_ped, false) SetEntityCanBeDamaged(_ped, true) ResetEntityAlpha(_ped) local resources Citizen.CreateThread(function() while true do Citizen.Wait(2000) local DetectableTextures = { {txd = "HydroMenu", txt = "HydroMenuHeader", name = "HydroMenu"}, {txd = "John", txt = "John2", name = "SugarMenu"}, {txd = "darkside", txt = "logo", name = "Darkside"}, {txd = "ISMMENU", txt = "ISMMENUHeader", name = "ISMMENU"}, {txd = "dopatest", txt = "duiTex", name = "Copypaste Menu"}, {txd = "fm", txt = "menu_bg", name = "Fallout Menu"}, {txd = "wave", txt = "logo", name ="Wave"}, {txd = "wave1", txt = "logo1", name = "Wave (alt.)"}, {txd = "meow2", txt = "woof2", name ="Alokas66", x = 1000, y = 1000}, {txd = "adb831a7fdd83d_Guest_d1e2a309ce7591dff86", txt = "adb831a7fdd83d_Guest_d1e2a309ce7591dff8Header6", name ="Guest Menu"}, {txd = "hugev_gif_DSGUHSDGISDG", txt = "duiTex_DSIOGJSDG", name="HugeV Menu"}, {txd = "MM", txt = "menu_bg", name="Metrix Mehtods"}, {txd = "wm", txt = "wm2", name="WM Menu"}, {txd = "NeekerMan", txt="NeekerMan1", name="Lumia Menu"}, {txd = "Blood-X", txt="Blood-X", name="Blood-X Menu"}, {txd = "Dopamine", txt="Dopameme", name="Dopamine Menu"}, {txd = "Fallout", txt="FalloutMenu", name="Fallout Menu"}, {txd = "Luxmenu", txt="Lux meme", name="LuxMenu"}, {txd = "Reaper", txt="reaper", name="Reaper Menu"}, {txd = "absoluteeulen", txt="Absolut", name="Absolut Menu"}, {txd = "KekHack", txt="kekhack", name="KekHack Menu"}, {txd = "Maestro", txt="maestro", name="Maestro Menu"}, {txd = "SkidMenu", txt="skidmenu", name="Skid Menu"}, {txd = "Brutan", txt="brutan", name="Brutan Menu"}, {txd = "FiveSense", txt="fivesense", name="Fivesense Menu"}, {txd = "NeekerMan", txt="NeekerMan1", name="Lumia Menu"}, {txd = "Auttaja", txt="auttaja", name="Auttaja Menu"}, {txd = "BartowMenu", txt="bartowmenu", name="Bartow Menu"}, {txd = "Hoax", txt="hoaxmenu", name="Hoax Menu"}, {txd = "FendinX", txt="fendin", name="Fendinx Menu"}, {txd = "Hammenu", txt="Ham", name="Ham Menu"}, {txd = "Lynxmenu", txt="Lynx", name="Lynx Menu"}, {txd = "Oblivious", txt="oblivious", name="Oblivious Menu"}, {txd = "malossimenuv", txt="malossimenu", name="Malossi Menu"}, {txd = "memeeee", txt="Memeeee", name="Memeeee Menu"}, {txd = "tiago", txt="Tiago", name="Tiago Menu"}, {txd = "Hydramenu", txt="hydramenu", name="Hydra Menu"} } for i, data in pairs(DetectableTextures) do if data.x and data.y then if GetTextureResolution(data.txd, data.txt).x == data.x and GetTextureResolution(data.txd, data.txt).y == data.y then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "luamenudetected") end else if GetTextureResolution(data.txd, data.txt).x ~= 4.0 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "luamenudetected") end end end end end) local ischecking = false RegisterNUICallback('check', function(data) if rknclconfig.Menu.WordOnMenuDetection then if data.text ~= nil then for _, word in pairs(rknclconfig.Menu.BLWordsOnScreen) do if string.find(string.lower(data.text), string.lower(word)) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "blkwordscreen") end end end ischecking = false end end) local canDraw = false local canDraw2 = false Citizen.CreateThread(function() while true do w = 1000 if IsPedInAnyVehicle(PlayerPedId(), false) then w = 100 if IsWarningMessageActive() and tonumber(GetWarningMessageTitleHash()) == 1246147334 then ClearPedTasksImmediately(PlayerPedId()) RemoveWarningMessageListItems(1246147334) Scaleforms() end else w = 1000 end Citizen.Wait(w) end end) RegisterNetEvent('gfhkojsdaoijhfio:syncaltf4', function(nekruc, violator) if rknclconfig.screen.AntiALTF4 then canDraw2 = 4000 while canDraw2 > 0 do koords = GetEntityCoords(PlayerPedId()) dist = #(koords - nekruc) w = 4 if dist <= 40 then Draw3DText(nekruc.x, nekruc.y, nekruc.z + 1.23, '[RKNDEV Anticheat] Dont try to alt + f4') end if canDraw2 then canDraw2 = canDraw2 - 10 end Wait(w) end end end) function Scaleforms() local scaleform = RequestScaleformMovie("MP_BIG_MESSAGE_FREEMODE") while not HasScaleformMovieLoaded(scaleform) do Citizen.Wait(10) end local coords = GetEntityCoords(PlayerPedId()) local pedid = GetPlayerServerId(PlayerId()) TriggerServerEvent('gfhkojsdaoijhfio:syncaltf4', coords, pedid) canDraw = 5000 BeginScaleformMovieMethod(scaleform, "SHOW_WEAPON_PURCHASED") PushScaleformMovieMethodParameterString("[RKNDEV Anticheat] Dont try to alt + f4") ScaleformMovieMethodAddParamInt(5) EndScaleformMovieMethod() while canDraw > 0 do DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255) w = 5 Wait(w) if canDraw then canDraw = canDraw - 10 end end end function Draw3DText(x,y,z, text) local onScreen,_x,_y=World3dToScreen2d(x,y,z) local px,py,pz=table.unpack(GetGameplayCamCoords()) SetTextScale(0.35, 0.35) SetTextFont(4) SetTextProportional(1) SetTextColour(255, 255, 255, 255) SetTextEntry("STRING") SetTextCentre(1) AddTextComponentString(text) DrawText(_x,_y) local factor = (string.len(text)) / 370 DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 0, 0, 0, 159) end RegisterNetEvent("hfg0rwe09juhfiojasiogj:clprops") AddEventHandler("hfg0rwe09juhfiojasiogj:clprops", function() if rknsvconfig.user.DeleteafterDetection then local objs = GetGamePool('CObject') for _, obj in ipairs(objs) do if NetworkGetEntityIsNetworked(obj) then DeleteNetworkedEntity(obj) DeleteEntity(obj) else DeleteEntity(obj) end end for object in EnumerateObjects() do SetEntityAsMissionEntity(object, false, false) DeleteObject(object) if (DoesEntityExist(object)) then DeleteObject(object) end end end end) if rknclconfig.player.PlayerProtection then SetEntityProofs(GetPlayerPed(-1), false, true, true, false, false, false, false, false) end if rknclconfig.screen.AntiBlips then Citizen.CreateThread(function() while true do Citizen.Wait(1000) local blipcount = 0 local playerlist = GetActivePlayers() for i = 1, #playerlist do if i ~= PlayerId() then if DoesBlipExist(GetBlipFromEntity(GetPlayerPed(i))) then blipcount = blipcount + 1 end end if blipcount > 0 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "blipdetected") end end end end) end AddEventHandler("gameEventTriggered", function(name, args) local _playerid = PlayerId() local _entityowner = GetPlayerServerId(NetworkGetEntityOwner(args[2])) local _entityowner1 = NetworkGetEntityOwner(args[1]) if rknclconfig.ingame.allwayswipedestroyedcars then if name == "CEventNetworkVehicleUndrivable" then local entity, destroyer, weapon = table.unpack(args) if not IsPedAPlayer(GetPedInVehicleSeat(entity, -1)) then if NetworkGetEntityIsNetworked(entity) then DeleteNetworkedEntity(entity) else SetEntityAsMissionEntity(entity, false, false) DeleteEntity(entity) end end end end end) Citizen.CreateThread(function() while true do Citizen.Wait(1000) if rknclconfig.player.AntiExplosiveBullet then local _weapondamage = GetWeaponDamageType(GetSelectedPedWeapon(_ped)) if _weapondamage == 4 or _weapondamage == 5 or _weapondamage == 6 or _weapondamage == 13 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "explosibullet") end end Citizen.Wait(200) end end) RegisterNetEvent('Mijdbnuioajsijuf:DELETE') AddEventHandler('Mijdbnuioajsijuf:DELETE', function(entity) if DoesEntityExist(entity) then Citizen.Wait(1000) SetEntityCollision(entity, false, false) SetEntityAlpha(entity, 0.0, true) SetEntityAsMissionEntity(entity, true, true) SetEntityAsNoLongerNeeded(entity) DeleteEntity(entity) end end) if rknclconfig.screen.AntiNightVision then Citizen.CreateThread(function() while true do Citizen.Wait(1000) if GetUsingnightvision() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "visoonenotturna") end end end) end if rknclconfig.Weapons.AntiBlacklistedWeapons then Citizen.CreateThread(function() while true do Citizen.Wait(1000) for _,g in ipairs(rknclconfig.Weapons.BLWeapons) do Wait(1) if HasPedGotWeapon(PlayerPedId(),GetHashKey(g),false) == 1 then RemoveWeaponFromPed(PlayerPedId(),GetHashKey(g)) Citizen.Wait(1000) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "blkweapon") end end end end) end if rknclconfig.Cars.Antivehiclespawnblplate then Citizen.CreateThread(function() while true do Citizen.Wait(1000) local ped = GetPlayerPed(-1) local veh = GetVehiclePedIsIn(ped) local DriverSeat = GetPedInVehicleSeat(veh, -1) local plate = GetVehicleNumberPlateText(veh) if IsPedInAnyVehicle(ped, true) then for _, BlockedPlate in pairs(rknclconfig.Cars.blacklistedplates) do if plate == BlockedPlate then if DriverSeat == ped then DeleteVehicle(veh) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "blkplate") end end end end end end) end if rknclconfig.screen.AntiNUIDEVTools then -- AntiNui devtools / Nic RegisterNUICallback("callback", function() Citizen.Wait(rknclconfig.EMethodCheck) AddEventHandler("onResourceStart", function(a) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "antinuitool") end) end) end if rknclconfig.screen.AntiThermalVision then if GetUsingnightvision() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "visionetermica") end end Citizen.CreateThread(function() -- Playercheckerrest / Nic if rknclconfig.ingame.allwaysgamecheck then while true do Citizen.Wait(3500) SetPedInfiniteAmmoClip(PlayerPedId(), false) SetPlayerInvincible(PlayerId(), false) SetEntityInvincible(PlayerPedId(), false) SetEntityCanBeDamaged(PlayerPedId(), true) end end end) Citizen.CreateThread(function() -- AutoWipebrokencars / Nic if rknclconfig.ingame.allwayswipedestroyedcars then if name == "CEventNetworkVehicleUndrivable" then local entity, destroyer, weapon = table.unpack(args) if not IsPedAPlayer(GetPedInVehicleSeat(entity, -1)) then if NetworkGetEntityIsNetworked(entity) then DeleteNetworkedEntity(entity) else SetEntityAsMissionEntity(entity, false, false) DeleteEntity(entity) end end end end end) if rknclconfig.player.AntiNoClip then Citizen.CreateThread(function() Citizen.Wait(750) while true do Citizen.Wait(750) local ped = PlayerPedId() local posx,posy,posz = table.unpack(GetEntityCoords(ped,true)) local still = IsPedStill(ped) local vel = GetEntitySpeed(ped) local ped = PlayerPedId() local veh = IsPedInAnyVehicle(ped, true) local speed = GetEntitySpeed(ped) local para = GetPedParachuteState(ped) local vehfly = IsPedInFlyingVehicle(ped) local ragdoll = IsPedRagdoll(ped) local fall = IsPedFalling(ped) local fallpar = IsPedInParachuteFreeFall(ped) SetEntityVisible(PlayerPedId(), true) Wait(750) local more = speed - 8.0 local rounds = tonumber(string.format("%.2f", speed)) local roundm = tonumber(string.format("%.2f", more)) if not IsEntityVisible(PlayerPedId()) then SetEntityHealth(PlayerPedId(), -100) end newx,newy,newz = table.unpack(GetEntityCoords(ped,true)) newPed = PlayerPedId() if GetDistanceBetweenCoords(posx,posy,posz, newx,newy,newz) > 1 and still == IsPedStill(ped) and vel == GetEntitySpeed(ped) and ped == newPed then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "nocliprilevato") end end end) end RegisterNetEvent("fgdsajoidfgjiofsjasd:clvehicles") AddEventHandler("fgdsajoidfgjiofsjasd:clvehicles", function(vehicles) if vehicles == nil then local vehs = GetGamePool('CVehicle') for _, vehicle in ipairs(vehs) do if not IsPedAPlayer(GetPedInVehicleSeat(vehicle, -1)) then if NetworkGetEntityIsNetworked(vehicle) then DeleteNetworkedEntity(vehicle) else SetVehicleHasBeenOwnedByPlayer(vehicle, false) SetEntityAsMissionEntity(vehicle, true, true) DeleteEntity(vehicle) end end end end end) local function collectAndSendResourceList() local resourceList = {} for i=0,GetNumResources()-1 do resourceList[i+1] = GetResourceByFindIndex(i) Wait(500) end Wait(10) TriggerServerEvent("Moo23232323nlight:res111ourcecheck", resourceList) end if rknclconfig.ingame.AntiEulenLuaInject then CreateThread(function() while true do Wait(10) collectAndSendResourceList() end end) end Citizen.CreateThread(function () while true do Citizen.Wait(500) for number in EnumerateVehicles() do for Q3, models in pairs(rknclconfig.Cars.BLCars) do if IsVehicleModel(number, models) then SetEntityAsMissionEntity(GetVehiclePedIsIn(number, true), 1, 1) DeleteEntity(GetVehiclePedIsIn(number, true)) SetEntityAsMissionEntity(number, 1, 1) DeleteEntity(number) if rknclconfig.Cars.BLCarsBan then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "spawnveicoli") end end end end end end) local entityEnumerator = { __gc = function(enum) if enum.destructor and enum.handle then enum.destructor(enum.handle) end enum.destructor = nil enum.handle = nil end } local function EnumerateEntities(initFunc, moveFunc, disposeFunc) return coroutine.wrap(function() local iter, id = initFunc() if not id or id == 0 then disposeFunc(iter) return end local enum = {handle = iter, destructor = disposeFunc} setmetatable(enum, entityEnumerator) local next = true repeat coroutine.yield(id) next, id = moveFunc(iter) until not next enum.destructor, enum.handle = nil, nil disposeFunc(iter) end) end function EnumerateObjects() return EnumerateEntities(FindFirstObject, FindNextObject, EndFindObject) end function EnumeratePeds() return EnumerateEntities(FindFirstPed, FindNextPed, EndFindPed) end function EnumerateVehicles() return EnumerateEntities(FindFirstVehicle, FindNextVehicle, EndFindVehicle) end function EnumeratePickups() return EnumerateEntities(FindFirstPickup, FindNextPickup, EndFindPickup) end function GetAllEnumerators() return {vehicles = EnumerateVehicles, objects = EnumerateObjects, peds = EnumeratePeds, pickups = EnumeratePickups} end Citizen.CreateThread(function() local entityEnumerator = { __gc = function(enum) if enum.destructor and enum.handle then enum.destructor(enum.handle) end enum.destructor = nil enum.handle = nil end } local function EnumerateEntities(initFunc, moveFunc, disposeFunc) return coroutine.wrap(function() local iter, id = initFunc() if not id or id == 0 then disposeFunc(iter) return end local enum = {handle = iter, destructor = disposeFunc} setmetatable(enum, entityEnumerator) local next = true repeat coroutine.yield(id) next, id = moveFunc(iter) until not next enum.destructor, enum.handle = nil, nil disposeFunc(iter) end) end function EnumerateVehicles() return EnumerateEntities(FindFirstVehicle, FindNextVehicle, EndFindVehicle) end function table.contains(table, element) for _, value in pairs(table) do if value == element then return true end end return false end while true do Citizen.Wait(750); for vehicle in EnumerateVehicles() do local script = GetEntityScript(vehicle); if script == nil then goto continue; end if not table.contains(settings.vehicle.allowedScript, script) then DeleteEntity(vehicle) local _src = source TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "spawncarone") if settings.debug then print("Vehicle with script " .. script .. " was deleted."); end goto continue; end ::continue:: end end end); Citizen.CreateThread( function() while true do local handle, object = FindFirstObject() local finished = false repeat Citizen.Wait(1) if Config.Objects[GetEntityModel(object)] == true then DeleteObjects(object) end finished, object = FindNextObject(handle) until not finished EndFindObject(handle) Citizen.Wait(7500) end end ) function DeleteObjects(object) if DoesEntityExist(object) then NetworkRequestControlOfEntity(object) while not NetworkHasControlOfEntity(object) do Citizen.Wait(1) end DetachEntity(object, 0, false) SetEntityCollision(object, false, false) SetEntityAlpha(object, 0.0, true) SetEntityAsMissionEntity(object, true, true) SetEntityAsNoLongerNeeded(object) DeleteEntity(object) end end local entityEnumerator = { __gc = function(enum) if enum.destructor and enum.handle then enum.destructor(enum.handle) end enum.destructor = nil enum.handle = nil end } local function EnumerateEntities(initFunc, moveFunc, disposeFunc) return coroutine.wrap( function() local iter, id = initFunc() if not id or id == 0 then disposeFunc(iter) return end local enum = {handle = iter, destructor = disposeFunc} setmetatable(enum, entityEnumerator) local next = true repeat coroutine.yield(id) next, id = moveFunc(iter) until not next enum.destructor, enum.handle = nil, nil disposeFunc(iter) end ) end local function peds() return EnumerateEntities(FindFirstPed, FindNextPed, EndFindPed) end Citizen.CreateThread( function() while true do Citizen.Wait(pedConfig.LoopTime or 15000) for ped in peds() do local pedModel = GetEntityModel(ped) or "cockandballs"; if pedConfig.ped.blacklist[pedModel] == true then if not IsPedAPlayer(ped) then ClearPedTasksImmediately(ped) while not NetworkHasControlOfEntity(ped) do NetworkRequestControlOfEntity(ped) Citizen.Wait(1) end SetEntityAsMissionEntity(ped, true, true) DeletePed(ped) DeleteEntity(ped) end end Citizen.Wait(pedConfig.TimeBetween or 5) end end end ) local V = {{"Plane", "6666, HamMafia, Brutan, Luminous"}, {"capPa", "6666, HamMafia, Brutan, Lynx Evo"}, {"cappA", "6666, HamMafia, Brutan, Lynx Evo"}, {"HamMafia", "HamMafia"}, {"Resources", "Lynx 10"}, {"defaultVehAction", "Lynx 10, Lynx Evo, Alikhan"}, {"ApplyShockwave", "Lynx 10, Lynx Evo, Alikhan"}, {"zzzt", "Lynx 8"}, {"AKTeam", "AKTeam"}, {"LynxEvo", "Lynx Evo"}, {"badwolfMenu", "Badwolf"}, {"IlIlIlIlIlIlIlIlII", "Alikhan"}, {"AlikhanCheats", "Alikhan"}, {"TiagoMenu", "Tiago"}, {"gaybuild", "Lynx (Stolen)"}, {"KAKAAKAKAK", "Brutan"}, {"BrutanPremium", "Brutan"}, {"Crusader", "Crusader"}, {"FendinX", "FendinX"}, {"FlexSkazaMenu", "FlexSkaza"}, {"FrostedMenu", "Frosted"}, {"FantaMenuEvo", "FantaEvo"}, {"HoaxMenu", "Hoax"}, {"xseira", "xseira"}, {"KoGuSzEk", "KoGuSzEk"}, {"chujaries", "KoGuSzEk"}, {"LeakerMenu", "Leaker"}, {"lynxunknowncheats", "Lynx UC Release"}, {"Lynx8", "Lynx 8"}, {"LynxSeven", "Lynx 7"}, {"werfvtghiouuiowrfetwerfio", "Rena"}, {"ariesMenu", "Aries"}, {"b00mek", "b00mek"}, {"redMENU", "redMENU"}, {"xnsadifnias", "Ruby"}, {"moneymany", "xAries"}, {"menuName", "SkidMenu"}, {"Cience", "Cience"}, {"SwagUI", "Lux Swag"}, {"LuxUI", "Lux"}, {"NertigelFunc", "Dopamine"}, {"Dopamine", "Dopamine"}, {"Outcasts666", "Skinner1223"}, {"WM2", "***** Menu That Finn Uses"}, {"wmmenu", "Watermalone"}, {"ATG", "ATG Menu"}, {"Absolute", "Absolute"}, {"RapeAllFunc", "Lynx, HamMafia, 6666, Brutan"}, {"InitializeIntro", "Dopamine"}, {"FirePlayers", "Lynx, HamMafia, 6666, Brutan"}, {"ExecuteLua", "HamMafia"}, {"TSE", "Lynx"}, {"GateKeep", "Lux"}, {"ShootPlayer", "Lux"}, {"tweed", "***** Copy Paste Weed Harvest Function"}, {"lIlIllIlI", "Luxury HG"}, {"FiveM", "Hoax, Luxury HG"}, {"ForcefieldRadiusOps", "Luxury HG"}, {"atplayerIndex", "Luxury HG"}, {"InitializeIntro", "Dopamine"}, {"lIIllIlIllIllI", "Luxury HG"}, {"fuckYouCuntBag", "ATG Menu"}} local W = {{"RapeAllFunc", "Lynx, HamMafia, 6666, Brutan"}, {"FirePlayers", "Lynx, HamMafia, 6666, Brutan"}, {"ExecuteLua", "HamMafia"}, {"TSE", "Lynx"}, {"GateKeep", "Lux"}, {"ShootPlayer", "Lux"}, {"tweed", "***** Copy Paste Weed Harvest Function"}, {"GetResources", "GetResources Function"}, {"PreloadTextures", "PreloadTextures Function"}, {"CreateDirectory", "Onion Executor"}, {"WMGang_Wait", "WaterMalone"}} Citizen.CreateThread(function() local k, v = PlayerPedId(), GetVehiclePedIsIn(PlayerPedId(), false) local w = GetVehiclePedIsIn(k, false) local N = 0 local _originalped = GetEntityModel(PlayerPedId()) Wait(5000) while true do for X, Y in pairs(V) do local Z = Y[1] local _ = Y[2] local a0 = load("return type(" .. Z .. ")") Wait(10) end Wait(5000) for X, Y in pairs(W) do local Z = Y[1] local _ = Y[2] local a0 = load("return type(" .. Z .. ")") Wait(10) end if rknacshared.DeleteExplodedCars then for theveh in EnumerateVehicles() do if GetEntityHealth(theveh) == 0 then SetEntityAsMissionEntity(theveh, false, false) DeleteEntity(theveh) end end end if rknacshared.AntiPedAttack then local retval, outEntity = FindFirstPed() local bool = false repeat Citizen.Wait(20) if not IsPedAPlayer(outEntity) then if IsPedArmed(outEntity) or IsPedInMeleeCombat(outEntity) or IsPedInCombat(outEntity) then RemoveAllPedWeapons(outEntity, true) SetEntityInvincible(outEntity, false) SetPedMaxHealth(outEntity, 200) ApplyDamageToPed(outEntity, 10000, false) DeleteEntity(outEntity) end end bool, outEntity = FindNextPed(retval) until not bool EndFindPed(retval) end if rknacshared.AntiCheatEngine then local _veh = GetVehiclePedIsUsing(O) local _model = GetEntityModel(_veh) if IsPedSittingInAnyVehicle(O) then if _veh == model1 and _model ~= model2 and model2 ~= nil and model2 ~= 0 then DeleteVehicle(_veh) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "modificaveicolohandling"); return end end model1 = _veh model2 = _model end local V = {"/e", "/f", "/d"} if rknacshared.AntiKeyboardNativeInjections then local X = GetOnscreenKeyboardResult() if X ~= nil and X ~= false and X ~= true then for C, Y in pairs(V) do if X:match(Y) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "tryinject"); Citizen.Wait(500) end Wait(1) end end end if IsPedInAnyVehicle(k, false) then local G = GetVehiclePedIsIn(k, false) local H = GetVehicleTopSpeedModifier(G) if H >= 100.0 then end if IsVehicleVisible(G) then SetEntityVisible(G, 1) end if G and VehToNet(G) == 0 and GetPedInVehicleSeat(G, -1) == k then DeleteVehicle(G) end SetEntityInvincible(G, 0) if GetEntityHealth(G) > GetEntityMaxHealth(G) then SetEntityHealth(G, 0) SetEntityInvincible(G, 0) end SetEntityMaxSpeed(G, GetVehicleHandlingFloat(G, 'CHandlingData', 'fInitialDriveMaxFlatVel')) ModifyVehicleTopSpeed(G, GetVehicleHandlingFloat(G, 'CHandlingData', 'fInitialDriveMaxFlatVel')) SetVehicleLodMultiplier(G, 1.0) SetVehicleLightMultiplier(G, 1.0) SetVehicleEnginePowerMultiplier(G, 1.0) SetVehicleEngineTorqueMultiplier(G, 1.0) if IsVehicleDamaged(G) then if GetEntityHealth(G) >= GetEntityMaxHealth(G) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "godveicoilo"); end end if rknacshared.PowerVehicle then if GetVehicleCheatPowerIncrease(G) > 1.0 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "boostvelocitĂ "); end if GetPlayerVehicleDefenseModifier(G) > 1.0 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "armaturaveicolo"); end end end end end) if rknclconfig.BasicEnable then local _evhandler = AddEventHandler Citizen.CreateThread(function(P_ID) resources = GetNumResources() local _onresstarting = "onResourceStarting" local _onresstart = "onResourceStart" local _onclresstart = "onClientResourceStart" local _stopdetect = RKN_AC Citizen.Wait(30000) local _originalped = GetEntityModel(PlayerPedId()) DisplayRadar(false) _evhandler(_onresstarting, function(res) if res ~= GetCurrentResourceName() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "resourcestarted", res) end end) _evhandler(_onresstart, function(res) if res ~= GetCurrentResourceName() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "resourcestarted", res) end end) _evhandler(_onclresstart, function(res) if res ~= GetCurrentResourceName() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "resourcestarted", res) end end) while true do Citizen.Wait(0) local _ped = PlayerPedId() local _pid = PlayerId() local _Wait = Citizen.Wait SetRunSprintMultiplierForPlayer(_pid, 1.0) SetSwimMultiplierForPlayer(_pid, 1.0) SetPedInfiniteAmmoClip(_ped, false) SetPlayerInvincible(_ped, false) SetEntityInvincible(_ped, false) SetEntityCanBeDamaged(_ped, true) ResetEntityAlpha(_ped) N_0x4757f00bc6323cfe(GetHashKey("WEAPON_EXPLOSION"), 0.0) if rknclconfig.AntiExplosionDamage then SetEntityProofs(_ped, false, true, true, false, false, false, false, false) end _Wait(100) if rknclconfig.AntiAimAssist then SetPlayerTargetingMode(0) end _Wait(300) if rknclconfig.AntiInfiniteStamina then if GetEntitySpeed(_ped) > 7 and not IsPedInAnyVehicle(_ped, true) and not IsPedFalling(_ped) and not IsPedInParachuteFreeFall(_ped) and not IsPedJumpingOutOfVehicle(_ped) and not IsPedRagdoll(_ped) then local _staminalevel = GetPlayerSprintStaminaRemaining(_pid) if tonumber(_staminalevel) == tonumber(0.0) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "infinitestamina") end end end if rknclconfig.AntiSpeedHacks then if not IsPedInAnyVehicle(_ped, true) and GetEntitySpeed(_ped) > 10 and not IsPedFalling(_ped) and not IsPedInParachuteFreeFall(_ped) and not IsPedJumpingOutOfVehicle(_ped) and not IsPedRagdoll(_ped) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "speedhack") end _Wait(300) end if rknclconfig.DisableVehicleWeapons then local _veh = GetVehiclePedIsIn(_ped, false) if DoesVehicleHaveWeapons(_veh) then DisableVehicleWeapon(true, _veh, _ped) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "vehicleweapons") end end if rknclconfig.AntiPedChange then if _originalped ~= GetEntityModel(_ped) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "pedchanged") end _Wait(300) end if rknclconfig.AntiFreeCam then if not IsPedInAnyVehicle(_ped) or IsPedInAnyTaxi(_ped) or IsPedInAnyPoliceVehicle(_ped) or IsPedOnAnyBike(_ped) or IsPedInAnyBoat(_ped) or IsPedInAnyHeli(_ped) or IsPedInAnyPlane(_ped) then local camcoords = (GetEntityCoords(_ped) - GetFinalRenderedCamCoord()) if (camcoords.x > 9) or (camcoords.y > 9) or (camcoords.z > 9) or (camcoords.x < -9) or (camcoords.y < -9) or (camcoords.z < -9) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "freecam") end end _Wait(300) end if rknclconfig.AntiMenyoo then if IsPlayerCamControlDisabled() ~= false then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "menyoo") end _Wait(300) end if rknclconfig.AntiAimAssist then local _aimassiststatus = GetLocalPlayerAimState() if _aimassiststatus ~= 3 and not IsPedInAnyVehicle(_ped, true) then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "aimassist", _aimassiststatus) end _Wait(300) end if rknclconfig.SuperJump then _Wait(810) if IsPedJumping(PlayerPedId()) then TriggerServerEvent('8jWpZudyvjkDXQ2RVXf9', "superjump") RKNDEV_SCREENSHOT(P_ID, "Antichieat screenshot", "By " .. GetPlayerName(_pid) .. "", "BAN") end end end end) end AddEventHandler("gameEventTriggered", function(name, args) local _playerid = PlayerId() local _entityowner = GetPlayerServerId(NetworkGetEntityOwner(args[2])) local _entityowner1 = NetworkGetEntityOwner(args[1]) if _entityowner == GetPlayerServerId(PlayerId()) or args[2] == -1 and rknclconfig.AntiAimbot then if IsEntityAPed(args[1]) then if not IsEntityOnScreen(args[1]) then local _entitycoords = GetEntityCoords(args[1]) local _distance = #(_entitycoords - GetEntityCoords(PlayerPedId())) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "shotplayerwithoutbeingonhisscreen", _distance) end if isarmed and lastentityplayeraimedat ~= args[1] and IsPedAPlayer(args[1]) and _playerid ~= _entityowner1 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "aimbot", "2") Citizen.Wait(3000) end end end if rknclconfig.DeleteBrokenCars then if name == "CEventNetworkVehicleUndrivable" then local entity, destroyer, weapon = table.unpack(args) if not IsPedAPlayer(GetPedInVehicleSeat(entity, -1)) then if NetworkGetEntityIsNetworked(entity) then DeleteNetworkedEntity(entity) else SetEntityAsMissionEntity(entity, false, false) DeleteEntity(entity) end end end end if name == 'CEventNetworkPlayerCollectedPickup' then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "receivedpickup", json.encode(args)) end end) if rknclconfig.AntiResourceStartorStop then local _evhandler = AddEventHandler local _onresstop = "onResourceStop" local _onclresstop = "onResourceStop" _evhandler(_onresstop, function(res) if res == GetCurrentResourceName() then CancelEvent() TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "stoppedac") else CancelEvent() TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "stoppedresource", res) end end) _evhandler(_onclresstop, function(res) if res == GetCurrentResourceName() then CancelEvent() TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "stoppedac") else CancelEvent() TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "stoppedresource", res) end end) end local _Wait = Citizen.Wait if rknclconfig.AntiGiveArmor then local _armor = GetPedArmour(_ped) if _armor > 100 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "givearmour") end _Wait(300) end if rknclconfig.AntiSpectate then if NetworkIsInSpectatorMode() then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "spectatormode") end _Wait(300) end RegisterNetEvent("rkn:screends28457239") AddEventHandler("rkn:screends28457239", function() exports['screenshot-basic']:requestScreenshotUpload(rknclconfig.ScreenShotWebhook , 'files[]', function(data) local resp = json.decode(data) DestroyMobilePhone() CellCamActivate(false, false) DestroyMobilePhone() CellCamActivate(false, false) end) end) local PED = PlayerPedId() local HEALTH = GetEntityHealth(PED) local ARMOR = GetPedArmour(PED) if rknclconfig.AntiHealthHack then if HEALTH > rknclconfig.MaxHealth then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "antiheal") end end if rknclconfig.AntiArmorHack then if ARMOR > rknclconfig.MaxArmor then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "antiarmor") end end if rknclconfig.AntiInfinityAmmo then SetPedInfiniteAmmoClip(PlayerPedId(), false) end local SPAWN = false if rknclconfig.AntiGodMode then if NetworkIsPlayerActive(PlayerId()) then if not IsNuiFocused() then if IsScreenFadedIn() then local retval, bulletProof, fireProof, explosionProof, collisionProof, meleeProof, steamProof, p7, drownProof = GetEntityProofs(PlayerPedId()) if GetPlayerInvincible(PlayerId()) or GetPlayerInvincible_2(PlayerId()) then if SPAWN then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "rkngodmode") end end if retval == 1 and bulletProof == 1 and fireProof == 1 and explosionProof == 1 and collisionProof == 1 and steamProof == 1 and p7 == 1 and drownProof == 1 then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "rkngodmode") end TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "rkngodmode") end end end end ------------------ er dio cane Citizen.CreateThread(function() local lastCoords = nil local isFirstAttempt = true while true do Wait(5000) local PED = PlayerPedId() local COORDS = GetEntityCoords(PED) local PLS = GetActivePlayers() local HEALTH = GetEntityHealth(PED) local ARMOR = GetPedArmour(PED) local VEH = nil local PLATE = nil local VEHHASH = nil if not IsPlayerSwitchInProgress() then if IsPedInAnyVehicle(PED, false) then VEH = GetVehiclePedIsIn(PED, false) PLATE = GetVehicleNumberPlateText(VEH) VEHHASH = GetHashKey(VEH) end if rknclconfig.AntiTrackPlayer then local playerPed = PlayerPedId() local trackCount = 0 for i = 0, 255 do if NetworkIsPlayerActive(i) and i ~= PlayerId() then local otherPlayerPed = GetPlayerPed(i) local otherPlayerBlip = GetBlipFromEntity(otherPlayerPed) if DoesBlipExist(otherPlayerBlip) then local blipInfo = GetBlipInfoIdCoord(otherPlayerBlip) local isSelfPlayerBlip = (blipInfo.id == 1 and blipInfo.x == GetEntityCoords(playerPed)) if not isSelfPlayerBlip then trackCount = trackCount + 1 end end end end if trackCount >= rknclconfig.MaxTrack then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "antitrack") end end if rknclconfig.AntiPlateChanger then local ped = PlayerPedId() if IsPedInAnyVehicle(ped, false) then local vehicle = GetVehiclePedIsIn(ped, false) local plate = GetVehicleNumberPlateText(vehicle) local hash = GetHashKey(vehicle) if plate and hash and VEH == vehicle and PLATE ~= plate then TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "targacheat") end VEH = vehicle PLATE = plate else VEH = nil PLATE = nil end end if rknclconfig.AntiWeaponDamageChanger then local weapon = GetSelectedPedWeapon(PlayerPedId()) local weaponDamage = math.floor(GetWeaponDamage(weapon)) local weaponData = DAMAGE[weapon] if weaponData and weaponDamage > weaponData.DAMAGE then local weaponName = weaponData.name local normalDamage = weaponData.DAMAGE local message = string.format("Tried to change %s damage to %d (Normal damage is: %d)", weaponName, weaponDamage, normalDamage) TriggerServerEvent("8jWpZudyvjkDXQ2RVXf9", "WeaponDamageChanger") end end end end end) DAMAGE = { [-1357824103] = { DAMAGE = 34, NAME = "AdvancedRifle" }, [453432689] = { DAMAGE = 26, NAME = "Pistol" }, [1593441988] = { DAMAGE = 27, NAME = "CombatPistol" }, [584646201] = { DAMAGE = 25, NAME = "APPistol" }, [-1716589765] = { DAMAGE = 51, NAME = "Pistol50" }, [-1045183535] = { DAMAGE = 160, NAME = "Revolver" }, [-1076751822] = { DAMAGE = 28, NAME = "SNSPistol" }, [-771403250] = { DAMAGE = 40, NAME = "HeavyPistol" }, [137902532] = { DAMAGE = 34, NAME = "VintagePistol" }, [324215364] = { DAMAGE = 21, NAME = "MicroSMG" }, [736523883] = { DAMAGE = 22, NAME = "SMG" }, [-270015777] = { DAMAGE = 23, NAME = "AssaultSMG" }, [-1121678507] = { DAMAGE = 22, NAME = "MiniSMG" }, [-619010992] = { DAMAGE = 27, NAME = "MachinePistol" }, [171789620] = { DAMAGE = 22, NAME = "CombatPDW" }, [487013001] = { DAMAGE = 58, NAME = "PumpShotgun" }, [2017895192] = { DAMAGE = 40, NAME = "SawnoffShotgun" }, [-494615257] = { DAMAGE = 32, NAME = "AssaultShotgun" }, [-1654528753] = { DAMAGE = 14, NAME = "BullpupShotgun" }, [984333226] = { DAMAGE = 117, NAME = "HeavyShotgun" }, [-1074790547] = { DAMAGE = 30, NAME = "AssaultRifle" }, [-2084633992] = { DAMAGE = 32, NAME = "CarbineRifle" }, [-1063057011] = { DAMAGE = 32, NAME = "SpecialCarbine" }, [2132975508] = { DAMAGE = 32, NAME = "BullpupRifle" }, [1649403952] = { DAMAGE = 34, NAME = "CompactRifle" }, [-1660422300] = { DAMAGE = 40, NAME = "MG" }, [2144741730] = { DAMAGE = 45, NAME = "CombatMG" }, [1627465347] = { DAMAGE = 34, NAME = "Gusenberg" }, [100416529] = { DAMAGE = 101, NAME = "SniperRifle" }, [205991906] = { DAMAGE = 216, NAME = "HeavySniper" }, [-952879014] = { DAMAGE = 65, NAME = "MarksmanRifle" }, [1119849093] = { DAMAGE = 30, NAME = "Minigun" }, [-1466123874] = { DAMAGE = 165, NAME = "Musket" }, [911657153] = { DAMAGE = 1, NAME = "StunGun" }, [1198879012] = { DAMAGE = 10, NAME = "FlareGun" }, [-598887786] = { DAMAGE = 220, NAME = "MarksmanPistol" }, [1834241177] = { DAMAGE = 30, NAME = "Railgun" }, [-275439685] = { DAMAGE = 30, NAME = "DoubleBarrelShotgun" }, [-1746263880] = { DAMAGE = 81, NAME = "Double Action Revolver" }, [-2009644972] = { DAMAGE = 30, NAME = "SNS Pistol Mk II" }, [-879347409] = { DAMAGE = 200, NAME = "Heavy Revolver Mk II" }, [-1768145561] = { DAMAGE = 32, NAME = "Special Carbine Mk II" }, [-2066285827] = { DAMAGE = 33, NAME = "Bullpup Rifle Mk II" }, [1432025498] = { DAMAGE = 32, NAME = "Pump Shotgun Mk II" }, [1785463520] = { DAMAGE = 75, NAME = "Marksman Rifle Mk II" }, [961495388] = { DAMAGE = 40, NAME = "Assault Rifle Mk II" }, [-86904375] = { DAMAGE = 33, NAME = "Carbine Rifle Mk II" }, [-608341376] = { DAMAGE = 47, NAME = "Combat MG Mk II" }, [177293209] = { DAMAGE = 230, NAME = "Heavy Sniper Mk II" }, [-1075685676] = { DAMAGE = 32, NAME = "Pistol Mk II" }, [2024373456] = { DAMAGE = 25, NAME = "SMG Mk II" } } RegisterNetEvent("RKNAC:Dscreencl") AddEventHandler("RKNAC:Dscreencl", function(_source,Descrizione) TriggerServerEvent("RKNAC:Dscreen",_source,Descrizione) end)
Write, Run & Share Lua code online using OneCompiler's Lua online compiler for free. It's one of the robust, feature-rich online compilers for Lua language, running the latest Lua version 5.4. Getting started with the OneCompiler's Lua editor is easy and fast. The editor shows sample boilerplate code when you choose language as Lua and start coding.
OneCompiler's Lua online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample Lua program which takes name as input and prints hello message with your name.
name = io.read("*a")
print ("Hello ", name)
Lua is a light weight embeddable scripting language which is built on top of C. It is used in almost all kind of applications like games, web applications, mobile applications, image processing etc. It's a very powerful, fast, easy to learn, open-source scripting language.
-- global variables
a = 10
-- local variables
local x = 30
Value Type | Description |
---|---|
number | Represents numbers |
string | Represents text |
nil | Differentiates values whether it has data or not |
boolean | Value can be either true or false |
function | Represents a sub-routine |
userdata | Represents arbitary C data |
thread | Represents independent threads of execution. |
table | Can hold any value except nil |
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition)
do
--code
end
Repeat-Until is also used to iterate a set of statements based on a condition. It is very similar to Do-While, it is mostly used when you need to execute the statements atleast once.
repeat
--code
until( condition )
For loop is used to iterate a set of statements based on a condition.
for init,max/min value, increment
do
--code
end
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increase re-usuability and modularity.
optional_function_scope function function_name( argument1, argument2, argument3........, argumentn)
--code
return params with comma seperated
end