Config converter ​
Paste or drop a resource's config.lua and get back the files that make it np_admin compatible:
- an
np_admin_settings.luawith one field per value; - the lines for
fxmanifest.lua; - the lib to vendor.
Your config file itself doesn't change. Converting a config explains what the generated code does.
Runs entirely in your browser. Your files are read locally and never uploaded. Close the tab and they're gone.
1 · Your config
Paste it or drop the file. Several files are read in the order you add them, like the manifest loads them.
2 · Your scripts (optional)
Add your client and server scripts and the converter checks how each value is read: once at file level (restart) or inside functions (live), and whether a client reads it (shared).
What it does ​
- Reads the file the way Lua would, without running it.
- It evaluates literals, tables, arithmetic, string concatenation,
x or y, locals,vector2/3/4andGetConvar(name, default). - It skips function bodies, calls,
ifand loops, and lists what it skipped. It never guesses a value it can't know. - Several files are read in the order you add them, like the manifest loads them. That covers configs split into
shared/config/*.lua.
- It evaluates literals, tables, arithmetic, string concatenation,
- Picks a field type per value. Booleans become toggles. Numbers become numbers or sliders, with a unit guessed from
the key name (
CooldownMinutes→ min,Price→ $,Chance→ %). Other mappings:#rrggbbstrings → colour;Webhook/Token/Password→ secret, including the convar it was read from;- vectors → coords;
- string or number arrays → lists;
- nested records → one field per key, down to the depth you choose;
- long lists of records → JSON.
- Checks how your scripts read each value (optional). Add your client and server scripts and it finds every
Config.Xread:- a read at file level means
restart; - reads only inside functions mean
live; - any read from a client script means
scope = 'shared'.
- a read at file level means
- Writes code that passes np_admin's own validation. The key format, the field types, and the list, text and JSON limits are the ones np_admin checks when it registers your settings.
What you still decide ​
- Which values staff should touch at all. Switch off internals such as table layouts, model hashes and debug helpers.
- Labels and limits. A sensible
maxkeeps a typo from setting the payout to 900000. selectoptions. The converter can't know which strings are a closed set ('money' | 'bank'). Switch those fields toselectand list the options.- The
applybadge. Without your scripts it defaults torestart, which is always true. See Make apply honest.
Privacy
The converter is part of this static page. Files are read with the browser's FileReader, and the results are
offered as local downloads. Nothing is sent to a server, stored or logged.