Guest User

dBankerJob Config

a guest
Feb 25th, 2023
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.74 KB | Source Code | 0 0
  1. Config = {}
  2.  
  3. Config.Item = 'bankloan'
  4.  
  5. Config.MaxSerialLength = 10 -- max chars of serial
  6.  
  7. Config.CurrencySymbol = '$'
  8.  
  9. Config.Target = true --true/false
  10.  
  11. Config.Marker = true --true/false
  12.  
  13. Config.JobName = 'perrico'
  14.  
  15. Config.Icon = 'calendar-days'
  16.  
  17. Config.Markers = {
  18.     {
  19.         coords = vector3(-2961.0830, 478.0836, 14.7969),
  20.         color = { r = 255, g = 0, b = 0 },
  21.         size = { x = 2.0, y = 2.0, z = 2.0 },
  22.         helpText = 'Press ~INPUT_CONTEXT~ to open the banker job menu', -- Change 'INPUT_CONTEXT'  to the button name example ~INPUT_CONTEXT~
  23.         button = 38 -- Change this to the button code you want to use
  24.     },
  25.     -- {
  26.     --  coords = vector3(-1080.5, -256.2, 37.7),
  27.     --  color = { r = 0, g = 255, b = 0 },
  28.     --  size = { x = 2.0, y = 2.0, z = 2.0 },
  29.     --  helpText = 'Press ~INPUT_CONTEXT~ to open the insurance menu', -- Change the 'INPUT_CONTEXT' to the button name example ~INPUT_CONTEXT~
  30.     --  button = 38 -- Change this to the button code you want to use
  31.     -- }
  32. }
  33.  
  34. Config.TargetName = 'qtarget' -- your third eye script name (qtarget, bt-target, ox_target)
  35.  
  36. Config['Targets'] = {
  37.     {
  38.         x = -1066.87,
  39.         y = -240.31,
  40.         z = 39.73,
  41.         minZ = 39,
  42.         maxZ = 41,
  43.         width = 2,
  44.         length = 2,
  45.         label = 'Open banker menu',
  46.         name = 'Target1', -- This must be unique, dont use the same value
  47.         distance = 2.0,
  48.     },
  49.     -- {
  50.     --  x = -1066.87,
  51.     --  y = -240.31,
  52.     --  z = 42.73,
  53.     --  minZ = 42,
  54.     --  maxZ = 44,
  55.     --  width = 2,
  56.     --  length = 2,
  57.     --  label = 'Option2',
  58.     --  name = 'Target2', -- This must be unique, dont use the same value
  59.     --     distance = 2.0,
  60.     -- }
  61. }
  62.  
  63.  
  64.  
  65. Config.Webhooks = {
  66.     ['Created'] = '',
  67.     ['Paid'] = '',
  68.     ['Deleted'] = '',
  69.     ['Money'] = '',
  70. }
  71.  
  72. Config.WebhookMessages = {
  73.     ['Created'] = ' Has created a loan! Serial: ',
  74.     ['Paid'] = ' Has paid a loan! Serial: ',
  75.     ['Deleted'] = ' Has deleted a loan! Serial: ',
  76.     ['Money'] = ' Took money from a loan! '
  77. }
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. Config['Lang'] = {
  86.     ['DaysText'] = 'Day/s',
  87.     ['Title'] = 'Banker job menu',
  88.     ['CreateLoan'] = 'Create new loan',
  89.     ['GetUnpaidLoans'] = 'Get unpaid loans',
  90.     ['GetPaidLoans'] = 'Get paid loans',
  91.     ['SetLoanPaid'] = 'Change the loan status to paid',
  92.     ['PaidStatus'] = 'Paid',
  93.     ['UnpaidStatus'] = 'Unpaid',
  94.     ['UnpaidLoans'] = 'Unpaid loans',
  95.     ['Accept'] = 'Yes',
  96.     ['Decline'] = 'No',
  97.     ['NoPermission'] = 'You cant use that!',
  98.     ['CreatedLoan'] = 'You have created a new loan',
  99.     ['Deadline'] = 'Deadline: ',
  100.     ['BankerName'] = 'Issued by:',
  101.     ['PriceDesc'] = 'Amount: ',
  102.     ['TimeLeft'] = 'Days left: ',
  103.     ['PaidLoan'] = 'You have paid a loan',
  104.     ['Name'] = 'Firstname/surname of a client',
  105.     ['Days'] = 'Type a number of days till deadline',
  106.     ['CreatingCancelled'] = 'You have cancelled creating a loan',
  107.     ['PaidLoans'] = 'Paid loans',
  108.     ['ClientName'] = 'Client name: ',
  109.     ['NamePlaceholder'] = 'Name/Surname',
  110.     ['AmountPlaceholder'] = '100/200/300',
  111.     ['DaysPlaceholder'] = 'Days',
  112.     ['InvalidDays'] = 'Days number must be greater than 0',
  113.     ['InvalidAmount'] = 'Amount of money must be greater than 0',
  114.     ['InvalidInput'] = 'You must provide a name!',
  115.     ['TimeLeftToday'] = 'Deadline today!',
  116.     ['UnpaidFor'] = 'Unpaid for',
  117.     ['ContainsNumbers'] = 'Your name input contains numbers! fix this',
  118.     ['PaidToday'] = 'Paid today',
  119.     ['PaidDate'] = 'Paid ago: ',
  120.     ['DeletePaidLoans'] = 'Delete loans from database',
  121.     ['DeletedLoan'] = 'You have deleted a loan',
  122.     ['GetMoney'] = 'Get money from loan',
  123.     ['TookMoney'] = 'You have taken money from loan',
  124.     ['AlreadyTaken'] = 'Someone has already taken money from this loan',
  125.  
  126.  
  127.  
  128. }
  129.  
  130.  
  131. RegisterNetEvent('dBankLoan:customNotification')
  132. AddEventHandler('dBankLoan:customNotification', function(msg)
  133.     ESX.ShowNotification(msg)
  134. end)
Tags: fiveM ESX
Advertisement
Add Comment
Please, Sign In to add comment