Login to ZARP





  • Page:
  • 1
  • 2

TOPIC: LUA Help

LUA Help 6 years 1 month ago #1117686

DEADMONSTOR wrote:
.uzi wrote:
DEADMONSTOR wrote:
god wtf are you doing just make it a gif
we're trying to re-invent the wheel here go away

With bad code I think Xnator has that covered sorry.

You can't use gif format
  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP
  • Posts: 18874
  • Thanks received: 8711
  • Karma: -380
The topic has been locked.
View BBCode

LUA Help 6 years 1 month ago #1117691

If u have an array of images cant u just make a for loop to display them after each other. Idk the Lua syntax but you can try to apply this concept to Lua:
imgArray = // Array of images in order

for (i=0; i < imgArray.length; i++) {
changeBackgroundFunctionOrWhatever(imgArray[i], interval); 
// ^ This isn't an function, but you get the idea ^
}


EDIT [ Click to expand ]
  • Rick Townsend
  • Rick Townsend's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP
  • Dreamy, Amazing, Radiant, Knowledgable
  • Posts: 1516
  • Thanks received: 498
  • Karma: 55




Ex. Community Council Member
Ex. SSRP Super Administrator
Ex. Discord Administrator
Ex. TeamSpeak Staff
Ex. Forum Staff


Rick Townsend
Last Edit: 6 years 1 month ago by Rick Townsend.
The topic has been locked.
View BBCode

LUA Help 6 years 1 month ago #1117700

Nafe wrote:
DEADMONSTOR wrote:
.uzi wrote:
DEADMONSTOR wrote:
god wtf are you doing just make it a gif
we're trying to re-invent the wheel here go away

With bad code I think Xnator has that covered sorry.

You can't use gif format

You know that thing called reading yeah? Didn't do it.
  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP
  • Posts: 18874
  • Thanks received: 8711
  • Karma: -380
The topic has been locked.
View BBCode
The following user(s) said Thank You: .uzi

LUA Help 6 years 1 month ago #1117712

DEADMONSTOR wrote:
dl.dropboxusercontent.com/s/8pmgiabr9gw0vyo/pdLHXfIXxS.mp4

Here:
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\lua\menu

background.lua:
pastebin.com/raw/kAvmLz0w

mainmenu.lua:
pastebin.com/raw/iaMpYWH2

Cool command this will change all files within that folder with the file extension .gif to .jpg

ren *.gif *.jpg

Big gays canno do it
  • DEADMONSTOR
  • DEADMONSTOR's Avatar
  • Offline
  • Former Owner
  • ZARP VIP
  • Posts: 9279
  • Thanks received: 3800
  • Karma: 80

...
The topic has been locked.
View BBCode

LUA Help 6 years 1 month ago #1117736

corrrrr look at that mate!!!

  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP
  • Posts: 18874
  • Thanks received: 8711
  • Karma: -380
The topic has been locked.
View BBCode
  • Page:
  • 1
  • 2

Time to create page: 0.173 seconds

196 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
6/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
1/32
Online
Connect to server View Gametracker Surf
0/32
Online
Connect to server View Gametracker Prop Hunt
0/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
189/962
Online
Top