utils.game.isAnimalModel¶
utils.game.isAnimalModel(nameOrHash)
Arguments¶
Argument | Data Type | Optional | Default Value | Explanation |
---|---|---|---|---|
nameOrHash | string/int | No | - | Sets model name or hash |
Note
You can see all models here <Link not create yet>.
Dependency¶
local utils = M("utils")
Example¶
local isAnimal = utils.game.isAnimalModel('a_c_fish')
print(isAnimal) -- Returns true