Jump to content

How do I know when a resource starts, that is it a map?


IIYAMA

Recommended Posts

  • Moderators
Posted

Check when you start a map, not a gamemode or script.

https://wiki.multitheftauto.com/wiki/OnResourceStart

I need to use the "type" written in the meta*

  
function resourcecheck ( res ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), resourcecheck ) 
  

Must I use the resource "mapmanager" to do that?

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...