Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: MEGAMIND on Aug 01, 2018, 08:42 AM

Title: help with Custom thingy
Post by: MEGAMIND on Aug 01, 2018, 08:42 AM
ok hello comunity, first of all whats that called
(https://i.imgur.com/9vTejc7.jpg)

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?
Title: Re: help with Custom thingy
Post by: vitogta on Aug 01, 2018, 09:49 AM
maybe it's scale/attach in gmax/3dmax
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 01, 2018, 10:26 AM
so its an object or something?
Title: Re: help with Custom thingy
Post by: vitogta on Aug 01, 2018, 10:27 AM
ramp? obviously an object.
text - gui label
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 01, 2018, 10:46 AM
so thats what i mnt so how do i make a gui label like that
Title: Re: help with Custom thingy
Post by: vitogta on Aug 01, 2018, 11:00 AM
add flag GUI_FLAG_3D_ENTITY and set size/position/rotation in 3d.
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions
Title: Re: help with Custom thingy
Post by: MatheuS on Aug 01, 2018, 12:18 PM
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
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 01, 2018, 01:35 PM
I dont think thats a 3d textdraw its more like a sprite
Title: Re: help with Custom thingy
Post by: vitogta on Aug 01, 2018, 01:56 PM
as you wish.
Title: Re: help with Custom thingy
Post by: 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.
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 01, 2018, 03:39 PM
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
Title: Re: help with Custom thingy
Post by: ! on Aug 01, 2018, 07:11 PM
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 );
}
};

(https://i.imgur.com/McK1fI7.jpg)
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 02, 2018, 07:38 AM
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???
Title: Re: help with Custom thingy
Post by: ! on Aug 02, 2018, 08:40 AM
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();
Title: Re: help with Custom thingy
Post by: MEGAMIND on Aug 03, 2018, 09:43 AM
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:

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fwww.kepfeltoltes.eu%2Fimages%2Fhdd1%2F2018%2F08%2F03%2F913likethis.png&hash=07920beba60cd22c221b5b6a5927739cd368a8e7) (http://www.kepfeltoltes.eu/view.php?filename=913likethis.png)

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