Addon PED Problem

475/5000

Hello everyone,
I wanted to add a kid skin on my GTA FiveM server, for a member with the “/ child” command

Source code:

------
-- Simple Loadout Commands V1.0
-- By Julie Manlet
-- Do not remove credits !!
------

RegisterCommand("enfant", function(source, args, raw)
    TriggerEvent("enfant")
end, false)



RegisterNetEvent("enfant")
AddEventHandler("enfant", function()
 local model = GetHashKey("Dante")
    RequestModel(model)
    while not HasModelLoaded(model) do
        RequestModel(model)
        Citizen.Wait(0)
    end
    SetPlayerModel(PlayerId(), model)
    SetModelAsNoLongerNeeded(model)
    local ped = PlayerPedId()
	GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_FLASHLIGHT"), 1000, false)
	GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_STUNGUN"), 1000, false)
    chatPrint("Your EMS loadout has been equipped!")	
end)

function chatPrint( msg )
	TriggerEvent( 'chatMessage', "^1Loadout System", { 0, 0, 0 }, msg )
end 

------
-- Do not remove credits !!
------

I also stream the skin with 4 files (Dante.ydd / yft / ymt / ytd)
My file is like this:
/ Resources / [maps] / child / stream

Stream: The 4 dante files
Child: __resource.lua & peds.meta

My server.cfg I said: start child

But unfortunately my ped do not put on my server

Here are my codes in peds.meta

<?xml version="1.0" encoding="UTF-8"?>
<CPedModelInfo__InitDataList>
  <InitDatas>
     <Item>
        <Name>Dante</Name>
        <ClipDictionaryName>move_m@generic</ClipDictionaryName>
        <ExpressionSetName>expr_set_ambient_male</ExpressionSetName>
        <Pedtype>CIVMALE</Pedtype>
        <MovementClipSet>move_m@business@c</MovementClipSet>
        <StrafeClipSet>move_ped_strafing</StrafeClipSet>
        <MovementToStrafeClipSet>move_ped_to_strafe</MovementToStrafeClipSet>
        <InjuredStrafeClipSet>move_strafe_injured</InjuredStrafeClipSet>
        <FullBodyDamageClipSet>dam_ko</FullBodyDamageClipSet>
        <AdditiveDamageClipSet>dam_ad</AdditiveDamageClipSet>
        <DefaultGestureClipSet>ANIM_GROUP_GESTURE_M_GENERIC</DefaultGestureClipSet>
        <FacialClipsetGroupName>facial_clipset_group_gen_male</FacialClipsetGroupName>
        <DefaultVisemeClipSet>ANIM_GROUP_VISEMES_M_LO</DefaultVisemeClipSet>
        <PoseMatcherName>Male</PoseMatcherName>
        <PoseMatcherProneName>Male_prone</PoseMatcherProneName>
        <GetupSetHash>NMBS_SLOW_GETUPS</GetupSetHash>
        <CreatureMetadataName>ambientPed_upperWrinkles</CreatureMetadataName>
        <DecisionMakerName>DEFAULT</DecisionMakerName>
        <MotionTaskDataSetName>STANDARD_PED</MotionTaskDataSetName>
        <DefaultTaskDataSetName>STANDARD_PED</DefaultTaskDataSetName>
        <PedCapsuleName>STANDARD_MALE</PedCapsuleName>
        <RelationshipGroup>CIVMALE</RelationshipGroup>
        <NavCapabilitiesName>STANDARD_PED</NavCapabilitiesName>
        <PerceptionInfo>DEFAULT_PERCEPTION</PerceptionInfo>
        <DefaultBrawlingStyle>BS_AI</DefaultBrawlingStyle>
        <DefaultUnarmedWeapon>WEAPON_UNARMED</DefaultUnarmedWeapon>
        <Personality>SERVICEMALES</Personality>
        <CombatInfo>DEFAULT</CombatInfo>
        <VfxInfoName>VFXPEDINFO_HUMAN_GENERIC</VfxInfoName>
        <AmbientClipsForFlee>FLEE</AmbientClipsForFlee>
        <AbilityType>SAT_NONE</AbilityType>
        <ThermalBehaviour>TB_WARM</ThermalBehaviour>
        <SuperlodType>SLOD_HUMAN</SuperlodType>
        <ScenarioPopStreamingSlot>SCENARIO_POP_STREAMING_NORMAL</ScenarioPopStreamingSlot>
        <DefaultSpawningPreference>DSP_NORMAL</DefaultSpawningPreference>
        <IsStreamedGfx value="false" />
     </Item>
  </InitDatas>
</CPedModelInfo__InitDataList>
1 Like

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.