Skip to content

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.lua with 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).

Drop client/*.lua and server/*.lua here

What it does ​

  1. Reads the file the way Lua would, without running it.
    • It evaluates literals, tables, arithmetic, string concatenation, x or y, locals, vector2/3/4 and GetConvar(name, default).
    • It skips function bodies, calls, if and 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.
  2. 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:
    • #rrggbb strings → 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.
  3. Checks how your scripts read each value (optional). Add your client and server scripts and it finds every Config.X read:
    • a read at file level means restart;
    • reads only inside functions mean live;
    • any read from a client script means scope = 'shared'.
  4. 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 max keeps a typo from setting the payout to 900000.
  • select options. The converter can't know which strings are a closed set ('money' | 'bank'). Switch those fields to select and list the options.
  • The apply badge. Without your scripts it defaults to restart, 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.