I sincerely don't know nothing about programation but I want to find an function to spawn items.
Something like this:
function XSetup.PowerStruggle.multiplayer_ps_refinery.OnNewMap(mapRules, mapName)
LogAlways("[PGCX] Spawning Custom Vehicles for Map.");
XAddEntity(
{
class = "GaussRifle";
name = "GaussRifle";
orientation = { x=0, y=0, z=160 };
position = { x=2654.547, y=2556.16, z=420.9594 };
properties = {
Modification = "GaussRifle";
Respawn = {
bAbandon = 1;
bRespawn = 1;
bUnique = 1;
nAbandonTimer = 5;
nTimer = 5;
};
};
} );
XSetup.PowerStruggle.unknown.OnNewMap(mapRules, mapName);
end
I used this from a old Xastrada.lua
My question is if something like this already exists?
And sorry for my ignorance
❤️ 0