Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TriggerEvent('es:addCommand', 'jobtaxi', function(source, args, user)
- TriggerClientEvent('es_admin:spawnVehicle', source, 'taxi')
- local tsoncall = 0
- local onjob = false
- local jobtime = 0
- TriggerClientEvent("chatMessage", source, "TAXI", {255, 0, 0}, "^3Taxi Status^0: ^2Available")
- TriggerClientEvent("chatMessage", source, "SERVER", {255, 0, 0}, "^3If anyone asks for a taxi be sure to use ^0/tsoncall")
- TriggerClientEvent("chatMessage", source, "SERVER", {255, 0, 0}, "^3Once arrived at destination be sure to use ^0/tsavailable")
- while onjob do
- onjob = true
- jobtime = 0
- Citizen.Wait(300)
- jobtime = 5
- Citizen.Wait(600)
- jobtime = 10
- Citizen.Wait(900)
- jobtime = 15
- Citizen.Wait(1200)
- jobtime = 20
- Citizen.Wait(1500)
- jobtime = 25
- end
- end)
- TriggerEvent('es:addCommand', 'tsoncall', function(source, args, user)
- if (tsoncall == 1) then
- TriggerClientEvent("chatMessage", source, "TAXI", {255, 0, 0}, "^3You are already on a call!")
- else
- tsoncall = 1
- TriggerClientEvent("chatMessage", source, "TAXI", {255, 0, 0}, "^3Taxi Status^0: ^1On Call")
- end
- end)
- TriggerEvent('es:addCommand', 'tsavailable', function(source, args, user)
- if (tsoncall == 0) then
- TriggerClientEvent("chatMessage", source, "TAXI", {255, 0, 0}, "^3You are not on a call!")
- else
- tsoncall = 0
- TriggerClientEvent("chatMessage", source, "TAXI", {255, 0, 0}, "^3Taxi Status^0: ^2Available")
- end
- end)
- TriggerEvent('es:addCommand', 'tsod', function(source, args, user)
- if (jobtime < 5) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "Terrible! Not even five minutes! ~n~ ~y~JOB FEEDBACK~g~: ~r~NEGATIVE ~n~ ~y~PAYMENT~g~: ~r~$0")
- elseif (jobtime < 5) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "Better, who told you that you were still in you're training phase though?! ~n~ ~y~JOB FEEDBACK~g~: ~r~NEGATIVE ~n~ ~y~PAYMENT~g~: ~r~$50")
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "iFruit Mail", false, "noreply@bank_maze.org.us ~n~ ~n~ This is an automated message do not reply! ~n~ ~y~TRANSACTION~g~: ~r~$50 ~n~ ~y~FROM~g~: ~r~JOHN WATSON ~n~ ~y~OCCUPATION~g~: ~r~DOWNTOWN CAB CO.")
- user:addMoney((50))
- elseif (jobtime >= 10) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "I'm starting to see some improvement, that's good I guess... ~n~ ~y~JOB FEEDBACK~g~: ~w~REGULAR ~n~ ~y~PAYMENT~g~: ~r~$150")
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "iFruit Mail", false, "noreply@bank_maze.org.us ~n~ ~n~ This is an automated message do not reply! ~n~ ~y~TRANSACTION~g~: ~r~$150 ~n~ ~y~FROM~g~: ~r~JOHN WATSON ~n~ ~y~OCCUPATION~g~: ~r~DOWNTOWN CAB CO.")
- user:addMoney((150))
- elseif (jobtime >= 15) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "Good! Try more! Push yourself! ~n~ ~y~JOB FEEDBACK~g~: ~o~INTERESTING ~n~ ~y~PAYMENT~g~: ~r~$250")
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "iFruit Mail", false, "noreply@bank_maze.org.us ~n~ ~n~ This is an automated message do not reply! ~n~ ~y~TRANSACTION~g~: ~r~$250 ~n~ ~y~FROM~g~: ~r~JOHN WATSON ~n~ ~y~OCCUPATION~g~: ~r~DOWNTOWN CAB CO.")
- user:addMoney((250))
- elseif (jobtime < 20) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "Wow! I'm impressed! Good work, serve again soon! ~n~ ~y~JOB FEEDBACK~g~: ~b~POSITIVE ~n~ ~y~PAYMENT~g~: ~r~$50")
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "iFruit Mail", false, "noreply@bank_maze.org.us ~n~ ~n~ This is an automated message do not reply! ~n~ ~y~TRANSACTION~g~: ~r~$350 ~n~ ~y~FROM~g~: ~r~JOHN WATSON ~n~ ~y~OCCUPATION~g~: ~r~DOWNTOWN CAB CO.")
- user:addMoney((350))
- elseif (jobtime == 25) then
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Downtown Cab Co.", false, "Great Job! You need money? I'll hook ya right up! /n ~y~JOB FEEDBACK~g~: ~p~VERY POSITIVE /n ~y~PAYMENT~g~: ~r~$500")
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "iFruit Mail", false, "noreply@bank_maze.org.us /n /n This is an automated message do not reply! /n ~y~TRANSACTION~g~: ~r~$500 /n ~y~FROM~g~: ~r~JOHN WATSON /n ~y~OCCUPATION~g~: ~r~DOWNTOWN CAB CO.")
- user:addMoney((500))
- end
- if(jobtime < 25) then
- TriggerClientEvent("chatMessage", source, "SERVER", {255, 0, 0}, "^2Top Job Tip: ^3Don't go off duty without doing 25 minutes or more! You can get up to 500 dollars in your job!")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement