help with Custom thingy

Started by MEGAMIND, Aug 01, 2018, 08:42 AM

Previous topic - Next topic

MEGAMIND

ok hello comunity, first of all whats that called


secondly how is it made?

is it an object from within the game and then modified or something else, i use to play samp they have it there but this in a vcmp server i found it quite interesting best of luch to that server owner... so how do we make this?

vitogta

maybe it's scale/attach in gmax/3dmax

MEGAMIND

so its an object or something?

vitogta

ramp? obviously an object.
text - gui label

MEGAMIND

so thats what i mnt so how do i make a gui label like that

vitogta


MatheuS

Quote from: vitogta on Aug 01, 2018, 11:00 AMadd flag GUI_FLAG_3D_ENTITY and set size/position/rotation in 3d.
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions

It's true, the server owner is my friend.

@Pop360
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

MEGAMIND

I dont think thats a 3d textdraw its more like a sprite

vitogta


MatheuS

Quote from: MEGAMIND on Aug 01, 2018, 01:35 PMI dont think thats a 3d textdraw its more like a sprite

No, that's a label in 3d with custom font.
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

MEGAMIND

Quote from: MatheuS on Aug 01, 2018, 03:10 PM
Quote from: MEGAMIND on Aug 01, 2018, 01:35 PMI dont think thats a 3d textdraw its more like a sprite

No, that's a label in 3d with custom font.
woa thats look something  awsome btw any example to that, its nearly like having samp back in vcmp but more efficient

!

#11
Quote from: MEGAMIND on Aug 01, 2018, 03:39 PM]woa thats look something  awsome btw any example to that, its nearly like having samp back in vcmp but more efficient

I don't know how the **** I have calculated angles and other stuff but this is what I had used in my old version and it worked.
GUI_3D_Label <- {
/* Configuration */
iPos = Vector( -672.244, 748.86, 17 ),
iRotation = Vector( 90, 180, -90 ),
iSize = Vector( 20, 5, 5 ),
iColor = Colour( 255, 255, 255 ),
iText = "Grand Theft Auto Vice City",
/* Configuration Ends */

Label = null,

function Create( ) {
Label = ::GUILabel( );
Label.AddFlags( GUI_FLAG_3D_ENTITY );
Label.Text = iText;
Label.TextColour  = iColor;
Label.FontSize = 100;
Label.Size3D  = iSize;
Label.Rotation3D  = GetAngleFromDeg( iRotation );
Label.Position3D  = iPos;
Label.AddFlags( GUI_FLAG_VISIBLE );
}

function Destroy( ) {
Label = null;
}

function GetAngleFromDeg( deg ) {
local x = 6.270 / 360.000;
local y = 6.270 / 360.000;
local z = 6.270 / 360.000;
return Vector( deg.X * x, deg.Y * y, deg.Z * z );
}
};


Discord: zeus#5155

MEGAMIND

#12
that is one good thing but it didnt worked nor do i got any error in debuglog.txt, i placed it on top of script in store/script but didt worked

so can u tell me where to add it properly cuz i dont find it usefull even to put it on scriptload @!
+ does it require any font file???

!

Quote from: MEGAMIND on Aug 02, 2018, 07:38 AMthat is one good thing but it didnt worked nor do i got any error in debuglog.txt, i placed it on top of script in store/script but didt worked

so can u tell me where to add it properly cuz i dont find it usefull even to put it on scriptload @!
+ does it require any font file???
Just put it at the top of main.nut or any other file then use this in OnScriptLoad()
GUI_3D_Label.Create();

Discord: zeus#5155

MEGAMIND

Quote from: Abri on Aug 02, 2018, 11:40 PMHello!

It is only  map edit, with originally object

Id: 560 waterjump1 with "rotation x" settings.

Like this:



Show me a photo of the place where you want to give it and I'll do it for you ;-)


stay out of this will u XD