added support for max

This commit is contained in:
Alexsandro Percy 2022-04-19 18:55:51 -03:00
parent 882c10b159
commit 222a81b99e
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ end
function automobiles_lib.detect_player_api(player)
local player_proterties = player:get_properties()
local mesh = "character.b3d"
if player_proterties.mesh == mesh then
if player_proterties.mesh == mesh or player_proterties.mesh == "max.b3d" then
local models = player_api.registered_models
local character = models[mesh]
if character then