Mentanding Posted June 3, 2019 Posted June 3, 2019 Hey Guys, i have an issue with this function... (https://wiki.rage.mp/index.php?title=Player::call) Code: //Server-Side Script: player.call Test mp.events.add("playerEnterVehicle", (player, vehicle, seat) => { player.call("sendVehicle", [true, vehicle]); console.log('playerEnterVehicle: sendVehicle => ServerSide');//i see this debug in the console ๐ }); //Client-Side Script: player.call Test mp.events.add("sendVehicle", (active, vehicle) => { if (active) { if(vehicle){ console.log('playerEnterVehicle: sendVehicle => ClientSide');// i dont get any information ๐ } } }); i see the ServerSide console debug, but not the ClientSide, why? Can someone help me please? greetings
Flow Posted June 3, 2019 Posted June 3, 2019 you don't have console.log in clientside. you would have to code your own log function. try a mp.game.graphics.notify("worked") instead 1
Mentanding Posted June 3, 2019 Author Posted June 3, 2019 vor 6 Minuten schrieb Flow: you don't have console.log in clientside. you would have to code your own log function. try a mp.game.graphics.notify("worked")๏ปฟ๏ปฟ instead๏ปฟ๏ปฟ holy shite is that dump, thanks it worked ๐๐๐๐
n0minal Posted June 9, 2019 Posted June 9, 2019 You can also use javascript alert function to debug stuff on client-side, it will pop-up just like a notification over the player screen.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now