use any downloaded picture on Vcmp server

Started by PLAYER, Jun 30, 2024, 11:58 AM

Previous topic - Next topic

PLAYER

Hello! I want to use a downloaded picture in my Vcmp server I saw some servers of vcmp that have downloaded picture I want to know how to add any picture in Vcmp Server

vitovc

this script contains example of image (sprite - client-side script) https://forum.vc-mp.org/index.php?topic=33.0
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)

PLAYER

That's a blank server I don't need blank server i want to know how to add picture in Vcmp server Could you please help me in this or any other player?


vitovc

#4
blank script has an example of clientside image (sprite)
put this code to /store/script/main.nut
sX <- ::GUI.GetScreenSize().X;
sY <- ::GUI.GetScreenSize().Y;
sprite_logo <- ::GUISprite( "logo.png", ::VectorScreen( ::sX-(::sX/5), ::sY-(::sY/5) ) );
::sprite_logo.Size = ::VectorScreen( ::sX / 6, ::sY / 6 );
::sprite_logo.Alpha = 200;
also put logo.png to /store/sprites/
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)