Post: Plz need help with coding
05-15-2012, 11:27 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); i want to put in a freeze all, but im not sure where to insert the codes. Anyone know??
(adsbygoogle = window.adsbygoogle || []).push({});
05-15-2012, 11:44 PM #2
xKtF
In my man cave
LOL i hope you not talking about .cfg :dumb:
05-16-2012, 10:08 AM #3
spudeeelad
I defeated!
Well, it depends exactly how you've written the rest of your patch, but for examples sake, i'll assume that you've only editted _missions.gsc.

You're going to need a self thread. The easiest way is to just search for other self threads, after the OnPlayerSpawned()... then add

self thread FreezeAll();

Then anywhere else in the file, doesn't really matter where, but use common sense about where you put it (I.e. not in the middle of another piece of code, it's always best practice IMO to just stick it at the end of the all other codes so it's at the very very bottom), put this

FreezeAll()
{
(Insert your code that will actually freeze all)
}

The 2 names that i've highlighted above MUST match.

Not sure if you're using a menu or whatever, so there will be some additional work you need to do on the menu so that it calls the function upon the desired event (presumably when you press a button on the list)

Note:- I am by no means an expert, so if this is wrong, I do apologise

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo