SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Client Support

Reply
 
Thread Tools Display Modes
Old 07/11/2019, 05:48 PM   #1
Hiei
Big Clucker
 
Join Date: Sep 2016
Location: Vietnam
Posts: 99
Reputation: 0
Default How to make players can see custom object?

Like the title, I have created 2 files .dff and .txd file, however, I don't know how can I import them to the script and how can I spawn these objects that players can see, touch.

Sorry for my bad english and thanks in advance!
Hiei is offline   Reply With Quote
Old 07/11/2019, 06:38 PM   #2
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 386
Reputation: 87
Default Re: How to make players can see custom object?

Unfortunately, you are late .. the version branch for easy custom object that allow players to download from the server has been just pulled out alongside the subforum.

Alternatively you can add your object .txd and .dff into Custom.IMG file (can be found in SAMP folder) using IMG tool, assign the object model, id, and flags in Custom.IDE, then you publish it on internet and have the players manually download the custom.img and custom.ide you made.. (and ask them to install it)

Then you can use CreateObject normally with the object ID you previously assigned in the Custom.IDE

Note that the ID of objects usable for custom img are within 15065 to 15999 (935 total)
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Old 08/11/2019, 07:13 AM   #3
Hiei
Big Clucker
 
Join Date: Sep 2016
Location: Vietnam
Posts: 99
Reputation: 0
Default Re: How to make players can see custom object?

Quote:
Originally Posted by RoboN1X View Post
Unfortunately, you are late .. the version branch for easy custom object that allow players to download from the server has been just pulled out alongside the subforum.

Alternatively you can add your object .txd and .dff into Custom.IMG file (can be found in SAMP folder) using IMG tool, assign the object model, id, and flags in Custom.IDE, then you publish it on internet and have the players manually download the custom.img and custom.ide you made.. (and ask them to install it)

Then you can use CreateObject normally with the object ID you previously assigned in the Custom.IDE

Note that the ID of objects usable for custom img are within 15065 to 15999 (935 total)
Thanks! I tried and successed! The last thing is how can I spawn these objects ?
Hiei is offline   Reply With Quote
Old 08/11/2019, 07:49 AM   #4
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 386
Reputation: 87
Default Re: How to make players can see custom object?

Quote:
Originally Posted by Hiei View Post
Thanks! I tried and successed! The last thing is how can I spawn these objects ?
As i already said in my previous post, you can use CreateObject or CreatePlayerObject function in the script, and to make you easy creating a map, you can use Map editors.
But if you wish to look help for scripting, better make a separate thread in Scripting Help section. Of course you post it after you try scripting, i.e. you created a command for it and if you needed help you can post there, it's not for scripting request.

So for example your new custom object ID in the IDE is 15065, then by using CreateObject you can do this:
pawn Code:
CreateObject(15065, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0); // This will create your custom object at center of san andreas (at Blueberry Acres)
If you get a "?" object, it means you did wrong, either the object is not registered properly in the IDE or the object is missing from the IMG.
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Added Custom Objects to All Players DavidSF Server Support 0 07/09/2018 11:00 AM
How to make a moving object get destroyed at a players position? gnoomen2 Scripting Help 1 31/07/2012 02:07 AM
Custom textdraw strings for players Rokzlive Scripting Help 2 15/01/2012 03:09 AM
Custom radio for all players? Gemini Help Archive 2 21/07/2011 12:45 PM
make a custom object? MrIncredible Help Archive 1 25/01/2011 02:14 AM


All times are GMT. The time now is 04:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.