I understand! Thank you so much for your time.
Honestly, I also am not understanding nothing more ...
These days I did more tests, but I never get what I expect.
But I discovered something that I had never noticed., MapEditor also saves in C.
The result is something like this:
public class MapEditorGeneratedMap : GTA.Script
List<int> Props = new List<int>();
int LodDistance = 3000;
Func<int, Vector3, Vector3, bool, int> createProp = new Func<int, Vector3, Vector3, bool, int>(delegate(int hash, Vector3 pos, Vector3 rot, bool dynamic)
Model model = new Model(hash);
Prop prop = GTA.World.CreateProp(model, pos, rot, dynamic, false);
prop.Position = pos;
prop.LodDistance = LodDistance;
prop.FreezePosition = true;
bool Initialized = false;
base.Tick += delegate (object sender, EventArgs args)
/* PROPS */
/* VEHICLES */
GTA.World.CreateVehicle(new Model(231083307), new GTA.Math.Vector3(45.96207f, 494.799f, 165.9185f), -67.20878f);
/* PEDS */
/* PICKUPS */
Initialized = true;
/* MARKERS */
/* WORLD */
At this point it might as well export all in C, and maybe add in the end, your function to the anchor of the boats.
But being a programmer php I'm missing something ... like, C must be compiled, as I compile for use in GTA? It must be .ASI? As you export to .ASI?
One other thing, I wish only a few boats were anchored, while others should run free to the lake, you can assign an identification to the vehicle in C? And in the first "if" use the identifiers in place of the class?
P.S. does not put the code and pre tags in the right place, there is other code out . You can not edit the html of the post?