It's here!
Spoiler 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
--------------------------------------------------
-- Player Classes Script by Unreal Software --
-- 28.02.2009 - www.UnrealSoftware.de --
-- Adds Player Classes to your server --
-- Edited by : GabPro --
--------------------------------------------------
-- INITIAL SETUP --
-----------------------
function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
job_offer=initArray(32)
jobs_avaible=initArray(7)
function job_offer_menu(id)
	menu(id,"Job Menu,Quit Job,Jobs Offer("..jobs_avaible[1]+jobs_avaible[2]+jobs_avaible[3]+jobs_avaible[4]+jobs_avaible[5]+jobs_avaible[6]+jobs_avaible[7]..")")
end
function job_offer_menu2(id)
	menu(id,"Jobs Offer,Worker("..jobs_avaible[1].."),Miner("..jobs_avaible[2].."),Barman("..jobs_avaible[3].."),Soldier("..jobs_avaible[4].."),Doctor("..jobs_avaible[5].."),Dealer("..jobs_avaible[6].."),Banker("..jobs_avaible[7]..")")
end
-----------------------
-- SERVERACTION --
-----------------------
addhook("serveraction","job_offer_pressF3")
function job_offer_pressF3(id,action)
	if (action==2) then
		job_offer_menu(id)
	end
end
-----------------------
-- CLASS SELECTION --
-----------------------
addhook("menu","job_offer_select")
function job_offer_select(id,menu,sel)
	if (menu=="Job Menu") then
		if (sel==1) then
			msg2(id,"You leave your work!@C")
			givework[id]=0
		end
		if (sel==2) then
			job_offer_menu2(id)
		end
	end
	if (menu=="Jobs Offer") then
		if (sel==1) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Worker!@C")
			givework[id]=1
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==2) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Miner!@C")
			givework[id]=2
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==3) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Barman!@C")
			givework[id]=3
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==4) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Soldier!@C")
			givework[id]=4
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==5) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Doctor!@C")
			givework[id]=5
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==6) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Dealer!@C")
			givework[id]=6
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
		if (sel==7) then
			if (jobs_avaible[sel]>=1) or (jobs_avaible[sel]=="inf") then
			msg2(_t2,"©255255255Now you are a Banker!@C")
			givework[id]=7
				if (jobs_avaible[sel]~="inf") then
					jobs_avaible[sel]=jobs_avaible[sel]-1
				end
			else
				msg2(_t2,"©255255255No available!@C")
			end
		end
	end
end
----------------------------------
-- ADMIN COMMAND : AVAIBLE JOBS --
----------------------------------
addhook("say","AdminOffer")
function AdminOffer(id,txt)
	if (player(id,"usgn")==16001 then -- YOUR USGN
		_msg=totable(txt)
		_t1=tostring(_msg[1])
		if (_t1=="!joboffer") then
			_t2=tonumber(_msg[2])
			_t3=tonumber(_msg[3])
			if (_t2 ~= nil) then
				if (_t2>=1) and (_t2<=7) then
					if (_t3 ~= nil)then
						if (_t3>=0) or (_t3=="inf") then
							if (_t3=="inf") then
								jobs_avaible[_t2] = "inf"
							else
								jobs_avaible[_t2] = _t3
							end
						else
							msg2(id,"©255255255Input the Quantity!@C")
							end
					else
						msg2(id,"©255255255Input the Quantity!@C")
						end
				else
					msg2(id,"©255255255".._t2.." is not a valid Work Number!@C")
					end
			else
				msg2(id,"©255255255You need to input the Work Number!@C")
				end
		return 1
		end
	end
end
Command :
!joboffer <Work Number> <Quantity Available>
<Work Number> : 0~7
<Quantity Available> :
0 : No available
1 or more : Quantity Available
inf : Infinite
Enjoy
Spoiler 

PS:Sorry about "avaible"
I dont speak english very much,and I use the tradutor when I finish the script
I dont speak english very much,and I use the tradutor when I finish the script
Lua Scripts/Questions/Help


Offline
. I checked console, it didin't find any bugs, everything seemed to work. Spoiler: