Hey, so I would like to know how it would be possible to restrict classic advert (Release) to certain Dark RP jobs e.g. TEAM_COOLJOB.
Thanks to anyone that can help me.
Create a table of jobs that you want to be able to use the command in sv_advert.lua then use an if statement in the playerAdvert function
// Table of jobs
local advertJobs = { TEAM_CIVILIAN, TEAM_GUNDEALER }
// If statment
if !table.HasValue(advertJobs, player:Team()) then
// run code
else
// notify the player
end
I imagine for a small table of jobs it wouldn't be required too much, but yes you do bring a good point I should've mentioned it
Sorry, you need to Log In to post a reply to this thread.