• Print

Author Topic: Donator Jobs never work for me :/  (Read 4318 times)

0 Members and 1 Guest are viewing this topic.

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Donator Jobs never work for me :/
« on: July 15, 2013, 02:16:41 pm »
I have tried in my previous server to get donator jobs, failed. tried this time and im getting closer. I am using this code:
Code: Lua
  1.  customCheck = function(ply) return table.HasValue({"goldvip", "vip"}, ply:GetNWString("usergroup")) end,
  2.     CustomCheckFailMsg = "This is a donator only job!"
  3.  

I wanted to use ULX but this is the only one that i foun that looked good

But i get this error:
Code: Lua
  1. [ERROR] gamemodes/darkrp/gamemode/shared.lua:317: '}' expected (to close '{' at line 305) near 'customCheck'
  2. 1. unknown - gamemodes/darkrp/gamemode/shared.lua:0

I have always fallen at this point and would love a solution.

Shared.lua attached

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Donator Jobs never work for me :/
« Reply #1 on: July 15, 2013, 03:42:53 pm »
You're missing a comma on the previous line:
Code: Lua
  1. candemote = false
Experiencing God's grace one day at a time.

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: Donator Jobs never work for me :/
« Reply #2 on: July 16, 2013, 12:18:01 am »
Thanks this worked but i realised that it only works if you set access in the TAB menu, to ULX :(.  I also would love if it appeared in the menu, but when you click on it, it says donator only. This partially works in the TAB menu, when you goto setjob parkour and your not goldvip, but no one ever uses TAB menu :/.  I also would love to convert the code to ULX while keeping the "this is dontor only" custom check.

If you are willing to help, please make the TAB menu priority.

Thanks XD

I will try to convert to ULX myself....
« Last Edit: July 16, 2013, 12:37:04 am by daniel507 »

Offline daniel507

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: Donator Jobs never work for me :/
« Reply #3 on: July 17, 2013, 02:36:20 am »
Bump

  • Print