DarkRP - DarkRP.getPreferredJobModel returning nil on client
2 replies, posted
I am currentlying doing the following.
function teamToId(team)
for id, jobTable in pairs(RPExtraTeams) do
if jobTable.name == team then
return id
end
end
end
job = "Some Job"
print(DarkRP.getPreferredJobModel(teamToId(job)))
My problem with this is that I know that job exists in RPExtraTeams however it is returning a nil value
What is the content of RPExtraTeams
Clientside, but I figured it out already.
Sorry, you need to Log In to post a reply to this thread.