I just tested on a few different map sizes/settings and it worked as intended.
You are changing the values at the top of the lua file, and have the mod activated correct. I am sorry if silly questions, but I am not sure why it wouldn't work for you.
Could you post your lua log file (from C:\Users\you computer\Documents\my games\Sid Meier's Civilization VI\Logs) To post here, you will need to rename to lua.txt.
That's so weird, I did exactly that. I change the numbers at the very top. Here is a copy and paste of the top section with the changes I made:
local numSettlers = 5 --------------------------------------------set number of extra starting settlers for player
local numScouts = 5 --------------------------------------------set number of extra starting scouts
local numBuilders = 5 ---------------------------------------------set number of extra starting builders
local TechOne = GameInfo.Technologies["TECH_POTTERY"]; ------------set technology
local TechTwo = GameInfo.Technologies["TECH_ANIMAL_HUSBANDRY"]; ---set technology
local TechThree = GameInfo.Technologies["TECH_MINING"]; -----------set technology to start with less techs, local TechThree;
local PlayerGold = 999 --------------------------------------------set gold
local iScout = GameInfo.Units["UNIT_SCOUT"].Index -----------------set unit
local iSettler = GameInfo.Units["UNIT_SETTLER"].Index -------------set unit
local iBuilder = GameInfo.Units["UNIT_BUILDER"].Index -------------set unit
I wanted 5 of each unit, and 999 units of gold. Even when I make this change and re-start the game it stays with the original 5 x scouts, 3 x builders, and 1 x settler. Gold stays at 100.