Login to ZARP
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: LUA Help

LUA Help 4 years 11 months 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 Golden Blue Badge
  • Posts: 18580
  • Thanks received: 11872
  • Karma: -377
The topic has been locked.

LUA Help 4 years 11 months 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 Gold Badge
  • Dreamy, Amazing, Radiant, Knowledgable
  • Posts: 1516
  • Thanks received: 500
  • Karma: 55



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


Rick Townsend
Last Edit: 4 years 11 months ago by Rick Townsend.
The topic has been locked.

LUA Help 4 years 11 months 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 Golden Blue Badge
  • Posts: 18580
  • Thanks received: 11872
  • Karma: -377
The topic has been locked.
The following user(s) said Thank You: .uzi

LUA Help 4 years 11 months 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: 9276
  • Thanks received: 3800
  • Karma: 80
...
The topic has been locked.

LUA Help 4 years 11 months ago #1117736

corrrrr look at that mate!!!

  • Nafe
  • Nafe's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Posts: 18580
  • Thanks received: 11872
  • Karma: -377
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.105 seconds

167 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
8/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
0/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/0
offline
Connect to server Discord
159/782
online
Top