multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.3k stars 412 forks source link

setPedEnterVehicle dimension issues #3473

Closed Serius41 closed 1 week ago

Serius41 commented 1 week ago

Describe the bug

In the 1st video, when I set the dimension of the pad and the car to 0, everything works normally, no problem, but Video1: https://streamable.com/mhx1es

In the 2nd video, when I set the dimension of the pad and the car to 50, the functions do not work, what could be the problem Video2:https://streamable.com/m9er18

Steps to reproduce

.

Version

Multi Theft Auto v1.6-release-22512 Copyright (C) 2003 - 2024 Multi Theft Auto

Additional context

No response

Relevant log output

No response

Security Policy

MegadreamsBE commented 1 week ago

Are you setting the player responsible for calling setPedEnterVehicle to dimension 50 on the server as well? If not, that's intended behavior as you are not the syncer of the ped nor vehicle in the eyes of the server.

Serius41 commented 1 week ago

Are you setting the player responsible for calling setPedEnterVehicle to dimension 50 on the server as well? If not, that's intended behavior as you are not the syncer of the ped nor vehicle in the eyes of the server.

I give the same dimension to all elements, but the process is triggered only at 0.

I tried with the code given on the wiki and the same problem persists.

MegadreamsBE commented 1 week ago

Are you setting the player responsible for calling setPedEnterVehicle to dimension 50 on the server as well? If not, that's intended behavior as you are not the syncer of the ped nor vehicle in the eyes of the server.

I give the same dimension to all elements, but the process is triggered only at 0.

I tried with the code given on the wiki and the same problem persists.

In your video you only set the dimension of the player to 50 on the client. Thus, they will fail the check on the server that makes them the syncer. Intended behavior, change the dimension of the player on the server.