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:
@@ -15,3 +15,4 @@ server_export "getCurrentMap"
|
|||||||
server_export "changeGameType"
|
server_export "changeGameType"
|
||||||
server_export "changeMap"
|
server_export "changeMap"
|
||||||
server_export "doesMapSupportGameType"
|
server_export "doesMapSupportGameType"
|
||||||
|
server_export "getMaps"
|
||||||
|
|||||||
@@ -267,6 +267,10 @@ function getCurrentMap()
|
|||||||
return currentMap
|
return currentMap
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function getMaps()
|
||||||
|
return maps
|
||||||
|
end
|
||||||
|
|
||||||
function changeGameType(gameType)
|
function changeGameType(gameType)
|
||||||
if currentMap and not doesMapSupportGameType(gameType, currentMap) then
|
if currentMap and not doesMapSupportGameType(gameType, currentMap) then
|
||||||
StopResource(currentMap)
|
StopResource(currentMap)
|
||||||
|
|||||||
Reference in New Issue
Block a user