[DARKRP] How to get model of a job ?

i was using DarkRP.getPreferredJobModel(number) but it doesnt work on all jobs.

What exactly are you trying to do?

local model = RPExtraTeams[number].model
if type(model) == “table” then
model = model[1]

not working

It doesnt work on all jobs because there are jobs that have multiple models for it. What you need is checking if its a table or not, and if it is, take the first one or a random one from the table.