Files

> > CS2D > Lua Scripts > [MT] Better Image Handler
Files overviewCS2D overviewLua Scripts overview

English [MT] Better Image Handler >

4 comments3 kb, 402 Downloads

old [MT] Better Image Handler

Mami Tomoe
User Off Offline

IMG:https://cdn.discordapp.com/attachments/434982221405880320/852177930309206026/MamiTomoeUnrealSoftware.png



Note that I'm not a professional, don't expect top tier Lua quality.
If you're looking for perfection, look elsewhere.
Otherwise, this is for you!


Simple description:
This file consists of a couple functions made to replace the default image functions provided by CS2D.
Unless you have basic knowledge of Lua, this wont work for you!
I've included a couple example pictures here but you should read the documentation below!

Advanced description: >


• I have fully created this file!
• This file was only made for personal use!
• I do not force you to include credits (IN YOUR SERVER), hell I didn't even include my name in the file. But it would be nice if you would.

Change Log: >
edited 25×, last 06.07.21 11:54:38 pm
Approved by Seekay

Download Download

3 kb, 402 Downloads

Comments

4 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Mami Tomoe
User Off Offline

I don't really know what you're talking about

It works like this:
1
table[imageid] = { properties }

And then you can use the GET function to get something out of that table or the SET function to set something in that table, also affecting the image.
edited 1×, last 10.05.19 11:17:59 am

old

Serigala
User Off Offline

You should put new array instead of id for image, because when you add cs2d lua cmd image it will automatically become image in game and the cs2d lua cmd image will return to image-number. Also you can add cs2d lua cmd freeimage with condition before put the cs2d lua cmd image to avoid appearing multiple images.

Anyway good job
I like it!
edited 1×, last 13.05.19 01:19:31 pm

old

Mami Tomoe
User Off Offline

I've found it easier to make it the way I did, I might consider that in the future though.

old

Gaios
Reviewer Off Offline

You better should do it OOP
To the start Previous 1 Next To the start