SetPedModelHealthConfig
DocsSetPedModelHealthConfig(modelHash, configName)Description
Sets a ped model's health config.
Takes effect only after setting player model with SET_PLAYER_MODEL.
Parameters
| Name | Type | Description |
|---|---|---|
modelHash | Hash | Ped's model. |
configName | char* | Name of health config. |
Quick Snippet: Load Model HashmodelHash
modelHashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.
Examples
Official
local pedModel = `mp_f_freemode_01`
SetPedModelHealthConfig(pedModel, "Strong")
SetPlayerModel(PlayerId(), pedModel)
SetPedDefaultComponentVariation(PlayerPedId())