RE:CORD
Characters and spawning

Spawn selection

Characters and spawning for REC_Core, with configuration and implementation details.
Added
Updated

The server chooses a position in this order: a valid value returned by handler:getSpawnPosition, the saved position when spawn.useLastPosition = true, then spawn.default. The default is vector4(-1037.75, -2737.97, 20.17, 328.0), where the fourth value is heading.

SettingDefaultBehavior
spawn.useLastPositiontrueUse the previous saved position when available.
spawn.applyDefaultModeltrueApply the configured freemode model; disable if an appearance resource owns the model.
spawn.models.male"mp_m_freemode_01"Default male model.
spawn.models.female"mp_f_freemode_01"Default female model.
spawn.fadeDuration800Screen fade duration in milliseconds.
characterMenu.camera.enabledtrueEnable the character-menu camera.
characterMenu.camera.fov50.0Camera field of view.

characterMenu.pedCoords places the hidden, frozen player while the menu is open. Set camera.coords and camera.rotation to frame that area. If a custom client handler:onSpawn returns true, it takes over spawning, including releasing the player and restoring the screen after the fade.

©2026 RE:CORD Development Group. All rights reserved.