# Stream assets

[← Back to README](../README.md)

K3 Studio makes and edits the game's streamed files itself: it reads and writes RSC7 and meta natively, with no external tools. With no folder open, the start page lists every creator and editor (also on the **Create** rail button, and as **Create** commands in the palette). Editors that touch the game go through the `k3studio` bridge: place things where you stand, copy what you aim at, preview unsaved work live.

Every editor here also works with the agent through MCP tools; see [Agent & MCP](agent.md#stream-assets).

## Props and shells (.k3prop, .k3shell)

A prop or shell is a JSON source file built in a 3D viewport with Blender-style gizmos (`G` `R` `S`, axis locks, snapping), and exported as a `.ydr` with collision.

- **Shapes:** box and cylinder (their edges optionally rounded), sign, cone, sphere, ramp, stairs, plane, tube, **Lathe** (a turned outline: 26 presets from bottles, cans, glasses and mugs to a barrel, column, trophy, ring, tyre and light bulb; vessels are hollow), **Extrude** (any outline pushed up; presets: L, T and U shapes, cross, arrow, hexagon, octagon, rounded rectangle, heart, arch, star), **Mesh** (polygons point by point) and **Model** (an `.obj`, `.gltf` or `.glb`, for example from Blender). New shapes start at real GTA sizes.
- **Modifiers**, applied in order like Blender's stack (**+ Modifier** under a part's size): Subdivide, Twist, Bend, Taper, Shear, Spherize, Relax, Noise, Wave, Inflate, Jitter, Terrace, Displace, Array, Mirror, Solidify, Wireframe, Smooth and Flat.
- Pictures wrap around round shapes, so labels work.
- A ped can stand beside the prop for scale: a 1.8 m stand-in, or the game's own `mp_m_freemode_01` read from a folder of its extracted files.
- **Shells** are rooms with doors and windows, their walls **Wall thickness** thick (20 cm for a new shell; 0 for a thin surface), centred on the rooms' lines so the wall between two rooms is whole, with doorways and windows cut through and lined, and the outside drawn too. Rooms stack into storeys (a floor height per room), and details inside (counters, columns, shelves) use the same shapes and modifiers as props. **Interior too** exports the shell as an interior as well, `<name>_int` in `stream/<name>_int.ytyp`: its rooms are the shell's rooms, its doorways and windows are portals, and each room is drawn by its own model (`<name>_r1`, `<name>_r2`, ...) holding that room's walls and the details and lights in it, so the game draws a room only when you can see into it. Its outside (walls facing out where no other room stands against them, roofs where no storey stands on them) is one more model, `<name>_out`, in the interior's limbo, with its own collision: from outside, the game draws an interior's rooms only through their doorways and windows, and their walls only stop a ped that is inside. Walking in through a doorway takes you into the interior's room. A doorway's **Game door** switch puts a swinging game door (a house door) in it for the interior, the doorway sized to it. Open the `.ytyp` and use **Place in a map** to put it in the world. Exporting again keeps what you changed in the interior editor: each room's lighting and flags, and the props you added (matched by room name).
- **Furniture:** the Add menu's kits (table, chair, stool, sofa, bed, shelf, desk, counter, door frame) come in at real sizes as one group, ready to resize, recolour or take apart.
- **Groups:** **Group** (Ctrl+G) joins the selected parts: a click on any of them in the view selects them all, so a lamp's base, pole and shade move together; the parts list still picks one. **Ungroup** (Ctrl+Shift+G) parts them.
- **Glow:** a material's **Glow** makes it light itself, in the dark and at night (neon, screens, lamps): 1 is a soft glow, 8 bright. It doesn't light what's around it; add a light for that.
- **Far away:** an exported prop also carries lighter versions of itself (round shapes with fewer segments, one Subdivide level fewer), drawn past 30% and 60% of its **Seen from** distance; a version that wouldn't save a fifth of the triangles is left out.
- **Relief:** a patterned material's **Relief** (bricks, planks, tiles, stone) reaches the game as a normal map (the game's `normal.sps`), so the joints catch the game's light from wherever it comes; the editor's view bakes the relief into the colours instead.
- **Glass:** a material's **Glass** makes it see-through (windows, bottles, display cases); its colour's alpha is how clear, and the game adds its reflections. A picture with transparency keeps its own.
- **Collision:** **Solid** makes players and cars collide with the model's own triangles; for a prop, **As a simple box** collides with one box around it instead, whatever its detail, which is cheaper; a part set to **Walk through** stays out of the collision (curtains, leaves, a lamp's shade). Any number of collision triangles works: past 10,000 they're split into several collision pieces, as the game's own models do (one piece holds at most 32767).
- **Origin:** a prop stands and turns on its origin in maps; **Bottom centre** or **Under the selection** (in the Prop section) moves everything so that point is the origin.
- **Animated:** a prop with **Animated** on carries a root bone, so scripts (and the animation editor's prop animations) can move it with `PlayEntityAnim`; without one the game refuses the clip.
- **Export** writes `stream/<name>.ydr` and `.ytyp` into the resource the file is in (the nearest folder above it with an `fxmanifest.lua`), adds the `.ytyp` to the manifest and ensures the resource when the server runs.
- **In the game:** a model new to the game needs a reconnect the first time (the game reads `.ytyp` files when it joins; spawning it before that offers the rejoin); after that, exporting again swaps it in place, with the player put back where they stood in a shell. Lights are baked into the `.ydr` and need artificial lights on: a server script calling `SetArtificialLightsState(true)` (a blackout, often in weather or event scripts) turns them off with every other light.

## Animations (.k3anim)

An animation starts from a clip you already have: any `.ycd` (an emote or a pose from your server; **Starts from**). Its keyframes turn the ped's main bones on top of it, in degrees about each bone's own axes; between keys the turn blends. GTA keeps every bone's whole rotation in an animation rather than a change from a rest pose, which is why a base matters: without one, the turned bones start from no rotation at all and look broken.

- **Play on my character** exports `stream/<name>.ycd` (one clip, also `<name>`), restarts the resource and plays it on you, looping; **Stop** ends it. New animations load without rejoining.
- Scripts play it with `TaskPlayAnim(ped, "<name>", "<name>", ...)` after `RequestAnimDict("<name>")`.
- **For a prop:** a prop animation has no base. Its keys turn the prop (degrees) and move it (metres from where it stands). It plays on an **Animated** prop from the prop creator: name it under **Plays on**, and **Play on the prop** puts one in front of you playing it. Scripts play it with `PlayEntityAnim(object, "<name>", "<name>", ...)`.

## Weapons (.k3weapon)

**Create > Weapon** copies one of the game's weapons from your GTA V files (name, label, model, damage, clip size, fire rate, range, reload speed) into a `.k3weapon` you change on its page. Everything is exported as the game's own weapon data, so it works natively for every player, with no script in between:

- **Sound and effects**: pick the shot sound, muzzle flash, tracer, impact effects, shells and barrel smoke from what the game's weapons use. Or give it your own shot sound from a `.wav` / `.ogg`: it's made into game audio (a wave pack and a sound set) that plays from every ped firing it
- **Handling**: spread, recoil, bullets per shot and their spread, push, headshot damage, penetration, bullet speed, lock-on and tracer chance. A dot marks what differs from the base weapon; **Back to the base's** undoes it
- **Animations**: its own clip set falling back to the base weapon's, with clips taken from the game's. **Adjust** on each animation turns the head, neck, spine and arms across the whole clip, without opening the animation editor
- **Add to ox_inventory** copies the base weapon's entry (weight, durability, ammo) into ox_inventory's `data/weapons.lua`; it asks first

## Working in the 3D editors

Props, shells, maps and interiors share one 3D editor, so these work in all of them. Press `?` over the viewport (or click the hint along its bottom) for every key. The editing keys (move, turn, size, copy, delete, select all, hide, show only, fit the view, the tools) can be changed in **Settings > Keys**, under 3D editors; the `?` card shows them as bound.

- **Undo and redo:** `Ctrl+Z`, and `Ctrl+Y` or `Ctrl+Shift+Z`, in every stream editor (the livery painter, texture dictionaries and handling too), for your edits and the agent's.
- **Find in a list:** `Ctrl+F` filters the parts, props or textures list by name, and `Enter` selects every match, so one change (a material, a size, Delete) reaches all of them. Double-click a row to bring that item into view.
- **Select similar:** **Select same** Name, Material or Shape (props and shells), or **Select same model** (maps).
- **Line up and Space out:** with two or more selected, a bar over the viewport puts them at the selected one's place along X, Y or Z, or spaces three or more evenly between the two ends; **Grid** puts each on the snapping grid. `Ctrl+I` selects the others.
- **Show only the selection:** `/` hides everything else for a moment, so you can work inside a busy shell or map; `/` again shows it all. In props and shells, `Shift+H` hides the rest for good (`Alt+H` shows all) and **Lock** (the padlock on a row) keeps a part drawn while clicks in the view go through it, handy among walls and floors.
- **Measure:** two items picked show their size and how far apart they are.
- **Copy between files:** `Ctrl+C` copies the selected parts with their materials; `Ctrl+V` puts them in any prop or shell. `Shift+A` adds a shape or one of your saved props (type to find one), `F2` renames.
- **Checks before export:** Problems lists what would go wrong in the export or the game (parts with no size, missing pictures, copies left on top of their originals, lights that give no light, doorways past their wall, map props with no model, interior props in no room), and the creators' header counts them.
- The header counts the model's triangles; the status bar shows what's selected, the tool and the snapping.

## Maps (.ymap)

Props and parked cars, placed where you stand; the unsaved map previews in the game, its parked cars too. The car model prompts offer the vehicle models the workspace streams. A prop picker shows thumbnails of the game's props (its names and first pictures come from public GTA data on the web; **Pictures from the game** takes the shown props' pictures in your game instead, kept before the downloaded ones), and **Your props** shows the props made in the workspace as small 3D views. Props and shells made in the workspace (and anything a `.ytyp` there describes) are drawn in the map as themselves, at their real size and colours, not as blocks. **Row**, **Grid**, **Circle** and **Scatter** in the side panel place copies of the selection in a pattern.

**Lighting zones:** a box where one of the game's lighting presets (time cycle modifiers: an interior's, a dark alley's) applies, around the selection or at the view's centre, picked from the presets the game has; drawn as a purple box, saved in the map, fading in over 5 m at its edges.

**Hidden from the world:** **Hide what I aim at** takes away one of the game's own objects where your map goes (a bin, a fence, a lamp post) and hides it in the game at once. GTA has no way for a map file to remove another map's objects, so the map's resource does it with a client script, `k3_hide_<map>.lua` beside its manifest, which K3 Studio writes and reads back as the list; **Show again** takes one out. Objects a script made can't be hidden this way (stop them in that script), and a building's collision stays (it lives in the area's `.ybn`).

**Inventory icons** (command palette): the weapons and attachments ox_inventory lists without a picture in its `web/images` are photographed in your game, against a green wall cut out to a clear background, and saved under the name the inventory looks for. The game comes forward while they're taken (they're copied off the screen): leave it in view until the run ends.

## Interiors (.ytyp)

Archetypes and interiors (MLOs): rooms, portals, entity sets and prop archetypes, with bounds measured in the game. A new interior is made in a resource's `stream/` folder, its bounds holding its rooms. Saving an interior (or a map placing one) also writes what the game needs to make it, as its own interiors ship: `<interior>.ybn`, a floor at the bottom of each room tagged with that room (how the game knows which room you stand in, and so what to draw), and the resource's `_manifest.ymf` (the map needs the .ytyp, the .ytyp holds an interior, its collision is `<interior>.ybn`). An interior's .ytyp is never a `DLC_ITYP_REQUEST` (that crashes the game). A `_manifest.ymf` holding more than K3 Studio writes (map data groups, texture bindings) is left alone, with a note. The game reads `_manifest.ymf` when it joins: going near an interior placed since then crashes it, so when a save changes the manifest with you in the game, K3 Studio offers to rejoin (restarting the resource alone is fine for interiors placed before you joined). With the game running, **Place in a map** puts the interior where you stand, its floor at your feet.

