Items, clothing and animations

Attachments

A prop in the hand or at another bone of the character, placed with a gizmo in the game, with a holding animation and ready code.

An attachment is a prop at a bone of the character: a phone in the hand, a cup, a clipboard, a box carried in both hands. It has a prop model, a bone, an offset, a rotation and a holding animation. It is saved in the project’s studio_scene resource, so it also works on a server without the studio.

You open attachments on the left bar: Attachments. The middle shows the project’s attachments as cards with the prop’s picture, the bone, the animation and who uses it. The card you click opens on the right, in Selection.

Where to start

Ready setups below the cards are Phone, Coffee cup, Clipboard and Box in hands. Each already has its bone, placement and animation, so only the name and maybe a small fix are left. You can also start from an empty attachment.

Photograph props (n) takes the card pictures in Player 1’s game, about a second per model. The game takes over the view while it does.

Settings

  • Name and Prop model (model names are suggested as you type).
  • Bone from a list: right and left hand, grip points, fingers, head, neck and others.
  • Offset (m) and Rotation (°) along the bone’s axes.
  • Holding animation: dictionary, clip and Movement, either hands only, player walks or whole body, player stands.

In the game

Setting it up in the game needs a running server and Player 1.

  • On whom: Player 1 or an NPC from the scene.
  • Set up in game puts the camera at the bone and shows a gizmo. Click the game picture to control it. Enter in the game finishes, then Save.
  • Show in game puts the attachment on without the gizmo, Take off removes it.

Where it is used

  • In a mechanic, the Pick up and hold step takes the attachment by name (chapter Mechanics).
  • A scene NPC holds it through the Holds field in Selection.
  • In your own client code: exports.studio_scene:attachProp(ped, name).

The Code section below the settings has ready code for this attachment: plain natives, the studio_scene export, and a version for each project resource whose adapter has one. Copy copies the chosen version.

Delete asks before it deletes. Mechanics and NPCs that use it are left without the prop.

Claude

Claude makes attachments over MCP: attach_list (with bones also the list of bones), attach_save (also returns the ready code), attach_show (shows it in the game, to check with game_screenshot), attach_remove.

A question this page does not answer? Ask it on Discord.

Webexe Studio

Click to see it at 100%.