Cook job!

Hello!

Can i get hungermod for DarkRP 2.5? It seems cook is kinda useless without hungermod D:

If I remember right, hungermod is already in DarkRP. Check the config in it.

Well, i didn’t find anything… Would be nice if someone would tell me the directory or something.

Btw, do you know why is this giving errors:


TEAM_SECURITY = AddExtraTeam("security",
    color = Color(51, 255, 255, 255),
    model = "models/player/odessa.mdl",
    description = [[You protect people for money]].,
    weapons = {stunstick, m9k_m92beretta},
    command = "security",
    max = 4,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = true,

It errors because there’s a “.” behind the “for money]]” part

[editline]25th October 2013[/editline]

Also unless stunstuck and m9k_m82something are variables they should be between “” (because then they would be strings).
I think you also meant the second argument to AddExtraTeam to be a table, in which case you put the code between {}.
[lua]
{ key = value, etc… }
[/lua]

[editline]25th October 2013[/editline]

And if you explain what exactly a hungermod is maybe we can help you. If it’s something very specific for DarkRP configuration, this is not the right place to ask.

Can you make a example of that stunstuck and m9k_m82something thing, my english is too bad to understand what are you trying to say :s

You have this line
[lua]
weapons = {stunstick, m9k_m92beretta},
[/lua]

I think you meant this, cause you probably mean to create a table of classnames there.
[lua]
weapons = {“stunstick”, “m9k_m92beretta”},
[/lua]

Unless, of course, you have something like this done earlier in your file
[lua]
local stunstuck = Stunstick() – or something else defining stunstick
[/lua]

[editline]25th October 2013[/editline]

For more info on tables in Lua

Thanks alot! :slight_smile:

[editline]25th October 2013[/editline]

Now im getting this:

http://aijaa.com/bMi1mI