Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Data File Type Help

Featured Replies

I'm working with the file ambientpedmodelsets.meta and need to replace it in two locations (below).  I have tried importing this meta file through LML and using the automatically generated install.xml, but this didn't work in-game.  I also attempted to use the following XML, which also didn't work in-game.  This file replacement does work when using OpenIV, but I'd prefer to use LML, if possible.

 

Replacement 1: update/update.rpf/common/data/ai/ambientpedmodelsets.meta

Replacement 2: common.rpf/ai/ambientpedmodelsets.meta

 

Attempt 1 (auto generated by LML)
  <Addons>
    <Addon>
      <DataFile>ambientpedmodelsets.meta</DataFile>
    </Addon>
  </Addons>


Attempt 1 (manually removed type tag as it was unknown to me)
	<Replacements>
        <Replacement name="Ambient Ped Changes">
            <FileEntryReplacement>ambientpedmodelsets.meta</FileEntryReplacement>
        </Replacement>
    </Replacements>


Attempt 3
<Replacements>
    <Replacement>
      <DataFile>ambientpedmodelsets.meta</DataFile>
    </Replacement>
  </Replacements>

Attempt 4
  <Addons>
    <Addon name="Ambient Ped Changes">
      <DataFiles>data</DataFiles>
    </Addon>
  </Addons>

 

Is there a listing anywhere of data file types like VEHICLE_METADATA_FILE?  or is there something I'm missing here?

Edited by AWP3RATOR

  • Author

After many rounds of testing and reverse engineering some install.xml files from Coastal Callouts and other examples I found, I have gotten this working.   For those interested in the solution, see below.  Original question still stands though:  Is there a resource somewhere that lists out the different data file types?

 

Working in game:

  <Replacements>
    <Replacement name="Ambient Peds Meta 1">
      <FileReplacement>
	  <GamePath>update:/common/data/ai/ambientpedmodelsets.meta</GamePath>
	  <FilePath>config/ambientpedmodelsets.meta</FilePath>
	  </FileReplacement>
	</Replacement>
    <Replacement name="Ambient Peds Meta 2">
      <FileReplacement>
	  <GamePath>common:/data/ai/ambientpedmodelsets.meta</GamePath>
	  <FilePath>config/ambientpedmodelsets.meta</FilePath>
	  </FileReplacement>
	</Replacement>	
  </Replacements>

 

  • Management Team

There's this: https://docs.fivem.net/docs/game-references/data-files/

 

Also, the content.xml of every dlc.rpf will have the data file types for any data files in that dlc.

 

Just to explain your initial attempts, and why they didn't work:

Attempt 1 (auto generated by LML)
  <Addons>
    <Addon>
      <DataFile>ambientpedmodelsets.meta</DataFile>
    </Addon>
  </Addons>

This may or may not need the type="AMBIENT_PED_MODEL_SET_FILE" depending on if LML can autodetect. My money would be on "need" for this file. This should be used to add a new ambientpedmodelsets.meta though, not replace the existing one.

 

Attempt 1 (manually removed type tag as it was unknown to me)
	<Replacements>
        <Replacement name="Ambient Ped Changes">
            <FileEntryReplacement>ambientpedmodelsets.meta</FileEntryReplacement>
        </Replacement>
    </Replacements>

This would only be to replace a single entry in the ambientpedmodelsets.meta file. I'm not sure how this file works, but with vehicles.meta, you would only use the FileEntryReplacement to replace a single vehicle entry (so, only replace "police" and nothing else).

 

Attempt 3
<Replacements>
    <Replacement>
      <DataFile>ambientpedmodelsets.meta</DataFile>
    </Replacement>
  </Replacements>

This isn't how file replacements work, the correct way is how you figured it out in the end.

 

Attempt 4
  <Addons>
    <Addon name="Ambient Ped Changes">
      <DataFiles>data</DataFiles>
    </Addon>
  </Addons>

 

This does the same as Attempt 1 (the first one) but reading all files in the "data" folder instead of just the single file.

"Work and ideas get stolen, then you keep moving on doing your thing."

This is a support topic.
Only reply here to offer help or assistance to AWP3RATOR. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.