Need help with fixing this.

Code wont run + Work, Can anybody help with fixing this?

[lua]local DONATOR_ENABLED = true
local DONATE_URL = “url here”
local _R = debug.getregistry()
function _R.Player:IsDonator()
return self:GetNWBool( “isdonator”, false )
end
function ulx.donator( calling_ply )
if not DONATOR_ENABLED then return calling_ply:PrintMessage( HUD_PRINTTALK, “Buying Donator is currently disabled… check back another time.” ) end

        umsg.Start( "VIPDonate", calling_ply ) umsg.End()
end
  
local donator = ulx.command( "Utility", "ulx donator", ulx.donator, "!donator" )
vip:defaultAccess( ULib.ACCESS_ALL )
vip:help( "Opens the donation menu" )
  
usermessage.Hook( "Donate", function( um )
        local DermaPanel = vgui.Create( "DFrame" )
        DermaPanel:SetPos( 50, 50 )
        DermaPanel:SetSize( 300, 225 )
        DermaPanel:Center()
        DermaPanel:SetTitle( "Donation Menu" )
        DermaPanel:SetVisible( true )
        DermaPanel:SetDraggable( true )
        DermaPanel:ShowCloseButton( true )
        DermaPanel:MakePopup()
  
        local DermaListView = vgui.Create("DListView")
        DermaListView:SetParent( DermaPanel )
        DermaListView:SetPos( 25, 50 )
        DermaListView:SetSize( 250, 150 )
        DermaListView:SetMultiSelect( false )
  
        local Nick = DermaListView:AddColumn( "Name" )
        Nick:SetMinWidth( 128 )
        Nick:SetMinWidth( 128 )
  
        DermaListView:AddColumn( "Is Donator" )
        DermaListView:AddColumn( "Friend" )
  
        for _, v in pairs( player.GetAll() ) do
                if v:CheckGroup( "moderator" ) or v:IsAdmin() then continue end -- moderator and up get VIP default.
  
        local IsDonator = "No"if IsValid(v) and v.IsDonator and v:IsDonator() then IsDonator = "Yes" end
  
                local IsFriend = "No"
                if v:GetFriendStatus() == "friend" then IsFriend = "Yes" end
  
                local Line = DermaListView:AddLine( v:Nick(), IsVIP, IsFriend )
                Line.IsVIP = v:IsVIP()
                Line.SteamID = v:SteamID()
        end
  
        local function DonateFor( SteamID )
                if not SteamID or SteamID == "NULL" then return end
                gui.OpenURL( DONATE_URL .. "&custom=" .. SteamID )
                LocalPlayer():PrintMessage( HUD_PRINTTALK, "When you donate, it takes around 1-2 minutes for it to process your donation to add you to VIP, once done it'll notice you in chatbox." )
                LocalPlayer():PrintMessage( HUD_PRINTTALK, "You won't see a notification when you extend your VIP time, you can re-open this menu to check if your VIP expire date has changed." )
  
                DermaPanel:Close()
        end
  
        local function OpenMenu( Info, Line )
                local Panel = Info:GetLine( Line )
  
                if Panel then
                        local Nick = Panel:GetValue( 1 )
                        local IsDonator = Panel.IsDonator
                        local SteamID = Panel.SteamID
  
                        local Popup = DermaMenu()
                        if IsVIP then
                                if SteamID == LocalPlayer():SteamID() then
                                        Popup:AddOption( "Extend your Donator by one month", function() DonateFor( SteamID ) end )
                                else
                                        Popup:AddOption( "Extend " .. Nick .. "'s VIP by one month", function() DonateFor( SteamID ) end )
                                end
                        else
                                if SteamID == LocalPlayer():SteamID() then
                                        Popup:AddOption( "Buy VIP for yourself", function() DonateFor( SteamID ) end )
                                else
                                        Popup:AddOption( "Buy VIP for " .. Nick, function() DonateFor( SteamID ) end )
                                end
                        end
                        Popup:Open()
                end
        end
  
        DermaListView.OnRowSelected = OpenMenu
        DermaListView.OnRowRightClick = OpenMenu
end )[/lua]

Do you get any errors?
Please use [lua][ /lua] tags as well

No, It just wont run.

How do you run it?

i think you put this in lua/autorun/client folder

I know where to put it, but that could be the issue (if he’s putting it the wrong place)

Well, It will run now, But the OWNER Does not have acces to the commands, Admin Neither, Mod Neither, Can u guys help to fix this?

Where did you place this? It seems to be a add-on for ULX? If not, there’s a bit things you should change.

Its a addon + i cant find what i did wrong in the code

Nobody has acces to the command…

Based on a quick glance, your problem is probably here:

[lua]local donator = ulx.command( “Utility”, “ulx donator”, ulx.donator, “!donator” )
vip:defaultAccess( ULib.ACCESS_ALL )
vip:help( “Opens the donation menu” )[/lua]

‘vip’ is nonexistent in this case, It should be donator:defaultAccess and donator:help.

Based on a quick glance this is stolen code from my server(s).

http://puu.sh/1UiBc

http://puu.sh/1UiBx

If you don’t have a license on it stating you can’t distribute the code or claim the code as your own you can’t really say it’s stolen.

Someone has removed the top comment of the code, it clearly states no one should use this without my authorized permission.

You shouldn’t breathe without my permission.

That’s exactly what you’re saying, it’s stupid. nobody’s going to listen.

I didn’t make air, I made this script, why would you compare air to code?