-- meta.xml
<meta>
<info author="srslyyyyy" version="1.0" name="Test" type="script"/>
<script src="test.lua" type="server"/>
</meta>
local allowedAuthor = {["srslyyyy"] = true}
function testFunction()
local author = getResourceInfo(getThisResource(), "author")
local allowed_author = allowedAuthor[author]
if allowed_author then
outputDebugString("Everything okey.")
else
outputDebugString("Failed to load script.")
cancelEvent()
end
end
addEventHandler("onResourceStart", resourceRoot, testFunction)
Check, should work, this is for server si