News:

open.mp launcher v1.5.2 is released! Download it from here.

Main Menu

 


beckzy's mod shops

bmodshop.inc

Filesize: 118.9kB  Views: (203)  Downloads (65)  Last Download: Jan 25, 2025, 03:11 AM 
Previous Download | Next Download
Description: beckzy's mod shops - beckzy - 11/12/2024

This is an include for server side mod shops. It requires Incognito's streamer plugin for dynamic checkpoints. There are pros and cons to using scripted mod shops:

Pros:

- Most land vehicles can be modded
- Front/rear bumpers AND front/rear bullbars can be applied together
- Left and right vents are added together and are a single component type
- All wheels are listed for all moddable vehicles
- You can change the paintjob of Camper
- OnVehicleRespray2, OnVehiclePaintjob2, and OnVehicleMod2 are used. OnVehicleRespray2 isn't called when you view a component or when you leave a mod shop (unlike OnVehicleRespray). OnVehiclePaintjob2 isn't called when you view a paintjob (unlike OnVehiclePaintjob). OnVehicleMod2 is used to support the new component types.
- As all valid components are stored for each vehicle model, OnVehicleMod filters out any invalid components added through hacks

Cons:
- You can't choose the vehicle color, though you can still Respray the vehicle to the next default color

Notes:
- New callbacks OnVehicleRespray2, OnVehiclePaintjob2 and OnVehicleMod2 are called through all scripts

New component types:

COMPONENT_TYPE_NONE 0

COMPONENT_TYPE_SPOILER 1
COMPONENT_TYPE_HOOD 2
COMPONENT_TYPE_ROOF 3
COMPONENT_TYPE_SIDESKIRT 4
COMPONENT_TYPE_LAMPS 5
COMPONENT_TYPE_NITRO 6
COMPONENT_TYPE_EXHAUST 7
COMPONENT_TYPE_WHEELS 8
COMPONENT_TYPE_STEREO 9
COMPONENT_TYPE_HYDRAULICS 10
COMPONENT_TYPE_FRONT_BUMPER 11
COMPONENT_TYPE_REAR_BUMPER 12
COMPONENT_TYPE_VENTS 13
COMPONENT_TYPE_FRONT_BULLBAR 14
COMPONENT_TYPE_REAR_BULLBAR 15
COMPONENT_TYPE_MISC 16


Video (thanks Deadsh0ty) - https://www.youtube.com/watch?v=VZQgn5SkWo4


Update 12/12/2024:

- Used COMPONENT_TYPE_NONE instead of 0 in some places
- Hooked GetVehicleComponentType to return the correct component type
- Hooked GetVehicleComponentInSlot to return the correct component from the correct slot
- Hooked GetVehiclePaintjob to return the applied paintjobid

Posted by: beckzy Dec 12, 2024, 08:21 AM

Rating: This download has not been rated yet.
Share


Comments (0)



Powered by EzPortal
SA-MP.mp