Git Product home page Git Product logo

fivem-antidump's Introduction

fivem-antidump

fivem antidump nui included lets gooooooooooooooooo


i'm working on new release, that you can make antidump for your all resource in one time, i just waiting to find better think?

if you don't want to do it manual

download full-antidump-ready with dev-antidump and go a head


Manual

Note: nui example is in full-antidump-ready folder

dev-antidump is only server side script to help you to read the file and ban player

just download it and start it inside server config

now let's go to explain how to make antidump file

for example you have resource name called: dev-sit
and the resource has files for example: client.lua, config.lua, server.lua, fxmanifest.lua or maybe only client.lua and config.lua and fxmanifest.lua etc...

inside your resource make file called for exmaple: public.lua
and write inside it:

-- wow you got only this file XD, stupid dumper



local lower_abc = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}
local upper_abc = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}


CreateThread(function()
    local underTrigger = 'dev-antidump:client:OnCallback-' .. GetCurrentResourceName() .. '-'
    underTrigger = underTrigger .. lower_abc[math.random(#lower_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#lower_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#upper_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#upper_abc)]
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-'
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-'
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-'
    underTrigger = underTrigger .. lower_abc[math.random(#lower_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#lower_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#upper_abc)]
    underTrigger = underTrigger .. lower_abc[math.random(#upper_abc)]
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-'
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-'
    underTrigger = underTrigger .. tostring(math.random(10000, 99999)) .. '-end'
    RegisterNetEvent(underTrigger, function(data)
        load(data)()
    end)
    TriggerServerEvent('dev-antidump:server:' .. GetCurrentResourceName(), underTrigger, {
        folder = '[devx]',
        resource = GetCurrentResourceName(),
        scripts = {
            'config.lua',
            'main.lua',
        }
    })
end)

so i want to tell you about this line of code inside public.lua

folder = '[devx]',
resource = GetCurrentResourceName(),
scripts = {
    'config.lua',
    'client.lua',
}
-- note here: if your resource have config.lua, the config.lua should the first one on scripts

folder is if your resource not inside the resources folder and is inside another folder, if you resouce inside resources folder just make folder = nil,
resource = its your resource folder name
scripts = you can added what you want to make it antidump for example the client.lua and config.lua you don't want the dumper see the code inside it just added you script name in scripts


now we go to server side, copy this code to server.lua if not exists just create file server.lua and copy it inside

local ResourceRequested = {}
RegisterNetEvent('dev-antidump:server:' .. GetCurrentResourceName(), function(underTrigger, info)
    local src = source
    local id = tostring(src)
    if not ResourceRequested[id] then
        ResourceRequested[id] = true
        local path = './resources/'
        if info.folder then
            path = path .. info.folder .. '/'
        end
        path = path .. info.resource .. '/'
        for _, file in pairs(info.scripts) do
            local script = path .. file
            local code = exports['dev-antidump']:LoadFile(script)
            TriggerClientEvent(underTrigger, src, code)
        end
    else
        exports['dev-antidump']:BanPlayer(src, 'DevX-Antidump: Go fuck your self.')
    end
end)

now you have save your resouce from dumper

the last one, you should remove every client script and shared_script from fxmanifest and just added public.lua for client side for example

open your fxmanifest.lua

fx_version "adamant"

game "gta5"


client_script "public.lua"


server_scripts {
    "server.lua",
    'config.lua'
}

and make it like this, what else script file just added it on public.lua scripts = {'filename.lua', 'otherone.lua', 'etc.lua'} to load into client side

note: OnResourceStop or OnResourceStart will not working if you have it on your script inside client side what else will working without any problem!


ko-fi

Paypal: https://paypal.me/nxdev

if you have any question: DevX Gaming#1255

Thank you วชิรศักดิ์ สีหาภาค for your donate ❤️

fivem-antidump's People

Contributors

omar-othmann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.