How to make a mod so that it starts automatically

I want to put an NPC in a store, for example, and I want it to always appear there when the server starts

1 Like

try this

Citizen.CreateThread(function())
 for k,v in pairs(PEDS) do
  -- Create ped Here  where PEDS is your table that specify ped models and location of store across map
 end
end)

where to insert it?

in client script