mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
ADD: mapmanager - getMaps function and export
This commit is contained in:
@@ -267,6 +267,10 @@ function getCurrentMap()
|
||||
return currentMap
|
||||
end
|
||||
|
||||
function getMaps()
|
||||
return maps
|
||||
end
|
||||
|
||||
function changeGameType(gameType)
|
||||
if currentMap and not doesMapSupportGameType(gameType, currentMap) then
|
||||
StopResource(currentMap)
|
||||
@@ -301,4 +305,4 @@ function doesMapSupportGameType(gameType, map)
|
||||
end
|
||||
|
||||
return maps[map].gameTypes[gameType]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user