Stream add-on peds and custom characters
Custom peds bring your server to life - police officers, shopkeepers, gang members, unique NPCs. The streaming pattern is simpler than vehicles (fewer metadata files), but there is one rule that trips people up: without a registered peds.meta, the ped commonly spawns invisible or T-posed and loses its component variations.
Build it
Prepare the resource
resources/my_ped/
fxmanifest.lua
peds.meta
stream/
ped_model.yft
ped_model.ytd
ped_model.ydd
Ped files typically include the model (.yft), the textures (.ytd), and often a drawable dictionary (.ydd). The reliable, documented add-on method also needs a peds.meta registered in the manifest. A bare .yft/.ytd sometimes loads, but without peds.meta the ped commonly spawns invisible or T-posed and is missing its component variations. Register peds.meta unless you are replacing a GTA ped by exact model name.
Write fxmanifest and register the ped
fx_version 'cerulean'
game 'gta5'
files {
'peds.meta',
'stream/*.yft',
'stream/*.ytd',
'stream/*.ydd',
}
data_file 'PED_METADATA_FILE' 'peds.meta'
The stream/ files auto-register and PED_METADATA_FILE registers peds.meta, so the game knows about your ped's model and its component variations. The model name is the .yft filename without its extension (for example ped_model.yft gives the model name ped_model).
Spawn and test
Spawn and test the ped with a trainer or an in-game admin menu, using the model name from your .yft file (for example ped_model). No code needed.
Keep reading the full lesson
Sign in to start, then unlock every step of this lesson and the full FiveM School with a membership.
- Common failures
The remainder of Stream add-on peds and custom characters is available to FiveM School members.