[Release] Object Loader (loads map .xml files)

Make a tutorial bro.

make a tutorial is too long, i acctually don’t have the time, that’s why i shared the map in release section and quick explain how i do :wink:

I just want to know how to put https://www.gta5-mods.com/maps on server side FiveM. you dont have any tutorial link?

1 Like

hi guys this release is awesome but it there a way to add object on the map permanently?
Cause i can make object spawn without any problem but how can i make them spawn permanently without doing any commands in game?

sorry if the answer is obvious :slight_smile:

edit : forget about it i have my answer and yes it was a nooby question lol

1 Like

The map is permanently.

Just do like this:
in __resource.lua

local function object_entry(data)
	dependency 'object-loader'

	files(data)
	object_file(data)
end

object_entry 'mapnamehere.xml'

Exacly like this: https://i.gyazo.com/e0583c82a71c416370655d9e9cfd0a48.png

1 Like

thanks you and do you know where i can find a simple example if i want to add a very simple object or a prop on my map?

Simple Exemple: http://www.mediafire.com/file/svarzhz2ast9k8h/DsPmaps.rar

Check your private messages.

Note: This have a 300 our 400 Objects limit.
i dont know why.

Hello again i am trying to load a checkpoint :

but it seems i’m not doing it right but i don"t know what is wrong :

   <Metadata>
    <Creator>MGR1610</Creator>
    <Name>Nameless Map</Name>
    <Description />
    <LoadingPoint xsi:nil="true" />
    <TeleportPoint>
      <X>2160.80981</X>
        <Y>3780.32227</Y>
        <Z>34.3390045</Z>
      <Heading>339.999</Heading>
    </TeleportPoint>
  </Metadata>

local function object_entry(data)
	dependency 'object-loader'

	files(data)
	object_file(data)
end

object_entry 'checkpoint.xml'

my file is checkpoint.xml
any idea ?

Hi bro , did you get any help with this ? I got the same issue , I don’t build objects for online use but for offline with the menyoo spooner but just like you is giving me an object limit which it sucks, any help with increasing the limit yet ?

some random object wont spawn

but what if you put another 1000 objects in a different part of the game ?

some random objects wont spawn

which level creator MOD are you using

level creator? Oo i use menyoo XD

Great script.

But ive noticed when using other maps then your samples only a select few will load into the game?

Is there a reason for this? Could it be that the map is outdated?

Mainly only tried checkpoints but 1 out of 4 worked.

Still have 300 our 400 Objects limit.

that limit is not on this script. The limit is FiveM!

1 Like

so are the objects automtically loaded in or do i have to load them in myself with a command or menu?

they automatically load when server starts

1 Like

i type /mtp but it says no object has been loaded in.