> For the complete documentation index, see [llms.txt](https://unique-store.gitbook.io/hunk-ac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unique-store.gitbook.io/hunk-ac/overview/dumping-protection.md).

# Dumping Protection

first, to use the anti-dump feature you need to go inside <mark style="color:yellow;">configs/server/antidump.lua</mark>

then you need to add the resources you want to protect from being dumped inside <mark style="color:yellow;">HUNK\_AC.AntiDumpResources</mark>

{% hint style="warning" %}
Anti-dump system will not work on Tebex script, so do not add them into anti-dump at all
{% endhint %}

if you want to remove the anti-dump system from one of your resources then remove it from <mark style="color:yellow;">HUNK\_AC.AntiDumpResources</mark> and add it inside <mark style="color:$warning;">HUNK\_AC.RestoreResources</mark>

after you have put all the resources now restart the anti-cheat and go to the server console

while you are installing the anti-dump you might face some messages like this:

<mark style="color:purple;">this resource is using @ sign for importing files from another resources</mark>

In this case you need to go to the resource and open the fxmanifest.lua or \_\_resource.lua

then find the <mark style="color:yellow;">@</mark> sign that is used to import a client file from another script

and cut it out from <mark style="color:yellow;">client\_script</mark> or <mark style="color:yellow;">client\_scripts</mark>

then add the imported file into another line like this:

```lua
client_script '@es_extended/locale.lua' ignore 'yes'
```

### Example 1

<mark style="color:yellow;">default fx file:</mark>

```lua
client_scripts {
	'@es_extended/locale.lua',
	'locales/en.lua',
	'client.lua',
	'Config.lua',
}
```

new fx file

<pre class="language-lua"><code class="lang-lua">client_script '@es_extended/locale.lua' ignore 'yes'

<strong>client_scripts {
</strong>	'locales/en.lua',
	'client.lua',
	'Config.lua',
}
</code></pre>

### Example 2

<mark style="color:yellow;">default fx file:</mark>

```lua
client_scripts {
    '@PolyZone/client.lua',
    '@PolyZone/BoxZone.lua',
    '@PolyZone/EntityZone.lua',
    '@PolyZone/CircleZone.lua',
    '@PolyZone/ComboZone.lua',
    'client.lua'
}
```

<mark style="color:yellow;">new fx file:</mark>

<pre class="language-lua"><code class="lang-lua">client_script '@PolyZone/client.lua' ignore 'yes'
client_script '@PolyZone/BoxZone.lua' ignore 'yes'
client_script '@PolyZone/EntityZone.lua' ignore 'yes'
client_script '@PolyZone/CircleZone.lua' ignore 'yes'
client_script '@PolyZone/ComboZone.lua' ignore 'yes'
<strong>
</strong><strong>client_scripts {
</strong>    'client.lua'
}
</code></pre>

### Example 3

#### <mark style="color:yellow;">default fx file:</mark>

```lua
client_script '@Protector/loader.lua'

shared_script {
    'config.lua',
    '@qb-core/shared/locale.lua',
    'locales/en.lua',
    'locales/*.lua'
}

client_scripts {
    'client.lua'
}

server_scripts {
    '@oxmysql/lib/MySQL.lua',
    'server.lua'
}
```

#### <mark style="color:yellow;">new fx file:</mark>

```lua
client_script '@Protector/loader.lua' ignore 'yes'

shared_script {
    'config.lua',
    '@qb-core/shared/locale.lua',
    'locales/en.lua',
    'locales/*.lua'
}

client_scripts {
    'client.lua'
}

server_scripts {
    '@oxmysql/lib/MySQL.lua',
    'server.lua'
}
```

{% hint style="warning" %}
do not touch server and shared files

means do not touch server\_script / server\_scripts / shared\_script

because we only do it on client files
{% endhint %}

after you modify the fx files save them and restart the anticheat again

then restart the server

## <mark style="color:purple;">UI FIles Protection</mark>

but how about the UI files like <mark style="color:blue;">HTML</mark> or <mark style="color:yellow;">js</mark> files?

if your resource is important on the UI side then you can also use these sites for obfuscating the files

for <mark style="color:yellow;">js</mark> files <https://obfuscator.io/>

for <mark style="color:blue;">HTML</mark> files <https://www.wmtips.com/tools/html-obfuscator/>

for <mark style="color:red;">CSS</mark> files <http://cssobfuscator.com/>
