Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Item = 'bankloan'
- Config.MaxSerialLength = 10 -- max chars of serial
- Config.CurrencySymbol = '$'
- Config.Target = true --true/false
- Config.Marker = true --true/false
- Config.JobName = 'perrico'
- Config.Icon = 'calendar-days'
- Config.Markers = {
- {
- coords = vector3(-2961.0830, 478.0836, 14.7969),
- color = { r = 255, g = 0, b = 0 },
- size = { x = 2.0, y = 2.0, z = 2.0 },
- helpText = 'Press ~INPUT_CONTEXT~ to open the banker job menu', -- Change 'INPUT_CONTEXT' to the button name example ~INPUT_CONTEXT~
- button = 38 -- Change this to the button code you want to use
- },
- -- {
- -- coords = vector3(-1080.5, -256.2, 37.7),
- -- color = { r = 0, g = 255, b = 0 },
- -- size = { x = 2.0, y = 2.0, z = 2.0 },
- -- helpText = 'Press ~INPUT_CONTEXT~ to open the insurance menu', -- Change the 'INPUT_CONTEXT' to the button name example ~INPUT_CONTEXT~
- -- button = 38 -- Change this to the button code you want to use
- -- }
- }
- Config.TargetName = 'qtarget' -- your third eye script name (qtarget, bt-target, ox_target)
- Config['Targets'] = {
- {
- x = -1066.87,
- y = -240.31,
- z = 39.73,
- minZ = 39,
- maxZ = 41,
- width = 2,
- length = 2,
- label = 'Open banker menu',
- name = 'Target1', -- This must be unique, dont use the same value
- distance = 2.0,
- },
- -- {
- -- x = -1066.87,
- -- y = -240.31,
- -- z = 42.73,
- -- minZ = 42,
- -- maxZ = 44,
- -- width = 2,
- -- length = 2,
- -- label = 'Option2',
- -- name = 'Target2', -- This must be unique, dont use the same value
- -- distance = 2.0,
- -- }
- }
- Config.Webhooks = {
- ['Created'] = '',
- ['Paid'] = '',
- ['Deleted'] = '',
- ['Money'] = '',
- }
- Config.WebhookMessages = {
- ['Created'] = ' Has created a loan! Serial: ',
- ['Paid'] = ' Has paid a loan! Serial: ',
- ['Deleted'] = ' Has deleted a loan! Serial: ',
- ['Money'] = ' Took money from a loan! '
- }
- Config['Lang'] = {
- ['DaysText'] = 'Day/s',
- ['Title'] = 'Banker job menu',
- ['CreateLoan'] = 'Create new loan',
- ['GetUnpaidLoans'] = 'Get unpaid loans',
- ['GetPaidLoans'] = 'Get paid loans',
- ['SetLoanPaid'] = 'Change the loan status to paid',
- ['PaidStatus'] = 'Paid',
- ['UnpaidStatus'] = 'Unpaid',
- ['UnpaidLoans'] = 'Unpaid loans',
- ['Accept'] = 'Yes',
- ['Decline'] = 'No',
- ['NoPermission'] = 'You cant use that!',
- ['CreatedLoan'] = 'You have created a new loan',
- ['Deadline'] = 'Deadline: ',
- ['BankerName'] = 'Issued by:',
- ['PriceDesc'] = 'Amount: ',
- ['TimeLeft'] = 'Days left: ',
- ['PaidLoan'] = 'You have paid a loan',
- ['Name'] = 'Firstname/surname of a client',
- ['Days'] = 'Type a number of days till deadline',
- ['CreatingCancelled'] = 'You have cancelled creating a loan',
- ['PaidLoans'] = 'Paid loans',
- ['ClientName'] = 'Client name: ',
- ['NamePlaceholder'] = 'Name/Surname',
- ['AmountPlaceholder'] = '100/200/300',
- ['DaysPlaceholder'] = 'Days',
- ['InvalidDays'] = 'Days number must be greater than 0',
- ['InvalidAmount'] = 'Amount of money must be greater than 0',
- ['InvalidInput'] = 'You must provide a name!',
- ['TimeLeftToday'] = 'Deadline today!',
- ['UnpaidFor'] = 'Unpaid for',
- ['ContainsNumbers'] = 'Your name input contains numbers! fix this',
- ['PaidToday'] = 'Paid today',
- ['PaidDate'] = 'Paid ago: ',
- ['DeletePaidLoans'] = 'Delete loans from database',
- ['DeletedLoan'] = 'You have deleted a loan',
- ['GetMoney'] = 'Get money from loan',
- ['TookMoney'] = 'You have taken money from loan',
- ['AlreadyTaken'] = 'Someone has already taken money from this loan',
- }
- RegisterNetEvent('dBankLoan:customNotification')
- AddEventHandler('dBankLoan:customNotification', function(msg)
- ESX.ShowNotification(msg)
- end)
Advertisement
Add Comment
Please, Sign In to add comment