SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/03/2016, 06:38 PM   #31
Stefhan
Big Clucker
 
Stefhan's Avatar
 
Join Date: Nov 2014
Location: Netherlands
Posts: 68
Reputation: 0
Default Re: [0.3e+]Player Attached Object Editor

When I change the color of an object ( for ex 371 ) to 5000 ( green ) it doesn't change, the object just dissapears, how to fix?
__________________
Beginner in scripting.
Stefhan is offline   Reply With Quote
Old 06/03/2016, 06:16 AM   #32
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 312
Reputation: 57
Default Re: [0.3e+]Player Attached Object Editor

Quote:
Originally Posted by Stefhan View Post
When I change the color of an object ( for ex 371 ) to 5000 ( green ) it doesn't change, the object just dissapears, how to fix?
Object 371 (parachute) has only single material. Therefore use the command /saomc1
Quote:
/setattachedobjectmc1
Alias: /saomc1
Change your attached object material color
Code:
/setattachedobjectoffset AttachedObjectIndex MaterialColor1
  • AttachedObjectIndex: The attached object slot number to change its material color
  • MaterialColor1: The new attached object #1 material color value
Also i'm not sure what you mean with 5000, perhaps try to use ARGB format instead, because you probably get used with integer that is equal with RGBA format, so if you want to make it green try FF00FF00.
Quote:
MaterialColor - The attached object texture material color as integer or hexadecimal number in ARGB format, e.g. 0xFF00FFFF.
Also please note that changing material colors doesn't support all indexes for holding objects, it's only limited to 2 by SA:MP so it may not work completely.
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Old 09/03/2016, 07:14 PM   #33
Stefhan
Big Clucker
 
Stefhan's Avatar
 
Join Date: Nov 2014
Location: Netherlands
Posts: 68
Reputation: 0
Default Re: [0.3e+]Player Attached Object Editor

Quote:
Originally Posted by RoboN1X View Post
Object 371 (parachute) has only single material. Therefore use the command /saomc1


Also i'm not sure what you mean with 5000, perhaps try to use ARGB format instead, because you probably get used with integer that is equal with RGBA format, so if you want to make it green try FF00FF00.

Also please note that changing material colors doesn't support all indexes for holding objects, it's only limited to 2 by SA:MP so it may not work completely.
Thanks, this worked, however I tried using code 0000000 to make something black but it became white.
__________________
Beginner in scripting.
Stefhan is offline   Reply With Quote
Old 11/03/2016, 09:44 AM   #34
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 312
Reputation: 57
Default Re: [0.3e+]Player Attached Object Editor

Quote:
Originally Posted by Stefhan View Post
Thanks, this worked, however I tried using code 0000000 to make something black but it became white.
FF000000
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Old 12/03/2016, 05:58 PM   #35
Greggu
Little Clucker
 
Join Date: Mar 2015
Posts: 30
Reputation: 0
Default Re: [0.3e+]Player Attached Object Editor

For some reason whenever i'm done editing an attached object, the script will keep saying i have to finish the edit, even though i already pressed ESC.
The only solution to this is to reset the object editor, and when i do that i think the various offsets and values get reset to 0 so when i try to load saved objects i'll see the unedited version instead of the edited one.

Is there any solution to this?
Greggu is offline   Reply With Quote
Old 12/03/2016, 06:45 PM   #36
Ducati
Guest
 
Posts: n/a
Default Re: [0.3e+]Player Attached Object Editor

Awesome.
  Reply With Quote
Old 15/03/2016, 03:46 AM   #37
RoboN1X
Huge Clucker
 
RoboN1X's Avatar
 
Join Date: Feb 2011
Location: Indonesia
Posts: 312
Reputation: 57
Default Re: [0.3e+]Player Attached Object Editor

Quote:
Originally Posted by Greggu View Post
For some reason whenever i'm done editing an attached object, the script will keep saying i have to finish the edit, even though i already pressed ESC.
The only solution to this is to reset the object editor, and when i do that i think the various offsets and values get reset to 0 so when i try to load saved objects i'll see the unedited version instead of the edited one.

Is there any solution to this?
I'm not sure why some people (still) facing this issue, i never able to find this, can anyone atleast explain the step what they are doing to produce this bug? I'd appreciate it.
When you save by clicking the disk icon, it should tell you that you have finished editing. Even if you pressed ESC it also notify you that object edit is canceled.
If it works for me correctly, it must be something from other script preventing the OnPlayerEditAttachedObject being called, because when i test it with a blank gamemode or grandlarc, with sscanf and with or without streamer plugins, nothing wrong.
__________________
Need Help? Use Search, WIKI, and FAQ
RoboN1X is offline   Reply With Quote
Old 24/07/2016, 12:06 PM   #38
Iqba
Little Clucker
 
Join Date: Jan 2016
Posts: 12
Reputation: 1
Default Re: [0.3e+]Player Attached Object Editor

doesnt work
Iqba is offline   Reply With Quote
Old 30/12/2016, 12:27 PM   #39
PolisManovic
Little Clucker
 
PolisManovic's Avatar
 
Join Date: Nov 2015
Location: Czech Republic
Posts: 24
Reputation: 0
Default Re: [0.3e+]Player Attached Object Editor

Very nice
PolisManovic is offline   Reply With Quote
Old 16/11/2018, 07:28 PM   #40
murilo2929
Big Clucker
 
Join Date: Oct 2018
Posts: 139
Reputation: 0
Default Re: [0.3e+]Player Attached Object Editor

its possible to put this FS in GM?
murilo2929 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
[FilterScript] Attached Object Editor Rachael Filterscripts 51 19/11/2016 06:39 PM
how to save the size of attached object after player edit attached object Chrisli520 Scripting Help 1 18/10/2013 11:12 PM
Object editor (While attached to vehicles) Pizzy Scripting Help 2 12/04/2013 07:37 PM
[BUG]: Clickable Textdraws / Player attached object editor Pottus Bug Reports 10 17/11/2012 08:31 PM


All times are GMT. The time now is 09:05 AM.


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