Adding objects
#1

How do i add objects in my server? like buildings, trees...
Reply
#2

You need an object editor
Reply
#3

With these two functions:
https://sampwiki.blast.hk/wiki/CreateObject - this will create object for everyone.
https://sampwiki.blast.hk/wiki/CreatePlayerObject - this will create object only for the playerid you specify.

Check this list for available object-IDs in SA-MP:
https://sampwiki.blast.hk/wiki/Objects
Reply
#4

should i write it (example objectid = CreateObject(8130,-179.0698,29.8365,3.1172, 0, 0, 96 ) ) under OnGameModeInIt?
Reply
#5

Quote:
Originally Posted by Angelo94
should i write it (example objectid = CreateObject(8130,-179.0698,29.8365,3.1172, 0, 0, 96 ) ) under OnGameModeInIt?
1- Use a object editor ingame or MTA one....
2- Convert your .map file
3- Copy and past the objects to your script.
Reply
#6

but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
Reply
#7

Quote:
Originally Posted by Angelo94
but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
If you can get all the coordinates of places where you want your objects from your mind then you really don't need object editor.
Reply
#8

Quote:
Originally Posted by Angelo94
but Don Correlli doesn't say nothing about map editors, so i suppose i don't necessarily need it
I just gave you the object-functions and object-ID-list. It's advisable for you to use a Map Editor.
Reply
#9

ok, but if i don't want to use a map editor, where should i write? can you give me an example of all the things i have to write to display an object?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)