Code (if server playing on map)

Hello everyone !
I’m looking to make a quick and clean FastDL and for that I got the idea for the download of map download the map as when playing on the server instance:

Escuse for my bad english


resource.AddWorkshop( "149737736" )
resource.AddWorkshop( "112806637" )
resource.AddWorkshop( "198338800" )
IF (SERVER PLAYING ON MAP : jl_bail)
   resource.AddWorkshop( "198338800" )
end
IF (SERVER PLAYING ON MAP : jl_bail_56)
   resource.AddWorkshop( "15723474" )
end

Looking variable map playing thank you all helps!

Thank man this work or no ?



if ( game.GetMap(gm_flatgrass) )
 resource.AddWorkshop( "15723474" )
end



if game.GetMap() == "gm_flatgrass" then
    resource.AddWorkshop( "15723474" )
end


No, you have to do “gm_flatgrass” as it needs to be string and not variable.

Escuse me i am a debutant Thank man !