在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(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 + nuiplease download fixedsometime the trigger OnPlayerLoaded or player spawn send to client side but antidump was not loaded the scripts because of 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.
contact with meDiscord: DevX Gaming#1255 Paypal: https://paypal.me/nxdev DonateThank you |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论