Login to ZARP
Username: Password: Remember me

TOPIC: Lua Help Needed!

Lua Help Needed! 5 years 11 months ago #1055168

So how do i use these:

And apply them to an entity when its used
So like a juggernaut suit, how do i apply the Combine Bino overlay?
EDIT: also how would i have sounds added when an entity is used?
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Last Edit: 5 years 11 months ago by Markus.
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055172

Markus is a hoe
  • JoshuaIsGreat
  • JoshuaIsGreat's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • 3^ the Serb
  • Posts: 3627
  • Thanks received: 1549
  • Karma: -236
a


3^ the Serb
JayHouse on top forever, fuck around and find out :)
Zarp SSRP Lawyer

Login or register to post a reply.
The following user(s) said Thank You: Markus

Lua Help Needed! 5 years 11 months ago #1055173

JoshuaIsGreat wrote:
Markus is a hoe
  • JoshuaIsGreat
  • JoshuaIsGreat's Avatar
  • Offline
  • Diamond Boarder
  • ZARP VIP
  • 3^ the Serb
  • Posts: 3627
  • Thanks received: 1549
  • Karma: -236
a


3^ the Serb
JayHouse on top forever, fuck around and find out :)
Zarp SSRP Lawyer

Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055188

wiki.garrysmod.com/page/Entity/SetMaterial

Think this is what you need
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6007
  • Thanks received: 2443
  • Karma: 123
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055195

.uzi wrote:
wiki.garrysmod.com/page/Entity/SetMaterial

Think this is what you need
sorry sir, chief called, this aint it
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055204

Do you want to use the overlays in-game or in an actual script?
  • House
  • House's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP Gold Badge
  • The best thing on Earth? Coffee.
  • Posts: 1026
  • Thanks received: 541
  • Karma: 3

⚕ former TTT Server Owner ⚕
⚕ former Surf Administrator ⚕
⚕ former SSRP Moderator ⚕
⚕ former TeamSpeak3 staff ⚕
⚕ former Forum staff ⚕


Add me on Steam!


#uzi4CM
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055205

House wrote:
Do you want to use the overlays in-game or in an actual script?
Excuse me what the fuck
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055206

Eric Ericson wrote:
House wrote:
Do you want to use the overlays in-game or in an actual script?
Excuse me what the fuck

Translation:
want real code or not code?

I assume you're trying to reskin models, correct?
You don't *really* need code to do that, as you can just replace the textures on your client
  • TheXnator
  • TheXnator's Avatar
  • Offline
  • Former Owner
  • ZARP VIP Golden Blue Badge
  • "Save the tears for when we win!"
  • Posts: 8122
  • Thanks received: 4292
  • Karma: -2024
Discord: thexnator

Former Community Owner: 2020-2022
Last Edit: 5 years 11 months ago by TheXnator.
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055207

You're probably looking for DrawMaterialOverlay(), here's an example:

DrawMaterialOverlay("models/props_c17/combine_bino", -0.02)

To clarify, the float is the amount of refraction on your screen. So the refraction in the above code would be -0.02
  • Rick Townsend
  • Rick Townsend's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP Gold Badge
  • 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: 5 years 11 months ago by Rick Townsend.
Login or register to post a reply.
The following user(s) said Thank You: TheXnator

Lua Help Needed! 5 years 11 months ago #1055209

TheXnator wrote:
Eric Ericson wrote:
House wrote:
Do you want to use the overlays in-game or in an actual script?
Excuse me what the fuck

Translation:
want real code or not code?

I assume you're trying to reskin models, correct?
You don't *really* need code to do that, as you can just replace the textures on your client

Yea that
  • House
  • House's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP Gold Badge
  • The best thing on Earth? Coffee.
  • Posts: 1026
  • Thanks received: 541
  • Karma: 3

⚕ former TTT Server Owner ⚕
⚕ former Surf Administrator ⚕
⚕ former SSRP Moderator ⚕
⚕ former TeamSpeak3 staff ⚕
⚕ former Forum staff ⚕


Add me on Steam!


#uzi4CM
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055210

House wrote:
TheXnator wrote:
Eric Ericson wrote:
House wrote:
Do you want to use the overlays in-game or in an actual script?
Excuse me what the fuck

Translation:
want real code or not code?

I assume you're trying to reskin models, correct?
You don't *really* need code to do that, as you can just replace the textures on your client

Yea that
Yeah no you dont understand my help needed sir!
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055211

Rick Johnson wrote:
You're probably looking for DrawMaterialOverlay(), here's an example:

DrawMaterialOverlay("models/props_c17/combine_bino", 0.02)

To clarify, the float is the amount of refraction on your screen. So the refraction in the above code would be 0.02
Thank you sir this the kind of stuff im looking for!
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055212

attempt to call method 'DrawMaterialOverlay' (a nil value)
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055216

Eric Ericson wrote:
attempt to call method 'DrawMaterialOverlay' (a nil value)

Might want to set the refraction to a negative value like (-0.5) instead, and the model I used in my example is just something I made up on the spot so you'd need to change that as well.
  • Rick Townsend
  • Rick Townsend's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP Gold Badge
  • 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
Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055227

Rick Johnson wrote:
Eric Ericson wrote:
attempt to call method 'DrawMaterialOverlay' (a nil value)

Might want to set the refraction to a negative value like (-0.5) instead, and the model I used in my example is just something I made up on the spot so you'd need to change that as well.
effects/combine_binocoverlay is the real one i think
  • Markus
  • Markus's Avatar
  • Offline
  • Legendary Member
  • ZARP VIP
  • Posts: 5349
  • Thanks received: 1634
  • Karma: -337
Former:
SSRP Superadmin
Community Council Creator (May it rest in piece)
Prophunt Moderator
BHOP Moderator


Login or register to post a reply.

Lua Help Needed! 5 years 11 months ago #1055272

Eric Ericson wrote:
Rick Johnson wrote:
Eric Ericson wrote:
attempt to call method 'DrawMaterialOverlay' (a nil value)

Might want to set the refraction to a negative value like (-0.5) instead, and the model I used in my example is just something I made up on the spot so you'd need to change that as well.
effects/combine_binocoverlay is the real one i think

Yeah, then use that I guess
  • Rick Townsend
  • Rick Townsend's Avatar
  • Offline
  • Expert Boarder
  • ZARP VIP Gold Badge
  • 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
Login or register to post a reply.
Time to create page: 0.135 seconds

291 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
16/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
2/32
online
Connect to server View Gametracker Surf
3/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
270/913
online
Top