Skip to content

Commit 5eb4cc1

Browse files
Merge branch 'master' into fix-map-LOD-table
2 parents aac7fac + 2c695a9 commit 5eb4cc1

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
Resources are a key part of [Multi Theft Auto](https://github.com/multitheftauto). A resource is essentially a folder or zip file that contains a collection of files - including essential script and content files, plus a meta file that describes how the resource should be loaded - and runs on a Multi Theft Auto dedicated server.
44

5-
A resource can be seen as being partly equivalent to a program running in an operating system - it can be started and stopped, and multiple resources can run at once. Its worth remember though, that unlike programs on an operating system, there is no multi-tasking between resources. Resources generally contain content and Lua scripts for game modes, user interfaces and other tasks affecting the players that are connected to the dedicated server on which the resources are running.
5+
A resource can be seen as being partly equivalent to a program running in an operating system - it can be started and stopped, and multiple resources can run at once. It's worth remembering, though, that unlike programs on an operating system, there is no multi-tasking between resources. Resources generally contain content and Lua scripts for game modes, user interfaces, and other tasks affecting the players that are connected to the dedicated server on which the resources are running.
66

7-
This project maintains a list of up-to-date resources that come with Multi Theft Auto. These can be checked out by anyone that wishes to run a dedicated server with the latest resources.
7+
This project maintains a list of up-to-date resources that come with Multi Theft Auto. These can be checked out by anyone who wishes to run a dedicated server with the latest resources. To learn about every resource in this repository, visit the [Default resources Wiki Page](https://wiki.multitheftauto.com/wiki/Default_resources).
88

9-
For a collection of user created resources, head over to our [Community](https://community.mtasa.com) web page which serves as a place for hosting our community's resources.
9+
For a collection of user-created resources, head over to our [Community](https://community.mtasa.com) web page which serves as a place for hosting our community's resources.
1010

11-
To report a bug or suggest an idea, [please submit a GitHub issue](https://github.com/multitheftauto/mtasa-resources/issues/new/choose).
11+
To report a bug or suggest an idea, [please submit a GitHub issue](https://github.com/multitheftauto/mtasa-resources/issues/new/choose). To understand the entire development cycle and process of this project, read the [Contributing Guide](https://github.com/multitheftauto/mtasa-docs/blob/main/mtasa-resources/CONTRIBUTING.md).
1212

1313
## License
1414

15-
Unless otherwise specified, all source code hosted on this repository is licensed under the MIT license. See the LICENSE file for more details.
15+
Unless otherwise specified, all source code hosted in this repository is licensed under the MIT license. See the LICENSE file for more details.

[gamemodes]/[race]/race/edf/edf.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ addEventHandler ( "onMapOpened", root,
2929
addEventHandler ( "onElementCreate", root,
3030
function()
3131
if getElementType(source) == "checkpoint" then
32-
--Find the first element without a nextid
32+
--Find the first non-destroyed element without a nextid
3333
for i,checkpoint in ipairs(getElementsByType"checkpoint") do
34-
if checkpoint ~= source and not exports.edf:edfGetElementProperty ( checkpoint, "nextid" ) then
34+
if checkpoint ~= source and not exports.edf:edfGetElementProperty ( checkpoint, "nextid" ) and getElementDimension(getRepresentation(checkpoint,"marker")) == exports.editor_main:getWorkingDimension() then
3535
exports.edf:edfSetElementProperty ( checkpoint, "nextid", source )
3636
break
3737
end
3838
end
3939
local marker = getRepresentation(source,"marker")
4040
setMarkerIcon ( marker, "finish" )
41+
-- Clear new clone checkpoint's nextid as a checkpoint is to be pointed to by only one other
42+
exports.edf:edfSetElementProperty( source, "nextid", nil)
4143
end
4244
end
4345
)

0 commit comments

Comments
 (0)