Skip to content

Start

Your first animated prop

From a gate model to a double gate that swings open and closed on your server, in eight steps.

Before you start

  • A SwisserAI account with at least 100 credits.
  • A .glb model whose moving parts are separate meshes. We use a free CC0 double gate from the model library, scaled to 3 m wide in Blender, with its parts named gate_left, gate_right and gate_frame.
  • A computer with a mouse. The studio needs a wide window.
  • Access to your FiveM server files and its server.cfg.

The eight steps

We make both leaves of the gate swing open by 90 degrees and close again, as one looping clip called open_close.

  1. 1

    Open Prop Studio

    In the sidebar open All tools and click Prop Studio.

    1. 1. Prop Studio: opens the studio
  2. 2

    Upload the model

    Drop garden_gate.glb on Animate a prop, or click it and choose the file. The studio opens with the gate in the middle and its three parts listed on the left.

    1. 1. Animate a prop: drop a .glb here or click to choose one
    2. 2. What makes a great model: the two rules for the file
  3. 3

    Make the left leaf move

    Under Parts, click gate_left. The bar at the bottom of the column offers Static and Moves: press Moves. The part gets its own bone, and the Properties column on the right shows its settings.

    1. 1. gate_left: one row per mesh in your file
    2. 2. Moves: makes the part a moving part with its own bone
  4. 4

    Put the hinge where it belongs

    The part turns around its Pivot point (model units), which starts at the origin of the file, 0 / 0 / 0. In our gate the origin sits on the ground in the middle, and the left leaf hangs at the post 0.9 m to the left, so type -0.9 into X. Y and Z stay 0.

    1. 1. Pivot point (model units): where the hinge sits; here X = -0.9
    2. 2. Parent bone: root unless the part rides on another moving part

    Not sure about the numbers? Press the hinge tool in the toolbar and drag the point in the view instead; see The pivot point.

  5. 5

    Apply Open / Close

    Further down, under Preset, keep Open / Close with Hinge axis Y, an Angle of 90, and Open at 30 and Closed at 60 frames. Press Apply preset. Three keyframes appear in the timeline and the clip loops.

    1. 1. Open / Close: pick the motion
    2. 2. Hinge axis: Y is up in the studio: a door or gate turns around Y
    3. 3. Apply preset: writes the keyframes into the timeline
  6. 6

    Do the same for the right leaf

    Click gate_right, press Moves, type 0.9 into X, and apply Open / Close with an Angle of -90. The minus sign turns it the other way, so both leaves open to the same side. gate_frame stays Static.

    1. 1. gate_right: moving part with its own bone
    2. 2. gate_frame: static: stays where it is

    At the top of Properties, type open_close into Name (in-game clip). That is the name your scripts play.

    1. 1. Name (in-game clip): the clip name your script plays
    2. 2. Duration (frames): 60 frames at 30 FPS = 2 seconds
    3. 3. Loop: repeats the clip in game
  7. 7

    Check it and render

    Press play in the toolbar, or the space bar, and orbit the view with the mouse to see the gate from several sides.

    Both leaves of the garden gate swing open around their hinges and close again, looping. This is the preview of the clip before it is rendered.

    The Name field at the top right says garden_gate, taken from the file name. It becomes the model, the resource and the command name. Press Render.

    1. 1. Name: becomes the model, resource and command name
    2. 2. Render: opens the render panel

    The render panel loops the clip once more and lists what will be rendered. Press Render for 100 credits; ours was ready after about 6 seconds.

    1. 1. Prop, Clips, Moving parts, Cost: what will be rendered
    2. 2. Share to the community when it's done: optional
    3. 3. Render for 100 credits: starts the render
  8. 8

    Download it and test it in game

    When the panel says Resource ready, press Download FiveM resource (.zip). The same download stays on the prop's page in your assets.

    1. 1. Download FiveM resource (.zip)
    2. 2. In-game test: spawns the prop in front of you and plays the clip

    Unzip it into your server's resources folder, add one line to server.cfg and restart the whole server:

    ensure garden_gate

    Join the server and type the test command in the chat. The gate appears 2 m from you and starts to swing:

    /garden_gate

Good to know

The render cost 100 credits. To change the motion later, open the prop in your assets and press Edit animation. The studio reopens with the gate and its clip; a new render costs 100 credits again.

Where to go from here