Jump to content
RAGE Multiplayer Community

[client side] client gm command


untoha
 Share

Recommended Posts

hi folks.

i don't have acces to server where i play. i wanna to understand is that possible to create simple client chat command and not manage it on server but manage it locally only.
for example 

index.js

mp.events.add("playerChat", (text) => {
     if (text === "test") {
          mp.gui.chat.push("You wrote 'test' in chat.");
          log.something.to.file;
     }
});

client not regiter my command. may be i put in wrong folder. 

GTA5RP\RageMP\client_resources\downtown.gta5rp.com_22005\ here is placed resources for server where i playing but when launcher started it delete my files. they not loading even if i put them there after client start.

if that is possible then please specify what files and in what folders should be for registering that event.

thanks in advance folks!

Edited by untoha
Link to comment
Share on other sites

Posted (edited)

thanks a lot but i dont wanna my own server. is it possible to just log to file locally if in chat text=="test" while playing on another server without access to server side?

Edited by untoha
Link to comment
Share on other sites

Posted (edited)

i wanna create logging of deserters.

they take armor+gun on faction title|spawn but then leave and do not take part in events.
for that i wanna to log players that is close to me. i thought to do this by make them type + in local chat where i see their nickname and log them.

i'm not a server dev i'm just regular player so i don't have access to server for that =(

Is that possible to implement this somehow?

Edited by untoha
Link to comment
Share on other sites

22 hours ago, untoha said:

thanks a lot but i dont wanna my own server. is it possible to just log to file locally if in chat text=="test" while playing on another server without access to server side?

If you get access to the client side of the server, then you get the option to get access to the server side. It is not safe.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...