openmultiplayer / openmultiplayer/open.mp

AddVehicleComponent - Sometimes not Adding Component

Open
#994 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
641
Forks
208
PR merge metrics
No merged PRs in 30d

Description

Function: AddVehicleComponent(playerid, vehicleid, Component)

In the last years of SA:MP i noticed this bug on other servers, now i have the same Problem while scripting on mine.
Some components won't add sometimes.

For now i noticed that SIDE_SKIRTS from Cars have the problem.
To reproduce get the right SIDE_SKIRT ID from the Car and make a simple command to add the Component.

Vehicle: Bobcat (422)
ComponentID for the SIDE_SKIRT: 1007

It is a SA:MP Bug, maybe a Bug that can be fixed for the own server-version in the future...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with AddVehicleComponent(playerid, vehicleid, Component) using the Bobcat (422) and SIDE_SKIRT component ID 1007. Trace the component-addition path and compare it with components that work; done means the side skirt is added reliably when the command is run.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.