• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

omar-othmann/fivem-antidump: fivem antidump lua + nui

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

omar-othmann/fivem-antidump

开源软件地址(OpenSource Url):

https://github.com/omar-othmann/fivem-antidump

开源编程语言(OpenSource Language):

Lua 84.7%

开源软件介绍(OpenSource Introduction):

fivem-antidump client side + nui

please download dev-antidump with full-antidump-ready

full-antidump-ready is ready resource, you can put your code inside it and after finish change the folder name to your resource name

the description is inside files, so make sure to open all file in full-antidump-ready and read it before store your code inside it.

dev-antidump is only server side, can read the file and ban players

fixed

sometime the trigger OnPlayerLoaded or player spawn send to client side but antidump was not loaded the scripts because of [framework load player fast, ping, bad connection]. and your scripts not working on the player, so i have fix the problem by add some code on client.lua and public.lua

for example:

inside public.lua

local WaitUntilLoaded = true

-- change the event when player loaded or player spwan like your framework. i use here QBCore
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
    CreateThread(function()
        while WaitUntilLoaded do Wait(0) end
        TriggerEvent('YourTriggerNameInsideClient.lua')
        -- or triggerServerEvent
        -- please don't use same event name on all your resource, use like: resource-name:client:OnPlayerLoaded
        -- if you use same event name, think about how many resource you have and how manytime it's will send the trigger
    end)
end)

AddEventHandler('onResourceStart', function(resource)
    if resource == GetCurrentResourceName() then
        Wait(100)
        CreateThread(function()
            while WaitUntilLoaded do Wait(0) end
            TriggerEvent('YourTriggerNameInsideClient.lua')
        end)
    end
end)

function LoadSuccess()
    WaitUntilLoaded = false
end

exports('LoadSuccess', LoadSuccess)

added this at the last line of your code in client.lua

CreateThread(function() exports['your-resource-name']:LoadSuccess() end)

and you ready to go.

Note: i didn't added this code inside full-antidump-ready you should do it manuel.

contact with me

Discord: DevX Gaming#1255

Paypal: https://paypal.me/nxdev

Donate

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
EmergingThreats/et-luajit-scripts发布时间:2022-08-17
下一篇:
marcopompili/lua-leveldb: Lua bindings for google's leveldb library.发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap