Jump to content

Recommended Posts

Posted

Hello.

We're trying to sync vehicle weapons.

We already tried giving player the vehicle weapon server-side (Both C# and JS).

We are pretty sure that the Hash is correct. We tried even joaat, but still no luck.

Tried also on a vanilla server, with serverside only weapons activated and deactivated.

Here is the code that we are using:

function playerEnterVehicleHandler(player, vehicle, seat) {
	player.outputChatBox(`${player.name} got into the car with ID: ${vehicle.id}. Seat: ${seat}`);
	player.giveWeapon(1741783703, 1000);
}

mp.events.add("playerEnterVehicle", playerEnterVehicleHandler);

1741783703 can also be VEHICLE_WEAPON_WATER_CANNON (tried all of this on firetruk model).

Also we’ve tried the native for moving the turret and it does nothing, so we are finally supposing that vehicle weapons are not synced.

Theres anything can be done about this? 

Thanks

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