[HELP] I dont know what is the good code :D

I modify the spawn but i have a problem the good code is him:

RegisterServerEvent('es_roleplay:spawn')
AddEventHandler('es_roleplay:spawn', function()
	TriggerEvent('es:getPlayerFromId', source, function(user)
		if(user)then
			TriggerClientEvent('es:activateMoney', source, user.money)
		end
	end)

	local pos = nil
	if(game.secondaryArea)then
		local spawns = MergeTable(game.currentArea.spawns, game.secondaryArea.spawns)
		pos = spawns[ math.random( #spawns ) ]
	else
		pos = game.currentArea.spawns[ math.random( #game.currentArea.spawns ) ]
	end

	local model = "mp_m_freemode_01", "mp_f_freemode_01"
	TriggerClientEvent('es_roleplay:spawnPlayer', source, pos.x, pos.y, pos.z, model)
end)

OR HIM:


RegisterServerEvent('es_roleplay:spawn')
AddEventHandler('es_roleplay:spawn', function()
	TriggerEvent('es:getPlayerFromId', source, function(user)
		if(user)then
			TriggerClientEvent('es:activateMoney', source, user.money)
		end
	end)

	local pos = nil
	if(game.secondaryArea)then
		local spawns = MergeTable(game.currentArea.spawns, game.secondaryArea.spawns)
		pos = spawns[ math.random( #spawns ) ]
	else
		pos = game.currentArea.spawns[ math.random( #game.currentArea.spawns ) ]
	end

	local model = "mp_m_freemode_01" or "mp_f_freemode_01"
	TriggerClientEvent('es_roleplay:spawnPlayer', source, pos.x, pos.y, pos.z, model)
end)

The difference is the local model…

Rnd = math.random(1,2)
local model = {“mp_m_freemode_01”, “mp_f_freemode_01”}
TriggerClientEvent(‘es_roleplay:spawnPlayer’, source, pos.x, pos.y, pos.z, model[Rnd])