- Portals land on the wall two rooms share; a room can be drawn round the selection; **Sort into rooms** puts each prop in the room it stands in.
- **Interior for a building…** takes a building in the game (the one you aim at, the nearest map object, or a model and position) and makes an MLO that fits inside it: a room inset from its walls (with its own floor, walls, ceiling and lights, since a building has no inside to see), a doorway on the side you stand at, and a map that places the interior exactly on the building. Optionally hide the original building, or keep its model as the outside.

## Liveries

Paint a vehicle's texture in layers and see it on the car in 3D, live on the car you're in.

- Layer kinds: fill, stripe, picture, text, brush strokes, gradient, and stripe / checker / carbon patterns, mirrored if you like.
- Per-layer outline, drop shadow, blur, grain and blend modes.
- The painting is saved into the `.ytd`; it can also be exported as a full-size PNG.

## Texture dictionaries (.ytd)

A `.ytd` opens as its textures, not as text: open one from the Explorer or from **Texture dictionary** on the start page, or make an empty one with **New texture dictionary**.

- The list shows every texture with a thumbnail, its size, format (DXT1, DXT5, BC4, BC5, BC7, uncompressed) and mip levels; the selected one shows large on a checkerboard, so transparency is visible. Click it (or press Space) to fill the pane with it, the wheel zooming in and out; a click or Esc goes back.
- **Add picture…** and **Replace…** take PNG, JPG, BMP, TGA or PSD. The picture is scaled to powers of two (up to 4096) and stored with every mip level, as DXT1 when it's opaque or DXT5 when it has transparency, or uncompressed when you pick **Uncompressed**.
- **Mirror**, **Flip**, **Half size** / **Double size**, **Brighter** / **Darker**, **More contrast**, **Turn hue**, **Greyscale** and **Normal map**, with undo.
- **Rename…** changes the name models look the texture up by; **Export PNG…** writes the full-size picture; **Delete** removes it.
- **Save** (or Ctrl+S) writes the dictionary back as a resource the game streams. Closing it with unsaved changes asks first.

## Clothing and add-ons

- **Clothing:** a folder of models becomes add-on clothing for the freemode peds, renamed and numbered the game's way, with a shop meta per ped.
- **Add-on cars and peds:** pick the model folder. The models go to `stream/`, meta files found beside them go to `data/` with their `data_file` lines, missing `vehicles.meta`, `handling.meta`, `carvariations.meta` or `peds.meta` are written for you, and missing textures are flagged.
