Jump to content
LOOKING FOR ROBLOX ASSETS? VISIT ROBLOXBAY.COM! ×
THE BEST DISCORD BACKUP BOT | PRESERVE YOUR DISCORD SERVER! ×

RobloxBay

Visit Site

FiveSecured

 

Stop shipping plaintext. FiveSecured encrypts, obfuscates, and licenses your Lua resources so customers run your work without ever holding your source.

Try for Free
  • 5decrypt-banner-v1.thumb.png.262b7992a5a4de66fd6633bf48af6c1c.png

1 Screenshot

About This File

Easy Config


User Feedback

Recommended Comments

azlovesjoey11

Posted

Doesn't work because it is missing the server.lua

Create a server.lua and enter this code it works, this is the server.lua that comes w the file because they don't fxap lock their scripts


 

local steamID
local discordID
 
RegisterCommand(Config.command, function(source)
   
    TriggerClientEvent('ar:drugMenu:openMenu', source, source)
 
end)
 
RegisterNetEvent('ar:drugScript:giveTheDrugsServer')
AddEventHandler('ar:drugScript:giveTheDrugsServer', function (targetIDD, drugToGive, givenDosage, maxDosage, senderVector)
 
    TriggerClientEvent('ar:drugScript:giveTheDrugs', targetIDD, drugToGive, givenDosage, maxDosage, senderVector)
 
end)
 
RegisterNetEvent('ar:drugScript:takeTheDrugsServer')
AddEventHandler('ar:drugScript:takeTheDrugsServer', function (drugToGive, givenDosage, maxDosage)
    local src = source
 
    TriggerClientEvent('ar:drugScript:giveTheDrugs', src, drugToGive, givenDosage, maxDosage)
   
 
end)
 
RegisterNetEvent('ar:drugScript:RegisterUser')
AddEventHandler('ar:drugScript:RegisterUser', function()
    local src = source
   
    for k,v in pairs(GetPlayerIdentifiers(source))do  
        if string.sub(v, 1, string.len("steam:")) == "steam:" then
            steamid = v
            steamID = string.sub(steamid, 7, i)
        elseif string.sub(v, 1, string.len("discord:")) == "discord:" then
            discord = v
            discordID = string.sub(discord, 9, i)  
        end
    end
 
    if Config.whitelistMedicalUse then
        -- STEAM CHECK
        if steamID then
            for i=1, #Config.MedicalUse.steamID, 1 do
                if Config.MedicalUse.steamID[i] ~= "" then
                    if Config.MedicalUse.steamID[i] == steamID then
                        TriggerClientEvent("ar:drugMenu:allowMedic", src)
                    end
                end
            end
        end
        -- DISCORD ID
        if discordID then
            for i=1, #Config.MedicalUse.discordID, 1 do
                if Config.MedicalUse.discordID[i] ~= "" then
                    if Config.MedicalUse.discordID[i] == discordID then
                        TriggerClientEvent("ar:drugMenu:allowMedic", src)
                    end
                end
            end
        end
        -- ACE PERM
        for i=1, #Config.MedicalUse.acePerm, 1 do
            if Config.MedicalUse.acePerm[i] ~= "" then
                if IsPlayerAceAllowed(src, Config.MedicalUse.acePerm[i]) then
                    TriggerClientEvent("ar:drugMenu:allowMedic", src)
                end
            end
        end
        -- DISCORD ROLE
        if discordID then
            for i=1, #Config.MedicalUse.DiscordRole, 1 do
                if Config.MedicalUse.DiscordRole[i] ~= "" then
                    local roleIDs = exports.Badger_Discord_API:GetDiscordRoles(src)
                    if not (roleIDs == false) then
                        for j = 1, #roleIDs do
                            if exports.Badger_Discord_API:CheckEqual(Config.MedicalUse.DiscordRole[i], roleIDs[j]) then
                                TriggerClientEvent("ar:drugMenu:allowMedic", src)
                            end
                        end
                    end
                end
            end
        end
    else
        TriggerClientEvent("ar:drugMenu:allowMedic", src)
    end
   
    if Config.whitelistRecreationalUse then
        -- STEAM CHECK
        if steamID then
            for i=1, #Config.RecreationalUse.steamID, 1 do
                if Config.RecreationalUse.steamID[i] ~= "" then
                    if Config.RecreationalUse.steamID[i] == steamID then
                        TriggerClientEvent("ar:drugMenu:allowRec", src)
                    end
                end
            end
        end
        -- DISCORD ID
        if discordID then
            for i=1, #Config.RecreationalUse.discordID, 1 do
                if Config.RecreationalUse.discordID[i] ~= "" then
                    if Config.RecreationalUse.discordID[i] == discordID then
                        TriggerClientEvent("ar:drugMenu:allowRec", src)
                    end
                end
            end
        end
        -- ACE PERMS
        for i=1, #Config.RecreationalUse.acePerm, 1 do
            if Config.RecreationalUse.acePerm[i] ~= "" then
                if IsPlayerAceAllowed(src, Config.RecreationalUse.acePerm[i]) then
                    TriggerClientEvent("ar:drugMenu:allowRec", src)
                end
            end
        end
        -- DISCORD ROLE
        if discordID then
            for i=1, #Config.RecreationalUse.DiscordRole, 1 do
                if Config.RecreationalUse.DiscordRole[i] ~= "" then
                    local roleIDs = exports.Badger_Discord_API:GetDiscordRoles(src)
                    if not (roleIDs == false) then
                        for j = 1, #roleIDs do
                            if exports.Badger_Discord_API:CheckEqual(Config.RecreationalUse.DiscordRole[i], roleIDs[j]) then
                                TriggerClientEvent("ar:drugMenu:allowRec", src)
                            end
                        end
                    end
                end
            end
        end
    else
        TriggerClientEvent("ar:drugMenu:allowRec", src)
    end
end)

 
austin31341

Posted

Dumbass someone sent the fucking code above

 stupid ass luis

  • Nice 1
3wdawdawdaw

Posted

where do i put the code

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...

Important Information

By continuing on Launcherleaks.net, you agree to our Terms of Use, Guidelines & Privacy Policy