Everything you need to know about compiled client-side scripts!
It is posible since rel004 2017-05-24 Update(https://forum.vc-mp.org/?topic=4660.0)
Added support for loading precompiled client-side scripts (i.e. .cnut files). These must be compiled on a 32-bit Squirrel instance.
In order to make it work, you have 2 options:
@DizzasTeR 's worthy mention:
to compile .nut into compiled .cnut (or whatever format you like)
- Squirrel v3.1 Frontend & Compiler(https://forum.vc-mp.org/?topic=4670) by @Stormeus
- Script Compiling Tool(https://forum.vc-mp.org/?topic=8191.0) by @Spiller
When you use compiled scripts, you may notice the following warnings and error in debuglog.txt:
Don't worry, it is not a problem. The client just tries to read the file as uncompiled first.
MSG: <filename> line = (1) column = (1) : error expression expected
Warning in CScriptFunctions::DoFile: (script/<filename>.cnut) expression expected
Warning in CScriptFunctions::DoFile: Attempting bytecode read of file.
MSG: Scripts initialised.