Advertisement
Guest User

Untitled

a guest
Mar 16th, 2023
874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. ---------------------------------------------------------------------------------------------------------------------------------
  2. -------------------------------------------------------- PLATE FLIPPER ----------------------------------------------------------
  3. -- INSTALL GUIDE:
  4. -- The plate flipper script visually changes the license plate while keeping the original text intact.
  5. -- This prevents other scripts from malfunctioning, as you can still retrieve the genuine licence plate data through the
  6. -- GetVehicleNumberPlateText native.
  7.  
  8. -- The script also includes an exported function that can be used to retrieve the license plate.
  9. -- If the plate isn't flipped, the function returns the normal plate, but if it is flipped, it returns an empty string.
  10.  
  11. -- To use the plate flipper script, we recommend replacing the GetVehicleNumberPlateText() Native function
  12. -- in any script where you don't want the license plate text to be returned if the license plate is flipped.
  13. -- For example, you may want to do this for police radars or speed cameras.
  14.  
  15. -- To replace the function, use the following code:
  16. -- exports["pd_plate_flipper"]:GetVehiclePlate(vehicle)
  17.  
  18. -- To replace the function in your script, you can run a find-and-replace query:
  19.  
  20. -- Find:
  21. -- GetVehicleNumberPlateText(
  22.  
  23. -- Replace with:
  24. -- exports["pd_plate_flipper"]:GetVehiclePlate(
  25.  
  26.  
  27. -- Please note that you only need to do this for scripts where you want an empty string to be returned
  28. -- instead of the actual license plate text if the plate is flipped.
  29.  
  30. -- Execute pd_extra_table.sql on your database and if you're using an item framework, execute esx_install.sql from _esx_install folder
  31. -- if using ESX or follow the instructions in _qb_setup
  32.  
  33.  
  34.  
  35. -- This script uses the north yankton plate as the stealth plate. If the north yankton plate shows up in LS Customs, make sure to remove it.
  36.  
  37. ----------------------------------------------------------------------------------------------------------------------------------
  38.  
  39.  
  40. -- DEFAULT KEYBIND FOR THE FLIPPER IS "K". This can be changed in the fivem keybind settings in game
  41.  
  42. Config = {}
  43. Config.Locale = 'en'
  44. Config.debug = false
  45.  
  46. Config.ESX = {
  47. enabled = true,
  48. useNewESXExport = false
  49. }
  50.  
  51. Config.QBCore = {
  52. enabled = false,
  53. }
  54.  
  55. Config.sqlDriver = "mysql" -- options: "mysql" (for esx) or "oxmysql" (for QBCore)
  56. Config.extremeBlackout = true -- flattens out the text to decrease readability
  57.  
  58.  
  59.  
  60. -- Requires Either ESX or QBCore
  61. Config.requiresInstalledMod = true
  62.  
  63. Config.useAZERTYKeyboard = false
  64. Config.keyBindsIn = {"S", "D", "W", "A"}
  65. Config.keyBindsOut = {"W", "D", "S", "A"}
  66. Config.minigameLength = 20 -- amount of keypresses
  67. Config.removalMessedUpDuration = 5
  68.  
  69. -- This is the default of nothing for the line is setup in the config.
  70. -- The display type for each individual line can be modified in "locales/en.lua"
  71. Config.displayText = "3DText" -- options: "3DText", "subtitles", "topRightDisplay"
  72. Config.useKey = {
  73. key = 'G',
  74. TextDisplay3d = "~g~[~w~G~g~]~w~",
  75. inputIcon = "~INPUT_DETONATE~", --https://docs.fivem.net/docs/game-references/controls/
  76. }
  77. Config.cancelKey = {
  78. key = 'X',
  79. TextDisplay3d = "~r~[~w~X~r~]~w~",
  80. inputIcon = "~INPUT_VEH_DUCK~"--https://docs.fivem.net/docs/game-references/controls/
  81. }
  82.  
  83. Config.flipperInstall = {
  84. requiresInstall = true,
  85. requiresJob = true,
  86. itemEnabled = true,
  87. jobName = "mechanic",
  88. itemName = "pd_licence_plate_flipper",
  89. requiresScrewdriver = true,
  90. screwdriverName = "pd_screwdriver",
  91. policeCanCheckForInstalledFlipper = {
  92. enabled = true,
  93. requiresJob = true,
  94. jobNames = {"mechanic", "police"},
  95. searchTime = 5, -- in seconds,
  96. findChance = 100,
  97. requiresScrewdriverTorRemove = true,
  98. }
  99. }
  100.  
  101.  
  102.  
  103. Config.blankPlateIndex = 5 -- don't change this unless instructed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement