Skip to content

IsValidModel should be changed #1849

@Allerek

Description

@Allerek

Version
nightly 1.5.8-20716 onwards

Additional context
#IMPORANT: I'm C++ Amateur, what im saying can be a complete CRAP!#

For now IsValidModel in Client\mods\deathmatch\logic\CVehicleNames.cpp returns true only if we check for standard GTA:SA models.
ulModel >= 400 && ulModel <= 611;

We should change it to use

getModelInfo(ulModel)->isVehicle();

in order to return real values when using vehicles from engineRequestModel.

This will allow us to add functions from #1175

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions