openmultiplayer / openmultiplayer/open.mp
AddVehicleComponent - Sometimes not Adding Component
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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