mgdmgd Posted April 23, 2016 Share Posted April 23, 2016 Hey guys i was wondering if it's possible to make a resource that plays speifc sound turbo for a any random vehicle after using a command on it so the sound installs on it (turbo sound when gear switchs up) like in real life each time vehicle switchs gear it plays the turbo sound, i want somebody to help me to make the resource with a command that useable by admins only like the command will be when i do /installturbo on a spefic vehicle it installs on it, otherwise it won't play on another cars. Can somebody help me please? and thanks. Link to comment
Simple0x47 Posted April 24, 2016 Share Posted April 24, 2016 addCommandHandler --Shared hasObjectPermissionTo --Server Side setElementData --Shared playSound --Client Side That's what you'll need Link to comment
mgdmgd Posted May 8, 2016 Author Share Posted May 8, 2016 @Simple01 can you help me with the code it's self? i don't really know how to code lua seriously Link to comment
Bean666 Posted May 18, 2016 Share Posted May 18, 2016 addCommandHandler --Shared hasObjectPermissionTo --Server Side setElementData --Shared playSound --Client Side That's what you'll need isObjectInACLGroup is better and way faster. so i recommend it. and please, this will be useful for you. https://wiki.multitheftauto.com/wiki/Sc ... troduction Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now