Thanks Solidsnake14 for your help
Thank you so much Evil-Cod3r I modified your resource like this (without checking if it's running or not )
function this ( theResource )
local they = getResourceFromName ( "freeroam" )
if getResourceFromName then
restartResource(they)
end
end
setTimer (this, 10000,0 )
Simple ^^