Post: What is the difference between commands 'vstr' and 'exec' ?
04-10-2012, 12:01 AM #1
Teamrider
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I'm currently making my own patch. Now i looked into some patches and was wondering whats the difference between vstr and exec
(adsbygoogle = window.adsbygoogle || []).push({});
04-10-2012, 07:11 AM #2
oNiiTrOx
Do a barrel roll!
Originally posted by Teamrider View Post
I'm currently making my own patch. Now i looked into some patches and was wondering whats the difference between vstr and exec


exec is a command that executes an entire .cfg or .gsc depending on what type of patch youre editing, in other words, activates the dvars and cvars in what youre executing. heres an example of how its used.

exec MainMenuHere.cfg

It will set everything in the .cfg to what you have vstrs set to.

vstrs do this.

vstr Example
set Example "g_compassShowEnemies 1"

now, you have Example set to activate radar, so when you vstr Example, it goes to it and activates what you have it set to do. In other words, a vstr goes to a custom set string of DVars and CVars that you have made, and exec fully executes a .cfg or .gsc and activates everything within it. Make sense?

The following user thanked oNiiTrOx for this useful post:

Teamrider
04-10-2012, 11:50 AM #3
Teamrider
Bounty hunter
Originally posted by oNiiTrOx View Post
exec is a command that executes an entire .cfg or .gsc depending on what type of patch youre editing, in other words, activates the dvars and cvars in what youre executing. heres an example of how its used.

exec MainMenuHere.cfg

It will set everything in the .cfg to what you have vstrs set to.

vstrs do this.

vstr Example
set Example "g_compassShowEnemies 1"

now, you have Example set to activate radar, so when you vstr Example, it goes to it and activates what you have it set to do. In other words, a vstr goes to a custom set string of DVars and CVars that you have made, and exec fully executes a .cfg or .gsc and activates everything within it. Make sense?


Thanks :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo