Jump to content

/start function [Where is it in?]


Jack_Miller

Recommended Posts

Hi Guys.

I don't use ACL on my Server, so everyone can start, restart and stop resources...that sucks..

Yesterday i finished a scipt exactly like the normal /start, /stop and /restart.

removeCommandHandler don't work on it.

So where is the normal /start function in? I searched in the standard resources but didn't find it...

Link to comment
  • Discord Moderators

start, stop, restart, refresh etc. are native built in MTA commands.

They cannot be disabled.

I'd advise you to do the following:

onClientResourceStart and onResourceStart, cancelEvent() unless a dynamic parameter on the certain resource is true (do for stop too)

I would only advise you to fix your ACL.

I am not sure how your server will react if one decides to spam one of the above

Link to comment

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