Pivity

Need some help with Food Mod 2

Last read Never
#1

Ok I made a support ticket yesterday, but let's face it Rocketmania hasn't been on for a month so He won't be replying any time soon

Anyway I need some help making it so all players can buy from the F7 menu from the addon rather than just one Team.

This is the code:

function FM2_Config:PlayerCanBuyFoodFromF7Shop(ply)
if ply:Team() == TEAM_COOK then return true end -- Allow access
return false
end

as you can see it's team restricted, any help?

Thanks

-Tom

Dumb x 1
#2

Is this his code?

It can be easily reduced to:

return ply:Team() == TEAM_COOK

Anyways, just replace all the code inside function with:

return true

#3
ByNethat 4th of August 2016 14:40:03
Is this his code?It can be easily reduced to:return ply:Team() == TEAM_COOKAnyways, just replace all the code inside function with:return true

Cheers Neth I will Try it and for the person that called me dumb... I don't see a solution from you

Users viewing this thread
Nobody