Using custom object with CreateObject() Lua / Resource

so many wrong things here I nearly wanted to die… First, convert the ytyp.xml file to a simple ytyp file with openIV (drag and drop it in openIV), also change its name in the manifest to ui_background_object.ytyp. Delete the other ‘DLC_ITYP_REQUEST’ lines from the manifest, you don’t need to mount ydrs and ytds especially when you’re telling the game they’re ytyps… then you have to request the model before spawning it with the CreateObject() function. You can do this by using this code:

local hash = GetHashKey("part_floor_01")
RequestModel(hash)
while not HasModelLoaded(hash) do 
     Citizen.Wait(0) 
end

And just now you can spawn it using the CreateObject() native. Also keep in mind that your object’s name is “part_floor_01” not “ui_background_object” as you tried to spawn.