Importing a server
From the server in the scene
NPCs, objects and vehicles the server's scripts place, in the scene tree; moving those written in files.
The studio scene is what you placed in the studio. The server has its own things too: shop NPCs, benches, vehicles from resource configs. The From the server group at the bottom of the Scene tree shows them as Player 1’s game sees them.
Where they come from
While Player 1 is in the game, every few seconds the studio checks what scripts placed within 150 m of them and adds it to the list. The list grows as you drive around the map and remembers what it has seen, also things that show only on duty or during a job. It is kept in .studio/server-entities.json.
Entities are grouped by the resource that placed them. The resource comes from the game, or from the file the position is written in. When neither says, the entity is under “unknown resource”.
What can be changed
The studio looks for an entity’s position in the resources’ Lua and JSON files: vec3, vec4, vector3, vector4, { x =, y =, z = } and lists of three or four numbers, within half a metre (an NPC is often written a metre lower than it stands).
- Position in a file: Selection shows the file and line. Changing X, Y, Z or the heading (or Where Player 1 is) writes the new values into that one line, in the same form, and restarts the resource. The change is also kept in
studio.lock. - No position in the files (computed in code, from the database, relative to another object): the entity is read only.
Targeting options of these entities cannot be brought into the editor: they are Lua functions in the scripts.
Claude
scene_server_list (with refresh to look around now) and scene_server_move.