Client side sprite

Started by umar4911, Nov 27, 2017, 02:23 PM

Previous topic - Next topic

umar4911

I download Nos system by Seby but createSprite is not rel04. I dont know how to script client side. I tried but failed.

First, I tried to send data to client but the index "player" doesnot exists.

Second, I created a function in client side script
function nosbar()
{
GUISprite("NOS_bar.png", VectorScreen(-340, 230));
}
What should be the parameters of it? How to add alpha to it?
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

Milos

YourSprite <- GUISprite("NOS_bar.png", VectorScreen(-340, 230));
YourSprite.Alpha = 100;

!


Discord: zeus#5155

umar4911

Quote from: Necrose on Nov 27, 2017, 02:46 PMYourSprite <- GUISprite("NOS_bar.png", VectorScreen(-340, 230));
YourSprite.Alpha = 100;
Can you give me function with parameters


Quote from: ! on Nov 27, 2017, 05:42 PMhttp://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions#GUISprite
not so good
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter