Back to community

lost 2 weeks of progress because of a typo in fxmanifest

61 rep222 views1 min read

wrote 2 weeks of code for a custom heist, all good locally. uploaded to my server, server crashes, can't figure out why.

after 6 hours of debugging i realize my fxmanifest had server_scripts (note the s) listed as just a single string instead of a table with multiple files. so only the first file was loading. the rest of my code was just... not running.

-- BAD
server_scripts 'main.lua'

-- GOOD
server_scripts {
    'main.lua',
    'utils.lua',
    'database.lua',
}

the error message said nothing about this. just "couldn't initialize". i lost a whole afternoon to this.

posting so the next person doesn't.

23 3 commentsSign in to vote

Comments (3)

Sign in to leave a comment.
  • oh my god this is exactly what just happened to me last week. why isn't this in the official docs more prominently

    3 points
  • a single string DOES work for one file btw. it's the missing braces that hide the rest of your files. annoying but not technically a bug

    0 points
  • thank you for posting. saved me from this exact mistake in the future probably

    0 points