09.01.2019, 18:19
You are putting the objects in the GM itself?
On my server, i did it by making an include, and putting it in the include folder of your compiler.
5k lines worked fine for me, never tried 20k thought
On my server, i did it by making an include, and putting it in the include folder of your compiler.
5k lines worked fine for me, never tried 20k thought

PHP Code:
#include <a_samp>
#include <streamer>
public OnGameModeInit()
{
// Objects and stuff here
if (funcidx("Object_OnGameModeInit") != -1)
{
return CallLocalFunction("Object_OnGameModeInit", "");
}
return true;
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Object_OnGameModeInit
forward Object_OnGameModeInit();