Jump to content

Recommended Posts

Posted

Hello everyone. Recently I came across when working with a chat based on examples with the mp.invoke function. I looked through all the sites about working with CEF and raid and did not find a clear answer for what mp.invoke is needed and what is indicated for its use. I would be grateful if someone would describe in detail with links about this function.

Posted (edited)

It's part of RAGEMP CEF API. Mostly used for chat, I'm not sure if there is a list of all invokes but here are some I've encountered:

/*--From CEF--*/
mp.invoke(“focus”, true/false); 		   // Enables/disables local player cursor in game
mp.invoke("setTypingInChatState", true/false); 	   // Used to set synchronized typing in chat state for local player (mp.players.local.isTypingInTextChat)
mp.invoke("command", text); 			   // Send command to server from local player
mp.invoke("chatMessage", text);   		   // Send chat message to server from local player

 

Edited by Kopra
grammar
Posted
13 часа назад, Kopra сказал:

It's part of ragemp CEF api. Mostly used for chat, I'm not sure there is a list of all invokes but here are some I've encountered:

/*--From CEF--*/
mp.invoke(“focus”, true/false); 		   // Enables/disables local player cursor in game
mp.invoke("setTypingInChatState", toggle); 	   // Used to set synchronized typing in chat state for local player (mp.players.local.isTypingInTextChat)
mp.invoke("command", text); 			   // Send command to server from local player
mp.invoke("chatMessage", text);   		   // Send chat message to server from local player

 

Thank you

  • Like 1

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