spawn as certain job

how would i go about making it so that certain ULX groups spawn as a certain job when they join a server, for example, if ulx group vip joins the server they will auto become the job “VIP Citizen”

GM/PlayerInitialSpawn

Player:changeTeam

I’m not sure if you should wait few seconds until ulx loads ranks…But after 1 or 2 seconds, you can run that function