Configuration
Master Kit has two server settings. Everything else you can change is a file you add to or reword:
| File or folder | What you set there |
|---|---|
config.lua | Who may use Master Kit (RequireAce), and the mature synched scenes (MatureScenes) |
locales/en.lua, locales/it.lua | The wording of in-game messages |
html/i18n.js | The Italian wording of the interface |
html/data/peds_custom.js | Your server's own peds |
html/data/objects_custom.js | Your server's own objects |
html/data/anims_local.js | Your server's own animations (you create this file) |
client/outfits.lua | Clothing presets for actors |
import/menyoo/ | Menyoo outfits and favorite animations to import |
config.lua, locales/*.lua and client/outfits.lua are the only unencrypted scripts. The html/ files are plain files. After changing any of them, restart the resource (ensure vs-masterkit).
Per-player preferences are not server settings. Language, theme, panel layout, free-camera settings, the Rockstar Editor auto-record switch and the last export form are saved on each player's own PC.
Who may use it (RequireAce)
Config = {
-- true = only players with the "masterkit" ACE can open the editor and
-- create, save and delete projects and save vehicle recordings.
-- false = anyone on the server can open the editor and create, change and
-- delete every project.
RequireAce = true,
}
true is the default, because while the editor is open a player's character is hidden and can't be hurt, and their camera flies anywhere. The value is read when the resource starts, so restart it after a change. Giving or removing an ACE while the server runs counts from the player's next try to open the editor.
Giving the ACE
# admins
add_ace group.admin masterkit allow
# or a group of your own
add_ace group.filmcrew masterkit allow
add_principal identifier.license:<license> group.filmcrew
# or everyone who joins (a dedicated filming server)
add_ace builtin.everyone masterkit allow
Replace <license> with the player's license identifier.
What it gates
| Action | RequireAce = false | RequireAce = true, without the ACE |
|---|---|---|
| Open the editor | Everyone | Refused: "You are not allowed to use Master Kit." |
| See the project list, load a project | Everyone | Refused |
| Star favorites, import Menyoo favorites | Everyone | Refused |
| Create, duplicate, rename, save, delete a project | Everyone | Refused with a message, e.g. "You are not allowed to save projects." |
| Save a vehicle recording | Everyone | Refused: "You are not allowed to save recordings." |
| Change the project folders | Everyone | Refused: "You are not allowed to change the project folders." |
| Export a scene for Menyoo | Everyone | Refused: "Export failed: you are not allowed to export" |
The F8 checks (mk_rooms, mk_fx and the others) | Everyone | Refused |
| Work on a project with others | Everyone | Allowed on a project they were invited to: the invitation opens the editor on it. See Working Together. |
With RequireAce = false, every player can open the editor, and while it is open their character is hidden and invincible. Use false only on a server where everyone who can join is trusted with that.
Mature synched scenes (MatureScenes)
The synched scene catalog has two categories that are hidden by default: Explicit (33 strip club and sex scenes) and Torture (29 scenes from the story mode's torture mission). To list them with the others:
Config = {
RequireAce = true,
MatureScenes = true,
}
Restart the resource after the change. The setting only changes what the catalog lists: a project that already uses one of these scenes still plays it.
Languages
The editor speaks English (the default) and Italian. Each player picks a language on the editor's Settings page, under Language. Changing it closes the editor; it opens in the new language next time. There is no server-wide language setting, and the code accepts only these two, so a third language file is never used.
In-game messages: locales/
locales/en.lua and locales/it.lua hold the game messages: notifications, warnings, and the names of the two key bindings. Change only the text on the right and keep the %s and %d placeholders:
Locales["en"] = {
["get out of the vehicle before opening the editor."] = "get out of the vehicle before opening the editor.",
["Too many projects: delete some."] = "Too many projects: delete some.",
-- ["original text"] = "your text",
}
A message that is not in the file shows as written in the code. To reword one of those, add a line with the exact English text as the key.
Interface texts: html/i18n.js
The interface is written in English inside the interface code. html/i18n.js holds its Italian translation, one "English text": "Italian text" pair per line, so this is where you reword the Italian interface. Keep the %s placeholders. A key ending in ##something (for example "All##f") is the same English text used where Italian needs another form; the ## part never shows. The English interface labels cannot be reworded here.
Your own peds: peds_custom.js
Peds your server streams show in the Custom category of the Actors page once they are listed in html/data/peds_custom.js. One line per ped, inside the push( … ):
window.MK_PEDS.push(
["my_ped_model", "Il mio ped", "custom", "m", "my_peds_resource", "My ped"],
);
| Position | Meaning |
|---|---|
| 1 | Model name, in lowercase |
| 2 | Italian name |
| 3 | Always "custom" |
| 4 | "m" male, "f" female, or "x" neither |
| 5 | The resource that streams it |
| 6 | English name |
A ped whose model is not in the game, for example because its resource is not started, is hidden from the catalog.
Your own objects: objects_custom.js
Objects your server streams get a category of their own on the Objects page:
(function () {
const O = window.MK_OBJECTS;
if (!O) return;
O.cats.push(["my_category", "Mia categoria", "My category"]);
O.list.my_category = "prop_one|prop_two";
})();
O.cats.pushadds the category: an id, its Italian name, its English name.O.list.<id>lists its models, separated by|.
Your own animations: anims_local.js
The download does not include this file. Create html/data/anims_local.js, and put the animations' .ycd files in the resource's stream/ folder. Add a category, then one line per animation:
window.MK_ANIM_CATS.push(["my_pack", "Il mio pacchetto", "My pack"]);
window.MK_ANIMS.push(
{ c: "my_pack", l: "Saluto", e: "Wave", d: "my_dictionary", a: "my_animation" },
);
| Field | Meaning |
|---|---|
c | The category id |
l, e | Italian and English names |
d, a | Animation dictionary and animation name |
s | Instead of d and a: a scenario name, such as WORLD_HUMAN_SMOKING |
p | Objects held while it plays: [["model", bone, x, y, z, rx, ry, rz], ...] (ped bone ids) |
pr | The other part of an animation done in pairs: ["dictionary", "animation"] |
at | This part hangs on the other one there: [bone, x, y, z, rx, ry, rz] |
so | The other one stands in front of this one: [front, side] |
u | true for upper body only, false for the whole body (overrides the page's Upper body box) |
Adding the first part of a pair to an actor gives the other part to the nearest free actor, or to a copy of this one.
You do not need a file to use an animation, scenario or effect once. The Animations page takes any animation or scenario typed by name (as in Menyoo or OpenIV), and the Particles page takes any dictionary and effect name, including ones a resource streams.
Vehicles need no file. The Vehicles catalog lists every vehicle model the game knows, add-on vehicles streamed by other resources included. An add-on shows under its game label, or its model name if it has none.
Clothing presets: outfits.lua
client/outfits.lua lists the presets in the actor inspector under Appearance → Clothes. The easiest way to get presets is to import Menyoo outfits. You can also write them here, one entry per preset:
MK.Outfits = MK.Outfits or {
{
id = "example_tshirt_jeans",
model = "mp_m_freemode_01",
label = "T-shirt and jeans",
group = "Examples",
folder = "Examples",
look = {
c = {
{ 0, 0, 0, 0 }, { 1, 0, 0, 0 }, { 2, 0, 0, 0 }, { 3, 0, 0, 0 },
{ 4, 0, 0, 0 }, { 5, 0, 0, 0 }, { 6, 1, 0, 0 }, { 7, 0, 0, 0 },
{ 8, 15, 0, 0 }, { 9, 0, 0, 0 }, { 10, 0, 0, 0 }, { 11, 0, 0, 0 },
},
p = {
{ 0, -1, -1 }, { 1, -1, -1 }, { 2, -1, -1 }, { 3, -1, -1 },
{ 4, -1, -1 }, { 5, -1, -1 }, { 6, -1, -1 }, { 7, -1, -1 },
},
},
},
}
| Field | Meaning |
|---|---|
id | A unique name |
model | The ped model it is for: mp_m_freemode_01 (male) or mp_f_freemode_01 (female) |
label | The name in the menu |
group, folder | Where it sits in the menu |
look.c | Components { slot, drawable, texture, palette } for slots 0 to 11: 0 face, 1 mask, 2 hair, 3 arms, 4 legs, 5 bag, 6 shoes, 7 accessories, 8 undershirt, 9 armor, 10 decals, 11 top |
look.p | Props { slot, drawable, texture } for slots 0 to 7, -1 for nothing: 0 hat, 1 glasses, 2 ears, 6 watch, 7 bracelet |
Menyoo import
Menyoo outfits
Copy outfit .xml files saved with Menyoo into import/menyoo/Outfit/ and restart the resource. They appear as clothing presets.
- Sub-folders become groups in the menu.
- Only outfits for the freemode male and female, Michael, Franklin and Trevor are read. A file named
_reservedis skipped. - The folder is read once after each start, when the first player's game loads the resource, and the console prints
[vs-masterkit] N Menyoo outfits imported from import/menyoo/Outfit/. Restart after adding files. - Without
io.popenon the server, the folder cannot be listed. List the files inimport/menyoo/Outfit/list.txtinstead, one path per line, relative to that folder.
Menyoo favorite animations
Copy Menyoo's FavouriteAnims.xml into import/menyoo/FavouriteAnims/ (or straight into import/menyoo/).
- Every player gets its animations added to their favorites the next time they open the editor, once per version of the file.
- Import from Menyoo, in the Animations page's menu, adds them on demand.
- With no file in the folder, the server also looks for Menyoo's own file under
%LOCALAPPDATA%\FiveM\FiveM.app\data\cache\subprocess\menyooStuff\on the server machine. That only helps on a test server running on the same PC as the game.
Exporting a scene back to Menyoo's Object Spooner is covered on the Recording & Export page.
The data folders
| Path | Contents |
|---|---|
data/projects/<id>.json | One project: its scene, timeline, cameras, environment and settings |
data/projects/index.json | The project list the editor shows |
data/project_folders.json | The folders on the Project page |
data/favorites/ | One file per player with their favorites, plus a small marker of the Menyoo file already imported |
data/exports/<name>.xml | Scenes exported for Menyoo |
stream/<name>001.yvr | Recorded vehicle drives, plus height-shifted copies the editor makes for other models |
All of it is written by the server. Back it up before an update, see Installation.
Copying a project in by hand. A project .json dropped into data/projects/, for example one a friend sent, is added to the list the next time someone opens the editor. The console prints [Master Kit] Project file data/projects/<id>.json added to the project list (…).
- The file name becomes the project id: letters, digits,
_and-, up to 40 characters, and notindex. - Copy the recorded drives its vehicles use into
stream/too, then restart the resource. - Listing the folder needs
io.popenon the server. Without it, add the project todata/projects/index.jsonby hand: copy an existing entry and change itsidandname.
Server limits
These are fixed in the code, not settings.
| Limit | Value | When it is reached |
|---|---|---|
| Projects | 500 | "Too many projects: delete some." |
| Size of one project file | 8 MB of JSON | "project too large" |
| Project name | 48 characters | Longer names are cut |
| Project folders | 500 | Extra folders are not kept |
| Favorites per player | 20,000 | "Maximum 20000 favorites." |
| Length of one drive recording | 10 minutes | The recording stops by itself |
| Shortest drive recording | 0.3 seconds | "Recording too short, discarded." |
| Frames in one recording | 65,535 | Above 60,000 frames, the server keeps one frame every few milliseconds |
| A model loading | 10 seconds | "model did not load in time" |
| An animation loading | 5 seconds | "animation did not load in time" |