How to Add Peds in FiveM ?
1. Create a folder “ped” or other
2. Take one __resource.lua and client.lua of a script and put it in the folder ped
3. Clear completely the resource.lua and client.lua
4. In resource.lua, put
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' Description 'ped' client_script 'client.lua'
5. Add this line of code in client.lua
Citizen.CreateThread(function() local hash = GetHashKey("s_m_m_armoured_02") while not HasModelLoaded(hash) do RequestModel(hash) Wait(20) end ped = CreatePed("PED_TYPE_CIVFEMALE", "s_m_m_armoured_02", 0.0, 0.0, 0.0, 0.0, false, true) SetBlockingOfNonTemporaryEvents(ped, true) FreezeEntityPosition(ped, true) end)
6. Donโt forget to put the coordinates XYZ
7. If you want to add more ped, copy and paste the line of code in paragraph 5
Ped List:ย Click Heretfg_ped
Here is the premade full example script : Download