Community
All Features
Overview of all exisiting features.
Arcade
Play various games in the arcade.
Awards
Earn awards for different tasks.
Bug Tracker
Report site related bugs the right way.
Credits
Everything related to credits.
Groups
A list of user run groups you can join.
Help Center
Official regulations and help documents.
Member List
A list of all registered members.
Latest Announcements
Staff Recruitment | September 2022
Changelog #34 - 03/04/2022
April Update - Index Redesign and Unlock Content Experiment
Support
Shop
Upgrade
Log In
Create Account
NulledBB
General
Gaming
Garry's Mod
Need help with lua (footstep sound)
Create an account
Login
PrivateAlps.net - Offshore Cloud Services | VPS/RDP/VPN - Dedicated Servers - Webhosting - TOR Services - Auto Deploy
ADULTSLAYER.STORE 💎 #1 PORN SHOP | 700+ Hot Products: Brazzers, Teamskeet, Pornhub, NaughtyAmerica, Many More! | 💸 Secure PayPal & Card Payments | Satisfaction Guaranteed! 🔥
Garry's Mod
Need help with lua (footstep sound)
Submitted by Praindom,
05-01-2021, 12:28 PM
, Thread ID: 192690
Thread Closed
Reply
05-01-2021, 12:28 PM
#1
I want to customize a job with a different footstep sound.
The footstep sound is working, but I want to have the sound only when a player is running.
code:
hook.
Add
(
"PlayerFootstep"
,
"CustomFootstep"
,
function
( ply, pos, foot, sound, volume, rf )
if
ply:getDarkRPVar(
"job"
) ==
"Trooper"
then
ply:
EmitSound
(
"npc/metropolice/gear5.wav"
) --
Play
the footsteps hunter
is
using
return
true
--
Don
't allow default footsteps, or other addon footsteps
end
end )
More
Users browsing this thread: 3 Guest(s)