CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Calling the functions from another txt file
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vampytwist" data-source="post: 39905" data-attributes="member: 31216"><p>You can't call functions from a .txt file, has to be .gsc..</p><p></p><p>for the sake of this little tut imagine we have a file called mods.gsc which is placed in scripts\zm\</p><p></p><p>What you would do is first add it to the zm_mod.zone</p><p>[code]</p><p>scriptparsetree,scripts/zm/mods.gsc</p><p>[/code]</p><p></p><p>Then at the top of clientids or the .gsc file you are using, add this. This let's it know to use/include that file</p><p>[code]</p><p>#using scripts\zm\mods;</p><p>[/code]</p><p></p><p>Then in your mods.gsc file give it a name </p><p>[code]</p><p>#namespace mods; //this is what will be used to call functions e.g mods::unlimitedammo(); you can call it anything you want</p><p>[/code]</p></blockquote><p></p>
[QUOTE="vampytwist, post: 39905, member: 31216"] You can't call functions from a .txt file, has to be .gsc.. for the sake of this little tut imagine we have a file called mods.gsc which is placed in scripts\zm\ What you would do is first add it to the zm_mod.zone [code] scriptparsetree,scripts/zm/mods.gsc [/code] Then at the top of clientids or the .gsc file you are using, add this. This let's it know to use/include that file [code] #using scripts\zm\mods; [/code] Then in your mods.gsc file give it a name [code] #namespace mods; //this is what will be used to call functions e.g mods::unlimitedammo(); you can call it anything you want [/code] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Calling the functions from another txt file
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top