Jump to content

Server Name - Help!


FlyingSpoon

Recommended Posts

prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot,  
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
) 

Link to comment

--[[prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot, 
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
)]]-- 

just mark the lines with --

Link to comment
--[[prefix = "Your gamemode name | " 
addEventHandler("onResourceStart", resourceRoot, 
  function() 
    if getResourceName(source):sub(1, #prefix) == prefix then else 
      cancelEvent(true, "Incorrect name prefix - Expected '"..prefix.."', got '"..getResourceName(source):sub(1, #prefix).."'") 
    end 
  end 
)]]-- 

just mark the lines with --

What???

Thanks, the

prefix - Do I have to change "You gamemode name | " to e.g. "MyGamemode"

Change it to your resource name.

Link to comment

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...