Skip to content

Commit

Permalink
Merge branch 'master' into fix-map-LOD-table
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha authored Oct 14, 2024
2 parents aac7fac + 2c695a9 commit 5eb4cc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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.

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.
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.

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.
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).

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.
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.

To report a bug or suggest an idea, [please submit a GitHub issue](https://github.com/multitheftauto/mtasa-resources/issues/new/choose).
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).

## License

Unless otherwise specified, all source code hosted on this repository is licensed under the MIT license. See the LICENSE file for more details.
Unless otherwise specified, all source code hosted in this repository is licensed under the MIT license. See the LICENSE file for more details.
6 changes: 4 additions & 2 deletions [gamemodes]/[race]/race/edf/edf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ addEventHandler ( "onMapOpened", root,
addEventHandler ( "onElementCreate", root,
function()
if getElementType(source) == "checkpoint" then
--Find the first element without a nextid
--Find the first non-destroyed element without a nextid
for i,checkpoint in ipairs(getElementsByType"checkpoint") do
if checkpoint ~= source and not exports.edf:edfGetElementProperty ( checkpoint, "nextid" ) then
if checkpoint ~= source and not exports.edf:edfGetElementProperty ( checkpoint, "nextid" ) and getElementDimension(getRepresentation(checkpoint,"marker")) == exports.editor_main:getWorkingDimension() then
exports.edf:edfSetElementProperty ( checkpoint, "nextid", source )
break
end
end
local marker = getRepresentation(source,"marker")
setMarkerIcon ( marker, "finish" )
-- Clear new clone checkpoint's nextid as a checkpoint is to be pointed to by only one other
exports.edf:edfSetElementProperty( source, "nextid", nil)
end
end
)
Expand Down

0 comments on commit 5eb4cc1

Please sign in to comment.