Some props are not accessible

Hello all,
Disclaimer: I’m sorry if this has already been answered somewhere else, but from my searchs I couldn’t find anything but people saying that some props do not work

Basically I’m working with scripts to interact with some specific props. Overall it works as I want it for most of the scripts but I’m facing an issue for some of them.

The one I have in mind and I’m trying to get at the moment is v_ilev_ph_bench in the MRPD hall:

I tried multiple ways to get props:

GetClosestObjectOfType(GetEntityCoords(PlayerPedId()), 100.0, `v_ilev_ph_bench`, false, false, false)

I don’t know why it wouldn’t work with these props only. I checked with Codewalker and I don’t see any flags or anything that could make them untargetable.
Am I doing something wrong ? Do I need to change a flag or something to the props on Codewalker ? Or is this just a prop that can’t be accessed by any mean ?

I hope somebody can help me :slight_smile:

I suspect this thread covers the issue you are describing.

1 Like

Thank you!
I got it to work by streaming a new ytyp file as described in the topic you linked.

ytyp file content:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<CMapTypes>
  <extensions/>
  <archetypes>
    <Item type="CBaseArchetypeDef">
      <lodDist value="60.00000000"/>
      <flags value="549584928"/>
      <specialAttribute value="0"/>
      <bbMin x="-1.64559900" y="-0.45384200" z="0.00000000"/>
      <bbMax x="1.64560300" y="0.45384200" z="1.07435300"/>
      <bsCentre x="0.00000200" y="0.00000000" z="0.53717600"/>
      <bsRadius value="0.00000000"/>
      <hdTextureDist value="60.00000000"/>
      <name>v_ilev_ph_bench</name>
      <textureDictionary>v_ilev_ph_bench</textureDictionary>
      <clipDictionary/>
      <drawableDictionary/>
      <physicsDictionary>v_ilev_ph_bench</physicsDictionary>
      <assetType>ASSET_TYPE_DRAWABLE</assetType>
      <assetName>v_ilev_ph_bench</assetName>
      <extensions/>
    </Item>
  </archetypes>
  <name>v_ilev_ph_bench</name>
  <dependencies/>
  <compositeEntityTypes/>
</CMapTypes>

As said in the linked topic, do not do this! An archetype with the same name in multiple .#typ files will cause weird issues (including game crashes) down the line.

Oh my bad. I’m confused now because I changed the name and it doesn’t work anymore. Could you maybe point me towards what I did wrong ?

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<CMapTypes>
  <extensions/>
  <archetypes>
    <Item type="CBaseArchetypeDef">
      <lodDist value="60.00000000"/>
      <flags value="549584928"/>
      <specialAttribute value="0"/>
      <bbMin x="-1.64559900" y="-0.45384200" z="0.00000000"/>
      <bbMax x="1.64560300" y="0.45384200" z="1.07435300"/>
      <bsCentre x="0.00000200" y="0.00000000" z="0.53717600"/>
      <bsRadius value="0.00000000"/>
      <hdTextureDist value="60.00000000"/>
      <name>fix_v_ilev_ph_bench</name>
      <textureDictionary>v_ilev_ph_bench</textureDictionary>
      <clipDictionary/>
      <drawableDictionary/>
      <physicsDictionary>v_ilev_ph_bench</physicsDictionary>
      <assetType>ASSET_TYPE_DRAWABLE</assetType>
      <assetName>v_ilev_ph_bench</assetName>
      <extensions/>
    </Item>
  </archetypes>
  <name>fix_v_ilev_ph_bench</name>
  <dependencies/>
  <compositeEntityTypes/>
</CMapTypes>

fix_v_ilev_ph_bench.ytyp (499 Bytes)

I too have this issue :sweat_smile: