Jump to content

Keybind doesnt work on callRemote


Recommended Posts

Hey, I'm really new to RageMP Scripting stuff, and I'm currently doing some basic coding.

I wanna do something like 

  • Press a button (E)
  • Send a Remote Call to the Server
  • Spawn a vehicle


mp.keys.bind(0x45, true, function() {
    mp.gui.chat.push("[RemoteEvent] Rollerverleih");
    mp.events.callRemote("Rollerverleih", player);

This is my current code.

The "Chat.Push" is showing up in my chat, but nothing else is happening. The Remote Call just doesnt work.

I tested my Remote Call and it works. I just made a Command with exactly the same functions in the Remote Call (copy & paste) and the Command seems to work. 


Just the Remote Call doesnt work.


Any help?
thanks in regards

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
  • Recently Browsing   0 members

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